修复表单金额限制,修复订单刷新状态,修复驳回信息显示异常问题,综法订单详情新增律师信息,支付新增支付选项接口

This commit is contained in:
唐明明
2023-06-01 13:57:48 +08:00
14 changed files with 154 additions and 57 deletions

View File

@@ -13,47 +13,48 @@
<!-- 选择支付方式 -->
<view class="choose">
<radio-group @change="changeRadio" >
<label class="choose-item" v-if="payType != 'free'">
<!-- payType != 'free' -->
<label class="choose-item" v-if="payCan.coin">
<view class="choose-text nowrap">
<image src="@/static/icons/pay_alipay.png" mode="aspectFill"></image>
火力值支付
</view>
<radio class="choose-radio" value="coin" :checked="payMethod == 'coin'"></radio>
</label>
<label class="choose-item nowrap">
<label class="choose-item nowrap" v-if="payCan.wx">
<view class="choose-text">
<image src="@/static/icons/pay_wechat.png" mode="aspectFill"></image>
微信支付(银联)
</view>
<radio class="choose-radio" value="wx" :checked="payMethod == 'wx'"></radio>
</label>
<label class="choose-item nowrap">
<label class="choose-item nowrap" v-if="payCan.dgwx">
<view class="choose-text">
<image src="@/static/icons/pay_wechat.png" mode="aspectFill"></image>
微信支付(汇付)
</view>
<radio class="choose-radio" value="dgwx" :checked="payMethod == 'dgwx'"></radio>
</label>
<label class="choose-item nowrap" v-if="Number(total) <= 10000">
<label class="choose-item nowrap" v-if="payCan.ali && Number(total) <= 10000">
<view class="choose-text">
<image src="@/static/icons/pay_ali.png" mode="aspectFill"></image>
支付宝支付(银联)
</view>
<radio class="choose-radio" value="ali" :checked="payMethod == 'ali'"></radio>
</label>
<label class="choose-item nowrap">
<label class="choose-item nowrap" v-if="payCan.dgali">
<view class="choose-text">
<image src="@/static/icons/pay_ali.png" mode="aspectFill"></image>
支付宝支付(汇付)
</view>
<radio class="choose-radio" value="dgali" :checked="payMethod == 'dgali'"></radio>
</label>
<label class="choose-item nowrap">
<label class="choose-item nowrap" v-if="payCan.code">
<view class="choose-text">
<image src="@/static/icons/pay_code.png" mode="aspectFill"></image>
付款码支付
</view>
<radio class="choose-radio" value="code"></radio>
<radio class="choose-radio" value="code" :checked="payMethod == 'code'"></radio>
</label>
</radio-group>
</view>
@@ -146,7 +147,9 @@
// 二维码支付
payCodeShow : false,
payQrUrl : '',
payQrType : ''
payQrType : '',
// 支付选项
payCan : {}
};
},
onShow() {
@@ -161,14 +164,15 @@
})
// 自由服务包订单信息
if(this.$Route.query.paytype === 'free'){
this.payMethod = "wx"
umsFreeInfo(this.$Route.query.serviceId).then(res => {
let { order_id, price, order_no } = res;
let { order_id, price, order_no, can_use_channel } = res;
this.orderId = order_id
this.total = price
this.orderNo = order_no
this.payType = this.$Route.query.paytype
this.payCan = can_use_channel
uni.hideLoading()
this.getDefaultType(can_use_channel)
}).catch(err => {
uni.showToast({
title: err.message,
@@ -181,7 +185,7 @@
if(this.$Route.query.paytype === 'synthesize'){
let order_type = this.$Route.query.orderType.replace(/\-/g, '\\')
oderinfo( this.$Route.query.orderId, order_type).then(res => {
let { order_no, price, score, order_id, rate, total_fire } = res
let { order_no, price, score, order_id, rate, total_fire, can_use_channel } = res
this.rate = rate
this.totalFire = total_fire
this.orderType = order_type
@@ -190,7 +194,9 @@
this.total = price
this.orderNo = order_no
this.balance = score
this.payCan = can_use_channel
uni.hideLoading()
this.getDefaultType(can_use_channel)
}).catch(err => {
uni.showToast({
title: err.message,
@@ -201,14 +207,16 @@
}
// 其他支付方式订单信息
info(this.$Route.query.orderId).then(res => {
let { total, order_no, business_order_id, diff_prices, diff, score } = res
let { total, order_no, business_order_id, diff_prices, diff, score, can_use_channel } = res
this.orderId = business_order_id
this.diffId = diff.business_order_diff_price_id
this.payType = this.$Route.query.paytype
this.total = this.payType === 'diff' ? diff_prices: total
this.orderNo = order_no
this.balance = score
this.payCan = can_use_channel
uni.hideLoading()
this.getDefaultType(can_use_channel)
}).catch(err => {
uni.showToast({
title: err.message,
@@ -217,6 +225,16 @@
})
},
methods: {
// 检查默认支付选项
getDefaultType(can_use_channel){
// 检查支付默认选项
for(let key of Object.keys(can_use_channel)){
if(can_use_channel[key] > 1){
this.payMethod = key
return
}
}
},
// 查询订单状态
onGetOrderPayState(){
// 查询支付状态