|
|
|
@ -69,15 +69,15 @@ |
|
|
|
|
style="text-decoration: line-through;"> ¥{{orderPrice}}</text> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
<view class="width94 backcorfff mart10"> |
|
|
|
|
<view class="width94 alijusstart height50 font14 fcor666"> |
|
|
|
|
<view class="width40 fcor333 fontwig6 font16" style="padding-left: 2%;">邀请码</view> |
|
|
|
|
<input class="width60 fotrt font15" v-model="identificationCode" placeholder="请输入邀请码" /> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
<view class="width94 backcorfff mart10"> |
|
|
|
|
<view class="width94 alijusstart height50 font14 fcor666"> |
|
|
|
|
<view class="width40 fcor333 fontwig6 font16" style="padding-left: 2%;">邀请码</view> |
|
|
|
|
<input class="width60 fotrt font15" v-model="identificationCode" placeholder="请输入邀请码" /> |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
<view class="width94 concont mart10 backcorfff"> |
|
|
|
|
<view class="height50 width100 paddtop5 backcorfff" @click="showPopup()"> |
|
|
|
|
<view class="width50 flleft fcor333 fontwig6 font16" style="padding-left: 4%;"> |
|
|
|
@ -340,7 +340,7 @@ |
|
|
|
|
orderPrice: 0, //订单价格 |
|
|
|
|
rechargeDes: '', // 支付详情 |
|
|
|
|
rebateIntegral: '', //返回积分 |
|
|
|
|
Integrastu: 1 ,//返积分状态 |
|
|
|
|
Integrastu: 1, //返积分状态 |
|
|
|
|
identificationCode: '', //渠道商 |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
@ -453,12 +453,12 @@ |
|
|
|
|
let resul2 = 0; |
|
|
|
|
let result3 = 0; |
|
|
|
|
this.orderList.forEach((good) => { |
|
|
|
|
resul2 += this.accMul(good.num, good.oldprice); |
|
|
|
|
resul2 += this.accMul(good.num, good.oldprice); |
|
|
|
|
result3 = resul2.toFixed(2); |
|
|
|
|
this.disconutprice = (result3 - result).toFixed(2); |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
this.orderPrice = result3; |
|
|
|
|
this.orderPrice = result3; |
|
|
|
|
this.totalprice = result; |
|
|
|
|
this.payPrice = result; |
|
|
|
|
}, |
|
|
|
@ -597,8 +597,8 @@ |
|
|
|
|
datas = { |
|
|
|
|
"childOrderList": [{ |
|
|
|
|
"goodsId": 9999, |
|
|
|
|
"customerMobile": this.customerMobile, |
|
|
|
|
"storeCode":this.storeCode, |
|
|
|
|
"customerMobile": this.customerMobile, |
|
|
|
|
"storeCode": this.storeCode, |
|
|
|
|
"platformId": this.showType, |
|
|
|
|
"productType": this.productType, |
|
|
|
|
"orderItems": data2, |
|
|
|
@ -610,14 +610,14 @@ |
|
|
|
|
"companyId": app.globalData.companyId, |
|
|
|
|
"promoteCode": this.identificationCode, |
|
|
|
|
"memDiscountId": this.memDiscountId, |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if (this.typeid == 2) { |
|
|
|
|
datas = { |
|
|
|
|
"childOrderList": [{ |
|
|
|
|
"goodsId": 9999, |
|
|
|
|
"customerMobile": this.customerMobile, |
|
|
|
|
"storeCode":this.storeCode, |
|
|
|
|
"customerMobile": this.customerMobile, |
|
|
|
|
"storeCode": this.storeCode, |
|
|
|
|
"platformId": this.showType, |
|
|
|
|
"productType": this.productType, |
|
|
|
|
"orderItems": this.orderList, |
|
|
|
@ -808,24 +808,7 @@ |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
} else if (that.paytype == '3') { |
|
|
|
|
if (!that.user.isSetPayPwd) { |
|
|
|
|
uni.navigateTo({ |
|
|
|
|
url: '../../pages/login/updatePas/updatePas' |
|
|
|
|
}) |
|
|
|
|
that.thirdCancelOrder(); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
if (that.tongCardPrice < that.payPrice) { |
|
|
|
|
uni.showToast({ |
|
|
|
|
icon: 'none', |
|
|
|
|
title: '工会卡余额不足', |
|
|
|
|
duration: 2000, |
|
|
|
|
}); |
|
|
|
|
that.thirdCancelOrder(); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} else if (that.paytype == '3') { |
|
|
|
|
if (!that.user.isSetHltCard) { |
|
|
|
|
uni.showToast({ |
|
|
|
|
icon: 'none', |
|
|
|
@ -842,6 +825,24 @@ |
|
|
|
|
that.thirdCancelOrder(); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
if (!that.user.isSetPayPwd) { |
|
|
|
|
uni.navigateTo({ |
|
|
|
|
url: '../../pages/login/updatePas/updatePas' |
|
|
|
|
}) |
|
|
|
|
that.thirdCancelOrder(); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
if (that.tongCardPrice < that.payPrice) { |
|
|
|
|
uni.showToast({ |
|
|
|
|
icon: 'none', |
|
|
|
|
title: '工会卡余额不足', |
|
|
|
|
duration: 2000, |
|
|
|
|
}); |
|
|
|
|
that.thirdCancelOrder(); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
that.$refs.paymentPassword.modalFun('show'); |
|
|
|
|
} else { |
|
|
|
|
uni.showToast({ |
|
|
|
@ -878,8 +879,8 @@ |
|
|
|
|
datas = { |
|
|
|
|
"childOrderList": [{ |
|
|
|
|
"goodsId": 9999, |
|
|
|
|
"customerMobile": this.customerMobile, |
|
|
|
|
"storeCode":this.storeCode, |
|
|
|
|
"customerMobile": this.customerMobile, |
|
|
|
|
"storeCode": this.storeCode, |
|
|
|
|
"platformId": this.showType, |
|
|
|
|
"productType": this.productType, |
|
|
|
|
"orderItems": data2, |
|
|
|
@ -892,17 +893,17 @@ |
|
|
|
|
"promoteCode": this.identificationCode, |
|
|
|
|
"memDiscountId": this.memDiscountId, |
|
|
|
|
"payPwd": this.PaymentPassword |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if (this.typeid == 2) { |
|
|
|
|
datas = { |
|
|
|
|
"childOrderList": [{ |
|
|
|
|
"goodsId": 9999, |
|
|
|
|
"customerMobile": this.customerMobile, |
|
|
|
|
"storeCode":this.storeCode, |
|
|
|
|
"customerMobile": this.customerMobile, |
|
|
|
|
"storeCode": this.storeCode, |
|
|
|
|
"platformId": this.showType, |
|
|
|
|
"productType": this.productType, |
|
|
|
|
"orderItems": this.orderList, |
|
|
|
|
"orderItems": this.orderList, |
|
|
|
|
"goodsType": 9, |
|
|
|
|
"saleCount": 1, |
|
|
|
|
}], |
|
|
|
@ -911,8 +912,8 @@ |
|
|
|
|
"promoteCode": this.identificationCode, |
|
|
|
|
"memDiscountId": this.memDiscountId, |
|
|
|
|
"payPwd": this.PaymentPassword |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
create(datas).then(res => { |
|
|
|
|