Selaa lähdekoodia

feature: 整合代码

Damon 1 vuosi sitten
vanhempi
commit
4de5bc6d4d
3 muutettua tiedostoa jossa 21 lisäystä ja 5 poistoa
  1. 13 4
      .idea/workspace.xml
  2. 1 1
      index.html
  3. 7 0
      resource/js/app.js

+ 13 - 4
.idea/workspace.xml

@@ -4,8 +4,9 @@
     <option name="autoReloadType" value="NONE" />
   </component>
   <component name="ChangeListManager">
-    <list default="true" id="d7df7679-0b04-4bc0-b250-d8113c4735e3" name="Changes" comment="feature: 整理">
-      <change afterPath="$PROJECT_DIR$/.vscode/launch.json" afterDir="false" />
+    <list default="true" id="d7df7679-0b04-4bc0-b250-d8113c4735e3" name="Changes" comment="feature: 添加谷歌启动器">
+      <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
+      <change beforePath="$PROJECT_DIR$/index.html" beforeDir="false" afterPath="$PROJECT_DIR$/index.html" afterDir="false" />
       <change beforePath="$PROJECT_DIR$/resource/js/app.js" beforeDir="false" afterPath="$PROJECT_DIR$/resource/js/app.js" afterDir="false" />
     </list>
     <option name="SHOW_DIALOG" value="false" />
@@ -119,7 +120,14 @@
       <option name="project" value="LOCAL" />
       <updated>1722478990345</updated>
     </task>
-    <option name="localTasksCounter" value="8" />
+    <task id="LOCAL-00008" summary="feature: 添加谷歌启动器">
+      <created>1722479938359</created>
+      <option name="number" value="00008" />
+      <option name="presentableId" value="LOCAL-00008" />
+      <option name="project" value="LOCAL" />
+      <updated>1722479938359</updated>
+    </task>
+    <option name="localTasksCounter" value="9" />
     <servers />
   </component>
   <component name="TypeScriptGeneratedFilesManager">
@@ -143,6 +151,7 @@
     <MESSAGE value="feature: 删除无效数据" />
     <MESSAGE value="feature: 代码整理" />
     <MESSAGE value="feature: 整理" />
-    <option name="LAST_COMMIT_MESSAGE" value="feature: 整理" />
+    <MESSAGE value="feature: 添加谷歌启动器" />
+    <option name="LAST_COMMIT_MESSAGE" value="feature: 添加谷歌启动器" />
   </component>
 </project>

+ 1 - 1
index.html

@@ -34,7 +34,7 @@
                         <input id="WiFiName" type="text" value="{{.wifiName}}"
                             class="myapp-login-input-text am-form-field" placeholder="请输入您的Wi-Fi账号" required="required">
                     </div>
-                    <div class="am-form-group am-form-icon ">
+                    <div class="am-form-group am-form-icon">
                         <i class="am-icon-lock"></i>
                         <input id="WiFiPwd" type="password" class="myapp-login-input-text am-form-field"
                             placeholder="请输入您的Wi-Fi密码" required="required" data="passworedtype">

+ 7 - 0
resource/js/app.js

@@ -11,17 +11,22 @@ $(document).ready(function () {
       $(this).removeClass('am-icon-eye').addClass('am-icon-eye-slash');
     }
   });
+
+  // 确定
   $('#confirm').click(function (event) {
     event.preventDefault()
     $(this).prop("disabled", true);
+
     setTimeout(function () {
       $("#confirm").prop("disabled", false);
     }, 1000);
+
     var wifiName = $('#WiFiName').val();
     if (wifiName.trim().length === 0) {
       layer.msg('必须输入Wi-Fi账号✅');
       return
     }
+
     var wifiPwd = $('#WiFiPwd').val();
     if (wifiPwd.trim().length < 8) {
       layer.msg('必须输入正确的Wi-Fi密码✅');
@@ -32,6 +37,8 @@ $(document).ready(function () {
       layer.msg('必须传UUId✅');
       return
     }
+
+    // 网络请求
     $.ajax({
       url: 'http://ptt.radio1964.com/v1/device/set-wifi', // 替换为后台接口的实际URL
       method: 'POST', // 替换为后台接口的实际请求方法