个人单,企业年费调整
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user