|
|
@@ -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() {
|