|
|
@@ -26,7 +26,7 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
computed: {
|
|
|
- ...mapGetters({ loginInfo: "getLoginInfo" })
|
|
|
+ ...mapGetters({ loginInfo: "getLoginInfo",dictInfo:"getDictionariesInfo" })
|
|
|
},
|
|
|
methods: {
|
|
|
init() {
|
|
|
@@ -76,10 +76,7 @@ export default {
|
|
|
// #endif
|
|
|
// #ifdef APP-PLUS
|
|
|
let that = this
|
|
|
- if(CURRENT_ENV == 'dev'){
|
|
|
- that.$msg("开发环境不允许跳转")
|
|
|
- return false
|
|
|
- }
|
|
|
+
|
|
|
if(plus.runtime.isApplicationExist({pname:'com.tencent.mm',action:'weixin://'})){
|
|
|
plus.share.getServices(function(s){
|
|
|
var sweixin
|
|
|
@@ -90,20 +87,22 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
if (sweixin && sweixin.nativeClient) {
|
|
|
+ let miniOriginalId = that.dictInfo.miniOriginalId && that.dictInfo.miniOriginalId.current && that.dictInfo.miniOriginalId.current.mall ? that.dictInfo.miniOriginalId.current.mall : ''
|
|
|
+ console.log(miniOriginalId)
|
|
|
sweixin.launchMiniProgram({
|
|
|
- id: 'gh_73b8b357d19a',
|
|
|
- path: '/pages/home/index?account='+self.loginInfo.shopId,
|
|
|
+ id: miniOriginalId,
|
|
|
+ path: '/pages/home/index?account='+that.loginInfo.shopId,
|
|
|
type: 0
|
|
|
});
|
|
|
} else {
|
|
|
that.$msg("没有找到微信服务")
|
|
|
//that.$msg("获取微信失败:" + e.message)
|
|
|
- //console.log(JSON.stringify(e));
|
|
|
+ console.log(JSON.stringify(e));
|
|
|
}
|
|
|
}, function(e){
|
|
|
that.$msg("没有找到微信服务哦")
|
|
|
//that.$msg("获取微信失败:" + e.message)
|
|
|
- //console.log(JSON.stringify(e));
|
|
|
+ console.log(JSON.stringify(e));
|
|
|
});
|
|
|
} else {
|
|
|
this.$msg("即将跳转小程序,请安装微信")
|