|
|
@@ -154,6 +154,7 @@ export default {
|
|
|
constant: this.$constant,
|
|
|
// 遮罩层
|
|
|
renewMask: false,
|
|
|
+ getappIdList: {},
|
|
|
data: {
|
|
|
admin: {},
|
|
|
asset: {},
|
|
|
@@ -276,7 +277,11 @@ export default {
|
|
|
...mapGetters({ userInfo: "getUser" }),
|
|
|
...mapGetters({ loginInfo: "getLoginInfo" })
|
|
|
},
|
|
|
- onLoad (option) { },
|
|
|
+ onLoad (option) {
|
|
|
+ getWeixinId().then(res => {
|
|
|
+ this.getappIdList = res.data
|
|
|
+ });
|
|
|
+ },
|
|
|
onPullDownRefresh () {
|
|
|
this.init();
|
|
|
uni.stopPullDownRefresh();
|
|
|
@@ -359,9 +364,8 @@ export default {
|
|
|
goToMallPt (url) {
|
|
|
let self = this
|
|
|
console.log(url + '?account=' + self.loginInfo.shopId)
|
|
|
- getWeixinId().then(res => {
|
|
|
uni.navigateToMiniProgram({
|
|
|
- appId: res.data.mall.miniAppId,
|
|
|
+ appId: this.getappIdList.mall.miniAppId,
|
|
|
path: url + '?account=' + self.loginInfo.shopId,
|
|
|
//develop 开发版 trial 体验版 release 正式版
|
|
|
envVersion: process.env.NODE_ENV === 'development' ? 'develop' : 'release',
|
|
|
@@ -369,11 +373,8 @@ export default {
|
|
|
'hdShopAdminId': self.loginInfo.shopAdminId
|
|
|
},
|
|
|
success (res) {
|
|
|
-
|
|
|
}
|
|
|
})
|
|
|
- });
|
|
|
-
|
|
|
},
|
|
|
}
|
|
|
};
|