@ -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 @@
"memDiscountId": this.memDiscountId,
"goodsType": 1,
"goodsId": this.couponId,
@ -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: {
//获取首页功能
@ -126,6 +126,7 @@
title: '正在提交订单...'
"goodsType": 2,
"goodsId": app.globalData.userInfo.id,