|
|
@ -47,24 +47,26 @@ |
|
|
|
<radio :checked="paytype=='jinbi'" color="#0083f5" /> |
|
|
|
<radio :checked="paytype=='jinbi'" color="#0083f5" /> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> --> |
|
|
|
</view> --> |
|
|
|
<view class="width94 line1 mart5 marb5"></view> |
|
|
|
<view class="width100" v-for="(item,index) in paytypeList" :key="index"> |
|
|
|
<view class="height50 width100 backcorfff" @tap="paytype='weixin'"> |
|
|
|
<view class="width94 line1 mart5 marb5" v-if="item == 2"></view> |
|
|
|
|
|
|
|
<view class="height50 width100 backcorfff" @tap="paytype='2'" v-if="item == 2"> |
|
|
|
<view class="width50 flleft fcor333 font16" style="padding-left: 4%;"> |
|
|
|
<view class="width50 flleft fcor333 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=='2'" color="#0083f5" /> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="width94 line1 mart5 marb5"></view> |
|
|
|
<view class="width94 line1 mart5 marb5" v-if="item == 3"></view> |
|
|
|
<view class="height50 width100 backcorfff" @tap="paytype='gonghuika'"> |
|
|
|
<view class="height50 width100 backcorfff" @tap="paytype='3'" v-if="item == 3"> |
|
|
|
<view class="width70 flleft fcor333 font16 text1" style="padding-left: 4%;"> |
|
|
|
<view class="width70 flleft fcor333 font16 text1" style="padding-left: 4%;"> |
|
|
|
汇联通工会卡<text class="font14 fcor666 margle">可用余额: {{tongCardPrice}}元</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'" @click="changeRiado()" color="#0083f5" /> |
|
|
|
<radio :checked="paytype=='3'" @click="changeRiado()" color="#0083f5" /> |
|
|
|
|
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
</view> |
|
|
@ -102,7 +104,8 @@ |
|
|
|
orderToGoldPay, |
|
|
|
orderToGoldPay, |
|
|
|
findUser, |
|
|
|
findUser, |
|
|
|
cardPay, |
|
|
|
cardPay, |
|
|
|
getHuiLianTongCardBalance |
|
|
|
getHuiLianTongCardBalance, |
|
|
|
|
|
|
|
getThirdPartyByDetail |
|
|
|
} from '../../Utils/Api.js'; |
|
|
|
} from '../../Utils/Api.js'; |
|
|
|
import ssPaymentPassword from '../../components/sanshui-payment-password' |
|
|
|
import ssPaymentPassword from '../../components/sanshui-payment-password' |
|
|
|
let app = getApp(); |
|
|
|
let app = getApp(); |
|
|
@ -125,13 +128,14 @@ |
|
|
|
radioStatus: true, |
|
|
|
radioStatus: true, |
|
|
|
memDiscountId: '', |
|
|
|
memDiscountId: '', |
|
|
|
user: '', |
|
|
|
user: '', |
|
|
|
paytype: '', |
|
|
|
paytype: '2', |
|
|
|
PaymentPassword: '', |
|
|
|
PaymentPassword: '', |
|
|
|
orderId: '', |
|
|
|
orderId: '', |
|
|
|
tongCardPrice: 0, |
|
|
|
tongCardPrice: 0, |
|
|
|
storeId: '', |
|
|
|
storeId: '', |
|
|
|
isDiscont: false, |
|
|
|
isDiscont: false, |
|
|
|
identificationCode: '' //渠道商 |
|
|
|
identificationCode: '', //渠道商 |
|
|
|
|
|
|
|
paytypeList: [] //支付方式 |
|
|
|
|
|
|
|
|
|
|
|
}; |
|
|
|
}; |
|
|
|
}, |
|
|
|
}, |
|
|
@ -150,6 +154,7 @@ |
|
|
|
that.paytype = ''; |
|
|
|
that.paytype = ''; |
|
|
|
that.user = app.globalData.userInfo; |
|
|
|
that.user = app.globalData.userInfo; |
|
|
|
that.findUser(); |
|
|
|
that.findUser(); |
|
|
|
|
|
|
|
that.getThirdPartyByDetail(); |
|
|
|
}, |
|
|
|
}, |
|
|
|
onHide() { |
|
|
|
onHide() { |
|
|
|
|
|
|
|
|
|
|
@ -179,6 +184,26 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
methods: { |
|
|
|
|
|
|
|
//查询支付方式 |
|
|
|
|
|
|
|
getThirdPartyByDetail() { |
|
|
|
|
|
|
|
// #ifdef H5 |
|
|
|
|
|
|
|
this.showType = 2; |
|
|
|
|
|
|
|
// #endif |
|
|
|
|
|
|
|
// #ifdef MP |
|
|
|
|
|
|
|
this.showType = 1; |
|
|
|
|
|
|
|
// #endif |
|
|
|
|
|
|
|
let datas = { |
|
|
|
|
|
|
|
platformId: this.showType, |
|
|
|
|
|
|
|
"companyId": app.globalData.companyId, |
|
|
|
|
|
|
|
productType: 7 |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
getThirdPartyByDetail(datas).then(res => { |
|
|
|
|
|
|
|
if (res.return_code == '000000') { |
|
|
|
|
|
|
|
this.paytypeList = res.return_data.productPayType.split(','); |
|
|
|
|
|
|
|
this.paytypeList = this.paytypeList.slice(0, this.paytypeList.length - 1); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
}, |
|
|
|
//查询积分 |
|
|
|
//查询积分 |
|
|
|
findUser() { |
|
|
|
findUser() { |
|
|
|
let params; |
|
|
|
let params; |
|
|
@ -186,7 +211,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; |
|
|
|
if(res.return_data.hltCardNo != undefined){ |
|
|
|
if (res.return_data.hltCardNo != undefined) { |
|
|
|
this.getHuiLianTongCardBalance(); |
|
|
|
this.getHuiLianTongCardBalance(); |
|
|
|
} |
|
|
|
} |
|
|
|
uni.setStorage({ |
|
|
|
uni.setStorage({ |
|
|
@ -333,7 +358,7 @@ |
|
|
|
//获取订单数据 |
|
|
|
//获取订单数据 |
|
|
|
wechatPay(item) { |
|
|
|
wechatPay(item) { |
|
|
|
let that = this; |
|
|
|
let that = this; |
|
|
|
if (that.paytype == 'weixin') { |
|
|
|
if (that.paytype == '2') { |
|
|
|
// #ifdef H5 |
|
|
|
// #ifdef H5 |
|
|
|
let params = { |
|
|
|
let params = { |
|
|
|
"orderNo": item.orderNo, |
|
|
|
"orderNo": item.orderNo, |
|
|
@ -392,7 +417,7 @@ |
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
} else if (that.paytype == 'gonghuika') { |
|
|
|
} else if (that.paytype == '3') { |
|
|
|
if (that.tongCardPrice < that.paytheprice) { |
|
|
|
if (that.tongCardPrice < that.paytheprice) { |
|
|
|
uni.showToast({ |
|
|
|
uni.showToast({ |
|
|
|
icon: 'none', |
|
|
|
icon: 'none', |
|
|
|