Commit 236b3261 authored by lvtz's avatar lvtz

Merge branch 'wxl-develop' of git.server:wangxuelai/wechatapp.shangjiadao.com…

Merge branch 'wxl-develop' of git.server:wangxuelai/wechatapp.shangjiadao.com into imagecomment_lvtz
parents 48631fce 9724996d
...@@ -97,20 +97,20 @@ Component({ ...@@ -97,20 +97,20 @@ Component({
} = e.currentTarget; } = e.currentTarget;
const cid = dataset.cid; const cid = dataset.cid;
let imgOrVideo = JSON.parse(this.data.clock.video).length; let imgOrVideo = JSON.parse(this.data.clock.video).length;
if(imgOrVideo > 0){ let imageArr = JSON.parse(this.data.clock.video).filter((ele) => ele.type == 'image');
if (this.data.clock.review && this.data.clock.review[1] && this.data.clock.review[1].method == 2) { if (this.data.clock.review && this.data.clock.review[1] && this.data.clock.review[1].method == 2) {
wx.navigateTo({ wx.navigateTo({
url: `/business/pages/commenteditor/imagelistshow?id=${this.data.clock.class_id}&tid=${this.data.clock.subject_id}&cid=${this.data.clock.id}&sid=${this.data.clock.school_id}`, url: `/business/pages/commenteditor/imagelistshow?id=${this.data.clock.class_id}&tid=${this.data.clock.subject_id}&cid=${this.data.clock.id}&sid=${this.data.clock.school_id}`,
}) })
return; return;
} }
if (this.data.clock.review && this.data.clock.review[1] && this.data.clock.review[1].method == 1) { if (this.data.clock.review && this.data.clock.review[1] && this.data.clock.review[1].method == 1) {
wx.navigateTo({ wx.navigateTo({
url: `/business/pages/commenteditor/index?id=${this.data.clock.class_id}&tid=${this.data.clock.subject_id}&cid=${this.data.clock.id}&sid=${this.data.clock.school_id}`, url: `/business/pages/commenteditor/index?id=${this.data.clock.class_id}&tid=${this.data.clock.subject_id}&cid=${this.data.clock.id}&sid=${this.data.clock.school_id}`,
}) })
return; return;
} }
}else{ if(imageArr.length == 0){
wx.navigateTo({ wx.navigateTo({
url: `/business/pages/commenteditor/index?id=${this.data.clock.class_id}&tid=${this.data.clock.subject_id}&cid=${this.data.clock.id}&sid=${this.data.clock.school_id}`, url: `/business/pages/commenteditor/index?id=${this.data.clock.class_id}&tid=${this.data.clock.subject_id}&cid=${this.data.clock.id}&sid=${this.data.clock.school_id}`,
}) })
......
...@@ -15,7 +15,9 @@ ...@@ -15,7 +15,9 @@
</view> </view>
<image class="sign-img" mode="aspectFill" src="{{filter.videoPoster(imageitem.src, 'image/resize,w_640/format,jpg/quality,q_50')}}"></image> <image class="sign-img" mode="aspectFill" src="{{filter.videoPoster(imageitem.src, 'image/resize,w_640/format,jpg/quality,q_50')}}"></image>
</block> </block>
<image wx:if="{{hasReviewedWork[imageitem.src]}}" class="hascomment" src="{{imageRoot}}2b/commenteditor/hascomment.png?{{imageVersion}}"></image> <block wx:if="{{hasReviewedWork[imageitem.src]}}">
<image class="hascomment" src="{{imageRoot}}2b/commenteditor/hascomment.png?{{imageVersion}}"></image>
</block>
</view> </view>
</view> </view>
</view> </view>
......
...@@ -69,6 +69,7 @@ ...@@ -69,6 +69,7 @@
.imageitem .sign-img { .imageitem .sign-img {
width: 346rpx; width: 346rpx;
height: 460rpx; height: 460rpx;
position: absolute;
} }
.imageischeck { .imageischeck {
position: absolute; position: absolute;
......
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