个人单,企业年费调整
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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view class="content">
|
||||
<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>
|
||||
</view>
|
||||
</view>
|
||||
@@ -11,7 +11,7 @@
|
||||
<view class="entrustTop-btn" @click="seekClick">立即购买</view>
|
||||
</view>
|
||||
<view class="entrustCont">
|
||||
<block v-if="title == '民事诉讼'">
|
||||
<block v-if="type === 0">
|
||||
<view class="entrustCivil">
|
||||
<view class="entrustCivil-top">
|
||||
<view class="entrustCivil-top-name">民事诉讼阶段:</view>
|
||||
@@ -29,7 +29,7 @@
|
||||
</view>
|
||||
</view>
|
||||
</block>
|
||||
<block v-else-if="title == '刑事辩护'">
|
||||
<block v-else-if="type === 1">
|
||||
<view class="entrustBrief">
|
||||
<view class="entrustBrief-title">
|
||||
<image class="entrustBrief-title-img" src="https://cdn.douhuofalv.com/images/2023/04/18/4d57907913a7d9ca5f3c7417421c894d.png" mode="aspectFill"></image>
|
||||
@@ -46,7 +46,7 @@
|
||||
</view>
|
||||
<image class="entrustBrief-text" src="https://cdn.douhuofalv.com/images/2023/04/18/e0dbc0ce562b479b9ff3ad3820971612.png" mode="widthFix"></image>
|
||||
</block>
|
||||
<block v-else-if="title == '行政诉讼'">
|
||||
<block v-else-if="type === 2">
|
||||
<view class="entrustPolitics">
|
||||
<view class="entrustPolitics-item">
|
||||
<view class="entrustPolitics-back">
|
||||
@@ -78,7 +78,7 @@
|
||||
<text>2</text>行政不作为
|
||||
</view>
|
||||
<view class="entrustPolitics-item-list">
|
||||
<text>3</text>征收补偿 等
|
||||
<text>3</text>征收补偿等
|
||||
</view>
|
||||
</view>
|
||||
<image class="entrustPolitics-item-logo" src="https://cdn.douhuofalv.com/images/2023/04/18/f7804d7c91c2389dd62ce10c19e26bec.png" mode="widthFix"></image>
|
||||
@@ -97,7 +97,7 @@
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
title : '',
|
||||
type : '', // 案件类型
|
||||
entrustId : '',
|
||||
sonArr : [], // 民事子分类
|
||||
entrustData: '', // 案件委托详情
|
||||
@@ -117,15 +117,11 @@
|
||||
this.entrustArr = res
|
||||
if(this.entrustId == '') {
|
||||
this.entrustId = res[0].entrust_id
|
||||
this.title = res[0].title
|
||||
this.type = res[0].type.value
|
||||
}
|
||||
|
||||
// 获取-案件委托-详情
|
||||
this.yearInfo();
|
||||
if(this.title == '民事诉讼') {
|
||||
// 获取-案件委托子分类
|
||||
this.yearSon();
|
||||
}
|
||||
if(this.type === 0) this.yearSon();
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
@@ -148,7 +144,9 @@
|
||||
|
||||
// 获取-案件委托子分类
|
||||
yearSon(){
|
||||
entrustSon({parent_id: this.entrustId}).then(res => {
|
||||
entrustSon({
|
||||
parent_id: this.entrustId
|
||||
}).then(res => {
|
||||
this.sonArr = res
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
@@ -159,25 +157,21 @@
|
||||
},
|
||||
|
||||
// 顶级
|
||||
tabClick(id, title) {
|
||||
tabClick(id, type) {
|
||||
this.entrustId = id
|
||||
this.title = title
|
||||
if(title == '民事诉讼') {
|
||||
// 获取-案件委托子分类
|
||||
this.yearSon();
|
||||
}
|
||||
|
||||
this.type = type
|
||||
if(type === 0) this.yearSon();
|
||||
// 获取-案件委托-详情
|
||||
this.yearInfo();
|
||||
},
|
||||
|
||||
// 立即咨询
|
||||
seekClick() {
|
||||
if(this.title == '民事诉讼') {
|
||||
this.$Router.push({name: 'EntrustCivil', params: {entrustId: this.entrustId}})
|
||||
if(this.type === 0) {
|
||||
this.$Router.push({name: 'EntrustCivil', params: { entrustId: this.entrustId, title: '民事诉讼'}})
|
||||
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;
|
||||
text-align: center;
|
||||
margin-top: 20rpx;
|
||||
font-size: 30rpx;
|
||||
text {
|
||||
display: inline-block;
|
||||
color: #000p;
|
||||
color: #000;
|
||||
background-image: white;
|
||||
height: 64rpx;
|
||||
line-height: 64rpx;
|
||||
@@ -301,7 +296,6 @@
|
||||
}
|
||||
}
|
||||
.entrustPolitics {
|
||||
margin-bottom: 40rpx;
|
||||
display: flex;
|
||||
.entrustPolitics-item {
|
||||
flex: 2;
|
||||
|
||||
@@ -161,6 +161,11 @@
|
||||
}
|
||||
},
|
||||
created() {
|
||||
uni.showLoading({
|
||||
title: '加载中...',
|
||||
mask : true
|
||||
})
|
||||
|
||||
// 案件委托子分类
|
||||
this.yearSon();
|
||||
|
||||
@@ -204,13 +209,15 @@
|
||||
this.childrenArr = newChildren
|
||||
this.entrustId = newChildren[this.childrenValue].value
|
||||
|
||||
// // 获取综法咨询-详情
|
||||
// 获取综法咨询-详情
|
||||
this.getBusiness();
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
icon : 'none'
|
||||
})
|
||||
}).finally(() => {
|
||||
uni.hideLoading()
|
||||
})
|
||||
},
|
||||
|
||||
@@ -360,7 +367,6 @@
|
||||
.content {
|
||||
background-color: #111e4b;
|
||||
width: 100vw;
|
||||
height: 100%;
|
||||
overflow-y: scroll;
|
||||
position: fixed;
|
||||
}
|
||||
|
||||
@@ -19,10 +19,20 @@
|
||||
</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'">
|
||||
<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>
|
||||
<view class="idcardAdd-block-write" v-if="item.type === 'text'">
|
||||
<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 class="idcardAdd-block-write" v-if="item.type === 'select'">
|
||||
@@ -90,27 +100,7 @@
|
||||
</view>
|
||||
</view>
|
||||
<view class="idcardBtn">
|
||||
<button class="idcardBtn-go" type="default" @click="onSubmit" :disabled="disabled">{{disabled ? '数据正在提交中' : '确认提交'}}</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>
|
||||
<button class="idcardBtn-go" type="default" @click="onSubmit">确认提交</button>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -134,10 +124,10 @@
|
||||
// 目前所在地
|
||||
address : {},
|
||||
|
||||
disabled : false,
|
||||
orderId : '', // 订单 ID
|
||||
orderType : '', // 订单类型
|
||||
voucherState : false, // 上传凭证弹出
|
||||
price : '0.00', // 价格
|
||||
}
|
||||
},
|
||||
created() {
|
||||
@@ -145,6 +135,10 @@
|
||||
title: '加载中...',
|
||||
mask : true
|
||||
})
|
||||
// 设置标题
|
||||
uni.setNavigationBarTitle({
|
||||
title: '案件委托-' + this.$Route.query.title
|
||||
})
|
||||
|
||||
// 获取综法咨询-详情
|
||||
this.getBusiness();
|
||||
@@ -176,8 +170,8 @@
|
||||
// 综法咨询-详情
|
||||
getBusiness(){
|
||||
entrustInfo(this.$Route.query.entrustId).then(res => {
|
||||
let froms = res.params
|
||||
froms.map(val => {
|
||||
let { price, params } = res
|
||||
params.map(val => {
|
||||
if(val.type === 'checkbox'){
|
||||
val.value = []
|
||||
}else if(val.type === 'select'){
|
||||
@@ -186,12 +180,15 @@
|
||||
val.value = ""
|
||||
}
|
||||
})
|
||||
this.paramsArr = froms
|
||||
this.price = price
|
||||
this.paramsArr = params
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
icon : 'none'
|
||||
})
|
||||
}).finally(() => {
|
||||
uni.hideLoading()
|
||||
})
|
||||
},
|
||||
|
||||
@@ -243,11 +240,10 @@
|
||||
entrustPost(this.$Route.query.entrustId, {
|
||||
data: dataArr,
|
||||
type: 'self',
|
||||
channel: 'h5',
|
||||
channel: 'App',
|
||||
user_id: ''
|
||||
}).then(res => {
|
||||
this.disabled = true
|
||||
this.expressSheet(res.entrust_order_id, res.order_type, res.can, res.price )
|
||||
this.expressSheet(res.entrust_order_id, res.order_type, res.can)
|
||||
}).catch( err => {
|
||||
uni.showToast({
|
||||
title: err.message,
|
||||
@@ -257,51 +253,46 @@
|
||||
},
|
||||
|
||||
// 选择支付方式
|
||||
expressSheet(id, type, can, price) {
|
||||
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) {
|
||||
if(can.online) {
|
||||
this.$Router.replace({name: 'FeePay', params: {orderId: id, orderType: type, price: price, payForm: 'entrust'}})
|
||||
return
|
||||
}
|
||||
this.voucherState = true
|
||||
} else if (sheetRes.tapIndex == 1) {
|
||||
this.$Router.replace({name: 'VoucherOpen', params: {orderId: id, orderType: type}})
|
||||
if(sheetRes.tapIndex == 0){
|
||||
this.$Router.replace({
|
||||
name: 'Pay',
|
||||
params: {
|
||||
paytype : 'synthesize',
|
||||
orderId : id,
|
||||
orderType : type.replace(/\\/g, '-')
|
||||
},
|
||||
})
|
||||
return
|
||||
}
|
||||
},
|
||||
fail: sheetFail => {
|
||||
uni.showToast({
|
||||
title: '取消支付',
|
||||
icon : 'none'
|
||||
})
|
||||
setTimeout(()=>{
|
||||
this.$Router.replace({name: 'ExpandOrder'})
|
||||
},3000)
|
||||
}
|
||||
this.onToBankPay()
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
// 取消支付
|
||||
cancelPay() {
|
||||
this.voucherState = false
|
||||
uni.showToast({
|
||||
title: '取消支付',
|
||||
icon : 'none'
|
||||
},
|
||||
// 去线下打款
|
||||
onToBankPay(){
|
||||
this.$Router.replace({
|
||||
name: 'BankPay',
|
||||
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>
|
||||
|
||||
@@ -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
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,7 +39,6 @@
|
||||
// 案件委托-列表
|
||||
yearServe(){
|
||||
expandsList().then(res => {
|
||||
console.log(res)
|
||||
this.entrustArr = res
|
||||
}).catch(err => {
|
||||
uni.showToast({
|
||||
|
||||
Reference in New Issue
Block a user