个人单,企业年费调整

This commit is contained in:
唐明明
2023-05-22 17:31:51 +08:00
parent 0fe6fd4aaf
commit f7824e3e86
6 changed files with 157 additions and 134 deletions

View File

@@ -12,7 +12,13 @@
</view>
<view class="top">
<view class="top-title">{{item.title}}</view>
<view class="top-btn" @click="$Router.push({name: 'StandWrite', params: {serveId: item.synthesis_service_id}})">{{item.is_open ? '续费' : '购买'}}</view>
<view class="top-btn" :class="{'hide': item.button_status === 3}" @click="onBuy(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>
<view class="range">
<view class="range-label">
@@ -27,12 +33,6 @@
{{item.price}}/
</view>
</view>
<view class="range-label">
<view class="range-label-title">服务期限</view>
<view class="range-label-text">
{{item.day}}
</view>
</view>
<view class="range-label scope" v-if="index == 0">
<view class="range-label-title">服务范围</view>
<view class="range-label-text">
@@ -80,6 +80,7 @@
yearSynthList({
type: 2
}).then(res => {
console.log(res)
this.synthesisArr = res
}).catch(err => {
uni.showToast({
@@ -87,6 +88,47 @@
icon : 'none'
})
})
},
// 购买企业服务包
onBuy(index){
let obj = this.synthesisArr[index]
switch (obj.button_status){
case 3:
uni.showToast({
title: '打款凭证审核中,请耐心等待',
icon : 'none'
})
break;
case 4:
uni.showModal({
title : '审核被驳回',
content : '驳回原因:' + obj.service_order.offline_pays.remark,
showCancel : false,
success : modalRes => {
if(modalRes.confirm){
this.$Router.push({
name : 'BankPay',
params : {
payId : obj.service_order.offline_pays.offline_pay_id,
type : 'edit',
orderId : obj.service_order.order_id,
orderType : obj.service_order.order_type.replace(/\\/g, '-'),
price : obj.price
}
})
}
}
})
break;
default:
this.$Router.push({
name: 'StandWrite',
params: {
serveId: obj.synthesis_service_id
}
})
break;
}
}
}
}
@@ -190,6 +232,7 @@
color: #582700;
padding: 0 30rpx;
border-radius: 50rpx;
font-size: 30rpx;
box-shadow: 0 8rpx 6rpx rgba(0, 0, 0, .3);
}
}