|
|
|
@ -166,7 +166,8 @@ |
|
|
|
|
gasOilNo: '', |
|
|
|
|
litre: '', |
|
|
|
|
totalPrice: '0.00', |
|
|
|
|
discountPrice : '0.00' |
|
|
|
|
discountPrice : '0.00', |
|
|
|
|
gasGunList :[] |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
onLoad(options) { |
|
|
|
@ -211,9 +212,10 @@ |
|
|
|
|
this.priceGun = res.return_data.oilPriceList[0].priceGun; |
|
|
|
|
this.priceOfficial = res.return_data.oilPriceList[0].priceOfficial; |
|
|
|
|
this.detailList = res.return_data.oilPriceList; |
|
|
|
|
this.gunnumber = res.return_data.gasGunList; |
|
|
|
|
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) { |
|
|
|
|
this.gunnumber.push(res.return_data.gasGunList[i]) |
|
|
|
|
this.gunNo = res.return_data.gasGunList[i].gunNo; |
|
|
|
|
this.gasOilNo = res.return_data.gasGunList[i].oilNo; |
|
|
|
|
} |
|
|
|
@ -225,7 +227,16 @@ |
|
|
|
|
|
|
|
|
|
//选择油号 |
|
|
|
|
changeValue(item) { |
|
|
|
|
this.gunnumber = []; |
|
|
|
|
this.oilNo = item.oilNoName; |
|
|
|
|
for (var i = 0; i < this.gasGunList.length; i++) { |
|
|
|
|
if (this.oilNo == this.gasGunList[i].oilNoName) { |
|
|
|
|
this.gunnumber.push(this.gasGunList[i]) |
|
|
|
|
this.gunNo = this.gasGunList[i].gunNo; |
|
|
|
|
this.gasOilNo = this.gasGunList[i].oilNo; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
this.gasOilNo = item.oilNo; |
|
|
|
|
this.priceVip = item.priceVip; |
|
|
|
|
this.priceOfficial = item.priceOfficial; |
|
|
|
|