调整创建订单,实名认证,签约

This commit is contained in:
唐明明
2022-12-29 18:53:36 +08:00
parent 3870865322
commit 2a851d47b2
19 changed files with 862 additions and 539 deletions

View File

@@ -35,7 +35,7 @@
:key="formIndex"
v-if="item.subVal[formItem.pre_key] == formItem.pre_value"
>
<block v-if="formItem.type == 'price' || formItem.type == 'number'">
<block v-if="formItem.type == 'price' || formItem.type == 'number' || formItem.type == 'day'">
<label class="block-item-label"><text v-if="formItem.is_required == 1">*</text>{{formItem.title}}</label>
<view class="inputs-flex">
<input
@@ -45,7 +45,7 @@
:placeholder="'请输入' + formItem.title"
>
<text class="unit" v-if="formItem.type == 'price'"></text>
<text class="unit" v-if="formItem.type == 'number'"></text>
<text class="unit" v-if="formItem.type == 'number' || formItem.type == 'day'"></text>
</view>
</block>
<block v-if="formItem.type == 'radio'">
@@ -66,6 +66,15 @@
</label>
</checkbox-group>
</block>
<block v-if="formItem.type == 'select'">
<label class="block-item-label"><text v-if="formItem.is_required == 1">*</text>{{formItem.title}}</label>
<picker :range="formItem.options" :value="item.subVal[formItem.key]" @change="item.subVal[formItem.key] = $event.detail.value">
<view class="institution-picker">
<view class="institution-picker-text nowrap" :class="{'institution-picker-gray': item.subVal[formItem.key] == 0}">{{formItem.options[item.subVal[formItem.key]]}}</view>
<u-icon size="12" color="#999" name="arrow-down-fill"></u-icon>
</view>
</picker>
</block>
<block v-if="formItem.type == 'textarea'">
<label class="block-item-label"><text v-if="formItem.is_required == 1">*</text>{{formItem.title}}</label>
<textarea
@@ -156,7 +165,13 @@
}
})
froms.map(val => {
fromsVal[val.key] = val.type === 'checkbox' ? [] : ''
if(val.type === 'checkbox'){
fromsVal[val.key] = []
}else if(val.type === 'select'){
fromsVal[val.key] = 0
}else {
fromsVal[val.key] = ''
}
})
// 新增卡片
this.serviceArr.push({
@@ -197,7 +212,13 @@
})
// 提交字段
params.map(val => {
paramsVal[val.key] = val.type === 'checkbox' ? [] : ''
if(val.type === 'checkbox'){
paramsVal[val.key] = []
}else if(val.type === 'select'){
paramsVal[val.key] = 0
}else {
paramsVal[val.key] = ''
}
})
// 更新数据
newObj.allInstitution = institutionVal;
@@ -222,11 +243,15 @@
let newObj = old
let params = allInstitution[value].params
let paramsVal = {}
params.map(val => {
paramsVal[val.key] = val.type === 'checkbox' ? [] : ''
if(val.type === 'checkbox'){
paramsVal[val.key] = []
}else if(val.type === 'select'){
paramsVal[val.key] = 0
}else {
paramsVal[val.key] = ''
}
})
newObj.fromIndex = value;
newObj.froms = params;
newObj.subVal = {
@@ -352,6 +377,9 @@
&-text{
width: calc( 100% - 60rpx );
}
&-gray{
color: gray;
}
}
// input
.inputs-flex{