1.修改积分抵扣H5 不能变化

yj-dev
杨杰 3 years ago
parent 8afe8aa7a5
commit 21858de5b4
  1. 20
      subPages/unionComfirmation/unionComfirmation.vue

@ -64,9 +64,9 @@
<cj-slider style="width: 60%; float:left;" v-if="isDiscount" v-model="priceValue" :min="0"
:max="availIntegal" :step="1" :blockWidth="40" @start="blockStart" @moving="blockMoving"
@end="blockEnd" />
<cj-slider style="width: 60%; float:left;" v-if="!isDiscount" v-model="priceValue" :min="0"
<!-- <cj-slider style="width: 60%; float:left;" v-if="isDiscount == 2" v-model="priceValue" :min="0"
: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>
</view>
@ -209,7 +209,7 @@
paytypeList: [], //
priceValue: [0, 0], //
changePrice: '', //
isDiscount: false,
isDiscount: true,
availIntegal: '', //
isUse: true //
@ -323,10 +323,9 @@
//
radioChanges(item) {
this.paytheprice = this.orderPrice;
this.isDiscount = false;
if (this.memDiscountId == item.id) { //
this.memDiscountId = '';
this.isDiscount = true;
this.reload();
this.deductionPrice = '0.00';
this.priceCaluc(this.saveprice);
@ -363,12 +362,12 @@
this.availIntegal = this.user.gold;
if (this.availIntegal < this.priceValue[1]) {
this.priceValue[1] = this.user.gold;
this.isDiscount = true;
this.reload();
}
} else {
this.availIntegal = payprice;
this.priceValue[1] = 0;
this.isDiscount = true;
this.reload();
}
this.calculatepayPrice();
},
@ -382,6 +381,11 @@
.deductionPrice).toFixed(2);
}
},
//
reload() {
this.isDiscount = false;
this.$nextTick(() => (this.isDiscount = true))
},
//
loginByPhone(PhoneNumber) {
if (PhoneNumber.detail.iv == undefined) {
@ -752,7 +756,7 @@
},
//
blockEnd() {
this.isDiscount = false;
this.isDiscount = 1;
if (this.deductionPrice == 0) {
this.payPrice = parseFloat(this.saveprice - parseFloat(this.priceValue[1] / 100).toFixed(2)).toFixed(
2);

Loading…
Cancel
Save