Commit 3df0dcd9 by 张立顺

Merge branch 'dev_v4.24.0' of http://192.168.3.233:8090/saas_plus/dj-car-boutiqu…

…e-work-wechat into dev_v4.24.0
2 parents 7ff4f3b7 e5586523
......@@ -196,6 +196,7 @@ Component({
}
})
})
console.log(defaultItem,'defaultItem');
if (defaultItem) {
this.setData({
couponList,
......@@ -331,6 +332,7 @@ Component({
...orderObj,
...chooseItem
}
console.log(chooseItem,orderObj,'chooseItem');
thisPage.setData({
orderObj
})
......
......@@ -370,6 +370,7 @@ Component({
delete orderObj.couponName
delete orderObj.merchantCouponId
delete orderObj.customerCouponId
delete orderObj.customerCouponCode
goodsList = []
}
thisPage.setData({
......
import { env } from '~/config'
import { env, envIndex } from '~/config'
export default {
data: {
menu: [
......@@ -14,7 +14,7 @@ export default {
},
{
name: '趋势分析',
url: 'http://baidu.com',
url: 'dj-car-revenue-analysis',
isH5: true
},
{
......@@ -58,20 +58,46 @@ export default {
})
} else {
if (item.isH5) {
let userInfo = wx.$util.getUserInfo()
let queryParmas = userInfo?.isSuper ? 'isAmin=true' : `isAdmin=false&yqMerchantId=${userInfo?.merchantId}`
const systemInfo = wx.getSystemInfoSync()
let jumpLocation = ''
switch (env) {
case 'develop':
jumpLocation = ''
break
case 'trial':
jumpLocation = ''
break
case 'release':
jumpLocation = ''
break
default:
jumpLocation = ''
break
if (systemInfo.platform != 'devtools') { // 非开发工具本地
switch (env) {
case 'develop': // 开发环境
jumpLocation = `http://192.168.0.39:8962/${item.url}/#/?${queryParmas}`
break
case 'trial': // 测试环境
jumpLocation = `https://dj.test.glsx.com.cn/${item.url}/#/?${queryParmas}`
break
case 'preRelease': // 预发布环境
jumpLocation = ''
break
case 'release': // 线上环境
jumpLocation = `https://dj.glsx.com.cn/${item.url}/#/?${queryParmas}`
break
default:
jumpLocation = `https://dj.glsx.com.cn/${item.url}/#/?${queryParmas}`
break
}
} else {
switch(envIndex) {
case 1: // 开发
jumpLocation = `http://192.168.0.39:8962/${item.url}/#/?${queryParmas}`
break
case 2: // 测试
jumpLocation = `https://dj.test.glsx.com.cn/${item.url}/#/?${queryParmas}`
break
case 3: // 线上
jumpLocation = `https://dj.glsx.com.cn/${item.url}/#/?${queryParmas}`
break
case 4: // 预发布
jumpLocation = ``
break
default:
jumpLocation = `https://dj.glsx.com.cn/${item.url}/#/?${queryParmas}`
break
}
}
wx.$router.jumpH5(jumpLocation)
} else {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!