Commit 96d3e002 authored by linwenqing's avatar linwenqing

Merge branch 'dev-v1.0.0' of https://git.banshouhui.com/wuzhenzhe/study into dev-v1.0.0

parents 5a54bf75 6b8b2485
......@@ -91,6 +91,7 @@
@submit="handleClickSubmit"
>
<view v-for="(value, key) in selected" :key="key" class="pop-content">
<u-icon v-if="key != firstKey" name="arrow-downward"></u-icon>
<view :class="['pop-content-text', { last: key == thirdKey }]"
>{{ value.label
}}<text v-if="key != secondKey"
......@@ -99,7 +100,6 @@
}})</text
></view
>
<u-icon v-if="key != thirdKey" name="arrow-downward"></u-icon>
</view>
</PopView>
<view>
......@@ -231,16 +231,21 @@ export default {
async getProvinceList(id) {
let res = await this.$u.api.getProvinceList(id)
console.log(res)
this.range = res
},
// 学员增加自己的题库
async addQuestionWarehouse(params) {
let res = await this.$u.api.addQuestionWarehouse({ params })
console.log(res)
this.range = res
this.range = res || []
},
async handleClickSubmit() {
if (this.buttonDisabled) return
if (this.range.length <= 0 || this.range.length == null) {
this.$refs.uToast.show({
title: '该类型和区域没有的题库',
type: 'warning',
duration: 1500,
callback: () => {
this.showPop = false
},
})
return
}
if (this.index == 0) {
this.changeIndex()
}
......
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