个人单,企业年费调整
This commit is contained in:
@@ -38,18 +38,15 @@
|
||||
<image class="shapeWhite-back" src="https://cdn.douhuofalv.com/images/2023/04/17/705af638ddaed151ce5bc5ead85f604d.png" mode="widthFix"></image>
|
||||
</view>
|
||||
<view class="btn">
|
||||
<view class="btn-go" :class="{'hide': item.service_order != null && item.service_order.can.pay_status === 2}" @click="onBtn(index)">
|
||||
<block v-if="item.is_open && item.service_order === null">
|
||||
<text>{{item.is_open ? '立即续费' : '立即开通'}}</text>
|
||||
</block>
|
||||
<block v-else>
|
||||
<text v-if="item.service_order.can.pay_status === 1">{{item.is_open ? '立即续费' : '立即开通' }}</text>
|
||||
<text v-if="item.service_order.can.pay_status === 2">打款审核中</text>
|
||||
<text v-if="item.service_order.can.pay_status === 3">打款被驳回</text>
|
||||
</block>
|
||||
<view class="btn-go" :class="{'hide': item.button_status === 3}" @click="onBtn(index)">
|
||||
<text v-if="item.button_status === 0">立即购买</text>
|
||||
<text v-if="item.button_status === 1">立即续费</text>
|
||||
<text v-if="item.button_status === 2">等待支付</text>
|
||||
<text v-if="item.button_status === 3">打款审核中</text>
|
||||
<text v-if="item.button_status === 4">打款被驳回</text>
|
||||
</view>
|
||||
<!-- 到期时间 -->
|
||||
<view class="order-at" v-if="item.is_open && item.service_user != null">到期时间:{{item.service_user.ended_at}}</view>
|
||||
<view class="order-at" v-if="item.button_status === 1">到期时间:{{item.service_user.ended_at}}</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -75,8 +72,6 @@
|
||||
type: 1
|
||||
}).then(res => {
|
||||
this.synthesisArr = res
|
||||
|
||||
console.log(res)
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
@@ -87,21 +82,17 @@
|
||||
// 点击开通按钮
|
||||
onBtn(index){
|
||||
let obj = this.synthesisArr[index]
|
||||
if(obj.service_order === null){
|
||||
this.onOpenPAY(obj.synthesis_service_id)
|
||||
return
|
||||
}
|
||||
switch (obj.service_order.can.pay_status){
|
||||
case 1:
|
||||
this.onOpenPAY(obj.synthesis_service_id)
|
||||
break;
|
||||
case 2:
|
||||
|
||||
console.log(obj)
|
||||
|
||||
switch (obj.button_status){
|
||||
case 3:
|
||||
uni.showToast({
|
||||
title: '打款凭证审核中,请耐心等待',
|
||||
icon : 'none'
|
||||
})
|
||||
break;
|
||||
case 3:
|
||||
case 4:
|
||||
uni.showModal({
|
||||
title : '审核被驳回',
|
||||
content : '驳回原因:' + obj.service_order.offline_pays.remark,
|
||||
@@ -122,16 +113,15 @@
|
||||
}
|
||||
})
|
||||
break;
|
||||
default:
|
||||
this.$Router.push({
|
||||
name: 'PersonWrite',
|
||||
params: {
|
||||
serveId: obj.synthesis_service_id
|
||||
}
|
||||
})
|
||||
break;
|
||||
}
|
||||
},
|
||||
// 填写支付信息
|
||||
onOpenPAY(serveId){
|
||||
this.$Router.push({
|
||||
name: 'PersonWrite',
|
||||
params: {
|
||||
serveId
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user