<!--package_first/pages/uploadBeauty/index.wxml-->
<view class="upload_container">
    <view class="form_container">
        <view class="form_item {{formRules.streamId.warning ? 'warning' : ''}}">
            <text><text style="color: red;">*</text>选择河道：</text>
            <view class="value_box">
                <picker bindchange="selectRiver" value="{{riverCurrent}}" data-current="{{riverCurrent}}" range="{{riverOptions}}" range-key="name">
                    <view class="picker" wx:if="{{form.streamId}}">
                        {{riverOptions[riverCurrent].name}}
                    </view>
                    <view wx:else class="picker" style="color: #A6A6A6; font-size: 26rpx;">请选择河道</view>
                    <image class="select_img" src="../../../assets/first/select.png"></image>
                </picker>
            </view>
            <text class="tips">请选择河道</text>
        </view>
        <view class="dravier"></view>
        <view class="use_purpose {{formRules.content.warning ? 'warning' : ''}}">
            <view class="text_box">
                <textarea maxlength="500" style="width:100%; min-height: 160rpx;padding-top: 10rpx;" type="text" adjust-position="{{true}}" placeholder="分享你拍的美照吧..." placeholder-style="font-size: 26rpx; color: #A6A6A6;" value="{{form.content}}"
      data-name="content" name="content" bindblur="bindValue" />
            </view>
            <text class="tips">请输入文字描述</text>
        </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;" mode="widthFix" src="../../../assets/img/upload.png"></image>
                </view>
            </view>
            <text class="tips">请上传美拍</text>
        </view>
    </view>

    <view class="btn_list">
        <view class="btn_item submit_btn" bindtap="submit">发布</view>
        <view class="btn_item cancel_btn" bindtap="returnLastPage">取消</view>
    </view>
</view>
