diff --git a/App.vue b/App.vue index 4e1d136..7a477d6 100644 --- a/App.vue +++ b/App.vue @@ -25,7 +25,8 @@ longitude : '', latitude : '', balancePrice : '', - balanceCardNo:'' + balanceCardNo:'', + identificationCode:'' }, onLaunch: function() { }, diff --git a/pages/goods/refuel-details/refuel-details.vue b/pages/goods/refuel-details/refuel-details.vue index e11ec1c..b0d330e 100644 --- a/pages/goods/refuel-details/refuel-details.vue +++ b/pages/goods/refuel-details/refuel-details.vue @@ -304,6 +304,7 @@ title: '提交订单中...' }) let goods = { + "identificationCode":app.globalData.identificationCode, "highChildOrderList": [{ "goodsType": 3, "goodsId": this.counId, @@ -314,6 +315,7 @@ "gasOilType": this.oilType, "gasPriceGun": this.priceOfficial, "gasPriceVip": this.priceVip + }] } addOrder(goods).then(res => { diff --git a/pages/order/confirmation.vue b/pages/order/confirmation.vue index 679e932..ae3753b 100644 --- a/pages/order/confirmation.vue +++ b/pages/order/confirmation.vue @@ -387,6 +387,7 @@ }) let goods = { "memDiscountId": this.memDiscountId, + "identificationCode":app.globalData.identificationCode, "highChildOrderList": [{ "goodsType": 1, "goodsId": this.couponId, diff --git a/pages/tabBar/home/home.vue b/pages/tabBar/home/home.vue index 0b37600..ffb1964 100644 --- a/pages/tabBar/home/home.vue +++ b/pages/tabBar/home/home.vue @@ -185,8 +185,9 @@ this.getCmsContentcmsContent(); } }, - onLoad() { + onLoad(options) { let that = this; + // 1.wx获取登录用户code // #ifdef MP uni.login({ @@ -229,6 +230,14 @@ fail: res => {} }) // #endif + var arr1mp = decodeURIComponent(options.q); + if(arr1mp){ + var arr2mp = arr1mp.split('='); + if(arr2mp){ + app.globalData.identificationCode = arr2mp[2]; + } + } + }, methods: { //获取首页功能 diff --git a/pages/user/deposit/deposit.vue b/pages/user/deposit/deposit.vue index 862013f..32078e1 100644 --- a/pages/user/deposit/deposit.vue +++ b/pages/user/deposit/deposit.vue @@ -126,6 +126,7 @@ title: '正在提交订单...' }) let goods = { + "identificationCode":app.globalData.identificationCode, "highChildOrderList": [{ "goodsType": 2, "goodsId": app.globalData.userInfo.id,