Commit c644d949 authored by Facius's avatar Facius

fix: 【ID1001298】 【小程序-首页-选择题库确认弹窗】:缺少备考类型和报考区域

parent af4c98c5
...@@ -91,9 +91,14 @@ ...@@ -91,9 +91,14 @@
@submit="handleClickSubmit" @submit="handleClickSubmit"
> >
<view v-for="(value, key) in selected" :key="key" class="pop-content"> <view v-for="(value, key) in selected" :key="key" class="pop-content">
<view :class="['pop-content-text', { last: key == thirdKey }]">{{ <view :class="['pop-content-text', { last: key == thirdKey }]"
value.label >{{ value.label
}}</view> }}<text v-if="key != secondKey"
>({{
key == firstKey ? selectedTypeText : currentProvince.label
}})</text
></view
>
<u-icon v-if="key != thirdKey" name="arrow-downward"></u-icon> <u-icon v-if="key != thirdKey" name="arrow-downward"></u-icon>
</view> </view>
</PopView> </PopView>
...@@ -162,16 +167,20 @@ export default { ...@@ -162,16 +167,20 @@ export default {
buttonDisabled() { buttonDisabled() {
return !(this.currentProvince.label && this.selectedTypeId) return !(this.currentProvince.label && this.selectedTypeId)
}, },
selectedType() { typeTexts() {
for (var item of this.types) { return { '1': '初训', '2': '复训' }
if (item.selected == true) { },
return true selectedTypeText() {
} return this.typeTexts[this.selectedTypeId]
}
return false
}, },
thirdKey() { thirdKey() {
return key3 || key2 || key1 return key3
},
firstKey() {
return key1
},
secondKey() {
return key2
}, },
selectedTypeId() { selectedTypeId() {
for (var item of this.types) { for (var item of this.types) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment