Commit f346e72e authored by Facius's avatar Facius

improvement: 首页跳转

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