Rorschach 6 years ago
parent
commit
d6b69ff843

+ 1 - 1
component/share/share.wxml

@@ -14,7 +14,7 @@
    </view>
    <view class="share-img" wx:if="{{imgUrls}}" id="imgArea" bindtap="nothing">
        <cover-image class="img" src="{{imgUrls}}"></cover-image>
-       <view class="Preservation" style="{{shareType === 'works' ?'background:#ff9209' :'background:#70CA2D'}}">
+       <view class="Preservation" bindtap="PreservationImg" style="{{shareType === 'works' ?'background:#ff9209' :'background:#70CA2D'}}">
            <!-- <image class="PreservationBg" src="../../static/groupImg/Preservation.png"></image> -->
            <!-- <text bindtap="PreservationImg">保存到相册中,快去分享吧</text> -->
            保存到相册中,快去分享吧!

+ 5 - 4
pages/main/class/class.wxss

@@ -90,10 +90,11 @@ button::after {
 }
 
 .footSection .microphone {
-    display: block;
-    margin: -6rpx auto 0;
-    width: 108rpx;
-    height: 106rpx;
+   display:block;
+margin:-12rpx auto 8rpx;
+width:108rpx;
+height:106rpx;
+
 }
 
 .footSection .readingBtn text {

+ 5 - 4
pages/main/reading/reading.wxss

@@ -90,10 +90,11 @@ audio {
 }
 
 .footSection .microphone {
-    display: block;
-    margin: -6rpx auto 0;
-    width: 108rpx;
-    height: 106rpx;
+   display:block;
+margin:-12rpx auto 8rpx;
+width:108rpx;
+height:106rpx;
+
 }
 
 .footSection .readingBtn text {

+ 5 - 1
pages/social/works/works.js

@@ -53,11 +53,15 @@ Page({
         if (this.innerAudioContext) {
             this.innerAudioContext.stop();
         }
+        let videoCtx = wx.createVideoContext('worksVideo',this);
+        videoCtx.stop();
     },
     onUnload: function () {
         if (this.innerAudioContext) {
             this.innerAudioContext.stop();
         }
+        let videoCtx = wx.createVideoContext('worksVideo',this);
+        videoCtx.stop();
     },
     getWorks: function (uid, id) {
         httpRequestApi.getWorksDetail(uid, id).success((res) => {
@@ -141,7 +145,7 @@ Page({
             iconImg: this.data.iconImg,
             title: this.data.title,
             path: `pages/social/works/works`,
-            scene: `this.data.id`
+            scene: this.data.id
             // tip: this.data.tip,
         }
         this.shareDialog.share(data);

+ 2 - 2
pages/social/works/works.wxml

@@ -1,10 +1,10 @@
 <view>
-    <video class="videoSection" src="{{videoSrc}}" bindplay="videoPlay" bindended="videoEnd" bindpause="videoPause" muted="true" controls="false" show-fullscreen-btn="{{fullScreenBtn}}" show-play-btn="{{playBtn}}"></video>
+    <video id="worksVideo" class="videoSection" src="{{videoSrc}}" bindplay="videoPlay" bindended="videoEnd" bindpause="videoPause" muted="true" controls="false" enable-progress-gesture="false" show-fullscreen-btn="{{fullScreenBtn}}" show-play-btn="{{playBtn}}"></video>
     <view class="readAuthorSection">
         <image class="avatar" src="{{authorAvatar}}" />
         <text class="nickName">{{author}}</text>
         <view class="like" bindtap="likeWorks" wx:if="{{authorUid !== myUid}}">
-            <image src="{{isLike? '../../../static/image/red_like_empty.png' : '../../../static/image/red_like.png'}}" />
+            <image src="{{isLike? '../../../static/image/red_like.png' :'../../../static/image/red_like_empty.png'  }}" />
             <text class="likeBtn">{{isLike ? '已' : ''}}点赞</text>
         </view>
         <view class="follow" wx:if="{{authorUid !== myUid}}">