Browse Source

离线打包所需配置

msx 4 days ago
parent
commit
3fe959b63f
3 changed files with 23 additions and 22 deletions
  1. 1 2
      manifest.json
  2. 9 8
      pages/login/login.vue
  3. 13 12
      pages/webview/webview.vue

+ 1 - 2
manifest.json

@@ -1,6 +1,6 @@
 {
     "name" : "智能通风",
-    "appid" : "__UNI__2000523",
+    "appid" : "__UNI__8193760",
     "description" : "",
     "versionName" : "2.2.22",
     "versionCode" : 1,
@@ -25,7 +25,6 @@
         ],
         /* 5+App特有相关 */
         "modules" : {
-            "Push" : {},
             "VideoPlayer" : {},
             "Camera" : {}
         },

+ 9 - 8
pages/login/login.vue

@@ -255,15 +255,16 @@ export default {
       });
     },
     saveClientId() {
-      var info = plus.push.getClientInfo();
-      var cid = info.clientid;
-      this.$http
-        .get("/sys/user/saveClientId", { params: { clientId: cid } })
-        .then((res) => {
-          console.log("res::saveClientId>", res);
-          //获取权限菜单
           this.getPermissionList();
-        });
+      // var info = plus.push.getClientInfo();
+      // var cid = info.clientid;
+      // this.$http
+      //   .get("/sys/user/saveClientId", { params: { clientId: cid } })
+      //   .then((res) => {
+      //     console.log("res::saveClientId>", res);
+      //     //获取权限菜单
+      //     this.getPermissionList();
+      //   });
     },
     changePassword() {
       this.showPassword = !this.showPassword;

+ 13 - 12
pages/webview/webview.vue

@@ -185,19 +185,20 @@ export default {
     },
     saveClientId() {
       console.log("saveClientId=========================");
-      var info = plus.push.getClientInfo();
-      var cid = info.clientid;
-      this.$http
-        .get("/sys/user/saveClientId", {
-          params: {
-            clientId: cid,
-          },
-        })
-        .then((res) => {
-          console.log("res::saveClientId>", res);
-          //获取权限菜单
           this.getPermissionList();
-        });
+      // var info = plus.push.getClientInfo();
+      // var cid = info.clientid;
+      // this.$http
+      //   .get("/sys/user/saveClientId", {
+      //     params: {
+      //       clientId: cid,
+      //     },
+      //   })
+      //   .then((res) => {
+      //     console.log("res::saveClientId>", res);
+      //     //获取权限菜单
+      //     this.getPermissionList();
+      //   });
     },
   },
   onShow() {