1.修改团油计算价格

yj-dev
杨杰 3 years ago
parent b35df858f3
commit d83b147e0d
  1. 16
      App.vue
  2. 27
      pages/goods/refuel-details/refuel-details.vue

@ -5,15 +5,15 @@
// brestUrl: 'http://192.168.3.4:9302/brest', // brestUrl: 'http://192.168.3.4:9302/brest',
// imgUrl: 'https://192.168.3.4:9301/filesystem/', // imgUrl: 'https://192.168.3.4:9301/filesystem/',
// //
url: 'https://hsg.dctpay.com/crest', // url: 'https://hsg.dctpay.com/crest',
imgUrl: 'https://hsg.dctpay.com/filesystem/', // imgUrl: 'https://hsg.dctpay.com/filesystem/',
brestUrl : 'https://hsg.dctpay.com/brest', // brestUrl : 'https://hsg.dctpay.com/brest',
imageWxImg:'https://hsg.dctpay.com/filesystem/wxApplets/', // imageWxImg:'https://hsg.dctpay.com/filesystem/wxApplets/',
// //
// url: 'https://hsgcs.dctpay.com/crest', url: 'https://hsgcs.dctpay.com/crest',
// brestUrl : 'https://hsgcs.dctpay.com/brest', brestUrl : 'https://hsgcs.dctpay.com/brest',
// imgUrl: 'https://hsgcs.dctpay.com/filesystem/', imgUrl: 'https://hsgcs.dctpay.com/filesystem/',
// imageWxImg:'https://hsgcs.dctpay.com/filesystem/wxApplets/', imageWxImg:'https://hsgcs.dctpay.com/filesystem/wxApplets/',
userInfo: "", userInfo: "",
brestUserInfo : '', brestUserInfo : '',
openId: '', openId: '',

@ -349,7 +349,7 @@
duration: 2000 duration: 2000
}); });
this.inputMoney = this.xzMoney; this.inputMoney = this.xzMoney;
} }
// //
@ -369,18 +369,19 @@
oilPriceCompute() { oilPriceCompute() {
let datas = { let datas = {
"price": this.inputMoney, "price": this.inputMoney,
"gasPriceGun": this.priceOfficial, "goodsId": this.counId,
"gasPriceVip": this.priceVip "oilNo": this.gasOilNo,
} "isTyAgent": this.isTyAgent
oilPriceCompute(datas).then(res => { }
if (res.return_code == '000000') { oilPriceCompute(datas).then(res => {
this.totalPrice = res.return_data; if (res.return_code == '000000') {
if (this.priceVip != this.priceOfficial) { this.totalPrice = res.return_data;
// let gbprice = parseFloat(this.litre * this.priceOfficial).toFixed(2); if (this.priceVip != this.priceOfficial) {
// this.discountPrice = parseFloat(gbprice - this.totalPrice).toFixed(2); // let gbprice = parseFloat(this.litre * this.priceOfficial).toFixed(2);
this.discountPrice = parseFloat(this.inputMoney - this.totalPrice).toFixed(2); // this.discountPrice = parseFloat(gbprice - this.totalPrice).toFixed(2);
} this.discountPrice = parseFloat(this.inputMoney - this.totalPrice).toFixed(2);
} }
}
}) })
}, },
// //

Loading…
Cancel
Save