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;