This commit is contained in:
2023-08-30 23:15:41 +08:00
parent d88f92a893
commit 135bcc71ee
13 changed files with 368 additions and 55 deletions

View File

@@ -8,7 +8,7 @@
<!-- <view class="flex ai-c">
<view class="car_item mr10" v-for="(item,index) of carTypeList" :key="index" @tap="chooseCar(item.value)" :class="item.value===tCar?'checked_car':'unchecked_car'">{{item.label}}</view>
</view> -->
<view class="flex p14lr p20tb bc-fff mt10" style="border-bottom: 1rpx solid #DDDCDC;;"
<view class="flex p14lr p20tb bc-fff mb10" style="border-radius: 10rpx;"
v-for="(item,index) of videoList" :key="index" @tap="toOperateDetail(item.videoId)">
<view class="pic relative" style="overflow: hidden;">
<image class="pic" mode="widthFix" :src="item.videoUrl+'?x-oss-process=video/snapshot,t_0,f_jpg'"></image>
@@ -32,6 +32,7 @@
export default {
data(){
return{
type:'2',
subject:'1',
tCar:0,
categoryList:[{
@@ -40,22 +41,18 @@
name:'自动挡C2'
}],
allVideoList:[],
videoList:[{
label:"111"
},{
label:'222'
},{
label:'333'
},{
label:'444'
}]
videoList:[]
}
},
onLoad(op){
if(op.subject){
this.subject=op.subject
this.getDiverType()
}
if(op.type){
this.type=op.type
}
console.log(this.type);
this.getDiverType()
},
methods:{
formateTime(time) {
@@ -87,7 +84,7 @@
"carTypeId": storage.get('carType') || '1001',
"subject": String(this.subject),
"driveType": this.categoryList[this.tCar].configItemCode,
"type": "2"
"type": this.type
}).then(resp => {
if(resp.code==='0000'){
this.videoList=resp.data[0]?resp.data[0].videoList:[]
@@ -150,7 +147,7 @@
width: 300rpx;
height: 169rpx;
background: #00B74F;
border-radius: 8rpx;
border-radius: 10rpx;
}
.play_btn_2 {
width: 65rpx;

View File

@@ -84,7 +84,7 @@
<view style="width: 220rpx;">
<view v-if="type==='practice'" style="width: 220rpx;height: 80rpx;"></view>
<view v-else-if="type=='exam'" class="btn" style="text-align: center;" @tap="submitPaper">
<u-count-down ref="countDown_1" :time=" 1*60*60 * 1000" format="HH:mm:ss" @change="timeChange"></u-count-down>
<u-count-down ref="countDown_1" :time=" timeCount" format="HH:mm:ss" @change="timeChange"></u-count-down>
<text>交卷</text>
</view>
</view>
@@ -135,7 +135,7 @@
<view class="cor-333">未答题数</view>
</view>
<view class="text-center">
<u-count-down ref="countDown_3" class="balckColor" :time="1*60*60 * 1000" format="HH:mm:ss"></u-count-down>
<u-count-down ref="countDown_3" class="balckColor" :time="timeCount" format="HH:mm:ss"></u-count-down>
<view>剩余时间</view>
</view>
<view class="text-center">
@@ -164,7 +164,7 @@
<view style="width: 220rpx;">
<view v-if="type==='practice'" style="width: 220rpx;height: 80rpx;"></view>
<view v-else-if="type=='exam'" class="btn" style="text-align: center;" @tap="submitPaper">
<u-count-down ref="countDown_2" :time="1 * 60 * 60 * 1000" format="HH:mm:ss"></u-count-down>
<u-count-down ref="countDown_2" :time="timeCount" format="HH:mm:ss"></u-count-down>
<text>交卷</text>
</view>
</view>
@@ -308,6 +308,10 @@ export default {
}else{
return false
}
},
timeCount() {
const time=this.subject == '1' ? 60 * 60 * 1000 : 45 * 60 * 1000
return time
}
},
methods: {

View File

@@ -44,6 +44,9 @@
import errorIcon from "../../static/image/practice/error_icon.png"
import newRulesIcon from "../../static/image/practice/newRules_icon.png"
import neverWriteIcon from "../../static/image/practice/neverWrite_icon.png"
import danxuanIcon from "../../static/image/index/danxuan.png"
import panduanIcon from "../../static/image/index/panduan.png"
import tupianIcon from "../../static/image/index/tupian.png"
import {
querySysConfigList,
querySpecialNum
@@ -72,19 +75,19 @@
subTitle:'392题',
isNew:0,
isError:0,
image:newRulesIcon
image:danxuanIcon
},{
title:'判断题',
subTitle:'392题',
isNew:0,
isError:0,
image:errorIcon
image:panduanIcon
},{
title:'图片题',
subTitle:'392题',
isNew:0,
isError:0,
image:neverWriteIcon
image:tupianIcon
}],
testCenterList:[],
subject:'1'
@@ -122,19 +125,19 @@
subTitle:resp.data.radioQuestionNum+'题',
isNew:0,
isError:0,
image:newRulesIcon
image:danxuanIcon
},{
title:'判断题',
subTitle:resp.data.judgeQuestionNum+'题',
isNew:0,
isError:0,
image:errorIcon
image:panduanIcon
},{
title:'图片题',
subTitle:resp.data.imageQuestionNum+'题',
isNew:0,
isError:0,
image:neverWriteIcon
image:tupianIcon
}]
}else{
this.list=[{
@@ -154,7 +157,7 @@
subTitle:resp.data.radioQuestionNum+'题',
isNew:0,
isError:0,
image:newRulesIcon
image:danxuanIcon
},{
title:'多选题',
subTitle:resp.data.multipleChoiceQuestionNum+'题',
@@ -166,13 +169,13 @@
subTitle:resp.data.judgeQuestionNum+'题',
isNew:0,
isError:0,
image:errorIcon
image:panduanIcon
},{
title:'图片题',
subTitle:resp.data.imageQuestionNum+'题',
isNew:0,
isError:0,
image:neverWriteIcon
image:tupianIcon
}]
}