|
|
@ -82,7 +82,8 @@ |
|
|
|
<!-- 底部按钮 --> |
|
|
|
<!-- 底部按钮 --> |
|
|
|
<view class="footer"> |
|
|
|
<view class="footer"> |
|
|
|
<view class="flleft padleft15 font15 fcoreb5"> |
|
|
|
<view class="flleft padleft15 font15 fcoreb5"> |
|
|
|
合计: ¥<text class="font24">{{totalPrice}}</text><text class="font12 fcor666">优惠:¥{{discountPrice}}</text> |
|
|
|
合计: ¥<text class="font24">{{totalPrice}}</text><text |
|
|
|
|
|
|
|
class="font12 fcor666" v-if="priceVip != priceOfficial">优惠约:¥{{discountPrice}}</text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
<!-- #ifdef MP --> |
|
|
|
<!-- #ifdef MP --> |
|
|
@ -116,6 +117,7 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</wybPopup> |
|
|
|
</wybPopup> |
|
|
|
|
|
|
|
<view class="height30"></view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
@ -270,10 +272,10 @@ |
|
|
|
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); |
|
|
|
if(this.priceVip != this.priceGun){ |
|
|
|
if (this.priceVip != this.priceGun) { |
|
|
|
let gbprice = parseFloat(this.litre * this.priceOfficial).toFixed(2); |
|
|
|
let gbprice = parseFloat(this.litre * this.priceOfficial).toFixed(2); |
|
|
|
this.discountPrice = parseFloat(gbprice - this.inputMoney).toFixed(2); |
|
|
|
this.discountPrice = parseFloat(gbprice - this.inputMoney).toFixed(2); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
// 微信获取手机号 |
|
|
|
// 微信获取手机号 |
|
|
|
getPhoneNumber(PhoneNumber) { |
|
|
|
getPhoneNumber(PhoneNumber) { |
|
|
@ -306,11 +308,11 @@ |
|
|
|
}, |
|
|
|
}, |
|
|
|
//失去焦点算价格和油升 |
|
|
|
//失去焦点算价格和油升 |
|
|
|
Listeningfocus() { |
|
|
|
Listeningfocus() { |
|
|
|
this.litre = parseFloat(this.inputMoney / this.priceGun).toFixed(2); |
|
|
|
this.litre = parseFloat(this.inputMoney / this.priceOfficial).toFixed(2); |
|
|
|
this.totalPrice = parseFloat(this.inputMoney / this.priceGun * this.priceVip).toFixed(2); |
|
|
|
this.totalPrice = parseFloat(this.inputMoney / this.priceOfficial * this.priceVip).toFixed(2); |
|
|
|
if (this.priceVip != this.priceGun) { |
|
|
|
if (this.priceVip != this.priceOfficial) { |
|
|
|
let gbprice = parseFloat(this.litre * this.priceOfficial).toFixed(2); |
|
|
|
let gbprice = parseFloat(this.litre * this.priceOfficial).toFixed(2); |
|
|
|
this.discountPrice = parseFloat(gbprice - this.inputMoney).toFixed(2); |
|
|
|
this.discountPrice = parseFloat(gbprice - this.totalPrice).toFixed(0); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
toPay() { |
|
|
|
toPay() { |
|
|
@ -332,7 +334,9 @@ |
|
|
|
"goodsPrice": this.inputMoney, |
|
|
|
"goodsPrice": this.inputMoney, |
|
|
|
"gasGunNo": this.gunNo, |
|
|
|
"gasGunNo": this.gunNo, |
|
|
|
"gasOilNo": this.gasOilNo, |
|
|
|
"gasOilNo": this.gasOilNo, |
|
|
|
"gasOilType": this.oilType |
|
|
|
"gasOilType": this.oilType, |
|
|
|
|
|
|
|
"gasPriceGun": this.priceOfficial, |
|
|
|
|
|
|
|
"gasPriceVip": this.priceVip |
|
|
|
}] |
|
|
|
}] |
|
|
|
} |
|
|
|
} |
|
|
|
addOrder(goods).then(res => { |
|
|
|
addOrder(goods).then(res => { |
|
|
@ -472,7 +476,7 @@ |
|
|
|
position: fixed; |
|
|
|
position: fixed; |
|
|
|
bottom: 0upx; |
|
|
|
bottom: 0upx; |
|
|
|
width: 100%; |
|
|
|
width: 100%; |
|
|
|
height: 99upx; |
|
|
|
height: 100rpx; |
|
|
|
color: #FFFFFF; |
|
|
|
color: #FFFFFF; |
|
|
|
border-top: solid 1upx #eee; |
|
|
|
border-top: solid 1upx #eee; |
|
|
|
background-color: #FFFFFF; |
|
|
|
background-color: #FFFFFF; |
|
|
@ -482,15 +486,17 @@ |
|
|
|
align-items: center; |
|
|
|
align-items: center; |
|
|
|
|
|
|
|
|
|
|
|
.reBtn { |
|
|
|
.reBtn { |
|
|
|
width: 90px; |
|
|
|
width: 120px; |
|
|
|
background-color: #089bf5; |
|
|
|
background-color: #089bf5; |
|
|
|
color: #FFFFFF; |
|
|
|
color: #FFFFFF; |
|
|
|
text-align: center; |
|
|
|
text-align: center; |
|
|
|
padding: 0; |
|
|
|
padding: 0; |
|
|
|
font-size: 16px; |
|
|
|
font-size: 16px; |
|
|
|
border-radius: 22px; |
|
|
|
border-radius: 0px; |
|
|
|
height: 40px; |
|
|
|
height: 50px; |
|
|
|
line-height: 40px; |
|
|
|
line-height: 50px; |
|
|
|
|
|
|
|
position: absolute; |
|
|
|
|
|
|
|
right: 0px; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
</style> |
|
|
|
</style> |
|
|
|