|
@@ -35,10 +35,12 @@
|
|
|
</div>
|
|
|
<div>
|
|
|
<p>做题数量</p>
|
|
|
- <div v-for="val in 6" :key="val">
|
|
|
- <div>{{val}}</div>
|
|
|
+ <div class="sle-num-box">
|
|
|
+ <div :class="activeNum == val ? 'actvie' : ''" v-for="val in numList" :key="val"
|
|
|
+ @click="handelNum(val)">{{ val
|
|
|
+ }}</div>
|
|
|
</div>
|
|
|
- <div>开始做题</div>
|
|
|
+ <div @click="beginExam">开始做题</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="goods-menu" v-else>
|
|
@@ -276,6 +278,8 @@ export default {
|
|
|
wrongTotal: 0,
|
|
|
needOpen: true, //是否需要打开第一章节
|
|
|
recordItem: null,
|
|
|
+ numList: [5, 10, 15, 20, 50, 100],
|
|
|
+ activeNum: 5
|
|
|
};
|
|
|
},
|
|
|
mounted() { },
|
|
@@ -309,7 +313,7 @@ export default {
|
|
|
this.orderGoodsId = data.orderGoodsId;
|
|
|
this.goodsId = data.goodsId;
|
|
|
this.activeName = "0";
|
|
|
- // await this.getExamType(data.goodsId);
|
|
|
+ await this.getExamType(data.goodsId);
|
|
|
if (this.recordItem) {
|
|
|
this.getRecordItem();
|
|
|
} else {
|
|
@@ -486,7 +490,22 @@ export default {
|
|
|
query,
|
|
|
});
|
|
|
},
|
|
|
-
|
|
|
+ beginExam() {
|
|
|
+ this.$router.push({
|
|
|
+ path: "/bank-exam/" + this.goodsId,
|
|
|
+ query: {
|
|
|
+ orderGoodsId: this.orderGoodsId,
|
|
|
+ number: this.activeNum,
|
|
|
+ moduleId: 0,
|
|
|
+ chapterId: 0,
|
|
|
+ examId: 0
|
|
|
+ },
|
|
|
+ });
|
|
|
+ },
|
|
|
+ handelNum(val) {
|
|
|
+ this.activeNum = val
|
|
|
+ // console.log(val, this.goodsId, this.orderGoodsId)
|
|
|
+ },
|
|
|
/**
|
|
|
* 获取课程目录
|
|
|
*/
|
|
@@ -875,22 +894,43 @@ export default {
|
|
|
|
|
|
&__body {
|
|
|
.left-box {
|
|
|
+
|
|
|
// float: left;
|
|
|
// width: 768px;
|
|
|
- .day-box{
|
|
|
+ .day-box {
|
|
|
height: 100px;
|
|
|
display: flex;
|
|
|
}
|
|
|
+
|
|
|
+ .sle-num-box {
|
|
|
+ display: flex;
|
|
|
+ margin-bottom: 30px;
|
|
|
+
|
|
|
+ div {
|
|
|
+ width: 50px;
|
|
|
+ border: 1px solid #ccc;
|
|
|
+ text-align: center;
|
|
|
+ line-height: 40px;
|
|
|
+ cursor: pointer;
|
|
|
+ }
|
|
|
+
|
|
|
+ .actvie {
|
|
|
+ background: #3f8dfd;
|
|
|
+ color: #fff;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
/deep/ {
|
|
|
- .el-calendar-day{
|
|
|
+ .el-calendar-day {
|
|
|
height: 60px;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
/deep/.el-tabs__item {
|
|
|
height: 98px;
|
|
|
line-height: 98px;
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
.goods-menu {
|
|
|
// padding: 0 16px 16px;
|
|
|
// border-radius: 10px;
|