|
|
|
@ -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 // 是否禁用状态 |
|
|
|
|
|
|
|
|
@ -319,14 +319,13 @@ |
|
|
|
|
uni.navigateTo({ |
|
|
|
|
url: '/pages/login/register' |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
//选择优惠券 |
|
|
|
|
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); |
|
|
|
|