|
@@ -484,42 +484,35 @@
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
goHome() {
|
|
goHome() {
|
|
|
- h5util.jumpIndex('/pages/tabBar/index?channel=home')
|
|
|
|
|
|
|
+ h5util.jumpIndex('/pages/tabBar/index')
|
|
|
// app.globalData.openHome();
|
|
// app.globalData.openHome();
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
async onShareMessage(options) {
|
|
async onShareMessage(options) {
|
|
|
let merchantId = '';
|
|
let merchantId = '';
|
|
|
let path = '';
|
|
let path = '';
|
|
|
- let isSolution = '';
|
|
|
|
|
- isSolution = req.env[req.env.NODE_ENV].isSolution;
|
|
|
|
|
let userInfo = req.getStorage('userInfo');
|
|
let userInfo = req.getStorage('userInfo');
|
|
|
let shopId = '';
|
|
let shopId = '';
|
|
|
- if (isSolution) {
|
|
|
|
|
- path = '/share/home/index?appId=' + req.getStorage('appId') + '&userId=' + req.getStorage(
|
|
|
|
|
- 'userInfo').id;
|
|
|
|
|
- } else {
|
|
|
|
|
- path = '/product/detail/detail?id=' + this.query.id
|
|
|
|
|
- // console.log(!req.getStorage('userInfo').id);
|
|
|
|
|
- if (!userInfo.id) {} else {
|
|
|
|
|
- path += '&userId=' + userInfo.id;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- // console.log(this.query.merchantId);
|
|
|
|
|
- if (req.getStorage('MERCHANT') && req.getStorage('MERCHANT').id != null) {
|
|
|
|
|
- path += '&merchantId=' + req.getStorage('MERCHANT').id;
|
|
|
|
|
- merchantId = req.getStorage('MERCHANT').id;
|
|
|
|
|
-
|
|
|
|
|
- if (req.getStorage('smallShop') && req.getStorage('MERCHANT').id != null) {
|
|
|
|
|
- path += '&shopId=' + req.getStorage('smallShop').id;
|
|
|
|
|
- shopId = req.getStorage('smallShop').id;
|
|
|
|
|
- merchantId = req.getStorage('smallShop').merchantDTO.id;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- if (userInfo.merchantId) {
|
|
|
|
|
- path += '&userMerchantId=' + userInfo.merchantId;
|
|
|
|
|
|
|
+ path = '/product/detail/detail?id=' + this.query.id
|
|
|
|
|
+ // console.log(!req.getStorage('userInfo').id);
|
|
|
|
|
+ if (!userInfo.id) {} else {
|
|
|
|
|
+ path += '&userId=' + userInfo.id;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ // console.log(this.query.merchantId);
|
|
|
|
|
+ if (req.getStorage('MERCHANT') && req.getStorage('MERCHANT').id != null) {
|
|
|
|
|
+ path += '&merchantId=' + req.getStorage('MERCHANT').id;
|
|
|
|
|
+ merchantId = req.getStorage('MERCHANT').id;
|
|
|
|
|
+
|
|
|
|
|
+ if (req.getStorage('smallShop') && req.getStorage('MERCHANT').id != null) {
|
|
|
|
|
+ path += '&shopId=' + req.getStorage('smallShop').id;
|
|
|
|
|
+ shopId = req.getStorage('smallShop').id;
|
|
|
|
|
+ merchantId = req.getStorage('smallShop').merchantDTO.id;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+ if (userInfo.merchantId) {
|
|
|
|
|
+ path += '&userMerchantId=' + userInfo.merchantId;
|
|
|
|
|
+ }
|
|
|
route.share(1, userInfo.id, path, merchantId, shopId, 1, this.query.id);
|
|
route.share(1, userInfo.id, path, merchantId, shopId, 1, this.query.id);
|
|
|
|
|
|
|
|
path = this.SHARE_BEHAVIOR_FN({path:path,sendShare:false}).path
|
|
path = this.SHARE_BEHAVIOR_FN({path:path,sendShare:false}).path
|
|
@@ -810,9 +803,10 @@
|
|
|
|
|
|
|
|
async govip() {
|
|
async govip() {
|
|
|
if (await req.isAuthFn(true)) {
|
|
if (await req.isAuthFn(true)) {
|
|
|
- uni.navigateTo({
|
|
|
|
|
- url: '/mine/vip/vip'
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ h5util.jumpUrlExternal({url:'/mine/vip/vip',onlyWeb:false})
|
|
|
|
|
+ // uni.navigateTo({
|
|
|
|
|
+ // url: '/mine/vip/vip'
|
|
|
|
|
+ // });
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
|