抖火综法

This commit is contained in:
唐明明
2023-05-23 17:20:12 +08:00
parent f7824e3e86
commit 9b00b0fe4a
22 changed files with 2092 additions and 102 deletions

View File

@@ -46,7 +46,7 @@
<text v-if="item.button_status === 4">打款被驳回</text>
</view>
<!-- 到期时间 -->
<view class="order-at" v-if="item.button_status === 1">到期时间{{item.service_user.ended_at}}</view>
<view class="order-at" v-if="item.is_open">到期时间{{item.service_user.ended_at}}</view>
</view>
</view>
</view>
@@ -56,13 +56,16 @@
<script>
import { yearSynthList } from '@/apis/interfaces/synthesis'
import { certified } from '@/apis/interfaces/user'
export default {
data() {
return {
synthesisArr: [],
synthesisArr: [], // 服务单信息
price : '' // 支付价格
}
},
onShow() {
this.yearServe();
},
methods: {
@@ -81,11 +84,13 @@
},
// 点击开通按钮
onBtn(index){
let obj = this.synthesisArr[index]
console.log(obj)
let obj = this.synthesisArr[index]
switch (obj.button_status){
case 2:
let { order_id, order_type, can, price } = obj.service_order
this.price = price
this.expressSheet(order_id, order_type, can)
break;
case 3:
uni.showToast({
title: '打款凭证审核中,请耐心等待',
@@ -122,6 +127,45 @@
})
break;
}
},
// 选择支付方式
expressSheet(id, type, can) {
this.orderId = id
this.orderType = type
// 仅支持线下打款
if(!can.online){
this.onToBankPay()
return
}
// 选择线上、下支付方式
uni.showActionSheet({
itemList: ['线上支付', '线下支付'],
success: sheetRes => {
if(sheetRes.tapIndex == 0){
this.$Router.push({
name: 'Pay',
params: {
paytype : 'synthesize',
orderId : id,
orderType : type.replace(/\\/g, '-')
},
})
return
}
this.onToBankPay()
}
})
},
// 去线下打款
onToBankPay(){
this.$Router.push({
name: 'BankPay',
params: {
orderId : this.orderId,
orderType : this.orderType.replace(/\\/g, '-'),
price : this.price
},
})
}
}
}