Commit f346e72e authored by Facius's avatar Facius

improvement: 首页跳转

parent c1a3d32f
......@@ -72,7 +72,10 @@
<u-icon class="arrow-right" name="arrow-right"></u-icon>
</view>
</view>
<SubjectStatistics :info="info"></SubjectStatistics>
<SubjectStatistics
:info="info"
@answer="handleAnswer"
></SubjectStatistics>
</view>
</view>
</template>
......@@ -131,35 +134,35 @@ export default {
subItems() {
return [
{
pathName: 'warehouse/index',
pathName: 'pages/xxx/xxx',
title: '专项练习',
value: '',
icon: this.imageUrl,
imageStyle: 'width:60rpx;height:60rpx',
},
{
pathName: 'warehouse/spare',
pathName: 'pages/xxx/xxx',
title: '我的错题',
value: '',
icon: this.imageUrl,
imageStyle: 'width:60rpx;height:60rpx',
},
{
pathName: 'warehouse/return',
pathName: 'pages/xxx/xxx',
title: '收藏的题',
value: '',
icon: this.imageUrl,
imageStyle: 'width:60rpx;height:60rpx',
},
{
pathName: 'warehouse/records',
pathName: 'pages/xxx/xxx',
title: '我的成绩',
value: '',
icon: this.imageUrl,
imageStyle: 'width:60rpx;height:60rpx',
},
{
pathName: 'warehouse/records',
pathName: 'pages/xxx/xxx',
title: '搜索试题',
value: '',
icon: this.imageUrl,
......@@ -180,10 +183,24 @@ export default {
},
methods: {
handleSelect() {
// if (this.vuex_token) {
var str = this.selected ? 'selectedList' : 'addExam'
this.$u.route({
url: 'pages/learn/' + str,
})
// } else {
// this.$u.route({ url: 'pages/login/index' })
// }
},
handleAnswer() {},
handleClick(path) {
// if (this.vuex_token) {
this.$u.route({
url: path,
})
// } else {
// this.$u.route({ url: 'pages/login/index' })
// }
},
},
}
......
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