You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
71 lines
3.1 KiB
Plaintext
71 lines
3.1 KiB
Plaintext
<view style="padding: 11px 10px;" wx:if="{{isLoading}}">
|
|
|
|
<!-- <checkbox-group bindchange="checkboxChange">
|
|
<view wx:for="{{imageList}}" class="imsView">
|
|
<image src="{{item.url}}" class='ims' mode="aspectFill"></image>
|
|
<radio aria-role="" value="{{item.id}}" checked="{{item.checked}}" class="weui-agree__checkbox-check" />
|
|
<view class="weui-agree__checkbox dib"></view>
|
|
<checkbox value="{{item.id}}" checked="{{item.checked}}"/>
|
|
</view>
|
|
</checkbox-group>
|
|
-->
|
|
<checkbox-group bindchange="checkboxChange" class="dib">
|
|
<label aria-role="" class="weui-check__label dib fl" wx:for="{{imageList}}" wx:key="idx" wx:for-item="item" wx:for-index="idx">
|
|
<checkbox aria-role="" value="{{item.id}}" checked="{{item.checked}}" class="weui-check" wx:if="{{isEdit}}"/>
|
|
<block wx:if="{{isEdit}}">
|
|
<i class="t-icon t-icon-weixuanzhong4" wx:if="{{!item.checked}}"></i>
|
|
<i class="t-icon t-icon-xuanzhong4" wx:if="{{item.checked}}"></i>
|
|
</block>
|
|
<image src="{{item.url}}" class='ims' mode="aspectFill" wx:if="{{isEdit}}"></image>
|
|
<image src="{{item.url}}" mark:url='{{item.url}}' class='ims' mode="aspectFill" wx:if="{{!isEdit}}" catchtap="showImgs"></image>
|
|
|
|
</label>
|
|
|
|
<!-- <image src="http://matripe.oss-cn-beijing.aliyuncs.com/logo-01.png" class='ims' mode="aspectFill"></image> -->
|
|
<view class="dib fl" wx:if="{{isEdit}}">
|
|
<view class="plus-center" hover-class="hcb" catchtap="chooseMedia">
|
|
<i class="iconfont icon-tianjia c9" style="font-size: 24px;"></i>
|
|
</view>
|
|
</view>
|
|
<view class="clb"></view>
|
|
</checkbox-group>
|
|
|
|
<block wx:if="{{imageList == null || imageList.length == 0 && !isEdit}}">
|
|
|
|
<view style="margin-top:128rpx;">
|
|
<view class="center">
|
|
<icon class='t-icon cccc t-icon-zanwu' style='width:86px;height:86px;margin-bottom:20px;margin-top:30px'></icon>
|
|
<view class="f16 cccc">暂无图片</view>
|
|
</view>
|
|
</view>
|
|
</block>
|
|
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<view class="btmFix display-flex" style="justify-content: center;">
|
|
<view class="flex-1">
|
|
<view class="xz" wx:if="{{!isEdit}}" bindtap="changeEdit">选择</view>
|
|
<view class="xz" wx:if="{{isEdit}}" bindtap="closeEdit">取消</view>
|
|
</view>
|
|
<!-- <i class='iconfont icon-lajitong cccc' style="font-size:20px;margin-right: 24px;margin-top: 4px;" wx:if="{{!deleteShow}}"></i> -->
|
|
<i class='iconfont icon-lajitong' bindtap="deleteImg" style="font-size:20px;margin-right: 24px;margin-top: 4px;color: var(--color-be);" wx:if="{{deleteShow}}"></i>
|
|
|
|
</view>
|
|
|
|
<view aria-role="dialog" aria-modal="true" class="fadeIn" wx:if="{{deleteI}}" style="position: relative;z-index: 99;" bindtap="close">
|
|
<view class="weui-mask"></view>
|
|
<view class="weui-dialog">
|
|
<view class="weui-dialog__bd">确认要删除图片</view>
|
|
<view class="weui-dialog__ft">
|
|
<view aria-role="button" class="weui-dialog__btn weui-dialog__btn_default" bindtap="close">取消</view>
|
|
<view aria-role="button" class="weui-dialog__btn weui-dialog__btn_primary" style="color:var(--color-ysd)" bindtap="sureDelete">确认</view>
|
|
</view>
|
|
</view>
|
|
</view> |