|
|
@ -9,28 +9,14 @@ |
|
|
|
<view class="font13 fcor666 mart10">规格: 默认</view> |
|
|
|
<view class="font13 fcor666 mart10">规格: 默认</view> |
|
|
|
<view class="price-number mart10" v-if="isDiscont"> |
|
|
|
<view class="price-number mart10" v-if="isDiscont"> |
|
|
|
<view class="price font16">¥{{couponList.salesPrice}}</view> |
|
|
|
<view class="price font16">¥{{couponList.salesPrice}}</view> |
|
|
|
<!-- <view class="price font16" v-else> |
|
|
|
|
|
|
|
<image style="width: 15px;height: 15px;" src="../../static/img/jfx.png"> |
|
|
|
|
|
|
|
</image>{{couponList.salesPrice * 100}} |
|
|
|
|
|
|
|
</view> --> |
|
|
|
|
|
|
|
<view class="flright fotrt paddleft10">x1</view> |
|
|
|
<view class="flright fotrt paddleft10">x1</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="price-number mart10" v-if="!isDiscont"> |
|
|
|
<view class="price-number mart10" v-if="!isDiscont"> |
|
|
|
<view class="price font16">¥{{couponList.discountPrice}}</view> |
|
|
|
<view class="price font16">¥{{couponList.discountPrice}}</view> |
|
|
|
<!-- <view class="price font16" v-else> |
|
|
|
|
|
|
|
<image style="width: 15px;height: 15px;" src="../../static/img/jfx.png"> |
|
|
|
|
|
|
|
</image>{{couponList.discountPrice*100}} |
|
|
|
|
|
|
|
</view> --> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<view class="number fcor666 font13 margle" |
|
|
|
<view class="number fcor666 font13 margle" |
|
|
|
v-if="couponList.salesPrice != couponList.discountPrice"> |
|
|
|
v-if="couponList.salesPrice != couponList.discountPrice"> |
|
|
|
¥{{couponList.salesPrice}} |
|
|
|
¥{{couponList.salesPrice}} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<!-- <view class="number fcor666 font13 margle" |
|
|
|
|
|
|
|
v-if="couponList.payType != 1 && couponList.salesPrice != couponList.discountPrice"> |
|
|
|
|
|
|
|
<image style="width: 15px;height: 15px;" src="../../static/img/jfh.png"> |
|
|
|
|
|
|
|
</image>{{couponList.salesPrice*100}} |
|
|
|
|
|
|
|
</view> --> |
|
|
|
|
|
|
|
<view class="flright fotrt paddleft10">x1</view> |
|
|
|
<view class="flright fotrt paddleft10">x1</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -43,19 +29,9 @@ |
|
|
|
<view class="width40 flright fotrt paddtright10 font15 fontwig6 fcor999" v-if=" isDiscont"> |
|
|
|
<view class="width40 flright fotrt paddtright10 font15 fontwig6 fcor999" v-if=" isDiscont"> |
|
|
|
¥{{couponList.salesPrice}} |
|
|
|
¥{{couponList.salesPrice}} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<!-- <view class="width40 flright alijun paddtright10 font15 fontwig6 fcor666 aliitem" |
|
|
|
|
|
|
|
v-if="couponList.payType != 1 && isDiscont"> |
|
|
|
|
|
|
|
<image style="width: 15px;height: 15px;" src="../../static/img/jfx.png"> |
|
|
|
|
|
|
|
</image>{{couponList.salesPrice*100}} |
|
|
|
|
|
|
|
</view> --> |
|
|
|
|
|
|
|
<view class="width40 flright fotrt paddtright10 font15 fontwig6 fcor999" v-if="!isDiscont"> |
|
|
|
<view class="width40 flright fotrt paddtright10 font15 fontwig6 fcor999" v-if="!isDiscont"> |
|
|
|
¥{{couponList.discountPrice}} |
|
|
|
¥{{couponList.discountPrice}} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<!-- <view class="width40 flright alijun paddtright10 font15 fontwig6 fcor666 aliitem" |
|
|
|
|
|
|
|
v-if="couponList.payType != 1 && !isDiscont"> |
|
|
|
|
|
|
|
<image style="width: 15px;height: 15px;" src="../../static/img/jfx.png"> |
|
|
|
|
|
|
|
</image>{{couponList.discountPrice*100}} |
|
|
|
|
|
|
|
</view> --> |
|
|
|
|
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
<view class="width94 line1 mart5 marb5"></view> |
|
|
|
<view class="width94 line1 mart5 marb5"></view> |
|
|
@ -104,9 +80,6 @@ |
|
|
|
<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 == 2" v-model="priceValue" :min="0" |
|
|
|
|
|
|
|
:max="availIntegal" :step="1" :blockWidth="40" @start="blockStart" @moving="blockMoving" |
|
|
|
|
|
|
|
@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> |
|
|
@ -174,27 +147,10 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- <view class="width94 comorder mart10"> |
|
|
|
|
|
|
|
<view class="height50 width100 backcorfff"> |
|
|
|
|
|
|
|
<view class="width80p flleft fcor333 fontwig6 font14" style="padding-left: 4%;"> |
|
|
|
|
|
|
|
<text style="color: #0083F5;">《条约协议》</text>点击立即支付,即代表同意 |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
<view class="width15 flright fotct"> |
|
|
|
|
|
|
|
<image class="jtcs" src="../../static/img/jt.png"></image> |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
</view> --> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<view class="width100 height60"></view> |
|
|
|
<view class="width100 height60"></view> |
|
|
|
<view class="footer"> |
|
|
|
<view class="footer"> |
|
|
|
<view class="settlement"> |
|
|
|
<view class="settlement"> |
|
|
|
<view class="sum">实付:<view class="money">¥{{paytheprice}}</view> |
|
|
|
<view class="sum">实付:<view class="money">¥{{paytheprice}}</view> |
|
|
|
<!-- <view class="money aliitem" v-else> |
|
|
|
|
|
|
|
<image style="width: 15px;height: 15px;vertical-align: sub;" src="../../static/img/jfx.png"> |
|
|
|
|
|
|
|
</image>{{paytheprice*100}} |
|
|
|
|
|
|
|
</view> --> |
|
|
|
|
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<!-- #ifdef MP --> |
|
|
|
<!-- #ifdef MP --> |
|
|
|
<button class="btn" open-type="getPhoneNumber" v-if="user == null" |
|
|
|
<button class="btn" open-type="getPhoneNumber" v-if="user == null" |
|
|
@ -234,7 +190,6 @@ |
|
|
|
getCouponById, |
|
|
|
getCouponById, |
|
|
|
loginByPhone, |
|
|
|
loginByPhone, |
|
|
|
getUserNormalDiscountList, |
|
|
|
getUserNormalDiscountList, |
|
|
|
orderToGoldPay, |
|
|
|
|
|
|
|
findUser, |
|
|
|
findUser, |
|
|
|
cardPay, |
|
|
|
cardPay, |
|
|
|
getRebateIntegral, |
|
|
|
getRebateIntegral, |
|
|
@ -256,13 +211,6 @@ |
|
|
|
}, |
|
|
|
}, |
|
|
|
data() { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
return { |
|
|
|
buylist: [], //订单列表 |
|
|
|
|
|
|
|
goodsPrice: 0.0, //商品合计价格 |
|
|
|
|
|
|
|
sumPrice: 0.0, //用户付款价格 |
|
|
|
|
|
|
|
freight: 12.00, //运费 |
|
|
|
|
|
|
|
note: '', //备注 |
|
|
|
|
|
|
|
int: 1200, //抵扣积分 |
|
|
|
|
|
|
|
deduction: 0, //抵扣价格 |
|
|
|
|
|
|
|
couponId: '', |
|
|
|
couponId: '', |
|
|
|
couponList: [], |
|
|
|
couponList: [], |
|
|
|
UserNormalDiscountList: [], |
|
|
|
UserNormalDiscountList: [], |
|
|
@ -431,38 +379,6 @@ |
|
|
|
showPopup() { |
|
|
|
showPopup() { |
|
|
|
this.$refs.popup.show(); |
|
|
|
this.$refs.popup.show(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
// radioChanges(item) { |
|
|
|
|
|
|
|
// if (this.memDiscountId == item.id) { // 如果已经选中,则取消选中 |
|
|
|
|
|
|
|
// this.memDiscountId = ''; |
|
|
|
|
|
|
|
// this.coupondiscountid = ''; |
|
|
|
|
|
|
|
// this.paytheprice = this.couponList.discountPrice; |
|
|
|
|
|
|
|
// this.deductionPrice = '0.00'; |
|
|
|
|
|
|
|
// this.isDiscont = false; |
|
|
|
|
|
|
|
// } else { // 否则进行选中赋值 |
|
|
|
|
|
|
|
// this.isDiscont = true; |
|
|
|
|
|
|
|
// this.memDiscountId = item.id; |
|
|
|
|
|
|
|
// this.coupondiscountid = item.id; |
|
|
|
|
|
|
|
// if (item.highDiscount.discountType == 1) { |
|
|
|
|
|
|
|
// //满减价格 |
|
|
|
|
|
|
|
// this.deductionPrice = item.highDiscount.discountPrice; |
|
|
|
|
|
|
|
// this.paytheprice = parseFloat(this.couponList.salesPrice - this.deductionPrice).toFixed(2); |
|
|
|
|
|
|
|
// } else if (item.highDiscount.discountType == 2) { |
|
|
|
|
|
|
|
// //抵扣价格 |
|
|
|
|
|
|
|
// this.deductionPrice = item.highDiscount.discountPrice; |
|
|
|
|
|
|
|
// this.paytheprice = parseFloat(this.couponList.salesPrice - this.deductionPrice).toFixed(2); |
|
|
|
|
|
|
|
// } else if (item.highDiscount.discountType == 3) { |
|
|
|
|
|
|
|
// // 打折 |
|
|
|
|
|
|
|
// this.deductionPrice = parseFloat(this.couponList.salesPrice - (this.couponList.salesPrice * |
|
|
|
|
|
|
|
// item |
|
|
|
|
|
|
|
// .highDiscount.discountPrice)).toFixed(2) |
|
|
|
|
|
|
|
// this.paytheprice = parseFloat(this.couponList.salesPrice * item.highDiscount.discountPrice) |
|
|
|
|
|
|
|
// .toFixed(2); |
|
|
|
|
|
|
|
// } |
|
|
|
|
|
|
|
// } |
|
|
|
|
|
|
|
// this.$refs.popup.hide(); |
|
|
|
|
|
|
|
// }, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//选择优惠券 |
|
|
|
//选择优惠券 |
|
|
|
radioChanges(item) { |
|
|
|
radioChanges(item) { |
|
|
|
this.paytheprice = this.orderPrice; |
|
|
|
this.paytheprice = this.orderPrice; |
|
|
@ -516,14 +432,9 @@ |
|
|
|
if (payprice > this.user.gold) { |
|
|
|
if (payprice > this.user.gold) { |
|
|
|
this.availIntegal = this.user.gold; |
|
|
|
this.availIntegal = this.user.gold; |
|
|
|
this.priceValue[1] = 0; |
|
|
|
this.priceValue[1] = 0; |
|
|
|
// if (this.availIntegal < this.priceValue[1]) { |
|
|
|
|
|
|
|
// this.priceValue[1] = this.user.gold; |
|
|
|
|
|
|
|
// this.reload(); |
|
|
|
|
|
|
|
// } |
|
|
|
|
|
|
|
} else { |
|
|
|
} else { |
|
|
|
this.availIntegal = payprice; |
|
|
|
this.availIntegal = payprice; |
|
|
|
this.priceValue[1] = 0; |
|
|
|
this.priceValue[1] = 0; |
|
|
|
// this.reload(); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
this.reload(); |
|
|
|
this.reload(); |
|
|
|
this.calculatepayPrice(); |
|
|
|
this.calculatepayPrice(); |
|
|
@ -563,7 +474,6 @@ |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
//查询工会卡余额 |
|
|
|
//查询工会卡余额 |
|
|
|
//查询详情 |
|
|
|
|
|
|
|
getHuiLianTongCardBalance() { |
|
|
|
getHuiLianTongCardBalance() { |
|
|
|
let params = { |
|
|
|
let params = { |
|
|
|
cardNo: this.user.hltCardNo.cardNo |
|
|
|
cardNo: this.user.hltCardNo.cardNo |
|
|
|