Jelajahi Sumber

去除 pc 端

bding 2 tahun lalu
induk
melakukan
b88c4ad031
4 mengubah file dengan 24 tambahan dan 32 penghapusan
  1. 12 11
      App.vue
  2. 0 1
      manifest.json
  3. 12 11
      mixin/index.js
  4. 0 9
      pages/material/material.vue

+ 12 - 11
App.vue

@@ -14,17 +14,18 @@ export default {
       // });
     }
   },
-  onShow: function (optios) {
-    uni.getSystemInfo({
-      success: function (res) {
-        if (res.windowWidth > 700) {
-          uni.reLaunch({
-            url: "/pages/pcWebViev/pcWebViev?path=" + optios.path + "&query=" + JSON.stringify(optios.query),
-          });
-        }
-      },
-    });
-  },
+  // pc 端功能关闭
+  // onShow: function (optios) {
+  //   uni.getSystemInfo({
+  //     success: function (res) {
+  //       if (res.windowWidth > 700) {
+  //         uni.reLaunch({
+  //           url: "/pages/pcWebViev/pcWebViev?path=" + optios.path + "&query=" + JSON.stringify(optios.query),
+  //         });
+  //       }
+  //     },
+  //   });
+  // },
   onHide: function () {},
   globalData: {
     isLogin: false,

+ 0 - 1
manifest.json

@@ -68,7 +68,6 @@
             "minified" : true
         },
         "usingComponents" : true,
-        "resizable" : true,
         "permission" : {},
         "uniStatistics" : {
             "enable" : false

+ 12 - 11
mixin/index.js

@@ -22,17 +22,18 @@ export default {
     this.isShowFreeButton();
   },
   onLoad(optios) {
-    const page = this.$mp && this.$mp.page;
-    uni.getSystemInfo({
-      success: function (res) {
-        if (page && page.route == "pages/pcWebViev/pcWebViev") return;
-        if (res.windowWidth > 700) {
-          uni.reLaunch({
-            url: "/pages/pcWebViev/pcWebViev?path=" + page.route + "&query=" + JSON.stringify(optios),
-          });
-        }
-      },
-    });
+    // PC端功能关闭
+    // const page = this.$mp && this.$mp.page;
+    // uni.getSystemInfo({
+    //   success: function (res) {
+    //     if (page && page.route == "pages/pcWebViev/pcWebViev") return;
+    //     if (res.windowWidth > 700) {
+    //       uni.reLaunch({
+    //         url: "/pages/pcWebViev/pcWebViev?path=" + page.route + "&query=" + JSON.stringify(optios),
+    //       });
+    //     }
+    //   },
+    // });
 
     // 判断手机号是不是弘则研究
     // this.userIsShowShare();

+ 0 - 9
pages/material/material.vue

@@ -136,15 +136,6 @@ export default {
   watch: {},
   onLoad(optios) {
     this.getHeaderTab();
-    uni.getSystemInfo({
-      success: function (res) {
-        if (res.windowWidth > 700) {
-          uni.reLaunch({
-            url: "/pages/pcWebViev/pcWebViev",
-          });
-        }
-      },
-    });
     if (optios.topTabsActive) {
       this.topTabsActive = optios.topTabsActive;
       this.secondActive = optios.secondActive;