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 : '',
latitude : '',
balancePrice : '',
balanceCardNo:''
balanceCardNo:'',
identificationCode:''
},
onLaunch: function() {
},

@ -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 => {

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

@ -185,8 +185,9 @@
this.getCmsContentcmsContent();
}
},
onLoad() {
onLoad(options) {
let that = this;
// 1.wxcode
// #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: {
//

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

Loading…
Cancel
Save