12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- <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" wx:if="{{!item.disabled}}">
- <view class="cu-bar bg-white solid-bottom">
- <view class="action">
- <text class="cuIcon-title text-orange "></text>
- <view>
- <view class="text-xl text-black"><text>{{item.name}}</text> <text wx:if="{{item.require}}"
- class="text-red">(必填)</text></view>
- <view wx:if="{{item.detail}}" class="text-sm">{{item.detail}}</view>
- <view wx:if="{{item.errMsg}}" class="text-sm text-red">{{item.errMsg}}</view>
- </view>
- </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 bindtap="seeFunc" data-url="{{it.value}}" 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" />
|