【bug】会议不是pdf的分发邮箱 缴费凭证的显示
This commit is contained in:
@@ -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,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">
|
||||
|
||||
Reference in New Issue
Block a user