个人单,企业年费调整
This commit is contained in:
@@ -12,7 +12,13 @@
|
|||||||
</view>
|
</view>
|
||||||
<view class="top">
|
<view class="top">
|
||||||
<view class="top-title">{{item.title}}</view>
|
<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>
|
||||||
<view class="range">
|
<view class="range">
|
||||||
<view class="range-label">
|
<view class="range-label">
|
||||||
@@ -27,12 +33,6 @@
|
|||||||
{{item.price}}元/年
|
{{item.price}}元/年
|
||||||
</view>
|
</view>
|
||||||
</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 scope" v-if="index == 0">
|
||||||
<view class="range-label-title">服务范围:</view>
|
<view class="range-label-title">服务范围:</view>
|
||||||
<view class="range-label-text">
|
<view class="range-label-text">
|
||||||
@@ -80,6 +80,7 @@
|
|||||||
yearSynthList({
|
yearSynthList({
|
||||||
type: 2
|
type: 2
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
|
console.log(res)
|
||||||
this.synthesisArr = res
|
this.synthesisArr = res
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
@@ -87,6 +88,47 @@
|
|||||||
icon : 'none'
|
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;
|
color: #582700;
|
||||||
padding: 0 30rpx;
|
padding: 0 30rpx;
|
||||||
border-radius: 50rpx;
|
border-radius: 50rpx;
|
||||||
|
font-size: 30rpx;
|
||||||
box-shadow: 0 8rpx 6rpx rgba(0, 0, 0, .3);
|
box-shadow: 0 8rpx 6rpx rgba(0, 0, 0, .3);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="content">
|
<view class="content">
|
||||||
<view class="orderTab">
|
<view class="orderTab">
|
||||||
<view class="orderTab-item" :class="{active : entrustId == item.entrust_id}" @click="tabClick(item.entrust_id, item.title)" v-for="(item, index) in entrustArr" :key="index">
|
<view class="orderTab-item" :class="{active : entrustId == item.entrust_id}" @click="tabClick(item.entrust_id, item.type.value)" v-for="(item, index) in entrustArr" :key="index">
|
||||||
<text>{{item.title}}</text>
|
<text>{{item.title}}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -11,7 +11,7 @@
|
|||||||
<view class="entrustTop-btn" @click="seekClick">立即购买</view>
|
<view class="entrustTop-btn" @click="seekClick">立即购买</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="entrustCont">
|
<view class="entrustCont">
|
||||||
<block v-if="title == '民事诉讼'">
|
<block v-if="type === 0">
|
||||||
<view class="entrustCivil">
|
<view class="entrustCivil">
|
||||||
<view class="entrustCivil-top">
|
<view class="entrustCivil-top">
|
||||||
<view class="entrustCivil-top-name">民事诉讼阶段:</view>
|
<view class="entrustCivil-top-name">民事诉讼阶段:</view>
|
||||||
@@ -29,7 +29,7 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</block>
|
</block>
|
||||||
<block v-else-if="title == '刑事辩护'">
|
<block v-else-if="type === 1">
|
||||||
<view class="entrustBrief">
|
<view class="entrustBrief">
|
||||||
<view class="entrustBrief-title">
|
<view class="entrustBrief-title">
|
||||||
<image class="entrustBrief-title-img" src="https://cdn.douhuofalv.com/images/2023/04/18/4d57907913a7d9ca5f3c7417421c894d.png" mode="aspectFill"></image>
|
<image class="entrustBrief-title-img" src="https://cdn.douhuofalv.com/images/2023/04/18/4d57907913a7d9ca5f3c7417421c894d.png" mode="aspectFill"></image>
|
||||||
@@ -46,7 +46,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<image class="entrustBrief-text" src="https://cdn.douhuofalv.com/images/2023/04/18/e0dbc0ce562b479b9ff3ad3820971612.png" mode="widthFix"></image>
|
<image class="entrustBrief-text" src="https://cdn.douhuofalv.com/images/2023/04/18/e0dbc0ce562b479b9ff3ad3820971612.png" mode="widthFix"></image>
|
||||||
</block>
|
</block>
|
||||||
<block v-else-if="title == '行政诉讼'">
|
<block v-else-if="type === 2">
|
||||||
<view class="entrustPolitics">
|
<view class="entrustPolitics">
|
||||||
<view class="entrustPolitics-item">
|
<view class="entrustPolitics-item">
|
||||||
<view class="entrustPolitics-back">
|
<view class="entrustPolitics-back">
|
||||||
@@ -97,7 +97,7 @@
|
|||||||
export default {
|
export default {
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
title : '',
|
type : '', // 案件类型
|
||||||
entrustId : '',
|
entrustId : '',
|
||||||
sonArr : [], // 民事子分类
|
sonArr : [], // 民事子分类
|
||||||
entrustData: '', // 案件委托详情
|
entrustData: '', // 案件委托详情
|
||||||
@@ -117,15 +117,11 @@
|
|||||||
this.entrustArr = res
|
this.entrustArr = res
|
||||||
if(this.entrustId == '') {
|
if(this.entrustId == '') {
|
||||||
this.entrustId = res[0].entrust_id
|
this.entrustId = res[0].entrust_id
|
||||||
this.title = res[0].title
|
this.type = res[0].type.value
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获取-案件委托-详情
|
// 获取-案件委托-详情
|
||||||
this.yearInfo();
|
this.yearInfo();
|
||||||
if(this.title == '民事诉讼') {
|
if(this.type === 0) this.yearSon();
|
||||||
// 获取-案件委托子分类
|
|
||||||
this.yearSon();
|
|
||||||
}
|
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: err.message,
|
title: err.message,
|
||||||
@@ -148,7 +144,9 @@
|
|||||||
|
|
||||||
// 获取-案件委托子分类
|
// 获取-案件委托子分类
|
||||||
yearSon(){
|
yearSon(){
|
||||||
entrustSon({parent_id: this.entrustId}).then(res => {
|
entrustSon({
|
||||||
|
parent_id: this.entrustId
|
||||||
|
}).then(res => {
|
||||||
this.sonArr = res
|
this.sonArr = res
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
@@ -159,25 +157,21 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
// 顶级
|
// 顶级
|
||||||
tabClick(id, title) {
|
tabClick(id, type) {
|
||||||
this.entrustId = id
|
this.entrustId = id
|
||||||
this.title = title
|
this.type = type
|
||||||
if(title == '民事诉讼') {
|
if(type === 0) this.yearSon();
|
||||||
// 获取-案件委托子分类
|
|
||||||
this.yearSon();
|
|
||||||
}
|
|
||||||
|
|
||||||
// 获取-案件委托-详情
|
// 获取-案件委托-详情
|
||||||
this.yearInfo();
|
this.yearInfo();
|
||||||
},
|
},
|
||||||
|
|
||||||
// 立即咨询
|
// 立即咨询
|
||||||
seekClick() {
|
seekClick() {
|
||||||
if(this.title == '民事诉讼') {
|
if(this.type === 0) {
|
||||||
this.$Router.push({name: 'EntrustCivil', params: {entrustId: this.entrustId}})
|
this.$Router.push({name: 'EntrustCivil', params: { entrustId: this.entrustId, title: '民事诉讼'}})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.$Router.push({name: 'EntrustWrite', params: {entrustId: this.entrustId}})
|
this.$Router.push({name: 'EntrustWrite', params: {entrustId: this.entrustId, title: this.type == 1 ? '刑事辩护': '行政诉讼'}})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -201,9 +195,10 @@
|
|||||||
flex: 3;
|
flex: 3;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin-top: 20rpx;
|
margin-top: 20rpx;
|
||||||
|
font-size: 30rpx;
|
||||||
text {
|
text {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
color: #000p;
|
color: #000;
|
||||||
background-image: white;
|
background-image: white;
|
||||||
height: 64rpx;
|
height: 64rpx;
|
||||||
line-height: 64rpx;
|
line-height: 64rpx;
|
||||||
@@ -301,7 +296,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
.entrustPolitics {
|
.entrustPolitics {
|
||||||
margin-bottom: 40rpx;
|
|
||||||
display: flex;
|
display: flex;
|
||||||
.entrustPolitics-item {
|
.entrustPolitics-item {
|
||||||
flex: 2;
|
flex: 2;
|
||||||
|
|||||||
@@ -161,6 +161,11 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
uni.showLoading({
|
||||||
|
title: '加载中...',
|
||||||
|
mask : true
|
||||||
|
})
|
||||||
|
|
||||||
// 案件委托子分类
|
// 案件委托子分类
|
||||||
this.yearSon();
|
this.yearSon();
|
||||||
|
|
||||||
@@ -204,13 +209,15 @@
|
|||||||
this.childrenArr = newChildren
|
this.childrenArr = newChildren
|
||||||
this.entrustId = newChildren[this.childrenValue].value
|
this.entrustId = newChildren[this.childrenValue].value
|
||||||
|
|
||||||
// // 获取综法咨询-详情
|
// 获取综法咨询-详情
|
||||||
this.getBusiness();
|
this.getBusiness();
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: err.message,
|
title: err.message,
|
||||||
icon : 'none'
|
icon : 'none'
|
||||||
})
|
})
|
||||||
|
}).finally(() => {
|
||||||
|
uni.hideLoading()
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -360,7 +367,6 @@
|
|||||||
.content {
|
.content {
|
||||||
background-color: #111e4b;
|
background-color: #111e4b;
|
||||||
width: 100vw;
|
width: 100vw;
|
||||||
height: 100%;
|
|
||||||
overflow-y: scroll;
|
overflow-y: scroll;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,10 +19,20 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
<!-- 单输入框 -->
|
<!-- 单输入框 -->
|
||||||
<view class="idcardAdd-block-write" v-if="item.type === 'price' || item.type === 'number' || item.type === 'text' || item.type === 'password' || item.type === 'mobile' || item.type === 'day'">
|
<view class="idcardAdd-block-write" v-if="item.type === 'text'">
|
||||||
<mouldInput class="idcardAdd-input" :blur-value="item.value" :input-type="item.type" :input-title="item.title" :input-key="item.key" @onValue="($event) => {item.value = $event}"></mouldInput>
|
<input class="idcardAdd-input" type="text" v-model="item.value" :placeholder="'请输入' + item.title" />
|
||||||
|
</view>
|
||||||
|
<view class="idcardAdd-block-write" v-if="item.type === 'number' || item.type === 'mobile' || item.type === 'day'">
|
||||||
|
<input class="idcardAdd-input" type="number" v-model="item.value" :placeholder="'请输入' + item.title" />
|
||||||
|
</view>
|
||||||
|
<!-- 价格输入框 -->
|
||||||
|
<view class="idcardAdd-block-write" v-if="item.type === 'price'">
|
||||||
|
<input class="idcardAdd-input" type="digit" v-model="item.value" :placeholder="'请输入' + item.title" />
|
||||||
|
</view>
|
||||||
|
<!-- 密码输入框 -->
|
||||||
|
<view class="idcardAdd-block-write" v-if="item.type === 'password'">
|
||||||
|
<input class="idcardAdd-input" type="safe-password" v-model="item.value" :placeholder="'请输入' + item.title" />
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
|
||||||
<!-- 下拉框 -->
|
<!-- 下拉框 -->
|
||||||
<view class="idcardAdd-block-write" v-if="item.type === 'select'">
|
<view class="idcardAdd-block-write" v-if="item.type === 'select'">
|
||||||
@@ -90,27 +100,7 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="idcardBtn">
|
<view class="idcardBtn">
|
||||||
<button class="idcardBtn-go" type="default" @click="onSubmit" :disabled="disabled">{{disabled ? '数据正在提交中' : '确认提交'}}</button>
|
<button class="idcardBtn-go" type="default" @click="onSubmit">确认提交</button>
|
||||||
</view>
|
|
||||||
|
|
||||||
<!-- 打款凭证弹出 -->
|
|
||||||
<view class="voucherBack" :class="{active : voucherState}"></view>
|
|
||||||
<view class="voucherPop" :class="{active : voucherState}">
|
|
||||||
<view class="tipsWhite">
|
|
||||||
<image class="voucherPop-img" src="https://douhuo-storage.oss-cn-beijing.aliyuncs.com/images/2023/04/17/f4a3c45fe9aa7db143a362fc5b13b31d.png" mode="widthFix"></image>
|
|
||||||
<view class="voucherPop-title">
|
|
||||||
<view class="voucherPop-name">支付提示</view>
|
|
||||||
<view class="voucherPop-text">抱歉,此订单不支持线上支付,请上传打款凭证</view>
|
|
||||||
<view class="voucherPop-btn">
|
|
||||||
<view class="voucherPop-go" @click="cancelPay">
|
|
||||||
暂不支付
|
|
||||||
</view>
|
|
||||||
<view class="voucherPop-go voucherPop-up" @click="clickOpen">
|
|
||||||
上传凭证
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
</view>
|
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
@@ -134,10 +124,10 @@
|
|||||||
// 目前所在地
|
// 目前所在地
|
||||||
address : {},
|
address : {},
|
||||||
|
|
||||||
disabled : false,
|
|
||||||
orderId : '', // 订单 ID
|
orderId : '', // 订单 ID
|
||||||
orderType : '', // 订单类型
|
orderType : '', // 订单类型
|
||||||
voucherState : false, // 上传凭证弹出
|
voucherState : false, // 上传凭证弹出
|
||||||
|
price : '0.00', // 价格
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
@@ -145,6 +135,10 @@
|
|||||||
title: '加载中...',
|
title: '加载中...',
|
||||||
mask : true
|
mask : true
|
||||||
})
|
})
|
||||||
|
// 设置标题
|
||||||
|
uni.setNavigationBarTitle({
|
||||||
|
title: '案件委托-' + this.$Route.query.title
|
||||||
|
})
|
||||||
|
|
||||||
// 获取综法咨询-详情
|
// 获取综法咨询-详情
|
||||||
this.getBusiness();
|
this.getBusiness();
|
||||||
@@ -176,8 +170,8 @@
|
|||||||
// 综法咨询-详情
|
// 综法咨询-详情
|
||||||
getBusiness(){
|
getBusiness(){
|
||||||
entrustInfo(this.$Route.query.entrustId).then(res => {
|
entrustInfo(this.$Route.query.entrustId).then(res => {
|
||||||
let froms = res.params
|
let { price, params } = res
|
||||||
froms.map(val => {
|
params.map(val => {
|
||||||
if(val.type === 'checkbox'){
|
if(val.type === 'checkbox'){
|
||||||
val.value = []
|
val.value = []
|
||||||
}else if(val.type === 'select'){
|
}else if(val.type === 'select'){
|
||||||
@@ -186,12 +180,15 @@
|
|||||||
val.value = ""
|
val.value = ""
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
this.paramsArr = froms
|
this.price = price
|
||||||
|
this.paramsArr = params
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: err.message,
|
title: err.message,
|
||||||
icon : 'none'
|
icon : 'none'
|
||||||
})
|
})
|
||||||
|
}).finally(() => {
|
||||||
|
uni.hideLoading()
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -243,11 +240,10 @@
|
|||||||
entrustPost(this.$Route.query.entrustId, {
|
entrustPost(this.$Route.query.entrustId, {
|
||||||
data: dataArr,
|
data: dataArr,
|
||||||
type: 'self',
|
type: 'self',
|
||||||
channel: 'h5',
|
channel: 'App',
|
||||||
user_id: ''
|
user_id: ''
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
this.disabled = true
|
this.expressSheet(res.entrust_order_id, res.order_type, res.can)
|
||||||
this.expressSheet(res.entrust_order_id, res.order_type, res.can, res.price )
|
|
||||||
}).catch( err => {
|
}).catch( err => {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: err.message,
|
title: err.message,
|
||||||
@@ -257,51 +253,46 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
// 选择支付方式
|
// 选择支付方式
|
||||||
expressSheet(id, type, can, price) {
|
expressSheet(id, type, can) {
|
||||||
this.orderId = id
|
this.orderId = id
|
||||||
this.orderType = type
|
this.orderType = type
|
||||||
|
|
||||||
|
// 仅支持线下打款
|
||||||
|
if(!can.online){
|
||||||
|
this.onToBankPay()
|
||||||
|
return
|
||||||
|
}
|
||||||
|
// 选择线上、下支付方式
|
||||||
uni.showActionSheet({
|
uni.showActionSheet({
|
||||||
itemList: ['线上支付', '线下支付'],
|
itemList: ['线上支付', '线下支付'],
|
||||||
success: sheetRes => {
|
success: sheetRes => {
|
||||||
if(sheetRes.tapIndex == 0){
|
if(sheetRes.tapIndex == 0){
|
||||||
if(can.online) {
|
this.$Router.replace({
|
||||||
this.$Router.replace({name: 'FeePay', params: {orderId: id, orderType: type, price: price, payForm: 'entrust'}})
|
name: 'Pay',
|
||||||
|
params: {
|
||||||
|
paytype : 'synthesize',
|
||||||
|
orderId : id,
|
||||||
|
orderType : type.replace(/\\/g, '-')
|
||||||
|
},
|
||||||
|
})
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
this.voucherState = true
|
this.onToBankPay()
|
||||||
} else if (sheetRes.tapIndex == 1) {
|
|
||||||
this.$Router.replace({name: 'VoucherOpen', params: {orderId: id, orderType: type}})
|
|
||||||
}
|
|
||||||
},
|
|
||||||
fail: sheetFail => {
|
|
||||||
uni.showToast({
|
|
||||||
title: '取消支付',
|
|
||||||
icon : 'none'
|
|
||||||
})
|
|
||||||
setTimeout(()=>{
|
|
||||||
this.$Router.replace({name: 'ExpandOrder'})
|
|
||||||
},3000)
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
|
||||||
|
|
||||||
// 取消支付
|
},
|
||||||
cancelPay() {
|
// 去线下打款
|
||||||
this.voucherState = false
|
onToBankPay(){
|
||||||
uni.showToast({
|
this.$Router.replace({
|
||||||
title: '取消支付',
|
name: 'BankPay',
|
||||||
icon : 'none'
|
params: {
|
||||||
|
orderId : this.orderId,
|
||||||
|
orderType : this.orderType.replace(/\\/g, '-'),
|
||||||
|
price : this.price
|
||||||
|
},
|
||||||
})
|
})
|
||||||
setTimeout(()=>{
|
}
|
||||||
this.$Router.replace({name: 'ExpandOrder'})
|
|
||||||
},3000)
|
|
||||||
},
|
|
||||||
|
|
||||||
// 上传凭证
|
|
||||||
clickOpen() {
|
|
||||||
this.voucherState = false
|
|
||||||
this.$Router.replace({name: 'VoucherOpen', params: {orderId: this.orderId, orderType: this.orderType}})
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
@@ -38,18 +38,15 @@
|
|||||||
<image class="shapeWhite-back" src="https://cdn.douhuofalv.com/images/2023/04/17/705af638ddaed151ce5bc5ead85f604d.png" mode="widthFix"></image>
|
<image class="shapeWhite-back" src="https://cdn.douhuofalv.com/images/2023/04/17/705af638ddaed151ce5bc5ead85f604d.png" mode="widthFix"></image>
|
||||||
</view>
|
</view>
|
||||||
<view class="btn">
|
<view class="btn">
|
||||||
<view class="btn-go" :class="{'hide': item.service_order != null && item.service_order.can.pay_status === 2}" @click="onBtn(index)">
|
<view class="btn-go" :class="{'hide': item.button_status === 3}" @click="onBtn(index)">
|
||||||
<block v-if="item.is_open && item.service_order === null">
|
<text v-if="item.button_status === 0">立即购买</text>
|
||||||
<text>{{item.is_open ? '立即续费' : '立即开通'}}</text>
|
<text v-if="item.button_status === 1">立即续费</text>
|
||||||
</block>
|
<text v-if="item.button_status === 2">等待支付</text>
|
||||||
<block v-else>
|
<text v-if="item.button_status === 3">打款审核中</text>
|
||||||
<text v-if="item.service_order.can.pay_status === 1">{{item.is_open ? '立即续费' : '立即开通' }}</text>
|
<text v-if="item.button_status === 4">打款被驳回</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>
|
</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>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -75,8 +72,6 @@
|
|||||||
type: 1
|
type: 1
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
this.synthesisArr = res
|
this.synthesisArr = res
|
||||||
|
|
||||||
console.log(res)
|
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: err.message,
|
title: err.message,
|
||||||
@@ -87,21 +82,17 @@
|
|||||||
// 点击开通按钮
|
// 点击开通按钮
|
||||||
onBtn(index){
|
onBtn(index){
|
||||||
let obj = this.synthesisArr[index]
|
let obj = this.synthesisArr[index]
|
||||||
if(obj.service_order === null){
|
|
||||||
this.onOpenPAY(obj.synthesis_service_id)
|
console.log(obj)
|
||||||
return
|
|
||||||
}
|
switch (obj.button_status){
|
||||||
switch (obj.service_order.can.pay_status){
|
case 3:
|
||||||
case 1:
|
|
||||||
this.onOpenPAY(obj.synthesis_service_id)
|
|
||||||
break;
|
|
||||||
case 2:
|
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: '打款凭证审核中,请耐心等待',
|
title: '打款凭证审核中,请耐心等待',
|
||||||
icon : 'none'
|
icon : 'none'
|
||||||
})
|
})
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 4:
|
||||||
uni.showModal({
|
uni.showModal({
|
||||||
title : '审核被驳回',
|
title : '审核被驳回',
|
||||||
content : '驳回原因:' + obj.service_order.offline_pays.remark,
|
content : '驳回原因:' + obj.service_order.offline_pays.remark,
|
||||||
@@ -122,16 +113,15 @@
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
break;
|
break;
|
||||||
}
|
default:
|
||||||
},
|
|
||||||
// 填写支付信息
|
|
||||||
onOpenPAY(serveId){
|
|
||||||
this.$Router.push({
|
this.$Router.push({
|
||||||
name: 'PersonWrite',
|
name: 'PersonWrite',
|
||||||
params: {
|
params: {
|
||||||
serveId
|
serveId: obj.synthesis_service_id
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -39,7 +39,6 @@
|
|||||||
// 案件委托-列表
|
// 案件委托-列表
|
||||||
yearServe(){
|
yearServe(){
|
||||||
expandsList().then(res => {
|
expandsList().then(res => {
|
||||||
console.log(res)
|
|
||||||
this.entrustArr = res
|
this.entrustArr = res
|
||||||
}).catch(err => {
|
}).catch(err => {
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
|
|||||||
Reference in New Issue
Block a user