1.修改添加订单 加参数

yj-dev
杨杰 3 years ago
parent a751029ae1
commit fe81118816
  1. 11
      pages/goods/refuel-details/refuel-details.vue

@ -12,7 +12,7 @@
<view class="fcor089">{{storeList.distance}}km</view>
</view>
</view>
<view class="fcor999 font14 width90">
<view class="fcor999 font14 width90 mart0">
营业时间 : 00:00-23:59
</view>
</view>
@ -167,7 +167,8 @@
litre: '',
totalPrice: '0.00',
discountPrice : '0.00',
gasGunList :[]
gasGunList :[],
oilType : ''
}
},
onLoad(options) {
@ -212,6 +213,7 @@
this.priceGun = res.return_data.oilPriceList[0].priceGun;
this.priceOfficial = res.return_data.oilPriceList[0].priceOfficial;
this.detailList = res.return_data.oilPriceList;
this.oilType = res.return_data.oilPriceList[0].oilType;
this.gasGunList = res.return_data.gasGunList;
for (var i = 0; i < res.return_data.gasGunList.length; i++) {
if (this.oilNo == res.return_data.gasGunList[i].oilNoName) {
@ -248,7 +250,7 @@
this.gasOilNo = this.gasGunList[i].oilNo;
}
}
this.oilType = item.oilType;
this.gasOilNo = item.oilNo;
this.priceVip = item.priceVip;
this.priceOfficial = item.priceOfficial;
@ -321,7 +323,8 @@
"saleCount": 1,
"goodsPrice": this.inputMoney,
"gasGunNo": this.gunNo,
"gasOilNo": this.gasOilNo
"gasOilNo": this.gasOilNo,
"gasOilType":this.oilType
}]
}
addOrder(goods).then(res => {

Loading…
Cancel
Save