|
|
@ -36,17 +36,18 @@ |
|
|
|
<view class="mart10 heightl60 paddleft10 fcor333 fontwig6 font18 width100 backcorfff">支付方式</view> |
|
|
|
<view class="mart10 heightl60 paddleft10 fcor333 fontwig6 font18 width100 backcorfff">支付方式</view> |
|
|
|
<view class="line1"></view> |
|
|
|
<view class="line1"></view> |
|
|
|
<view class="width100 backcorfff"> |
|
|
|
<view class="width100 backcorfff"> |
|
|
|
<!-- <view class="height50 width100 backcorfff" @tap="paytype='weixin'"> |
|
|
|
<view class="height50 width100 backcorfff" @tap="paytype='jifen'"> |
|
|
|
<view class="width50 flleft fcor333 fontwig6 font16" style="padding-left: 4%;"> |
|
|
|
<view class="width50 flleft fcor333 fontwig6 font16" style="padding-left: 4%;"> |
|
|
|
微信支付 |
|
|
|
积分支付 |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="width40 flright fotrt paddtright10 font15 fontwig6 fcor666 alijun" |
|
|
|
<view class="width40 flright fotrt paddtright10 font15 fontwig6 fcor666 alijun" |
|
|
|
style="align-items: center;"> |
|
|
|
style="align-items: center;"> |
|
|
|
<radio :checked="paytype=='weixin'" color="#0083f5" /> |
|
|
|
<radio :checked="paytype=='jifen'" color="#0083f5" /> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="width94 line1 mart5 marb5"></view> --> |
|
|
|
<view class="width94 line1 mart5 marb5"></view> |
|
|
|
<view class="line1"></view> |
|
|
|
|
|
|
|
|
|
|
|
<!-- <view class="line1"></view> |
|
|
|
<view class="heightl60 paddleft10 fcor666 width100 backcorfff" @tap="paytype='weixin'"> |
|
|
|
<view class="heightl60 paddleft10 fcor666 width100 backcorfff" @tap="paytype='weixin'"> |
|
|
|
<view class="width60 flleft fontwig6"> |
|
|
|
<view class="width60 flleft fontwig6"> |
|
|
|
微信支付 |
|
|
|
微信支付 |
|
|
@ -64,7 +65,7 @@ |
|
|
|
<view class="flright width30 fotct"> |
|
|
|
<view class="flright width30 fotct"> |
|
|
|
<radio :checked="paytype=='gonghuika'" @click="changeRiado()" color="#0083f5" /> |
|
|
|
<radio :checked="paytype=='gonghuika'" @click="changeRiado()" color="#0083f5" /> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> --> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
<view class="width100 mart15 fcor333 font16 fontwig6 paddleft10">重要说明</view> |
|
|
|
<view class="width100 mart15 fcor333 font16 fontwig6 paddleft10">重要说明</view> |
|
|
@ -81,7 +82,7 @@ |
|
|
|
<button class="reBtn flright" @click="orderToPay">去支付</button> |
|
|
|
<button class="reBtn flright" @click="orderToPay">去支付</button> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
<ssPaymentPassword ref="paymentPassword" :mode="1" @submit="submitHandle"/> |
|
|
|
<ssPaymentPassword ref="paymentPassword" :mode="1" @submit="submitHandle" /> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</template> |
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
@ -90,7 +91,8 @@ |
|
|
|
getOrderById, |
|
|
|
getOrderById, |
|
|
|
orderToPay, |
|
|
|
orderToPay, |
|
|
|
getHuiLianTongCardBalance, |
|
|
|
getHuiLianTongCardBalance, |
|
|
|
hltUnionCardPay |
|
|
|
hltUnionCardPay, |
|
|
|
|
|
|
|
orderToGoldPay |
|
|
|
} from '../../../Utils/Api.js'; |
|
|
|
} from '../../../Utils/Api.js'; |
|
|
|
import ssPaymentPassword from '../../../components/sanshui-payment-password/index.vue'; |
|
|
|
import ssPaymentPassword from '../../../components/sanshui-payment-password/index.vue'; |
|
|
|
let app = getApp(); |
|
|
|
let app = getApp(); |
|
|
@ -131,7 +133,7 @@ |
|
|
|
//密码支付完成 |
|
|
|
//密码支付完成 |
|
|
|
submitHandle(e) { |
|
|
|
submitHandle(e) { |
|
|
|
this.PaymentPassword = e.value; |
|
|
|
this.PaymentPassword = e.value; |
|
|
|
if(this.PaymentPassword == ''){ |
|
|
|
if (this.PaymentPassword == '') { |
|
|
|
uni.showToast({ |
|
|
|
uni.showToast({ |
|
|
|
title: '请勿手动关闭弹窗', |
|
|
|
title: '请勿手动关闭弹窗', |
|
|
|
icon: 'none', |
|
|
|
icon: 'none', |
|
|
@ -142,6 +144,36 @@ |
|
|
|
uni.showLoading({ |
|
|
|
uni.showLoading({ |
|
|
|
title: '支付中...' |
|
|
|
title: '支付中...' |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
if (this.paytype == 'jifen') { |
|
|
|
|
|
|
|
let params = { |
|
|
|
|
|
|
|
"orderId": this.orderNo, |
|
|
|
|
|
|
|
"password": this.PaymentPassword |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
orderToGoldPay(params).then(res => { |
|
|
|
|
|
|
|
uni.hideLoading(); |
|
|
|
|
|
|
|
if (res.return_code == '000000') { |
|
|
|
|
|
|
|
uni.showToast({ |
|
|
|
|
|
|
|
title: '支付成功' |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
uni.reLaunch({ |
|
|
|
|
|
|
|
url: '/pages/goods/refuel-succes/refuel-succes?id=' + this.orderNo |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
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.orderNo, |
|
|
|
"orderId": this.orderNo, |
|
|
|
"cardNo": this.user.hltCardNo.cardNo, |
|
|
|
"cardNo": this.user.hltCardNo.cardNo, |
|
|
@ -154,7 +186,7 @@ |
|
|
|
title: '支付成功' |
|
|
|
title: '支付成功' |
|
|
|
}) |
|
|
|
}) |
|
|
|
uni.reLaunch({ |
|
|
|
uni.reLaunch({ |
|
|
|
url: '/pages/goods/refuel-succes/refuel-succes?id=' +this.orderNo |
|
|
|
url: '/pages/goods/refuel-succes/refuel-succes?id=' + this.orderNo |
|
|
|
}); |
|
|
|
}); |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
@ -252,7 +284,8 @@ |
|
|
|
title: '支付成功' |
|
|
|
title: '支付成功' |
|
|
|
}) |
|
|
|
}) |
|
|
|
uni.reLaunch({ |
|
|
|
uni.reLaunch({ |
|
|
|
url: '/pages/goods/refuel-succes/refuel-succes?id=' +that.orderNo |
|
|
|
url: '/pages/goods/refuel-succes/refuel-succes?id=' + |
|
|
|
|
|
|
|
that.orderNo |
|
|
|
}); |
|
|
|
}); |
|
|
|
}, |
|
|
|
}, |
|
|
|
fail: function(err) { |
|
|
|
fail: function(err) { |
|
|
@ -276,7 +309,7 @@ |
|
|
|
}) |
|
|
|
}) |
|
|
|
return; |
|
|
|
return; |
|
|
|
} |
|
|
|
} |
|
|
|
if(that.paytype == 'gonghuika'){ |
|
|
|
if (that.paytype == 'gonghuika') { |
|
|
|
if (!that.user.isSetPayPwd) { |
|
|
|
if (!that.user.isSetPayPwd) { |
|
|
|
uni.navigateTo({ |
|
|
|
uni.navigateTo({ |
|
|
|
url: '../../login/updatePas/updatePas' |
|
|
|
url: '../../login/updatePas/updatePas' |
|
|
@ -300,6 +333,17 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
that.$refs.paymentPassword.modalFun('show'); |
|
|
|
that.$refs.paymentPassword.modalFun('show'); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (that.paytype == 'jifen') { |
|
|
|
|
|
|
|
if (!that.user.isSetPayPwd) { |
|
|
|
|
|
|
|
uni.navigateTo({ |
|
|
|
|
|
|
|
url: '../../login/updatePas/updatePas' |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
return; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
that.$refs.paymentPassword.modalFun('show'); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
payRequest: function(self) { |
|
|
|
payRequest: function(self) { |
|
|
|
let that = this; |
|
|
|
let that = this; |
|
|
|