fanfan 7 months ago
parent c8d16c4190
commit b92717cfdd
  1. 16
      pages/merchantTutorial/tutorial.vue

@ -17,7 +17,8 @@
bar-width="55" bar-height="6" :current="current" @change="change">
</u-tabs>
<view class="center-box">
<view class="list" v-if="courseList.length>0" v-for="(a,i) in courseList" :key="i" @click="onLookCord(a.video_url.external_url)">
<view class="list" v-if="courseList.length>0" v-for="(a,i) in courseList" :key="i"
@click="onLookCord(a.video_url.external_url)">
<image :src="a.image_url?a.image_url.external_url:''" mode="heightFix" class="img"></image>
<view class="infor">
<view class="title">
@ -76,7 +77,7 @@
onLookCord(url) {
if (url) {
this.show = true;
let videoContext = wx.createVideoContext('myVideo')
let videoContext = wx.createVideoContext('myVideo')
videoContext.seek(0);
this.video_url = url
} else {
@ -91,7 +92,7 @@
data
} = await api.courseType();
if (status == 200) {
this.courseTypeList = data.courseTypes?data.courseTypes:[]
this.courseTypeList = data.courseTypes ? data.courseTypes : []
this.getCourseList()
} else {
this.courseTypeList = []
@ -120,7 +121,11 @@
}
}
</script>
<style>
page {
background: #fff;
}
</style>
<style lang="scss" scoped>
.warp {
display: flex;
@ -134,6 +139,7 @@
}
.park {
height: 100%;
width: 100%;
background: rgba(255, 255, 255, 1);
@ -185,7 +191,7 @@
display: flex;
align-items: center;
padding: 30rpx 20rpx;
margin-bottom: 55rpx;
margin-bottom: 50rpx;
.look {
right: 0;

Loading…
Cancel
Save