shish 4 лет назад
Родитель
Сommit
a205442ae0
2 измененных файлов с 14 добавлено и 17 удалено
  1. 7 9
      ghsApp/src/admin/item/components/ItemStock.vue
  2. 7 8
      hdApp/src/admin/home/workbench.vue

+ 7 - 9
ghsApp/src/admin/item/components/ItemStock.vue

@@ -64,12 +64,10 @@ export default {
 			// #ifdef MP-WEIXIN
 			this.$emit('goToProduct', id)
 			// #endif
-
 			// #ifdef APP-PLUS
 			let that = this
 			if(plus.runtime.isApplicationExist({pname:'com.tencent.mm',action:'weixin://'})){
 				var sweixin
-
 				plus.share.getServices(function(s){
 					for (var i = 0; i < s.length; i++) {
 						var t = s[i];
@@ -77,7 +75,6 @@ export default {
 							sweixin = t;
 						}
 					}
-
 					if (sweixin) { //&& sweixin.nativeClient
 						sweixin.launchMiniProgram({
 							id: 'gh_73b8b357d19a',
@@ -85,17 +82,18 @@ export default {
 							type: 0
 						});
 					} else {
-						that.$msg('请安装微信');
+						that.$msg('没有找到微信服务');
 						return false;
 					}
 				}, function(e){
-					that.$msg("获取微信失败:" + e.message)
-					console.log(JSON.stringify(e));
+					that.$msg("没有找到微信服务哦")
+					//that.$msg("获取微信失败:" + e.message)
+					//console.log(JSON.stringify(e));
 				});
-    	}else{
-        this.$msg("请安装微信")
+			}else{
+				this.$msg("即将打开小程序,请安装微信")
 				return false
-    	}
+			}
 			// #endif
 		},
 		addEvent() {

+ 7 - 8
hdApp/src/admin/home/workbench.vue

@@ -152,20 +152,17 @@ export default {
       // #ifdef MP-WEIXIN
       this.$util.pageTo({url:'/pagesPurchase/order'})
       // #endif
-
       // #ifdef APP-PLUS
       let that = this
       if(plus.runtime.isApplicationExist({pname:'com.tencent.mm',action:'weixin://'})){
         plus.share.getServices(function(s){
           var sweixin
-          
           for (var i = 0; i < s.length; i++) {
             var t = s[i];
             if (t.id == 'weixin') {
                 sweixin = t;
             }
           }
-
           if (sweixin && sweixin.nativeClient) {
             sweixin.launchMiniProgram({
               id: 'gh_73b8b357d19a',
@@ -173,15 +170,17 @@ export default {
               type: 0
             });
           } else {
-            that.$msg('请安装微信');
-            return false;
+            that.$msg("没有找到微信服务")
+            //that.$msg("获取微信失败:" + e.message)
+            //console.log(JSON.stringify(e));
           }
         }, function(e){
-          that.$msg("获取微信失败:" + e.message)
-          console.log("获取微信失败:" + e.message);
+            that.$msg("没有找到微信服务哦")
+            //that.$msg("获取微信失败:" + e.message)
+            //console.log(JSON.stringify(e));
         });
       } else {
-        that.$msg("请安装微信")
+				this.$msg("即将打开小程序,请安装微信")
 				return false
       }
 			// #endif