123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <cu-custom bgColor="bg-gradual-blue" isBack>
- <view slot="backText">返回</view>
- <view slot="content">附件</view>
- </cu-custom>
- <view class="section">
- <!-- 其他 -->
- <view wx:for="{{value}}" wx:key="index" class="margin-bottom">
- <view class="cu-bar bg-white solid-bottom">
- <view class='action'>
- <text class='cuIcon-titles text-orange '></text> {{item.name}}
- </view>
- </view>
- <view class="padding">
- <van-grid column-num="3" border="{{ false }}" gutter="{{ 10 }}">
- <van-grid-item use-slot wx:for="{{ item.value }}" wx:for-item="it" wx:for-index="ind" wx:key="ind">
- <view wx:if="{{it.value }}" style="position:relative;width: 100%;height: 180rpx;">
- <image mode="aspectFit" style="width: 100%; height: 100%;" src="{{it.value}}" />
- <view bindtap="deleteFunc" data-index='{{index}}' data-ind="{{ind}}" data-id="{{it.key}}"
- style='position: absolute; top: -16rpx;right: -16rpx;'>
- <van-icon name="clear" />
- </view>
- </view>
- </van-grid-item>
- <van-grid-item wx:if="{{(item.maxlen && item.value.length < item.maxlen) || !item.maxlen}}" use-slot>
- <view data-index="{{index}}" bindtap="addFunc"
- style="position:relative;width: 100%;height: 180rpx;display: flex;align-items: center;justify-content: center;border:1rpx solid #646566">
- <van-icon name="plus" size="30" color="#646566" />
- </view>
- </van-grid-item>
- </van-grid>
- </view>
- </view>
- </view>
- <!-- 错误提示框 -->
- <van-dialog use-slot title="提示" show="{{ errorShow }}" confirmText="关闭">
- <scroll-view scroll-y style="max-height:50vh;">
- <view wx:for="{{megs}}" wx:key="index" class="margin-sm">{{index+1}}、 {{item}}</view>
- </scroll-view>
- </van-dialog>
- <van-dialog id="van-dialog" />
|