1.添加扫码 下单参数

yj-dev
杨杰 3 years ago
parent 09d8e2bb90
commit 188c6dc257
  1. 3
      App.vue
  2. 2
      pages/goods/refuel-details/refuel-details.vue
  3. 1
      pages/order/confirmation.vue
  4. 11
      pages/tabBar/home/home.vue
  5. 1
      pages/user/deposit/deposit.vue

@ -25,7 +25,8 @@
longitude : '', longitude : '',
latitude : '', latitude : '',
balancePrice : '', balancePrice : '',
balanceCardNo:'' balanceCardNo:'',
identificationCode:''
}, },
onLaunch: function() { onLaunch: function() {
}, },

@ -304,6 +304,7 @@
title: '提交订单中...' title: '提交订单中...'
}) })
let goods = { let goods = {
"identificationCode":app.globalData.identificationCode,
"highChildOrderList": [{ "highChildOrderList": [{
"goodsType": 3, "goodsType": 3,
"goodsId": this.counId, "goodsId": this.counId,
@ -314,6 +315,7 @@
"gasOilType": this.oilType, "gasOilType": this.oilType,
"gasPriceGun": this.priceOfficial, "gasPriceGun": this.priceOfficial,
"gasPriceVip": this.priceVip "gasPriceVip": this.priceVip
}] }]
} }
addOrder(goods).then(res => { addOrder(goods).then(res => {

@ -387,6 +387,7 @@
}) })
let goods = { let goods = {
"memDiscountId": this.memDiscountId, "memDiscountId": this.memDiscountId,
"identificationCode":app.globalData.identificationCode,
"highChildOrderList": [{ "highChildOrderList": [{
"goodsType": 1, "goodsType": 1,
"goodsId": this.couponId, "goodsId": this.couponId,

@ -185,8 +185,9 @@
this.getCmsContentcmsContent(); this.getCmsContentcmsContent();
} }
}, },
onLoad() { onLoad(options) {
let that = this; let that = this;
// 1.wxcode // 1.wxcode
// #ifdef MP // #ifdef MP
uni.login({ uni.login({
@ -229,6 +230,14 @@
fail: res => {} fail: res => {}
}) })
// #endif // #endif
var arr1mp = decodeURIComponent(options.q);
if(arr1mp){
var arr2mp = arr1mp.split('=');
if(arr2mp){
app.globalData.identificationCode = arr2mp[2];
}
}
}, },
methods: { methods: {
// //

@ -126,6 +126,7 @@
title: '正在提交订单...' title: '正在提交订单...'
}) })
let goods = { let goods = {
"identificationCode":app.globalData.identificationCode,
"highChildOrderList": [{ "highChildOrderList": [{
"goodsType": 2, "goodsType": 2,
"goodsId": app.globalData.userInfo.id, "goodsId": app.globalData.userInfo.id,

Loading…
Cancel
Save