Commit e83aec8f authored by wangxuelai's avatar wangxuelai

'c端录音修改'

parent 8ad9aa8b
...@@ -335,7 +335,7 @@ ...@@ -335,7 +335,7 @@
height: 10em; height: 10em;
} }
.load8 .loader { .load8 .loader {
margin: 60px auto; margin: 0 auto;
font-size: 10px; font-size: 10px;
position: relative; position: relative;
text-indent: -9999em; text-indent: -9999em;
......
...@@ -132,15 +132,15 @@ ...@@ -132,15 +132,15 @@
</view> </view>
<view <view
class="sjd-small-icon-box" 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>
<view <view
class="sjd-small-icon-box play" 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>
<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}}"/> <cssloading size="{{4}}"/>
</view> </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> <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>
...@@ -295,15 +295,15 @@ ...@@ -295,15 +295,15 @@
</view> </view>
<view <view
class="sjd-small-icon-box" class="sjd-small-icon-box"
wx:if="{{!audioStorage[filter.jsonParse(clock.review[1].audio).src] || !audioStorage[filter.jsonParse(clock.review[1].audio).src].play}}" wx:if="{{(!audioStorage[filter.jsonParse(clock.review[1].audio).src] || !audioStorage[filter.jsonParse(clock.review[1].audio).src].play) && (!audioStorage[filter.jsonParse(clock.review[1].audio).src].isWaiting)}}"
> >
</view> </view>
<view <view
class="sjd-small-icon-box play" class="sjd-small-icon-box play"
wx:if="{{audioStorage[filter.jsonParse(clock.review[1].audio).src] && audioStorage[filter.jsonParse(clock.review[1].audio).src].play && (!audioStorage[filter.jsonParse(clock.review[1].audio).src].isWaiting || filter.jsonParse(clock.review[1].audio).src != actionsPalyvalue)}}" wx:if="{{audioStorage[filter.jsonParse(clock.review[1].audio).src] && audioStorage[filter.jsonParse(clock.review[1].audio).src].play && (!audioStorage[filter.jsonParse(clock.review[1].audio).src].isWaiting)}}"
> >
</view> </view>
<view class="sjd-small-icon-box" style="background: none;" wx:if="{{audioStorage[filter.jsonParse(clock.review[1].audio).src].isWaiting && filter.jsonParse(clock.review[1].audio).src == actionsPalyvalue}}" > <view class="sjd-small-icon-box" style="background: none;" wx:if="{{audioStorage[filter.jsonParse(clock.review[1].audio).src].isWaiting}}" >
<cssloading size="{{4}}"/> <cssloading size="{{4}}"/>
</view> </view>
<text class="sjd-small-radio-time" wx:if="{{audioStorage[filter.jsonParse(clock.review[1].audio).src] && audioStorage[filter.jsonParse(clock.review[1].audio).src].play}}">{{audioStorage[filter.jsonParse(clock.review[1].audio).src] && filter.voiceTimeFormat(audioStorage[filter.jsonParse(clock.review[1].audio).src].currentTime) || filter.voiceTimeFormat(0)}}</text> <text class="sjd-small-radio-time" wx:if="{{audioStorage[filter.jsonParse(clock.review[1].audio).src] && audioStorage[filter.jsonParse(clock.review[1].audio).src].play}}">{{audioStorage[filter.jsonParse(clock.review[1].audio).src] && filter.voiceTimeFormat(audioStorage[filter.jsonParse(clock.review[1].audio).src].currentTime) || filter.voiceTimeFormat(0)}}</text>
...@@ -313,7 +313,7 @@ ...@@ -313,7 +313,7 @@
</view> </view>
<view class="teacher-commnet-text-box" wx:if="{{clock.review[1].img != '' && filter.jsonParse(clock.review[1].img).length > 0}}"> <view class="teacher-commnet-text-box" wx:if="{{clock.review[1].img != '' && filter.jsonParse(clock.review[1].img).length > 0}}">
<view class="teacher-commemt-video-box" wx:if="{{clock.review[1].img != '' && filter.jsonParse(clock.review[1].img).length > 0}}" > <view class="teacher-commemt-video-box" wx:if="{{clock.review[1].img != '' && filter.jsonParse(clock.review[1].img).length > 0}}" >
<view class="bigimgbox"wx:for="{{filter.jsonParse(clock.review[1].img)}}" wx:for-index="videoindex" wx:for-item="video" wx:key="{{videoindex}}"> <view class="bigimgbox"wx:for="{{filter.jsonParse(clock.review[1].img)}}" wx:for-index="videoindex" wx:for-item="video" wx:key="videoindex">
<view class="imgbox" wx:if="{{video.type == 'image'}}" data-src="{{video.src}}" data-comment="{{comment.video}}" catchtap="preTeacherImg"> <view class="imgbox" wx:if="{{video.type == 'image'}}" data-src="{{video.src}}" data-comment="{{comment.video}}" catchtap="preTeacherImg">
<image class="img" src="{{filter.imagify(video.src, 'image/resize,w_320/format,jpg/quality,q_50')}}" mode="aspectFill" ></image> <image class="img" src="{{filter.imagify(video.src, 'image/resize,w_320/format,jpg/quality,q_50')}}" mode="aspectFill" ></image>
</view> </view>
...@@ -367,10 +367,10 @@ ...@@ -367,10 +367,10 @@
</view> </view>
<view <view
class="sjd-small-icon-box play" class="sjd-small-icon-box play"
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)}}"
> >
</view> </view>
<view class="sjd-small-icon-box" style="background: none;" wx:if="{{audioStorage[audioitem.src].isWaiting && audioitem.src == actionsPalyvalue}}" > <view class="sjd-small-icon-box" style="background: none;" wx:if="{{audioStorage[audioitem.src].isWaiting}}" >
<cssloading size="{{4}}"/> <cssloading size="{{4}}"/>
</view> </view>
<text class="sjd-small-radio-time" wx:if="{{audioStorage[audioitem.src] && audioStorage[audioitem.src].play}}">{{audioStorage[audioitem.src] && filter.voiceTimeFormat(audioStorage[audioitem.src].currentTime) || filter.voiceTimeFormat(0)}}</text> <text class="sjd-small-radio-time" wx:if="{{audioStorage[audioitem.src] && audioStorage[audioitem.src].play}}">{{audioStorage[audioitem.src] && filter.voiceTimeFormat(audioStorage[audioitem.src].currentTime) || filter.voiceTimeFormat(0)}}</text>
...@@ -378,7 +378,7 @@ ...@@ -378,7 +378,7 @@
</view> </view>
</view> </view>
<view class="teacher-commemt-video-box" wx:if="{{comment.video && filter.jsonParse(comment.video).length>0}}" bindlongpress="replyTeacher2" data-eindex="{{id}}" data-eid="{{comment.id}}" data-etype="{{comment.comment_user_type}}" data-customerid="{{clock.student_id}}" data-roottype="1"> <view class="teacher-commemt-video-box" wx:if="{{comment.video && filter.jsonParse(comment.video).length>0}}" bindlongpress="replyTeacher2" data-eindex="{{id}}" data-eid="{{comment.id}}" data-etype="{{comment.comment_user_type}}" data-customerid="{{clock.student_id}}" data-roottype="1">
<view class="bigimgbox"wx:for="{{filter.jsonParse(comment.video)}}" wx:for-index="videoindex" wx:for-item="video" wx:key="{{videoindex}}"> <view class="bigimgbox"wx:for="{{filter.jsonParse(comment.video)}}" wx:for-index="videoindex" wx:for-item="video" wx:key="videoindex">
<view class="imgbox" wx:if="{{video.type == 'image'}}" data-src="{{video.src}}" data-comment="{{comment.video}}" catchtap="prevImg"> <view class="imgbox" wx:if="{{video.type == 'image'}}" data-src="{{video.src}}" data-comment="{{comment.video}}" catchtap="prevImg">
<image class="img" src="{{filter.imagify(video.src, 'image/resize,w_320/format,jpg/quality,q_50')}}" mode="aspectFill" ></image> <image class="img" src="{{filter.imagify(video.src, 'image/resize,w_320/format,jpg/quality,q_50')}}" mode="aspectFill" ></image>
</view> </view>
...@@ -415,17 +415,25 @@ ...@@ -415,17 +415,25 @@
catchtap="playvoice" catchtap="playvoice"
> >
</view> </view>
<view
class="action-mask"
wx:if="{{audioStorage[filter.jsonParse(clock.review[2].audio).src] && audioStorage[filter.jsonParse(clock.review[2].audio).src].play}}"
data-value="{{filter.jsonParse(clock.review[2].audio).src}}"
data-duration="{{filter.jsonParse(clock.review[2].audio).duration}}"
catchtap="pausevoice"
>
</view>
<view <view
class="sjd-small-icon-box" class="sjd-small-icon-box"
wx:if="{{!audioStorage[filter.jsonParse(clock.review[2].audio).src] || !audioStorage[filter.jsonParse(clock.review[2].audio).src].play}}" wx:if="{{(!audioStorage[filter.jsonParse(clock.review[2].audio).src] || !audioStorage[filter.jsonParse(clock.review[2].audio).src].play) && (!audioStorage[filter.jsonParse(clock.review[2].audio).src].isWaiting)}}"
> >
</view> </view>
<view <view
class="sjd-small-icon-box play" class="sjd-small-icon-box play"
wx:if="{{audioStorage[filter.jsonParse(clock.review[2].audio).src] && audioStorage[filter.jsonParse(clock.review[2].audio).src].play && (!audioStorage[filter.jsonParse(clock.review[2].audio).src].isWaiting || filter.jsonParse(clock.review[2].audio).src != actionsPalyvalue)}}" wx:if="{{audioStorage[filter.jsonParse(clock.review[2].audio).src] && audioStorage[filter.jsonParse(clock.review[2].audio).src].play && (!audioStorage[filter.jsonParse(clock.review[2].audio).src].isWaiting)}}"
> >
</view> </view>
<view class="sjd-small-icon-box" style="background: none;" wx:if="{{audioStorage[filter.jsonParse(clock.review[2].audio).src].isWaiting && filter.jsonParse(clock.review[2].audio).src == actionsPalyvalue}}" > <view class="sjd-small-icon-box" style="background: none;" wx:if="{{audioStorage[filter.jsonParse(clock.review[2].audio).src].isWaiting}}" >
<cssloading size="{{4}}"/> <cssloading size="{{4}}"/>
</view> </view>
<text class="sjd-small-radio-time" wx:if="{{audioStorage[filter.jsonParse(clock.review[2].audio).src] && audioStorage[filter.jsonParse(clock.review[2].audio).src].play}}">{{audioStorage[filter.jsonParse(clock.review[2].audio).src] && filter.voiceTimeFormat(audioStorage[filter.jsonParse(clock.review[2].audio).src].currentTime) || filter.voiceTimeFormat(0)}}</text> <text class="sjd-small-radio-time" wx:if="{{audioStorage[filter.jsonParse(clock.review[2].audio).src] && audioStorage[filter.jsonParse(clock.review[2].audio).src].play}}">{{audioStorage[filter.jsonParse(clock.review[2].audio).src] && filter.voiceTimeFormat(audioStorage[filter.jsonParse(clock.review[2].audio).src].currentTime) || filter.voiceTimeFormat(0)}}</text>
...@@ -464,15 +472,15 @@ ...@@ -464,15 +472,15 @@
</view> </view>
<view <view
class="sjd-small-icon-box" class="sjd-small-icon-box"
wx:if="{{!audioStorage[audioitem.src] || !audioStorage[audioitem.src].play}}" wx:if="{{(!audioStorage[audioitem.src] || !audioStorage[audioitem.src].play) && !audioStorage[audioitem.src].isWaiting}}"
> >
</view> </view>
<view <view
class="sjd-small-icon-box play" class="sjd-small-icon-box play"
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)}}"
> >
</view> </view>
<view class="sjd-small-icon-box" style="background: none;" wx:if="{{audioStorage[audioitem.src].isWaiting && audioitem.src == actionsPalyvalue}}" > <view class="sjd-small-icon-box" style="background: none;" wx:if="{{audioStorage[audioitem.src].isWaiting}}" >
<cssloading size="{{4}}"/> <cssloading size="{{4}}"/>
</view> </view>
<text class="sjd-small-radio-time" wx:if="{{audioStorage[audioitem.src] && audioStorage[audioitem.src].play}}">{{audioStorage[audioitem.src] && filter.voiceTimeFormat(audioStorage[audioitem.src].currentTime) || filter.voiceTimeFormat(0)}}</text> <text class="sjd-small-radio-time" wx:if="{{audioStorage[audioitem.src] && audioStorage[audioitem.src].play}}">{{audioStorage[audioitem.src] && filter.voiceTimeFormat(audioStorage[audioitem.src].currentTime) || filter.voiceTimeFormat(0)}}</text>
...@@ -480,7 +488,7 @@ ...@@ -480,7 +488,7 @@
</view> </view>
</view> </view>
<view class="teacher-commemt-video-box" bindlongpress="replyTeacher2" data-eindex="{{id}}" data-eid="{{comment.id}}" data-etype="{{comment.comment_user_type}}" data-customerid="{{clock.student_id}}" data-roottype="2"> <view class="teacher-commemt-video-box" bindlongpress="replyTeacher2" data-eindex="{{id}}" data-eid="{{comment.id}}" data-etype="{{comment.comment_user_type}}" data-customerid="{{clock.student_id}}" data-roottype="2">
<view class="bigimgbox"wx:for="{{filter.jsonParse(comment.video)}}" wx:for-index="videoindex" wx:for-item="video" wx:key="{{videoindex}}"> <view class="bigimgbox"wx:for="{{filter.jsonParse(comment.video)}}" wx:for-index="videoindex" wx:for-item="video" wx:key="videoindex">
<view class="imgbox" wx:if="{{video.type == 'image'}}" data-src="{{video.src}}" data-comment="{{comment.video}}" catchtap="prevImg"> <view class="imgbox" wx:if="{{video.type == 'image'}}" data-src="{{video.src}}" data-comment="{{comment.video}}" catchtap="prevImg">
<image class="img" src="{{filter.imagify(video.src, 'image/resize,w_320/format,jpg/quality,q_50')}}" mode="aspectFill" ></image> <image class="img" src="{{filter.imagify(video.src, 'image/resize,w_320/format,jpg/quality,q_50')}}" mode="aspectFill" ></image>
</view> </view>
...@@ -557,15 +565,15 @@ ...@@ -557,15 +565,15 @@
</view> </view>
<view <view
class="sjd-small-icon-box" class="sjd-small-icon-box"
wx:if="{{!audioStorage[filter.jsonParse(comment.audio).src] || !audioStorage[filter.jsonParse(comment.audio).src].play}}" wx:if="{{(!audioStorage[filter.jsonParse(comment.audio).src] || !audioStorage[filter.jsonParse(comment.audio).src].play) && (!audioStorage[filter.jsonParse(comment.audio).src].isWaiting)}}"
> >
</view> </view>
<view <view
class="sjd-small-icon-box play" class="sjd-small-icon-box play"
wx:if="{{audioStorage[filter.jsonParse(comment.audio).src] && audioStorage[filter.jsonParse(comment.audio).src].play && (!audioStorage[filter.jsonParse(comment.audio).src].isWaiting || filter.jsonParse(comment.audio).src != actionsPalyvalue)}}" wx:if="{{audioStorage[filter.jsonParse(comment.audio).src] && audioStorage[filter.jsonParse(comment.audio).src].play && (!audioStorage[filter.jsonParse(comment.audio).src].isWaiting)}}"
> >
</view> </view>
<view class="sjd-small-icon-box" style="background: none;" wx:if="{{audioStorage[filter.jsonParse(comment.audio).src].isWaiting && filter.jsonParse(comment.audio).src == actionsPalyvalue}}" > <view class="sjd-small-icon-box" style="background: none;" wx:if="{{audioStorage[filter.jsonParse(comment.audio).src].isWaiting}}" >
<cssloading size="{{4}}"/> <cssloading size="{{4}}"/>
</view> </view>
<text class="sjd-small-radio-time" wx:if="{{audioStorage[filter.jsonParse(comment.audio).src] && audioStorage[filter.jsonParse(comment.audio).src].play}}">{{audioStorage[filter.jsonParse(comment.audio).src] && filter.voiceTimeFormat(audioStorage[filter.jsonParse(comment.audio).src].currentTime) || filter.voiceTimeFormat(0)}}</text> <text class="sjd-small-radio-time" wx:if="{{audioStorage[filter.jsonParse(comment.audio).src] && audioStorage[filter.jsonParse(comment.audio).src].play}}">{{audioStorage[filter.jsonParse(comment.audio).src] && filter.voiceTimeFormat(audioStorage[filter.jsonParse(comment.audio).src].currentTime) || filter.voiceTimeFormat(0)}}</text>
...@@ -627,15 +635,15 @@ ...@@ -627,15 +635,15 @@
</view> </view>
<view <view
class="sjd-small-icon-box" class="sjd-small-icon-box"
wx:if="{{!audioStorage[filter.jsonParse(comment.audio).src] || !audioStorage[filter.jsonParse(comment.audio).src].play}}" wx:if="{{(!audioStorage[filter.jsonParse(comment.audio).src] || !audioStorage[filter.jsonParse(comment.audio).src].play) && (!audioStorage[filter.jsonParse(comment.audio).src].isWaiting)}}"
> >
</view> </view>
<view <view
class="sjd-small-icon-box play" class="sjd-small-icon-box play"
wx:if="{{audioStorage[filter.jsonParse(comment.audio).src] && audioStorage[filter.jsonParse(comment.audio).src].play && (!audioStorage[filter.jsonParse(comment.audio).src].isWaiting || filter.jsonParse(comment.audio).src != actionsPalyvalue)}}" wx:if="{{audioStorage[filter.jsonParse(comment.audio).src] && audioStorage[filter.jsonParse(comment.audio).src].play && (!audioStorage[filter.jsonParse(comment.audio).src].isWaiting)}}"
> >
</view> </view>
<view class="sjd-small-icon-box" style="background: none;" wx:if="{{audioStorage[filter.jsonParse(comment.audio).src].isWaiting && filter.jsonParse(comment.audio).src == actionsPalyvalue}}" > <view class="sjd-small-icon-box" style="background: none;" wx:if="{{audioStorage[filter.jsonParse(comment.audio).src].isWaiting}}" >
<cssloading size="{{4}}"/> <cssloading size="{{4}}"/>
</view> </view>
<text class="sjd-small-radio-time" wx:if="{{audioStorage[filter.jsonParse(comment.audio).src] && audioStorage[filter.jsonParse(comment.audio).src].play}}">{{audioStorage[filter.jsonParse(comment.audio).src] && filter.voiceTimeFormat(audioStorage[filter.jsonParse(comment.audio).src].currentTime) || filter.voiceTimeFormat(0)}}</text> <text class="sjd-small-radio-time" wx:if="{{audioStorage[filter.jsonParse(comment.audio).src] && audioStorage[filter.jsonParse(comment.audio).src].play}}">{{audioStorage[filter.jsonParse(comment.audio).src] && filter.voiceTimeFormat(audioStorage[filter.jsonParse(comment.audio).src].currentTime) || filter.voiceTimeFormat(0)}}</text>
......
...@@ -81,6 +81,7 @@ ...@@ -81,6 +81,7 @@
align-items: center; align-items: center;
position: relative; position: relative;
border-radius: 29rpx; border-radius: 29rpx;
overflow: hidden;
background:linear-gradient(90deg,rgba(0,198,255,1),rgba(68,219,217,1)); background:linear-gradient(90deg,rgba(0,198,255,1),rgba(68,219,217,1));
} }
@keyframes audioplay { @keyframes audioplay {
......
...@@ -81,6 +81,7 @@ ...@@ -81,6 +81,7 @@
align-items: center; align-items: center;
position: relative; position: relative;
border-radius: 29rpx; border-radius: 29rpx;
overflow: hidden;
background:linear-gradient(90deg,rgba(0,198,255,1),rgba(68,219,217,1)); background:linear-gradient(90deg,rgba(0,198,255,1),rgba(68,219,217,1));
} }
@keyframes audioplay { @keyframes audioplay {
......
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