Commit 548ff459 authored by 罗超's avatar 罗超

1

parent 0aa61bcb
......@@ -144,7 +144,9 @@
@getAfterTopic="getAfterTopic()"
@getBeforeTopic="getBeforeTopic()"
@answerChange="getAnswerChange($event, index)"
v-if="item.QuestionTypeKey === 'noun-explanation' && index === changeIndex"
v-if="
item.QuestionTypeKey === 'noun-explanation' && index === changeIndex
"
/>
<!-- 论述题 -->
<easyQuestion
......@@ -156,7 +158,9 @@
@getAfterTopic="getAfterTopic()"
@getBeforeTopic="getBeforeTopic()"
@answerChange="getAnswerChange($event, index)"
v-if="item.QuestionTypeKey === 'essay-question' && index === changeIndex"
v-if="
item.QuestionTypeKey === 'essay-question' && index === changeIndex
"
/>
<!-- 计算题 -->
<Calculation
......@@ -180,7 +184,9 @@
@getAfterTopic="getAfterTopic()"
@getBeforeTopic="getBeforeTopic()"
@answerChange="getAnswerChange($event, index)"
v-if="item.QuestionTypeKey === 'entry-problem' && index === changeIndex"
v-if="
item.QuestionTypeKey === 'entry-problem' && index === changeIndex
"
/>
<!-- 口语题 -->
<Spoken
......@@ -228,7 +234,9 @@
@getAfterTopic="getAfterTopic()"
@getBeforeTopic="getBeforeTopic()"
@answerChange="getAnswerChange($event, index)"
v-if="item.QuestionTypeKey === 'data-question' && index === changeIndex"
v-if="
item.QuestionTypeKey === 'data-question' && index === changeIndex
"
/>
<!-- 公用选择题 -->
<SharingChoose
......@@ -240,7 +248,9 @@
@getAfterTopic="getAfterTopic()"
@getBeforeTopic="getBeforeTopic()"
@answerChange="getAnswerChange($event, index)"
v-if="item.QuestionTypeKey === 'sharing-choose' && index === changeIndex"
v-if="
item.QuestionTypeKey === 'sharing-choose' && index === changeIndex
"
/>
<!-- 排序题 -->
<SortingProblem
......@@ -252,7 +262,9 @@
@getAfterTopic="getAfterTopic()"
@getBeforeTopic="getBeforeTopic()"
@answerChange="getAnswerChange($event, index)"
v-if="item.QuestionTypeKey === 'sorting-problem' && index === changeIndex"
v-if="
item.QuestionTypeKey === 'sorting-problem' && index === changeIndex
"
/>
<!-- 连线题待完善 -->
<Connect
......@@ -341,7 +353,7 @@ export default {
let Gid = uni.getStorageSync("userInfo").Id;
let { refs } = getCurrentInstance();
let data = reactive({
time: 2 * 60 * 60 * 1000,
time: 1 * 60 * 60 * 1000,
statusBarHeight: 0,
// msg: { GuestId: Gid, PaperId: 6, Id: 3 },
msg: { GuestId: Gid, PaperId: 5, PublishId: 1 },
......@@ -367,6 +379,7 @@ export default {
let res = await getPaperDetail(data.msg);
if (res) {
data.peaperDetail = res.Data;
data.time = res.Data.Publish.ExamTimes * 60 * 1000;
}
},
//往后翻
......@@ -401,6 +414,7 @@ export default {
},
};
onMounted(() => {
methods.start();
getSystemInfo((res) => {
data.statusBarHeight = res.statusBarHeight;
});
......@@ -411,6 +425,9 @@ export default {
};
},
onLoad(options) {
this.msg.PaperId = options.PaperId;
this.msg.PublishId = options.Id;
console.log(414, this.msg);
this.getPaperDetail();
},
};
......
......@@ -93,16 +93,20 @@
</van-cell-group>
<view class="mytest flex">
<view
v-for="(item, index) in testList"
v-for="(item, index) in indexData.paperList"
:key="index"
class="test-item no_shrink"
:style="{ 'background-image': `url(${item.bgimg})` }"
@click="jumpPage('/pages/exam/examPaper')"
:style="{ 'background-image': `url(${item.PicList[0]})` }"
@click="
jumpPage(
`/pages/exam/examPaper?PaperId=${item.PaperId}&&Id=${item.Id}`
)
"
>
<view class="testName">
{{ item.testName }}
{{ item.PaperName }}
</view>
<view class="testTime"> 考试时间:{{ item.testTime }} </view>
<view class="testTime"> 考试时间:{{ item.ExamStartTime }} </view>
<view class="teacherInfo-bg"></view>
<view class="teacherInfo flex flex_between_center">
<view class="flex flex_start_center">
......@@ -113,10 +117,18 @@
fit="cover"
src="https://img.yzcdn.cn/vant/cat.jpeg"
/>
<view class="teacherName">{{ item.teacherName }}</view>
<view class="teacherName">{{ indexData.TeacherName }}</view>
</view>
<view class="test-status">
{{ item.status }}
<view
class="test-status"
:class="{
'status-black': item.ExamStatus == 1,
'status-red': item.ExamStatus == 2,
'status-green': item.ExamStatus == 3,
'status-blue': item.ExamStatus == 4,
}"
>
{{ item.ExamStatusStr }}
</view>
</view>
</view>
......@@ -192,7 +204,7 @@ export default {
desc: "李琴",
img: "https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/educationStu/icon6.png",
bgcolor: "#FFE7E6",
jumpUrl: "/pages/course/askForLeaveList",
jumpUrl: "",
},
],
testList: [
......@@ -437,11 +449,14 @@ export default {
box-sizing: border-box;
border-radius: 20rpx;
overflow: hidden;
background-color: #333333;
/* background-color: #333333; */
box-shadow: 0rpx 10rpx 30rpx 0rpx rgba(36, 36, 36, 0.2);
margin-right: 30rpx;
background-repeat: no-repeat;
background-position: center;
background-size: cover;
background-origin: border-box;
background-clip: border-box;
padding-top: 60rpx;
padding-left: 44rpx;
position: relative;
......@@ -492,6 +507,18 @@ export default {
font-size: 24rpx;
font-family: PingFang SC;
font-weight: bold;
/* color: #00acf9; */
}
.status-blue {
color: #00acf9;
}
.status-green {
color: #00df9f;
}
.status-black {
color: #111111;
}
.status-red {
color: #ff3816;
}
</style>
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