|
@@ -8,7 +8,7 @@
|
|
<!-- meul-box -->
|
|
<!-- meul-box -->
|
|
<view class="index-meul-box">
|
|
<view class="index-meul-box">
|
|
<view v-for="(item ,index) in menuList" :index="index" :key="index"
|
|
<view v-for="(item ,index) in menuList" :index="index" :key="index"
|
|
- @change="gridClick(index)" class="lli-grid-item">
|
|
|
|
|
|
+ @click="gridClick(index)" class="lli-grid-item">
|
|
<image class="grid-item-image" :src="item.url" mode="aspectFill" />
|
|
<image class="grid-item-image" :src="item.url" mode="aspectFill" />
|
|
<text class="grid-item-text">{{item.text}}</text>
|
|
<text class="grid-item-text">{{item.text}}</text>
|
|
<view v-if="item.badge" class="grid-dot">{{item.badge}}</view>
|
|
<view v-if="item.badge" class="grid-dot">{{item.badge}}</view>
|
|
@@ -16,7 +16,7 @@
|
|
</view>
|
|
</view>
|
|
|
|
|
|
<!-- 课程list -->
|
|
<!-- 课程list -->
|
|
- <view class="lli-index-title-box">
|
|
|
|
|
|
+ <!-- <view class="lli-index-title-box">
|
|
<text class="index-title">最热课程</text>
|
|
<text class="index-title">最热课程</text>
|
|
<text class="index-sub-title" @click="developClick">查看更多 ></text>
|
|
<text class="index-sub-title" @click="developClick">查看更多 ></text>
|
|
</view>
|
|
</view>
|
|
@@ -32,10 +32,10 @@
|
|
</view>
|
|
</view>
|
|
<text class="lli-card-name">{{item.name}}</text>
|
|
<text class="lli-card-name">{{item.name}}</text>
|
|
</uni-card>
|
|
</uni-card>
|
|
- </view>
|
|
|
|
|
|
+ </view> -->
|
|
<!-- 考试list -->
|
|
<!-- 考试list -->
|
|
<view class="lli-index-title-box">
|
|
<view class="lli-index-title-box">
|
|
- <text class="index-title">最热考试</text>
|
|
|
|
|
|
+ <text class="index-title">最新考试</text>
|
|
<text class="index-sub-title" @click="handleCheckMoreKs">查看更多 ></text>
|
|
<text class="index-sub-title" @click="handleCheckMoreKs">查看更多 ></text>
|
|
</view>
|
|
</view>
|
|
<view class="lli-card-box">
|
|
<view class="lli-card-box">
|
|
@@ -86,13 +86,14 @@
|
|
|
|
|
|
const statusCodeKc = ref(['未开始', '可以学习', '已学完', '学习中', '已结束']);
|
|
const statusCodeKc = ref(['未开始', '可以学习', '已学完', '学习中', '已结束']);
|
|
const statusCodeKs = ref(['未开始', '可以考试', '再次考试', '考试中', '已结束', '未报名', '报名审核中', '审核未通过', '等待人工评分']);
|
|
const statusCodeKs = ref(['未开始', '可以考试', '再次考试', '考试中', '已结束', '未报名', '报名审核中', '审核未通过', '等待人工评分']);
|
|
- let menuList = ref([{
|
|
|
|
|
|
+ let menuList = ref([
|
|
|
|
+ {
|
|
url: '',
|
|
url: '',
|
|
- text: '我的课程',
|
|
|
|
|
|
+ text: '我的考试',
|
|
},
|
|
},
|
|
{
|
|
{
|
|
url: '',
|
|
url: '',
|
|
- text: '我的考试',
|
|
|
|
|
|
+ text: '我的成绩',
|
|
},
|
|
},
|
|
{
|
|
{
|
|
url: '',
|
|
url: '',
|
|
@@ -160,25 +161,22 @@
|
|
});
|
|
});
|
|
};
|
|
};
|
|
|
|
|
|
- function gridClick(e) {
|
|
|
|
- let {
|
|
|
|
- index
|
|
|
|
- } = e.detail;
|
|
|
|
|
|
+ function gridClick(index) {
|
|
switch (index) {
|
|
switch (index) {
|
|
case 0:
|
|
case 0:
|
|
/* uni.switchTab({
|
|
/* uni.switchTab({
|
|
url: '/pages/course/index'
|
|
url: '/pages/course/index'
|
|
}); */
|
|
}); */
|
|
- uni.showToast({
|
|
|
|
- icon: 'none',
|
|
|
|
- title: '开发中,敬请期侍!',
|
|
|
|
- })
|
|
|
|
- return false
|
|
|
|
|
|
+ uni.switchTab({
|
|
|
|
+ url: '/pages/exam/index'
|
|
|
|
+ });
|
|
break;
|
|
break;
|
|
|
|
+
|
|
case 1:
|
|
case 1:
|
|
uni.switchTab({
|
|
uni.switchTab({
|
|
- url: '/pages/exam/index'
|
|
|
|
|
|
+ url: '/pages/score/index'
|
|
});
|
|
});
|
|
|
|
+ return false
|
|
break;
|
|
break;
|
|
case 2:
|
|
case 2:
|
|
uni.showToast({
|
|
uni.showToast({
|