Commit 7cc0764b authored by lvtz's avatar lvtz

fix

parents 5e030a0f 74cbcaed
......@@ -136,7 +136,6 @@ App({
},
canEnterSystem (path) {
const visitor = LocalStorage.getItem('visitor');
console.log(visitor, 'visitor');
// 新版本通知
// if (LocalStorage.getItem('versionNotice') != 1 && path != 'src/pages/versionnotice/index') {
// wx.redirectTo({
......
This diff is collapsed.
......@@ -239,7 +239,7 @@
</view>
<view
class="sjd-small-icon-box"
wx:if="{{!audioStorage[audio.src] || !audioStorage[audio.src].play}}"
wx:if="{{(!audioStorage[audio.src] || !audioStorage[audio.src].play) && (!audioStorage[audio.src].isWaiting)}}"
>
</view>
<!-- <view
......@@ -249,10 +249,10 @@
</view> -->
<view
class="sjd-small-icon-box play"
wx:if="{{audioStorage[audio.src] && audioStorage[audio.src].play && (!audioStorage[audio.src].isWaiting || audio.src != actionsPalyvalue)}}"
wx:if="{{audioStorage[audio.src] && audioStorage[audio.src].play && (!audioStorage[audio.src].isWaiting)}}"
>
</view>
<view class="sjd-small-icon-box" style="background: none;" wx:if="{{audioStorage[audio.src].isWaiting && audio.src == actionsPalyvalue}}" >
<view class="sjd-small-icon-box" style="background: none;" wx:if="{{audioStorage[audio.src].isWaiting}}" >
<cssloading size="{{4}}"/>
</view>
<text class="sjd-small-radio-time" wx:if="{{audioStorage[audio.src] && audioStorage[audio.src].play}}">{{audioStorage[audio.src] && filter.voiceTimeFormat(audioStorage[audio.src].currentTime) || filter.voiceTimeFormat(0)}}</text>
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -6,7 +6,7 @@
<view class="sub-title">用于生成学员作品集</view>
</view>
<view class="pic-operate-box">
<view class="pic-item clock-img-item" wx:for="{{imgWorksBox}}" wx:key="{{index}}" wx:if="{{imgWorksBox.length > 0}}">
<view class="pic-item clock-img-item" wx:for="{{imgWorksBox}}" wx:key="index" wx:if="{{imgWorksBox.length > 0}}">
<image class="delicon" wx:if="{{imageUploaded}}" src="{{imageRoot}}2c/common/reddelicon.png?{{imageVersion}}" data-index="{{index}}" bindtap="delimg2"></image>
<image class="clock-img" wx:if="{{item.status == 'fullfilled'}}" src="{{filter.imagify(item.src, 'image/resize,w_320/format,jpg/quality,q_50')}}" mode="aspectFill" data-index="{{index}}" bindtap="prevImg2"></image>
<image class="clock-img" wx:if="{{item.status != 'fullfilled'}}" src="{{imageRoot}}2c/common/imagedefault.png" mode="aspectFill" data-index="{{index}}" bindtap="prevImg2"></image>
......@@ -100,7 +100,7 @@
<text class="word-rate">{{params.content.length}}/900</text>
</view>
<view wx:if="{{imageBox.length > 0}}" style="overflow: hidden;">
<view class="imgandvideobox" wx:for="{{imageBox}}" wx:key="{{index}}" >
<view class="imgandvideobox" wx:for="{{imageBox}}" wx:key="index" >
<view class="clock-video-box" wx:if="{{item.type == 'video'}}">
<image class="media-box-video-item" src="{{imageRoot}}2c/common/videodefault.png" wx:if="{{item.status == 'success'}}" data-video="{{item}}" bindtap="playvideo"></image>
<image class="media-box-video-item" wx:if="{{item.status != 'success'}}" src="{{imageRoot}}2c/common/videodefault.png" ></image>
......@@ -134,16 +134,16 @@
<view class="sjd-small-radio-box mb24" >
<view class="action-mask" wx:if="{{!audioStorage[audioInfo.src] || !audioStorage[audioInfo.src].play}}" data-value="{{audioInfo.src}}" data-duration="{{audioInfo.duration}}" bindtap="playvoice"></view>
<view class="action-mask" wx:if="{{audioStorage[audioInfo.src] && audioStorage[audioInfo.src].play}}" data-value="{{audioInfo.src}}" data-duration="{{audioInfo.duration}}" bindtap="pausevoice"></view>
<view class="sjd-small-icon-box" wx:if="{{!audioStorage[audioInfo.src] || !audioStorage[audioInfo.src].play}}">
<view class="sjd-small-icon-box" wx:if="{{(!audioStorage[audioInfo.src] || !audioStorage[audioInfo.src].play) && (!audioStorage[audioInfo.src].isWaiting)}}">
</view>
<!-- <view class="sjd-small-icon-box play" wx:if="{{audioStorage[audioInfo.src] && audioStorage[audioInfo.src].play}}">
</view> -->
<view
class="sjd-small-icon-box play"
wx:if="{{audioStorage[audioInfo.src] && audioStorage[audioInfo.src].play && (!audioStorage[audioInfo.src].isWaiting || audioInfo.src != actPalyaudioValue)}}"
wx:if="{{audioStorage[audioInfo.src] && audioStorage[audioInfo.src].play && (!audioStorage[audioInfo.src].isWaiting)}}"
>
</view>
<view class="sjd-small-icon-box" style="background: none;" wx:if="{{audioStorage[audioInfo.src].isWaiting && audioInfo.src == actPalyaudioValue}}" >
<view class="sjd-small-icon-box" style="background: none;" wx:if="{{audioStorage[audioInfo.src].isWaiting}}" >
<cssloading size="{{4}}"/>
</view>
<text class="sjd-small-radio-time" wx:if="{{audioStorage[audioInfo.src] && audioStorage[audioInfo.src].play}}">{{audioStorage[audioInfo.src] && filter.voiceTimeFormat(audioStorage[audioInfo.src].currentTime) || filter.voiceTimeFormat(0)}}</text>
......
......@@ -33,7 +33,7 @@ import {
classreviewPOST
} from '../../../service/business/classservice.js';
Page({
mixins: [require('../../../mixins/myMins/audioCallback')],
/**
* 页面的初始数据
*/
......@@ -77,6 +77,7 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
this.innerAudioContext = wx.createInnerAudioContext(); // 当前页面唯一的一个音频容器
const {
sid,
id,
......@@ -87,7 +88,7 @@ Page({
this.setData({
sid,
id,
from,
from: from || '',
rid: rid || '',
scheid: scheid || 0
})
......@@ -294,13 +295,112 @@ Page({
voiceInterval
})
},
playvoice(e) {
const {
value,
duration
} = e.currentTarget.dataset;
this.innerAudioContext.src = audioorigin(value);
this.innerAudioContext.obeyMuteSwitch = false;
this.resetAudiosPlayStatus();
clearInterval(this.data.voiceInterval);
let audioStorage = this.data.audioStorage;
if (!audioStorage[value]) {
audioStorage[value] = {
play: true,
currentTime: 0,
duration
}
} else {
if (audioStorage[value].currentTime == audioStorage[value].duration) {
audioStorage[value].currentTime = 0;
audioStorage[value].play = true;
} else {
audioStorage[value].play = true;
}
}
this.innerAudioContext.seek(audioStorage[value].currentTime)
this.innerAudioContext.play();
this.voiceIntervalPlay(value);
this.setData({
audioStorage,
})
},
pausevoice(e) {
const {
value
} = e.currentTarget.dataset;
let audioStorage = this.data.audioStorage;
audioStorage[value].play = false;
this.setData({
audioStorage,
})
this.innerAudioContext.pause();
clearInterval(this.data.voiceInterval);
},
voiceslide(e) {
const {
value: slide
} = e.detail;
const {
value,
duration
} = e.currentTarget.dataset;
let audioStorage = this.data.audioStorage;
if (!audioStorage[value]) {
audioStorage[value] = {
play: false,
currentTime: slide,
duration
}
} else {
audioStorage[value].currentTime = slide;
}
this.innerAudioContext.seek(slide);
this.setData({
audioStorage,
})
},
slidestart(e) {
const {
value
} = e.currentTarget.dataset;
let audioStorage = this.data.audioStorage;
if (audioStorage[value] && audioStorage[value].play) { // 如果当前是播放状态 则先暂停音乐盒计时器 播放按钮状态不需要改
this.innerAudioContext.pause();
clearInterval(this.data.voiceInterval);
} else { // 如果当前不是播放状态 则该干嘛干嘛
}
},
slideend(e) {
const {
value
} = e.currentTarget.dataset;
let audioStorage = this.data.audioStorage;
if (audioStorage[value] && audioStorage[value].play) { // 如果当前是播放状态 则启用定时器 播放按钮状态不需要改
// clearInterval(this.data.voiceInterval);
this.innerAudioContext.play();
this.voiceIntervalPlay(value);
} else { // 如果当前不是播放状态 则该干嘛干嘛
}
},
resetAudiosPlayStatus() { // 点击一个录音的时候把其他的录音状态改成暂停状态
let audioStorage = this.data.audioStorage;
Object.keys(audioStorage).forEach((key) => {
audioStorage[key].play = false
});
this.setData({
audioStorage,
})
},
delAudio(e) {
const {
value
} = e.detail;
let audioStorage = this.data.audioStorage;
if (audioStorage[value] && audioStorage[value].play) { // 如果当前是播放状态 删除录音的操作要把录音销毁掉
delete audioStorage[value]
let audioInfo = this.data.audioInfo;
if (audioStorage[audioInfo.src] && audioStorage[audioInfo.src].play) { // 如果当前是播放状态 删除录音的操作要把录音销毁掉
delete audioStorage[audioInfo.src]
this.innerAudioContext.pause();
clearInterval(this.data.voiceInterval);
}
......@@ -733,4 +833,4 @@ Page({
})
}
}
})
\ No newline at end of file
})
......@@ -8,7 +8,7 @@
<view class="medie-content" >
<view class="content-box">
<view class="imgandvideobox-wrapper">
<view class="imgandvideobox" wx:for="{{imageBox}}" wx:key="{{index}}" wx:if="{{imageBox.length > 0}}">
<view class="imgandvideobox" wx:for="{{imageBox}}" wx:key="index" wx:if="{{imageBox.length > 0}}">
<view class="clock-video-box" wx:if="{{item.type == 'video'}}">
<image class="media-box-video-item" src="{{imageRoot}}2c/common/videodefault.png" wx:if="{{item.status == 'success'}}" data-video="{{item}}" bindtap="playvideo"></image>
<image class="media-box-video-item" wx:if="{{item.status != 'success'}}" src="{{imageRoot}}2c/common/videodefault.png" ></image>
......@@ -47,14 +47,14 @@
<view class="sjd-small-radio-box mb24" >
<view class="action-mask" wx:if="{{!audioStorage[audioInfo.src] || !audioStorage[audioInfo.src].play}}" data-value="{{audioInfo.src}}" data-duration="{{audioInfo.duration}}" bindtap="playvoice"></view>
<view class="action-mask" wx:if="{{audioStorage[audioInfo.src] && audioStorage[audioInfo.src].play}}" data-value="{{audioInfo.src}}" data-duration="{{audioInfo.duration}}" bindtap="pausevoice"></view>
<view class="sjd-small-icon-box" wx:if="{{!audioStorage[audioInfo.src] || !audioStorage[audioInfo.src].play}}">
<view class="sjd-small-icon-box" wx:if="{{(!audioStorage[audioInfo.src] || !audioStorage[audioInfo.src].play) && (!audioStorage[audioInfo.src].isWaiting)}}">
</view>
<view
class="sjd-small-icon-box play"
wx:if="{{audioStorage[audioInfo.src] && audioStorage[audioInfo.src].play && (!audioStorage[audioInfo.src].isWaiting || audioInfo.src != actPalyaudioValue)}}"
wx:if="{{audioStorage[audioInfo.src] && audioStorage[audioInfo.src].play && (!audioStorage[audioInfo.src].isWaiting)}}"
>
</view>
<view class="sjd-small-icon-box" style="background: none;" wx:if="{{audioStorage[audioInfo.src].isWaiting && audioInfo.src == actPalyaudioValue}}" >
<view class="sjd-small-icon-box" style="background: none;" wx:if="{{audioStorage[audioInfo.src].isWaiting}}" >
<cssloading size="{{4}}"/>
</view>
<text class="sjd-small-radio-time" selectable="false" space="false" decode="false" wx:if="{{audioStorage[audioInfo.src] && audioStorage[audioInfo.src].play}}">{{audioStorage[audioInfo.src] && filter.voiceTimeFormat(audioStorage[audioInfo.src].currentTime) || filter.voiceTimeFormat(0)}}</text>
......
This diff is collapsed.
......@@ -8,7 +8,7 @@
</view>
<view class="week-box">
<scroll-view scroll-x scroll-left="{{scrollLeft}}" class="card-wrapper">
<view class="week-item" bindtap="chooseThisDay" data-item="{{item}}" wx:for="{{monthDays}}" wx:key="{{index}}" wx:if="{{item.month<=monthDays[0].month}}">
<view class="week-item" bindtap="chooseThisDay" data-item="{{item}}" wx:for="{{monthDays}}" wx:key="index" wx:if="{{item.month<=monthDays[0].month}}">
<view class="week">{{item.week}}</view>
<view class="day {{chooseDay.day==item.day?'choose-day':''}}">{{item.day}}</view>
</view>
......
This diff is collapsed.
This diff is collapsed.
......@@ -101,18 +101,18 @@
<text class="sjd-small-radio-time" wx:if="{{!audioStorage[audioitem.src] || !audioStorage[audioitem.src].play}}">{{filter.voiceTimeFormat(audioitem.duration)}}</text>
</view> -->
<view class="sjd-radio-box" >
<view class="play-btn" data-value="{{audioitem.src}}" data-duration="{{audioitem.duration}}" bindtap="playvoice" wx:if="{{!audioStorage[audioitem.src] || !audioStorage[audioitem.src].play}}">
<view class="play-btn" data-value="{{audioitem.src}}" data-duration="{{audioitem.duration}}" bindtap="playvoice" wx:if="{{(!audioStorage[audioitem.src] || !audioStorage[audioitem.src].play) && (!audioStorage[audioitem.src].isWaiting)}}">
<image class="play-btn-icon" src="{{imageRoot}}2b/common/playicon.png?{{imageVersion}}" ></image>
</view>
<!-- <view class="pause-btn" wx:if="{{audioStorage[audioitem.src] && audioStorage[audioitem.src].play}}" data-value="{{audioitem.src}}" bindtap="pausevoice" data-duration="{{audioitem.duration}}">
<image class="pause-btn-icon" src="{{imageRoot}}2b/common/pauseicon.png?{{imageVersion}}" ></image>
</view> -->
<view class="pause-btn load-box" wx:if="{{audioStorage[audioitem.src].isWaiting && audioitem.src == actionsPalyvalue}}" >
<view class="pause-btn load-box" wx:if="{{audioStorage[audioitem.src].isWaiting}}" >
<cssloading size="{{6}}"/>
</view>
<view
class="pause-btn"
wx:if="{{audioStorage[audioitem.src] && audioStorage[audioitem.src].play && (!audioStorage[audioitem.src].isWaiting || audioitem.src != actionsPalyvalue)}}"
wx:if="{{audioStorage[audioitem.src] && audioStorage[audioitem.src].play && (!audioStorage[audioitem.src].isWaiting)}}"
data-value="{{audioitem.src}}"
data-index="{{index}}"
data-duration="{{audioitem.duration}}"
......@@ -265,7 +265,7 @@
</view>
</view>
<view class="clearfix" >
<view class="imgandvideobox" wx:for="{{imageBox}}" wx:key="{{index}}" wx:if="{{imageBox.length > 0}}">
<view class="imgandvideobox" wx:for="{{imageBox}}" wx:key="index" wx:if="{{imageBox.length > 0}}">
<view class="clock-video-box" wx:if="{{item.type == 'video'}}">
<image class="media-box-video-item" src="{{imageRoot}}2c/common/videodefault.png" wx:if="{{item.status == 'success'}}" data-video="{{item}}" bindtap="playvideo"></image>
<image class="media-box-video-item" wx:if="{{item.status != 'success'}}" src="{{imageRoot}}2c/common/videodefault.png" ></image>
......@@ -299,16 +299,16 @@
<view class="sjd-small-radio-box mb24" >
<view class="action-mask" wx:if="{{!audioStorage[audioInfo.src] || !audioStorage[audioInfo.src].play}}" data-value="{{audioInfo.src}}" data-duration="{{audioInfo.duration}}" bindtap="playvoice"></view>
<view class="action-mask" wx:if="{{audioStorage[audioInfo.src] && audioStorage[audioInfo.src].play}}" data-value="{{audioInfo.src}}" data-duration="{{audioInfo.duration}}" bindtap="pausevoice"></view>
<view class="sjd-small-icon-box" wx:if="{{!audioStorage[audioInfo.src] || !audioStorage[audioInfo.src].play}}">
<view class="sjd-small-icon-box" wx:if="{{(!audioStorage[audioInfo.src] || !audioStorage[audioInfo.src].play) && !audioStorage[audioInfo.src].isWaiting}}">
</view>
<!-- <view class="sjd-small-icon-box play" wx:if="{{audioStorage[audioInfo.src] && audioStorage[audioInfo.src].play}}">
</view> -->
<view
class="sjd-small-icon-box play"
wx:if="{{audioStorage[audioInfo.src] && audioStorage[audioInfo.src].play && (!audioStorage[audioInfo.src].isWaiting || audioInfo.src != actPalyaudioValue)}}"
wx:if="{{audioStorage[audioInfo.src] && audioStorage[audioInfo.src].play && (!audioStorage[audioInfo.src].isWaiting)}}"
>
</view>
<view class="sjd-small-icon-box" style="background: none;" wx:if="{{audioStorage[audioInfo.src].isWaiting && audioInfo.src == actPalyaudioValue}}" >
<view class="sjd-small-icon-box" style="background: none;" wx:if="{{audioStorage[audioInfo.src].isWaiting}}" >
<cssloading size="{{4}}"/>
</view>
<text class="sjd-small-radio-time" selectable="false" space="false" decode="false" wx:if="{{audioStorage[audioInfo.src] && audioStorage[audioInfo.src].play}}">{{audioStorage[audioInfo.src] && filter.voiceTimeFormat(audioStorage[audioInfo.src].currentTime) || filter.voiceTimeFormat(0)}}</text>
......@@ -409,16 +409,16 @@
<view class="sjd-small-radio-box mb24" >
<view class="action-mask" wx:if="{{!audioStorage[privateAudioInfo.src] || !audioStorage[audioInprivateAudioInfofo.src].play}}" data-value="{{privateAudioInfo.src}}" data-duration="{{privateAudioInfo.duration}}" bindtap="playvoice"></view>
<view class="action-mask" wx:if="{{audioStorage[privateAudioInfo.src] && audioStorage[privateAudioInfo.src].play}}" data-value="{{privateAudioInfo.src}}" data-duration="{{privateAudioInfo.duration}}" bindtap="pausevoice"></view>
<view class="sjd-small-icon-box" wx:if="{{!audioStorage[privateAudioInfo.src] || !audioStorage[privateAudioInfo.src].play}}">
<view class="sjd-small-icon-box" wx:if="{{(!audioStorage[privateAudioInfo.src] || !audioStorage[privateAudioInfo.src].play) && (!audioStorage[privateAudioInfo.src].isWaiting)}}">
</view>
<!-- <view class="sjd-small-icon-box play" wx:if="{{audioStorage[privateAudioInfo.src] && audioStorage[privateAudioInfo.src].play}}">
</view> -->
<view
class="sjd-small-icon-box play"
wx:if="{{audioStorage[privateAudioInfo.src] && audioStorage[privateAudioInfo.src].play && (!audioStorage[privateAudioInfo.src].isWaiting || privateAudioInfo.src != actPalyaudioValue)}}"
wx:if="{{audioStorage[privateAudioInfo.src] && audioStorage[privateAudioInfo.src].play && (!audioStorage[privateAudioInfo.src].isWaiting)}}"
>
</view>
<view class="sjd-small-icon-box" style="background: none;" wx:if="{{audioStorage[privateAudioInfo.src].isWaiting && privateAudioInfo.src == actPalyaudioValue}}" >
<view class="sjd-small-icon-box" style="background: none;" wx:if="{{audioStorage[privateAudioInfo.src].isWaiting}}" >
<cssloading size="{{4}}"/>
</view>
<text class="sjd-small-radio-time" selectable="false" space="false" decode="false" wx:if="{{audioStorage[privateAudioInfo.src] && audioStorage[privateAudioInfo.src].play}}">{{audioStorage[privateAudioInfo.src] && filter.voiceTimeFormat(audioStorage[privateAudioInfo.src].currentTime) || filter.voiceTimeFormat(0)}}</text>
......
This diff is collapsed.
......@@ -8,7 +8,7 @@
</view>
<view class="clearfix">
<view class="imgandvideobox" wx:for="{{imageBox}}" wx:key="{{index}}" wx:if="{{imageBox.length > 0}}">
<view class="imgandvideobox" wx:for="{{imageBox}}" wx:key="index" wx:if="{{imageBox.length > 0}}">
<view class="clock-video-box" wx:if="{{item.type == 'video'}}">
<image class="media-box-video-item" src="{{imageRoot}}2c/common/videodefault.png" wx:if="{{item.status == 'fullfilled'}}" data-video="{{item}}" bindtap="playvideo"></image>
<image class="media-box-video-item" wx:if="{{item.status != 'fullfilled'}}" src="{{imageRoot}}2c/common/videodefault.png"></image>
......@@ -33,7 +33,7 @@
</view>
</view>
</view>
<view class="clock-radio-box" wx:for="{{audioInfo}}" wx:key="{{index}}">
<view class="clock-radio-box" wx:for="{{audioInfo}}" wx:key="index">
<view class="radio-box" >
<view class="sjd-small-radio-box mb24">
<image class="delicon" data-type="{{item.type}}" data-value="{{item.value}}" data-index="{{index}}" src="{{imageRoot}}2b/common/reddelicon.png?{{imageVersion}}" bindtap="delAudio"></image>
......
......@@ -43,7 +43,6 @@ Page({
}
},
onLoad: function (options) { // Do some initialize when page load.
this.innerAudioContext = wx.createInnerAudioContext(); // 当前页面唯一的一个音频容器
const {
id,
} = options;
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -11,7 +11,7 @@
<view class="info-box">
<view class="name">{{schoolInfo && schoolInfo.title}}</view>
<view class="list-box">
<view class="item" wx:for="{{schoolInfo.categoryName}}" wx:key="{{index}}">{{item.name}}
<view class="item" wx:for="{{schoolInfo.categoryName}}" wx:key="index">{{item.name}}
{{ index+1 == schoolInfo.categoryName.length? '' : '|'}} </view>
</view>
</view>
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -216,8 +216,8 @@
audioStorage="{{audioStorage}}"
bind:slidestart="slidestart"
bind:slideend="slideend"
bind:delvoice="delvoice"
bind:playvideo="playvideo"
bind:delvoice="delvoice"
withmask="{{showWarn}}">
</sjd-media-editor>
<!-- bind:posterloaderr="posterloaderr" -->
......
This diff is collapsed.
......@@ -8,7 +8,7 @@
<view class="medie-content" >
<view class="content-box">
<view class="imgandvideobox-wrapper">
<view class="imgandvideobox" wx:for="{{imageBox}}" wx:key="{{index}}" wx:if="{{imageBox.length > 0}}">
<view class="imgandvideobox" wx:for="{{imageBox}}" wx:key="index" wx:if="{{imageBox.length > 0}}">
<view class="clock-video-box" wx:if="{{item.type == 'video'}}">
<image class="media-box-video-item" src="{{imageRoot}}2c/common/videodefault.png" wx:if="{{item.status == 'success'}}" data-video="{{item}}" bindtap="playvideo"></image>
<image class="media-box-video-item" wx:if="{{item.status != 'success'}}" src="{{imageRoot}}2c/common/videodefault.png" ></image>
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -8,7 +8,7 @@
<view class="medie-content" >
<view class="content-box">
<view class="imgandvideobox-wrapper">
<view class="imgandvideobox" wx:for="{{imageBox}}" wx:key="{{index}}" wx:if="{{imageBox.length > 0}}">
<view class="imgandvideobox" wx:for="{{imageBox}}" wx:key="index" wx:if="{{imageBox.length > 0}}">
<view class="clock-video-box" wx:if="{{item.type == 'video'}}">
<image class="media-box-video-item" src="{{imageRoot}}2c/common/videodefault.png" wx:if="{{item.status == 'success'}}" data-video="{{item}}" bindtap="playvideo"></image>
<image class="media-box-video-item" wx:if="{{item.status != 'success'}}" src="{{imageRoot}}2c/common/videodefault.png" ></image>
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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