1.团油加油不能超过800限制

yj-dev
杨杰 3 years ago
parent 850d7c9ad9
commit 08942d70a8
  1. 4
      .hbuilderx/launch.json
  2. 4
      pages/goods/refuel-confirm/refuel-confirm.vue
  3. 9
      pages/goods/refuel-details/refuel-details.vue
  4. 8
      pages/order/confirmation.vue
  5. 2
      pages/pay/payment/payment.vue

@ -6,6 +6,10 @@
{
"launchtype" : "remote"
},
"h5" :
{
"launchtype" : "remote"
},
"mp-weixin" :
{
"launchtype" : "remote"

@ -67,7 +67,7 @@
</view>
</view>
<view class="line1"></view>
<!-- <view class="line1"></view>
<view class="heightl60 paddleft10 fcor666 width100 backcorfff" @tap="paytype='gonghuika'">
<view class="width60 flleft fontwig6">
汇联通工会卡<text class="font14 fcor666 margle">余额: {{tongCardPrice}}</text>
@ -75,7 +75,7 @@
<view class="flright width30 fotct">
<radio :checked="paytype=='gonghuika'" @click="changeRiado()" color="#0083f5" />
</view>
</view>
</view> -->
</view>
<view class="width100 mart15 fcor333 font16 fontwig6 paddleft10">重要说明</view>

@ -66,7 +66,7 @@
<view class="width90 height40 mart10" style="border: 1px solid #f2f2f2;">
<view class="width8 flleft"></view>
<input type="digit" class="font16 width60 flleft height40" placeholder="请输入金额" v-model="inputMoney"
@blur="Listeningfocus" maxlength="6" />
@blur="Listeningfocus" maxlength="3" />
<view class="width30 height40 flright font14 fcor999 fotct"
style="border-left: 1px solid #f2f2f2;line-height: 40px;">
{{litre}}L
@ -284,6 +284,13 @@
},
//
Listeningfocus() {
if(this.inputMoney > 800){
uni.showToast({
title: '加油金额不能超过800元',
icon: "none"
});
this.inputMoney = 800;
}
//
this.litre = parseFloat(this.inputMoney / this.priceOfficial).toFixed(2);
this.totalPrice = parseFloat(this.inputMoney / this.priceOfficial * this.priceVip).toFixed(2);

@ -95,7 +95,7 @@
</view>
</view>
<view class="width94 line1 mart5 marb5"></view>
<view class="height50 width100 backcorfff" v-if="couponList.payType == 2 || couponList.payType==3 "
<view class="height50 width100 backcorfff" v-if="couponList.payType == 2 || couponList.payType==3 || couponList.payType== 4"
@tap="paytype='jinbi'">
<view class="width70 flleft fcor333 fontwig6 font16 text1" style="padding-left: 4%;">
积分支付<text class="font14 fcor666 margle">可用积分: {{user.gold}}</text>
@ -105,7 +105,7 @@
<radio :checked="paytype=='jinbi'" color="#0083f5" />
</view>
</view>
<view class="width94 line1 mart5 marb5" v-if="couponList.payType == 2 || couponList.payType==3 "></view>
<view class="width94 line1 mart5 marb5" v-if="couponList.payType == 2 || couponList.payType==3 || couponList.payType== 4"></view>
<view class="height50 width100 backcorfff" @tap="paytype='weixin'"
v-if="couponList.payType == 1 || couponList.payType==3 ">
<view class="width50 flleft fcor333 fontwig6 font16" style="padding-left: 4%;">
@ -116,8 +116,8 @@
<radio :checked="paytype=='weixin'" color="#0083f5" />
</view>
</view>
<view class="width94 line1 mart5 marb5" v-if="couponList.payType == 1 || couponList.payType==3 "></view>
<view class="height50 width100 backcorfff" @tap="paytype='gonghuika'">
<view class="width94 line1 mart5 marb5" v-if="couponList.payType == 1 || couponList.payType==3"></view>
<view class="height50 width100 backcorfff" @tap="paytype='gonghuika'" v-if="couponList.payType== 4">
<view class="width70 flleft fcor333 fontwig6 font16 text1" style="padding-left: 4%;">
汇联通工会卡<text class="font14 fcor666 margle">可用余额: {{tongCardPrice}}</text>
</view>

@ -18,7 +18,7 @@
</view>
<view class="content">
<view class="pay-list">
<view class="row" @tap="paytype='jinbi'" v-if="pryType == 2 || pryType==3 ">
<view class="row" @tap="paytype='jinbi'" v-if="(pryType == 2 || pryType==3) && goodsType != 1">
<view class="left">
<image src="../../../static/img/jfx.png"></image>
</view>

Loading…
Cancel
Save