【bug】会议不是pdf的分发邮箱 缴费凭证的显示

This commit is contained in:
fengachen
2021-10-27 17:02:22 +08:00
parent fbf5a0fd0e
commit b3d45d14f6
4 changed files with 48 additions and 9 deletions
+8 -3
View File
@@ -35,10 +35,15 @@ Component({
lifetimes: {
attached: function() {
console.log(' this.data.initImgsList', this.data.initImgsList);
let initImgArr = this.data.initImgsList.split(',')
let initImgArr
if(!!this.data.initImgsList){
initImgArr = this.data.initImgsList.split(',')
}
const arr = []
for (let index = 0; index < initImgArr.length; index++) {
arr.push( baseUrl + URL_CONFIG + 'sys/common/download/' + initImgArr[index])
if(initImgArr && initImgArr.length > 0){
for (let index = 0; index < initImgArr.length; index++) {
arr.push( baseUrl + URL_CONFIG + 'sys/common/download/' + initImgArr[index])
}
}
this.setData({
tempFilePaths:arr
+1 -1
View File
@@ -1,6 +1,6 @@
<!--components/imageUpload/imageUpload.wxml-->
<view class="img_box">
<view class="imgs" wx:for="{{tempFilePaths}}" wx:key="index">
<view class="imgs" wx:for="{{tempFilePaths}}" wx:key="index" wx:if="{{tempFilePaths.length > 0}}">
<image src='{{item}}' bindlongpress="deleteImage" bindtap="previewImage" data-index="{{index}}" mode='widthFix' />
</view>
<view class="imgs">