体验版:2

ymt-db-dev
游梦婷 1 year ago
parent 563f6d94cf
commit 44e3047a9f
  1. 44
      pages/order/confirmation.vue

@ -127,7 +127,7 @@
{{rebateIntegral}} {{rebateIntegral}}
</view> --> </view> -->
</view> </view>
<view class=" width100 backcorfff alijusstart paddbotm10" style="padding-left: 2%;"> <view class=" width100 backcorfff alijusstart paddbotm10 border-box" style="padding-left: 2%;">
<image src="../../static/img/sigh.png" mode="widthFix" style="width:20px;height:20px"></image> <image src="../../static/img/sigh.png" mode="widthFix" style="width:20px;height:20px"></image>
<text class="fcor999 font13">积分抵扣与优惠券抵扣不同享</text> <text class="fcor999 font13">积分抵扣与优惠券抵扣不同享</text>
</view> </view>
@ -158,7 +158,7 @@
</view> </view>
<view class="width20 flright fotrt paddtright10 font15 fontwig6 fcor666 alijun" <view class="width20 flright fotrt paddtright10 font15 fontwig6 fcor666 alijun"
style="align-items: center;" v-if="isUse"> style="align-items: center;" v-if="isUse">
<!-- || (Number(paytheprice)==0&&item.payTypeId==8) --> <!--v-if="isUse" || (Number(paytheprice)==0&&item.payTypeId==8) -->
<template v-if="item.payTypeId == 3"> <template v-if="item.payTypeId == 3">
<radio :checked="paytype==item.payTypeId" @click="changeRiado()" color="#0083f5" /> <radio :checked="paytype==item.payTypeId" @click="changeRiado()" color="#0083f5" />
</template> </template>
@ -395,17 +395,20 @@
// #ifdef MP // #ifdef MP
this.identificationCode = app.globalData.identificationCode; this.identificationCode = app.globalData.identificationCode;
// #endif // #endif
this.getCouponById(); // this.getCouponById();
this.rpxTopx(); this.rpxTopx();
}, },
onShow() { onShow() {
let that = this; let that = this;
// that.paytype = ''; // that.paytype = '';
/* */ /* */
// that.user = app.globalData.userInfo; // that.user = app.globalData.userInfo;
/* */ /* */
that.findUser();
// that.findUser();
this.getCouponById();
this.getUserCardList(); this.getUserCardList();
}, },
@ -508,9 +511,7 @@
if (res.return_code == '000000') { if (res.return_code == '000000') {
app.globalData.userInfo = res.return_data; app.globalData.userInfo = res.return_data;
this.user = res.return_data; this.user = res.return_data;
/* 测试数据*/
// this.user.gold = 10000;
/* 测试数据 */
if (this.user.hltCardNo) { if (this.user.hltCardNo) {
this.getHuiLianTongCardBalance(); this.getHuiLianTongCardBalance();
} }
@ -593,6 +594,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.findUser();
// this.getThirdPartyByDetail(); // this.getThirdPartyByDetail();
} }
}) })
@ -710,6 +712,8 @@
this this
.deductionPrice).toFixed(2); .deductionPrice).toFixed(2);
} }
this.getRebateIntegral(); this.getRebateIntegral();
}, },
rechangeload() { rechangeload() {
@ -819,10 +823,7 @@
} }
if(!this.isAgree){
this.showPopupNeedKnow();
return;
}
/* 积分兑换*/ /* 积分兑换*/
if(this.paytype == '8'){ if(this.paytype == '8'){
@ -1251,14 +1252,19 @@
this.paytheprice = parseFloat(this.orderPrice - parseFloat(this.priceValue[1] / 100).toFixed(2) - this this.paytheprice = parseFloat(this.orderPrice - parseFloat(this.priceValue[1] / 100).toFixed(2) - this
.deductionPrice).toFixed(2); .deductionPrice).toFixed(2);
} }
if (this.paytheprice == 0) {
// if(this.paytype!=8){ if(Number(this.paytheprice)==0){
this.isUse = false; this.paytype = 8;
this.paytype = '';
// }
} else {
this.isUse = true;
} }
// if (this.paytheprice == 0) {
// // if(this.paytype!=8){
// this.isUse = false;
// this.paytype = '';
// // }
// } else {
// this.isUse = true;
// }
this.getRebateIntegral(); this.getRebateIntegral();
}, },

Loading…
Cancel
Save