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