积分兑换增加显示总积分

youmengting-dev
游梦婷 1 year ago
parent 91b8146f7d
commit 6d2dedfa43
  1. 20
      pages/order/confirmation.vue

@ -87,18 +87,19 @@
<view class="width94 comorder mart10"> <view class="width94 comorder mart10">
<view class="width92 alijusstart paddtop20"> <view class="width92 alijusstart paddtop20" @touchmove.stop>
<view class="width30 fcor333 fontwig6 font16"> <view class=" fcor333 fontwig6 font16" style="flex-shrink: 0;padding-right: 10px;">
积分抵扣 积分抵扣
</view> </view>
<view class="cj-slider"> <view class="cj-slider">
<view class="flleft fotct font14 fcor666" style="width: 15%;">0</view> <view class="flleft fotct font14 fcor666" style="flex-shrink: 0;padding: 0 15px 0 0;">0</view>
<cj-slider style="width: 60%; float:left;" v-if="isDiscount" v-model="priceValue" :min="0" <cj-slider class="flex-1" v-if="isDiscount" v-model="priceValue" :min="0"
:max="availIntegal" :step="1" :blockWidth="40" @start="blockStart" @moving="blockMoving" :max="availIntegal" :step="1" :blockWidth="40" @start="blockStart" @moving="blockMoving"
@end="blockEnd" /> @end="blockEnd" />
<view class="flright fotrt font14 fcor666" style="width: 25%;">{{availIntegal}}</view> <view class="flright fotrt font14 fcor666" style="flex-shrink: 0;padding-left: 15px;">{{availIntegal}}/{{user.gold || 0}}</view>
</view> </view>
</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 fcor333 fontwig6 font16 text1" style="padding-left: 4%;"> <view class="width70 flleft fcor333 fontwig6 font16 text1" style="padding-left: 4%;">
@ -330,7 +331,7 @@
priceValue: [0, 0], // priceValue: [0, 0], //
changePrice: '', // changePrice: '', //
isDiscount: true, isDiscount: true,
availIntegal: '', // availIntegal: 0, //
isUse: true, // isUse: true, //
rechargeDes: '', // rechargeDes: '', //
rebateIntegral: '', // rebateIntegral: '', //
@ -470,6 +471,7 @@
this.oilPirce = res.return_data.oilCard.amount; this.oilPirce = res.return_data.oilCard.amount;
} }
this.getUserNormalDiscountList(); this.getUserNormalDiscountList();
this.getThirdPartyByDetail();
uni.setStorage({ uni.setStorage({
key: "user", key: "user",
data: res.return_data data: res.return_data
@ -544,7 +546,7 @@
this.saveprice = res.return_data.discountPrice; this.saveprice = res.return_data.discountPrice;
this.orderPrice = res.return_data.salesPrice; this.orderPrice = res.return_data.salesPrice;
this.getRebateIntegral(); this.getRebateIntegral();
this.getThirdPartyByDetail(); // this.getThirdPartyByDetail();
} }
}) })
}, },
@ -1149,10 +1151,10 @@
.deductionPrice).toFixed(2); .deductionPrice).toFixed(2);
} }
if (this.paytheprice == 0) { if (this.paytheprice == 0) {
if(this.paytype!=8){ // if(this.paytype!=8){
this.isUse = false; this.isUse = false;
this.paytype = ''; this.paytype = '';
} // }
} else { } else {
this.isUse = true; this.isUse = true;
} }

Loading…
Cancel
Save