|
|
@ -64,9 +64,9 @@ |
|
|
|
<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" 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" /> |
|
|
|
<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" |
|
|
|
: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="width: 25%;">{{availIntegal}}</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -209,7 +209,7 @@ |
|
|
|
paytypeList: [], //支付方式 |
|
|
|
paytypeList: [], //支付方式 |
|
|
|
priceValue: [0, 0], // 积分可以指定默认值 |
|
|
|
priceValue: [0, 0], // 积分可以指定默认值 |
|
|
|
changePrice: '', //滑动值 |
|
|
|
changePrice: '', //滑动值 |
|
|
|
isDiscount: false, |
|
|
|
isDiscount: true, |
|
|
|
availIntegal: '', // 可用积分 |
|
|
|
availIntegal: '', // 可用积分 |
|
|
|
isUse: true // 是否禁用状态 |
|
|
|
isUse: true // 是否禁用状态 |
|
|
|
|
|
|
|
|
|
|
@ -319,14 +319,13 @@ |
|
|
|
uni.navigateTo({ |
|
|
|
uni.navigateTo({ |
|
|
|
url: '/pages/login/register' |
|
|
|
url: '/pages/login/register' |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
//选择优惠券 |
|
|
|
//选择优惠券 |
|
|
|
radioChanges(item) { |
|
|
|
radioChanges(item) { |
|
|
|
this.paytheprice = this.orderPrice; |
|
|
|
this.paytheprice = this.orderPrice; |
|
|
|
this.isDiscount = false; |
|
|
|
|
|
|
|
if (this.memDiscountId == item.id) { // 如果已经选中,则取消选中 |
|
|
|
if (this.memDiscountId == item.id) { // 如果已经选中,则取消选中 |
|
|
|
this.memDiscountId = ''; |
|
|
|
this.memDiscountId = ''; |
|
|
|
this.isDiscount = true; |
|
|
|
this.reload(); |
|
|
|
this.deductionPrice = '0.00'; |
|
|
|
this.deductionPrice = '0.00'; |
|
|
|
this.priceCaluc(this.saveprice); |
|
|
|
this.priceCaluc(this.saveprice); |
|
|
|
|
|
|
|
|
|
|
@ -363,12 +362,12 @@ |
|
|
|
this.availIntegal = this.user.gold; |
|
|
|
this.availIntegal = this.user.gold; |
|
|
|
if (this.availIntegal < this.priceValue[1]) { |
|
|
|
if (this.availIntegal < this.priceValue[1]) { |
|
|
|
this.priceValue[1] = this.user.gold; |
|
|
|
this.priceValue[1] = this.user.gold; |
|
|
|
this.isDiscount = true; |
|
|
|
this.reload(); |
|
|
|
} |
|
|
|
} |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
this.availIntegal = payprice; |
|
|
|
this.availIntegal = payprice; |
|
|
|
this.priceValue[1] = 0; |
|
|
|
this.priceValue[1] = 0; |
|
|
|
this.isDiscount = true; |
|
|
|
this.reload(); |
|
|
|
} |
|
|
|
} |
|
|
|
this.calculatepayPrice(); |
|
|
|
this.calculatepayPrice(); |
|
|
|
}, |
|
|
|
}, |
|
|
@ -382,6 +381,11 @@ |
|
|
|
.deductionPrice).toFixed(2); |
|
|
|
.deductionPrice).toFixed(2); |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
//刷新组件 |
|
|
|
|
|
|
|
reload() { |
|
|
|
|
|
|
|
this.isDiscount = false; |
|
|
|
|
|
|
|
this.$nextTick(() => (this.isDiscount = true)) |
|
|
|
|
|
|
|
}, |
|
|
|
// 微信获取手机号 |
|
|
|
// 微信获取手机号 |
|
|
|
loginByPhone(PhoneNumber) { |
|
|
|
loginByPhone(PhoneNumber) { |
|
|
|
if (PhoneNumber.detail.iv == undefined) { |
|
|
|
if (PhoneNumber.detail.iv == undefined) { |
|
|
@ -752,7 +756,7 @@ |
|
|
|
}, |
|
|
|
}, |
|
|
|
//滑动结束 |
|
|
|
//滑动结束 |
|
|
|
blockEnd() { |
|
|
|
blockEnd() { |
|
|
|
this.isDiscount = false; |
|
|
|
this.isDiscount = 1; |
|
|
|
if (this.deductionPrice == 0) { |
|
|
|
if (this.deductionPrice == 0) { |
|
|
|
this.payPrice = parseFloat(this.saveprice - parseFloat(this.priceValue[1] / 100).toFixed(2)).toFixed( |
|
|
|
this.payPrice = parseFloat(this.saveprice - parseFloat(this.priceValue[1] / 100).toFixed(2)).toFixed( |
|
|
|
2); |
|
|
|
2); |
|
|
|