فهرست منبع

1.解决ios不能正常执行切换门店 2.app 拉起微信小程序

shizhongqi 4 سال پیش
والد
کامیت
97226bee77

+ 0 - 1
ghsApp/src/admin/home/login.vue

@@ -254,7 +254,6 @@ export default {
 							setTimeout(function(){
 								//uni.showToast({ title: '登录失败,请打开流量,关闭wifi,再登录', duration: 3000, icon:'none' })
 							},1000)
-
 						},
 						complete: (res) => {
 							console.log(res)

+ 7 - 13
ghsApp/src/admin/home/me.vue

@@ -159,7 +159,13 @@ export default {
     this.init()
   },
   onShow () {
-    
+    // #ifdef APP-PLUS
+    // 只让 ios 加载,安卓不加载(如果这边安卓加载,可能会发生请求二次 /shop/all)
+    let type = uni.getSystemInfoSync().platform
+    if(type == 'ios'){
+      this.init()
+    }
+    // #endif
   },
   onLoad(){
     // #ifdef APP-PLUS
@@ -177,18 +183,6 @@ export default {
 		},
     showAllShop () {
       this.$refs.shopSelectComponent.dropdownShow = true;
-
-      // this.$refs.shopSelectComponent.shopList = []
-      // shopAll().then(res=>{
-      //   if(res.code == 1){
-      //     if (!this.$util.isEmpty(res.data)){
-      //       res.data.forEach((i) => {
-      //         this.$refs.shopSelectComponent.shopList.push({id:i.id,name:i.shopName})
-      //       })
-      //     }
-      //   }
-      // })
-
     },
     async init () {
       const { data } = await mainMy();

+ 4 - 2
ghsApp/src/admin/item/components/ItemStock.vue

@@ -91,15 +91,17 @@ export default {
 								return false;
 							}
 						}, function(e){
+							this.$msg("获取微信失败:" + e.message)
 							console.log("获取微信失败:" + e.message);
 						});
 					},
 					fail: function (res) {
-						console.log(res);
+						this.$msg("当前环境不支持微信操作" + JSON.stringify(res))
+						console.log(res)
 					}
 				});
     	}else{
-        this.$msg("微信应用未安装");
+        this.$msg("微信应用未安装")
 				return false
     	}
 			// #endif

+ 2 - 0
hdApp/src/admin/home/workbench.vue

@@ -179,10 +179,12 @@ export default {
                 return false;
               }
             }, function(e){
+              this.$msg("获取微信失败:" + e.message)
               console.log("获取微信失败:" + e.message);
             });
           },
           fail: function (res) {
+            this.$msg("当前环境不支持微信操作" + JSON.stringify(res))
             console.log(res)
           }
         });