Commit c644d949 authored by Facius's avatar Facius

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

parent af4c98c5
......@@ -91,9 +91,14 @@
@submit="handleClickSubmit"
>
<view v-for="(value, key) in selected" :key="key" class="pop-content">
<view :class="['pop-content-text', { last: key == thirdKey }]">{{
value.label
}}</view>
<view :class="['pop-content-text', { last: key == thirdKey }]"
>{{ value.label
}}<text v-if="key != secondKey"
>({{
key == firstKey ? selectedTypeText : currentProvince.label
}})</text
></view
>
<u-icon v-if="key != thirdKey" name="arrow-downward"></u-icon>
</view>
</PopView>
......@@ -162,16 +167,20 @@ export default {
buttonDisabled() {
return !(this.currentProvince.label && this.selectedTypeId)
},
selectedType() {
for (var item of this.types) {
if (item.selected == true) {
return true
}
}
return false
typeTexts() {
return { '1': '初训', '2': '复训' }
},
selectedTypeText() {
return this.typeTexts[this.selectedTypeId]
},
thirdKey() {
return key3 || key2 || key1
return key3
},
firstKey() {
return key1
},
secondKey() {
return key2
},
selectedTypeId() {
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