提交 e3616fa4 authored 作者: lihuihui's avatar lihuihui

update

上级 e544248c
......@@ -274,7 +274,7 @@ export default {
const params = {
pay_record_ids: this.selctOrderData.map(item => item.pay_record.id).toString(),
join_rand: this.data.payData.join_rand,
pay_type: this.payMode === '1' ? '1' : '11'
pay_type: parseInt(this.payMode) === 1 ? '1' : '11'
}
// 支付宝环境支付
// if (this.isAlipay) {
......@@ -321,10 +321,10 @@ export default {
this.payDetail.order_id = res.data.order_id
window.localStorage.payDetail = JSON.stringify(this.payDetail)
// 支付宝
if (this.isAlipay) {
if (this.isAlipay && parseInt(this.payMode) === 2) {
window.location.href = res.data.url
}
if (this.isWx) {
if (this.isWx && parseInt(this.payMode) === 1) {
// 拉起微信支付
window.WeixinJSBridge.invoke('getBrandWCPayRequest', JSON.parse(res.data.more_info), res => {
// if (res.err_msg === 'get_brand_wcpay_request:ok') {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论