个人单,企业年费调整
This commit is contained in:
@@ -17,12 +17,22 @@
|
||||
<text v-if="item.is_required == 1">*</text>{{item.title}}
|
||||
</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'">
|
||||
<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>
|
||||
|
||||
Reference in New Issue
Block a user