<!--package_first/pages/AddPicture/index.wxml-->
<view>
    <view class="add_container">
        <view class="title">上传图片</view>
            <!-- <view class="upload_image" bindtap="uploadImage">
                <view class="add_imageList" wx:for="{{imageList}}" wx:key="index">
                    <image style="width:100%;" mode="widthFix" src="{{item}}"></image>
                    <div class="close" data-current="{{index}}" catchtap="deleteImage"></div>
                </view>
                <view wx:if="{{imageList.length<5}}" class="upload_part">
                    <image class="upload_img" style="height: 70rpx;width:70rpx;" mode="widthFix" src="../../../assets/img/upload.png"></image>
                    <view class="upload_text">上传图片</view>
                </view>
            </view> -->
            <view class="upload_images {{formRules.imageList.warning? 'warning': ''}}">
            <view class="image_list">                              
                <view class="image_preview" wx:for="{{imagePreviewList}}" wx:key="index">
                    <image class="image_item" src="{{item}}" mode="aspectFill" data-item="{{item}}">
                    </image>
                    <div class="close" data-current="{{index}}" catchtap="deleteImage"></div>
                </view>
                <view class="upload_image" bindtap="uploadImage" wx:if="{{imageList.length<5}}">
                    <image style="height: 56rpx;width: 56rpx; padding-top: 80rpx;" mode="widthFix" src="../../../assets/img/upload.png"></image>
                    <view class="upload_text">上传图片</view>
                </view>
            </view>
            <text class="tips">请先上传图片</text>
        </view>
        <view class="button" bindtap="submit">
            提交
        </view>
    </view>
</view>
