Commit 2640a093 authored by Facius's avatar Facius

improvement: 我的页面未选题库状态

parent 3b5381ed
......@@ -16,7 +16,7 @@
</view>
</view>
<view class="pop-content">
<view>您已获得1次答题体验机会</view>
<view>您已获得免费体验10道题机会</view>
<view class="label-view">每日一练,轻松完成课程练习</view>
</view>
<u-button
......
......@@ -83,7 +83,7 @@ export default {
return {
today: '今日做题',
total: '累计做题',
days: '累计天数',
days: '打卡天数',
}
},
meiriyilianImage() {
......
......@@ -80,7 +80,7 @@
</view>
</view>
<view class="experience-pop-view">
<ExperiencePop :visible.sync="visible" />
<ExperiencePop :visible.sync="visible" @click="handleClickExperience" />
</view>
<ToastPop :visible.sync="show" :type="type" @click="handleClickToast" />
<view>
......@@ -151,13 +151,15 @@ export default {
info() {
return {
id: this.selected.id,
cardId:
this.detail.questionWarehouse && this.detail.questionWarehouse.cardId,
provinceName: this.provinceName,
experience: this.selected.state,
pass: this.selected.pass,
number: this.selected.number,
days: this.detail.totalDayCount,
today: this.detail.todayCount,
total: this.detail.totalCount,
days: this.detail.totalDayCount || 0,
today: this.detail.todayCount || 0,
total: this.detail.totalCount || 0,
// selected: this.selected,
}
},
......@@ -247,14 +249,10 @@ export default {
},
handleSelect() {
// if (this.vuex_token) {
var str = this.selected ? 'selectedList' : 'addExam'
var str = this.selected.id ? 'selectedList' : 'selectCategory'
this.$u.route({
url: 'pages/learn/' + str,
})
// } else {
// this.$u.route({ url: 'pages/login/index' })
// }
},
// 每日一练
handleAnswer() {
......@@ -289,11 +287,26 @@ export default {
})
}
},
handleClickExperience() {
this.selected.state = false
// 体验
// ...
},
handleClickExam(index) {
if (index == 0) {
// 点击了全部试题
if (!this.info.cardId && this.info.experience) {
this.selected.state = false
// 体验
// ...
} else {
// 正常做题
// ...
}
} else {
// 点击了模拟考试
this.$u.route({
url: 'pages/learn/beginAnswer',
})
......
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