|
|
@ -13,7 +13,7 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="fcor999 font14 width90"> |
|
|
|
<view class="fcor999 font14 width90"> |
|
|
|
营业时间 : 00:00-23:59 <text class="relab"></text> |
|
|
|
营业时间 : 00:00-23:59 |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<!-- 标价 --> |
|
|
|
<!-- 标价 --> |
|
|
@ -81,8 +81,8 @@ |
|
|
|
<view class="height60 width100"></view> |
|
|
|
<view class="height60 width100"></view> |
|
|
|
<!-- 底部按钮 --> |
|
|
|
<!-- 底部按钮 --> |
|
|
|
<view class="footer"> |
|
|
|
<view class="footer"> |
|
|
|
<view class="width50 flleft fcor666 padleft15 font15"> |
|
|
|
<view class="flleft padleft15 font15 fcoreb5"> |
|
|
|
合计: ¥<text class="font24">{{totalPrice}}</text> |
|
|
|
合计: ¥<text class="font24">{{totalPrice}}</text><text class="font12 fcor666">优惠:¥{{discountPrice}}</text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
<!-- #ifdef MP --> |
|
|
|
<!-- #ifdef MP --> |
|
|
@ -165,7 +165,8 @@ |
|
|
|
inputMoney: '', |
|
|
|
inputMoney: '', |
|
|
|
gasOilNo: '', |
|
|
|
gasOilNo: '', |
|
|
|
litre: '', |
|
|
|
litre: '', |
|
|
|
totalPrice: '0.00' |
|
|
|
totalPrice: '0.00', |
|
|
|
|
|
|
|
discountPrice : '0.00' |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
onLoad(options) { |
|
|
|
onLoad(options) { |
|
|
@ -240,6 +241,8 @@ |
|
|
|
this.inputMoney = amount.price; |
|
|
|
this.inputMoney = amount.price; |
|
|
|
this.litre = parseFloat(amount.price / this.priceGun).toFixed(2); |
|
|
|
this.litre = parseFloat(amount.price / this.priceGun).toFixed(2); |
|
|
|
this.totalPrice = parseFloat(amount.price / this.priceGun * this.priceVip).toFixed(2); |
|
|
|
this.totalPrice = parseFloat(amount.price / this.priceGun * this.priceVip).toFixed(2); |
|
|
|
|
|
|
|
let gbprice = parseFloat(this.litre * this.priceOfficial).toFixed(2); |
|
|
|
|
|
|
|
this.discountPrice = parseFloat(gbprice - this.inputMoney).toFixed(2); |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 微信获取手机号 |
|
|
|
// 微信获取手机号 |
|
|
|
getPhoneNumber(PhoneNumber) { |
|
|
|
getPhoneNumber(PhoneNumber) { |
|
|
@ -274,6 +277,8 @@ |
|
|
|
Listeningfocus() { |
|
|
|
Listeningfocus() { |
|
|
|
this.litre = parseFloat(this.inputMoney / this.priceGun).toFixed(2); |
|
|
|
this.litre = parseFloat(this.inputMoney / this.priceGun).toFixed(2); |
|
|
|
this.totalPrice = parseFloat(this.inputMoney / this.priceGun * this.priceVip).toFixed(2); |
|
|
|
this.totalPrice = parseFloat(this.inputMoney / this.priceGun * this.priceVip).toFixed(2); |
|
|
|
|
|
|
|
let gbprice = parseFloat(this.litre * this.priceOfficial).toFixed(2); |
|
|
|
|
|
|
|
this.discountPrice = parseFloat(gbprice - this.inputMoney).toFixed(2); |
|
|
|
}, |
|
|
|
}, |
|
|
|
toPay() { |
|
|
|
toPay() { |
|
|
|
if (this.inputMoney == '' || this.inputMoney < 1) { |
|
|
|
if (this.inputMoney == '' || this.inputMoney < 1) { |
|
|
@ -441,7 +446,7 @@ |
|
|
|
align-items: center; |
|
|
|
align-items: center; |
|
|
|
|
|
|
|
|
|
|
|
.reBtn { |
|
|
|
.reBtn { |
|
|
|
width: 110px; |
|
|
|
width: 90px; |
|
|
|
background-color: #089bf5; |
|
|
|
background-color: #089bf5; |
|
|
|
color: #FFFFFF; |
|
|
|
color: #FFFFFF; |
|
|
|
text-align: center; |
|
|
|
text-align: center; |
|
|
|