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