1.修改团油折扣价格及显示问题

yj-dev
杨杰 2 years ago
parent 13b6a29909
commit 94919917c0
  1. 36
      pages/goods/refuel-confirm/refuel-confirm.vue
  2. 6
      qianzhu-KFC/confirmOrder/confirmOrder.vue
  3. 4
      subPages/recharge-centre/recharge-centre.vue

@ -42,13 +42,16 @@
</view> </view>
</view> </view>
<view class="line1"></view> <view class="line1"></view>
<view class="heightl60 paddleft10 fcor666 font16 width100 backcorfff"> <view class="heightl60 paddleft10 fcor666 font16 width100 backcorfff">
<view class="flleft width50"> <view class="flleft width50">
平台折扣 平台折扣
</view> </view>
<view class="flright width40 fotct"> <view class="flright width40 fotct" v-if="orderList.gasDiscount != 1">
{{orderList.gasDiscount}} {{(orderList.gasDiscount * 100).toFixed(2)}}
</view> </view>
<view class="flright width40 fotct" v-else>
</view>
</view> </view>
<view class="line1"></view> <view class="line1"></view>
<view class="heightl60 paddleft10 fcor666 font16 width100 backcorfff"> <view class="heightl60 paddleft10 fcor666 font16 width100 backcorfff">
@ -90,7 +93,7 @@
<!-- // --> <!-- // -->
<view class="width100 concont mart10 backcorfff"> <view class="width100 concont mart10 backcorfff">
<view class="height50 width100 paddtop5 backcorfff" @click="showPopup()"> <view class="height50 width100 paddtop5 backcorfff" @click="showPopup()">
<view class="width50 flleft fcor333 fontwig6 font16" style="padding-left: 4%;"> <view class="width50 flleft fcor333 fontwig6 font16" style="padding-left: 2%;">
优惠抵扣<text class="yhqky">{{OrderPreList.length}}张可用</text> 优惠抵扣<text class="yhqky">{{OrderPreList.length}}张可用</text>
</view> </view>
<view class="width40 flright fotrt paddtright10 font15 fontwig6 fcor666 alijun" <view class="width40 flright fotrt paddtright10 font15 fontwig6 fcor666 alijun"
@ -106,13 +109,10 @@
</view> </view>
<view class="width94 line1 mart5 marb5"></view> <view class="width94 line1 mart5 marb5"></view>
<view class="Bubble alijusstart font14 fcor999"> <view class="Bubble alijusstart font14 fcor999">
选取: <text class="tests fotct font14 colorc3 paddleft5 paddtright5" 选取: <text class="tests fotct font14 colorc3 paddleft5 paddtright5">{{priceValue[1]}}</text>
v-if="typeid == 1">{{priceValue[1]}}</text><text
class="tests fotct font14 color2f6f43 paddleft5 paddtright5"
v-if="typeid == 2">{{priceValue[1]}}</text>
</view> </view>
<view class="width92 alijusstart paddtop10"> <view class="width94 alijusstart paddtop10">
<view class="width30 fcor333 fontwig6 font16"> <view class="width30 fcor333 font16">
积分抵扣 积分抵扣
</view> </view>
<view class="cj-slider"> <view class="cj-slider">
@ -125,7 +125,7 @@
</view> </view>
<view class="width94 line1 mart15 marb5"></view> <view class="width94 line1 mart15 marb5"></view>
<view class="height50 width100 backcorfff"> <view class="height50 width100 backcorfff">
<view class="width70 flleft fcor666 font16 text1" style="padding-left: 4%;"> <view class="width70 flleft fcor666 font16 text1" style="padding-left: 2%;">
抵扣金额 抵扣金额
</view> </view>
<view class="width20 flright fotrt paddtright10 font15 fcor666 alijun" style="align-items: center;"> <view class="width20 flright fotrt paddtright10 font15 fcor666 alijun" style="align-items: center;">
@ -425,12 +425,10 @@
this.isDiscount = 1; this.isDiscount = 1;
if (this.deductionPrice == 0) { if (this.deductionPrice == 0) {
this.payPrice = Math.abs(parseFloat(this.totalprice - parseFloat(this.priceValue[1] / 100).toFixed(2)) this.payPrice = Math.abs(parseFloat(this.totalprice - parseFloat(this.priceValue[1] / 100).toFixed(2))
.toFixed( .toFixed(2));
2));
} else { } else {
this.payPrice = Math.abs(parseFloat(this.orderPrice - parseFloat(this.priceValue[1] / 100).toFixed(2) - this.payPrice = Math.abs(parseFloat(this.orderPrice - parseFloat(this.priceValue[1] / 100).toFixed(2) -
this this.deductionPrice).toFixed(2));
.deductionPrice).toFixed(2));
} }
if (this.payPrice == 0) { if (this.payPrice == 0) {
this.isUse = false; this.isUse = false;

@ -43,9 +43,11 @@
</view> </view>
<view class="width10 font12 fcor999">x{{item.num}}</view> <view class="width10 font12 fcor999">x{{item.num}}</view>
<view class="width20"> <view class="width20">
<view class="width100 fcor333 font12">¥<text class="fontwig6 font16">{{item.price}}</text> <view class="width100 fcor333 font12">¥
<text class="fontwig6 font16" v-if="!memDiscountId">{{item.price}}</text>
<text class="fontwig6 font16" v-else>{{item.oldprice}}</text>
</view> </view>
<view class="width100 fcor999 font12" v-if="item.price != item.oldprice" <view class="width100 fcor999 font12" v-if="item.price != item.oldprice && !memDiscountId"
style="text-decoration: line-through;">¥{{item.oldprice}} style="text-decoration: line-through;">¥{{item.oldprice}}
</view> </view>
</view> </view>

@ -9,11 +9,11 @@
<view class="line1 width100 backcorfff"></view> <view class="line1 width100 backcorfff"></view>
</view> </view>
</view> </view>
<view class="mart5"> <!-- <view class="mart5">
<QSTabs ref="tabs" :tabs="tabs" animationMode="line2" :current="current" @change="change" <QSTabs ref="tabs" :tabs="tabs" animationMode="line2" :current="current" @change="change"
activeColor="#089bf5" lineColor="#089bf5" minWidth="374"> activeColor="#089bf5" lineColor="#089bf5" minWidth="374">
</QSTabs> </QSTabs>
</view> </view> -->
<view class="width90 font16 fcor333 fontwig6 mart20"> <view class="width90 font16 fcor333 fontwig6 mart20">
选择金额 选择金额
</view> </view>

Loading…
Cancel
Save