按揭图片展示

This commit is contained in:
老叶
2022-11-15 17:21:27 +08:00
parent 5c250d53de
commit 380dadbfa5
2 changed files with 44 additions and 0 deletions
+17
View File
@@ -793,6 +793,23 @@ Page({
urls:[this.data.imgInfo.imgs.destory_img.img],
})
}
else if(e.currentTarget.dataset.type=='notify'){
let img = []
this.data.info.notify_file.forEach(item => {
img.push(item.src)
})
wx.previewImage({
current:e.currentTarget.dataset.current,
urls:img,
})
}
else if(e.currentTarget.dataset.type=='lend'){
wx.previewImage({
current:this.data.info.lend_file.src,
urls:[this.data.info.lend_file.src],
})
}
},
//推送链接
+27
View File
@@ -450,6 +450,33 @@
</view>
</block>
</block>
<!--按揭图片展示-->
<block wx:if="{{!info.loan_status}}">
<block wx:if="{{info.notify_file.length>0}}">
<view class="mt30 font-28">按揭通知函</view>
<view class="mt30 pb30 text-center">
<scroll-view class="space-nowrap" scroll-x="true">
<block wx:for='{{info.notify_file}}' wx:for-item='notify' wx:key='index'>
<view class="inline-block bg-f8 img-300x200 ml10 mr10 relative ulib-r10 overflowhidden">
<image class='block wp100 img-h-200 ulib-r10' src='{{notify.src}}' mode='aspectFit' bindtap="previewImage" data-type="notify" data-current="{{notify.src}}"></image>
</view>
</block>
</scroll-view>
</view>
</block>
<block wx:if="{{info.lend_file.value}}">
<view class="mt30 font-28">放款通知函</view>
<view class="mt30 text-center">
<view class="inline-block img-300x200 relative ulib-r10 overflowhidden">
<view class="inline-block bg-f8 img-300x200 relative ulib-r10 overflowhidden">
<image class='block wp100 img-h-200 ulib-r10' src='{{info.lend_file.src}}' mode='aspectFit' bindtap="previewImage" data-type="lend"></image>
</view>
</view>
</view>
</block>
</block>
<!--end 图片预览-->
</view>