|
|
@ -10,16 +10,14 @@ |
|
|
|
<view class="price-number mart10"> |
|
|
|
<view class="price-number mart10"> |
|
|
|
<view class="price font16" v-if="couponList.payType == 1">¥{{couponList.discountPrice}}</view> |
|
|
|
<view class="price font16" v-if="couponList.payType == 1">¥{{couponList.discountPrice}}</view> |
|
|
|
<view class="price font16" v-else> |
|
|
|
<view class="price font16" v-else> |
|
|
|
<image style="width: 15px;height: 15px;" |
|
|
|
<image style="width: 15px;height: 15px;" src="../../static/img/jfx.png"> |
|
|
|
src="../../static/img/jfx.png"> |
|
|
|
|
|
|
|
</image>{{couponList.discountPrice*100}} |
|
|
|
</image>{{couponList.discountPrice*100}} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="number fcor666 font13 margle" v-if="couponList.payType == 1"> |
|
|
|
<view class="number fcor666 font13 margle" v-if="couponList.payType == 1"> |
|
|
|
¥{{couponList.salesPrice}} |
|
|
|
¥{{couponList.salesPrice}} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="number fcor666 font13 margle" v-else> |
|
|
|
<view class="number fcor666 font13 margle" v-else> |
|
|
|
<image style="width: 15px;height: 15px;" |
|
|
|
<image style="width: 15px;height: 15px;" src="../../static/img/jfh.png"> |
|
|
|
src="../../static/img/jfh.png"> |
|
|
|
|
|
|
|
</image>{{couponList.salesPrice*100}} |
|
|
|
</image>{{couponList.salesPrice*100}} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="flright fotrt paddleft10">x1</view> |
|
|
|
<view class="flright fotrt paddleft10">x1</view> |
|
|
@ -35,8 +33,7 @@ |
|
|
|
¥{{couponList.discountPrice}} |
|
|
|
¥{{couponList.discountPrice}} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="width40 flright alijun paddtright10 font15 fontwig6 fcor666 aliitem" v-else> |
|
|
|
<view class="width40 flright alijun paddtright10 font15 fontwig6 fcor666 aliitem" v-else> |
|
|
|
<image style="width: 15px;height: 15px;" |
|
|
|
<image style="width: 15px;height: 15px;" src="../../static/img/jfx.png"> |
|
|
|
src="../../static/img/jfx.png"> |
|
|
|
|
|
|
|
</image>{{couponList.discountPrice*100}} |
|
|
|
</image>{{couponList.discountPrice*100}} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -98,13 +95,13 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="width94 line1 mart5 marb5" v-if="couponList.payType == 1 || couponList.payType==3 "></view> |
|
|
|
<view class="width94 line1 mart5 marb5" v-if="couponList.payType == 1 || couponList.payType==3 "></view> |
|
|
|
<view class="height50 width100 backcorfff" @tap="paytype='gonghuika'"> |
|
|
|
<view class="height50 width100 backcorfff" @tap="paytype='gonghuika'"> |
|
|
|
<view class="width70 flleft fcor333 fontwig6 font16 text1" style="padding-left: 4%;"> |
|
|
|
<view class="width70 flleft fcor333 fontwig6 font16 text1" style="padding-left: 4%;"> |
|
|
|
工会卡支付<text class="font14 fcor666 margle">可用余额: </text> |
|
|
|
工会卡支付<text class="font14 fcor666 margle">可用余额: {{tongCardPrice}}元</text> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="width20 flright fotrt paddtright10 font15 fontwig6 fcor666 alijun" |
|
|
|
<view class="width20 flright fotrt paddtright10 font15 fontwig6 fcor666 alijun" |
|
|
|
style="align-items: center;"> |
|
|
|
style="align-items: center;"> |
|
|
|
<radio :checked="paytype=='gonghuika'" color="#0083f5" /> |
|
|
|
<radio :checked="paytype=='gonghuika'" @click="changeRiado()" color="#0083f5" /> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -125,8 +122,7 @@ |
|
|
|
<view class="settlement"> |
|
|
|
<view class="settlement"> |
|
|
|
<view class="sum">实付:<view class="money" v-if="couponList.payType == 1">¥{{paytheprice}}</view> |
|
|
|
<view class="sum">实付:<view class="money" v-if="couponList.payType == 1">¥{{paytheprice}}</view> |
|
|
|
<view class="money aliitem" v-else> |
|
|
|
<view class="money aliitem" v-else> |
|
|
|
<image style="width: 15px;height: 15px;vertical-align: sub;" |
|
|
|
<image style="width: 15px;height: 15px;vertical-align: sub;" src="../../static/img/jfx.png"> |
|
|
|
src="../../static/img/jfx.png"> |
|
|
|
|
|
|
|
</image>{{paytheprice*100}} |
|
|
|
</image>{{paytheprice*100}} |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -171,7 +167,9 @@ |
|
|
|
bindUserPhone, |
|
|
|
bindUserPhone, |
|
|
|
orderToPay, |
|
|
|
orderToPay, |
|
|
|
orderToGoldPay, |
|
|
|
orderToGoldPay, |
|
|
|
findUser |
|
|
|
findUser, |
|
|
|
|
|
|
|
hltUnionCardPay, |
|
|
|
|
|
|
|
getHuiLianTongCardBalance |
|
|
|
} from '../../Utils/Api.js'; |
|
|
|
} from '../../Utils/Api.js'; |
|
|
|
import wybPopup from '../../components/wyb-popup/wyb-popup.vue'; |
|
|
|
import wybPopup from '../../components/wyb-popup/wyb-popup.vue'; |
|
|
|
import ssPaymentPassword from '../../components/sanshui-payment-password' |
|
|
|
import ssPaymentPassword from '../../components/sanshui-payment-password' |
|
|
@ -206,18 +204,29 @@ |
|
|
|
PaymentPassword: '', |
|
|
|
PaymentPassword: '', |
|
|
|
isture: true, |
|
|
|
isture: true, |
|
|
|
orderId: '', |
|
|
|
orderId: '', |
|
|
|
jumpType:'' |
|
|
|
jumpType: '', |
|
|
|
|
|
|
|
tongCardPrice: 0, |
|
|
|
|
|
|
|
balanceCardNo : '' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}; |
|
|
|
}; |
|
|
|
}, |
|
|
|
}, |
|
|
|
onLoad(option) { |
|
|
|
onLoad(option) { |
|
|
|
this.couponId = option.id; |
|
|
|
this.couponId = option.id; |
|
|
|
this.getCouponById(); |
|
|
|
this.getCouponById(); |
|
|
|
this.getUserNormalDiscountList(); |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
onShow() { |
|
|
|
onShow() { |
|
|
|
this.user = app.globalData.userInfo; |
|
|
|
let that =this; |
|
|
|
this.findUser(); |
|
|
|
that.paytype = ''; |
|
|
|
|
|
|
|
that.user = app.globalData.userInfo; |
|
|
|
|
|
|
|
that.findUser(); |
|
|
|
|
|
|
|
uni.getStorage({ |
|
|
|
|
|
|
|
key: 'balanceCardNo', |
|
|
|
|
|
|
|
success(e) { |
|
|
|
|
|
|
|
that.balanceCardNo = e.data; |
|
|
|
|
|
|
|
that.getHuiLianTongCardBalance(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
onHide() { |
|
|
|
onHide() { |
|
|
|
|
|
|
|
|
|
|
@ -254,7 +263,7 @@ |
|
|
|
if (res.return_code == '000000') { |
|
|
|
if (res.return_code == '000000') { |
|
|
|
app.globalData.userInfo = res.return_data; |
|
|
|
app.globalData.userInfo = res.return_data; |
|
|
|
this.user = res.return_data; |
|
|
|
this.user = res.return_data; |
|
|
|
uni.setStorage({ |
|
|
|
uni.setStorage({ |
|
|
|
key: "user", |
|
|
|
key: "user", |
|
|
|
data: res.return_data |
|
|
|
data: res.return_data |
|
|
|
}) |
|
|
|
}) |
|
|
@ -329,6 +338,19 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
//查询工会卡余额 |
|
|
|
|
|
|
|
//查询详情 |
|
|
|
|
|
|
|
getHuiLianTongCardBalance() { |
|
|
|
|
|
|
|
let params = { |
|
|
|
|
|
|
|
cardNo: this.balanceCardNo |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
getHuiLianTongCardBalance(params).then(res => { |
|
|
|
|
|
|
|
if (res.return_code == '000000') { |
|
|
|
|
|
|
|
this.tongCardPrice = res.return_data.balance; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
// H5获取手机号 |
|
|
|
// H5获取手机号 |
|
|
|
jumpH5Bding() { |
|
|
|
jumpH5Bding() { |
|
|
|
uni.navigateTo({ |
|
|
|
uni.navigateTo({ |
|
|
@ -400,7 +422,24 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
//获取选择支付方式 |
|
|
|
|
|
|
|
changeRiado() { |
|
|
|
|
|
|
|
if (!this.user.isSetHltCard) { |
|
|
|
|
|
|
|
uni.showToast({ |
|
|
|
|
|
|
|
icon: 'none', |
|
|
|
|
|
|
|
title: '当前账号还未绑定,前往绑定', |
|
|
|
|
|
|
|
duration: 2000, |
|
|
|
|
|
|
|
success() { |
|
|
|
|
|
|
|
setTimeout(() => { |
|
|
|
|
|
|
|
uni.navigateTo({ |
|
|
|
|
|
|
|
url: '../user/bindingCard/bindingCard' |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
}, 1000) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
//获取订单数据 |
|
|
|
//获取订单数据 |
|
|
|
orderToPay(item) { |
|
|
|
orderToPay(item) { |
|
|
|
let that = this; |
|
|
|
let that = this; |
|
|
@ -453,7 +492,7 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
} else if (that.paytype == 'jinbi') { |
|
|
|
} else if (that.paytype == 'jinbi') { |
|
|
|
if(!that.user.isSetPayPwd){ |
|
|
|
if (!that.user.isSetPayPwd) { |
|
|
|
uni.navigateTo({ |
|
|
|
uni.navigateTo({ |
|
|
|
url: '../login/updatePas/updatePas' |
|
|
|
url: '../login/updatePas/updatePas' |
|
|
|
}) |
|
|
|
}) |
|
|
@ -461,6 +500,24 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
that.isture = false; |
|
|
|
that.isture = false; |
|
|
|
that.$refs.paymentPassword.modalFun('show'); |
|
|
|
that.$refs.paymentPassword.modalFun('show'); |
|
|
|
|
|
|
|
} else if (that.paytype == 'gonghuika') { |
|
|
|
|
|
|
|
if (!that.user.isSetHltCard) { |
|
|
|
|
|
|
|
uni.showToast({ |
|
|
|
|
|
|
|
icon: 'none', |
|
|
|
|
|
|
|
title: '当前账号还未绑定,前往绑定', |
|
|
|
|
|
|
|
duration: 2000, |
|
|
|
|
|
|
|
success() { |
|
|
|
|
|
|
|
setTimeout(() => { |
|
|
|
|
|
|
|
uni.navigateTo({ |
|
|
|
|
|
|
|
url: '../user/bindingCard/bindingCard' |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
}, 1000) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
that.isture = false; |
|
|
|
|
|
|
|
that.$refs.paymentPassword.modalFun('show'); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
uni.showToast({ |
|
|
|
uni.showToast({ |
|
|
|
title: '请选择支付方式', |
|
|
|
title: '请选择支付方式', |
|
|
@ -475,18 +532,49 @@ |
|
|
|
uni.showLoading({ |
|
|
|
uni.showLoading({ |
|
|
|
title: '支付中...' |
|
|
|
title: '支付中...' |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
if (this.paytype == 'jinbi') { |
|
|
|
|
|
|
|
let params = { |
|
|
|
|
|
|
|
"orderId": this.orderId, |
|
|
|
|
|
|
|
"password": this.PaymentPassword |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
orderToGoldPay(params).then(res => { |
|
|
|
|
|
|
|
uni.hideLoading(); |
|
|
|
|
|
|
|
if (res.return_code == '000000') { |
|
|
|
|
|
|
|
uni.showToast({ |
|
|
|
|
|
|
|
title: '支付成功' |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
uni.reLaunch({ |
|
|
|
|
|
|
|
url: '../pay/success/success?id=' + this.couponId |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (res.return_code == '102130') { |
|
|
|
|
|
|
|
uni.navigateTo({ |
|
|
|
|
|
|
|
url: '../../login/updatePas/updatePas' |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
uni.showToast({ |
|
|
|
|
|
|
|
title: res.return_msg, |
|
|
|
|
|
|
|
icon: 'none' |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
let params = { |
|
|
|
let params = { |
|
|
|
"orderId": this.orderId, |
|
|
|
"orderId": this.orderId, |
|
|
|
|
|
|
|
"cardNo": this.balanceCardNo, |
|
|
|
"password": this.PaymentPassword |
|
|
|
"password": this.PaymentPassword |
|
|
|
} |
|
|
|
} |
|
|
|
orderToGoldPay(params).then(res => { |
|
|
|
hltUnionCardPay(params).then(res => { |
|
|
|
uni.hideLoading(); |
|
|
|
uni.hideLoading(); |
|
|
|
if (res.return_code == '000000') { |
|
|
|
if (res.return_code == '000000') { |
|
|
|
uni.showToast({ |
|
|
|
uni.showToast({ |
|
|
|
title: '支付成功' |
|
|
|
title: '支付成功' |
|
|
|
}) |
|
|
|
}) |
|
|
|
uni.reLaunch({ |
|
|
|
uni.reLaunch({ |
|
|
|
url:'../pay/success/success?id=' + this.couponId |
|
|
|
url: '../pay/success/success?id=' + this.couponId |
|
|
|
}); |
|
|
|
}); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
@ -500,8 +588,9 @@ |
|
|
|
title: res.return_msg, |
|
|
|
title: res.return_msg, |
|
|
|
icon: 'none' |
|
|
|
icon: 'none' |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
payRequest: function(self) { |
|
|
|
payRequest: function(self) { |
|
|
|
uni.showLoading({ |
|
|
|
uni.showLoading({ |
|
|
|