Commit 8968ccbc by 张立顺

fix bug

1 parent f6427741
......@@ -46,11 +46,11 @@
<view class="flex">
<view class="tire-block" wx:for="{{ imgItem.constructionImgList || [] }}" wx:key="index">
<view class="tire-img-box" catchtap="handlePreviewImg" data-item="{{ item }}" data-imgindex="{{ imgIndex }}">
<image wx:if="{{ userInfo.loginRole == 7 }}" class="icon-delete" catchtap="handleDelete" data-index="{{ index }}" data-imgindex="{{ imgIndex }}" src="/tabWorkOrder/images/icon-delete.png" />
<image wx:if="{{ ( userInfo.loginRole== 7 ||userInfo.userType==2) }}" class="icon-delete" catchtap="handleDelete" data-index="{{ index }}" data-imgindex="{{ imgIndex }}" src="/tabWorkOrder/images/icon-delete.png" />
<image class="tire-img" src="{{ item }}" />
</view>
</view>
<view class="tire-block" bindtap="handleUpload" data-index="{{ imgIndex }}" wx:if="{{ (!imgItem.constructionImgList || imgItem.constructionImgList.length<9 )&& userInfo.loginRole== 7 }}">
<view class="tire-block" bindtap="handleUpload" data-index="{{ imgIndex }}" wx:if="{{ (!imgItem.constructionImgList || imgItem.constructionImgList.length<9 )&&( userInfo.loginRole== 7 ||userInfo.userType==2)}}">
<view>
<image class="icon-plus" src="{{ IMG_URL }}camera_icon.png" />
</view>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!