Commit b0510cf0 authored by Mac's avatar Mac

修改一些样式

parent f2b6bc8d
......@@ -202,6 +202,21 @@
color: #FFF;
margin: 20px 0;
}
.status-blue {
color: #00acf9;
}
.status-green {
color: #00df9f;
}
.status-black {
color: #111111;
}
.status-red {
color: #ff3816;
}
</style>
<template>
<view class="studyindex">
......@@ -227,7 +242,7 @@
<view style="margin-left: 5px;">80 </view>
<image style="width: 17px;height: 16px;margin-left: 10px;" src="../../static/image/xingxing.png"></image>
</view>
<view style="font-size: 11px;color: #4C50E7;">所有单词</view>
<view style="font-size: 11px;color: #4C50E7;" @click="gourl()">所有单词</view>
</view>
<view class="row" style="justify-content: space-around;">
<view class="box_tb_c">
......@@ -257,7 +272,7 @@
<view >课程回顾 </view>
<view style="font-size: 10px;color: #999999;">(最近7天课程)</view>
</view>
<view style="font-size: 11px;color: #4C50E7;">所有课程</view>
<view style="font-size: 11px;color: #4C50E7;" @click="gourl()">所有课程</view>
</view>
<view class="box_review_date row" style="margin-top: 40rpx;" v-if='InfoData.Review'>
<view v-for="(x,y) in InfoData.Review" :key='y'>
......@@ -292,7 +307,7 @@
<view class="row" style="color: #111111;font-size: 23px;font-weight: bold;">
考试
</view>
<view style="font-size: 14px;color: #4C50E7;">更多试题</view>
<view style="font-size: 14px;color: #4C50E7;" @click="gourlkaoshilist()">更多试题</view>
</view>
</view>
......@@ -337,8 +352,14 @@
<div class='examination-boxb' >
<view class="examination-box-c-item">
<text class="item_o">考试状态</text>
<text class="item_t" style="font-size: 14px;">{{x.ExamStatusStr}}</text>
<text class="" style="opacity: 0;height: 34rpx;">.</text>
<text style="font-size: 14px;font-weight: bold" :class="{
'status-blue': x.ExamStatusStr == '未开始',
'status-green': x.ExamStatusStr == '已开始',
'status-black': x.ExamStatusStr == '完成',
'status-red': x.ExamStatusStr == '缺考',
}">{{x.ExamStatusStr}}</text>
</view>
</div>
<view class="shuxian">
......@@ -374,7 +395,7 @@
</view>
</view>
<view class="examination-box-btnbox">
<view class="examination-btn">
<view class="examination-btn" @click="gourlkaoshixq(x)">
开始测试
</view>
</view>
......@@ -499,6 +520,35 @@
}
},
gourl(){//学习列表
uni.navigateTo({
url:'/pages/study/courseList'
})
},
gourlkaoshilist(){
let indexData = uni.getStorageSync("indexData")
uni.navigateTo({
url:`/pages/exam/examPaperList?Id=${indexData.GuestId}`
})
},
jumpPage(url) {
uni.navigateTo({
url: url,
});
},
gourlkaoshixq(item){
let indexData = uni.getStorageSync("indexData")
//ExamStatus 1未开始 2已开始 3已考试 4缺考 5已阅卷
if (item.ExamStatus == 5) {
this.jumpPage(
`/pages/exam/examScore?GuestId=${indexData.GuestId}&&PaperId=${item.PaperId}&&Id=${item.Id}&&Exam_Student_Id=${item.Exam_Student_Id}&&ExamStatus=${item.ExamStatus}`
);
} else {
this.jumpPage(
`/pages/exam/examPaper?GuestId=${indexData.GuestId}&&PaperId=${item.PaperId}&&Id=${item.Id}&&Exam_Student_Id=${item.Exam_Student_Id}&&ExamStatus=${item.ExamStatus}`
);
}
},
getdate(x,type){//获取月和天
let day = '',month='';
if(type==1){
......
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