meal.wxml 5.2 KB
<!--pages/activity/activity.wxml-->
<form bindsubmit="confirmRelease" bindreset="formReset" report-submit="true">
<view class="content">
    <view class="input-box">
        <input type="text" placeholder="标题" bindinput="inputTitle" maxlength="15" placeholder-class="placeholder"/>
        <textarea maxlength="-1" type="text" placeholder="发布描述..." bindinput="inputContent"
                  placeholder-class="placeholder"></textarea>
    </view>

    <view class='upload_box'>
        <block wx:for="{{images}}" wx:for-item="image" wx:key="index">
            <view class='upload_img'>
                <view class='icon_box' catchtap="deleteImg" data-index="{{index}}">
                    <view class='iconfont icon-shanchu1'></view>
                </view>
                <image src='{{image}}' data-index="{{index}}" mode="aspectFill" bindtap="previewImg"></image>
            </view>
        </block>
        <view class='upload_img' bindtap="choose">
            <view class='iconfont icon-jia'></view>
            <text>添加照片</text>
        </view>
    </view>

    <view class="set-box">
        <view class="min-num num-box">
            <text class="title num-title">人数</text>
            <input type="number" bindinput="inputMinNum" class="input"/>
            <text class="iconfont icon-xiangxia min-icon icon-min"></text>
            <text class="tips">注:最低拼单人数</text>
        </view>
        <!--<view class="min-num">-->
        <!--<text class="title">最高人数</text>-->
        <!--<input type="number" bindinput="inputMaxNum" class="input"/>-->
        <!--<text class="iconfont icon-xiangxia min-icon"></text>-->
        <!--</view>-->
        <view class="min-num">
            <text class="title type-title">类别</text>
            <picker bindchange="bindTypeChange" value="{{current_sex}}" range="{{type_picker_list}}" class="picker">
                <view class="input">
                    <text class="variety-text">{{type_picker_list[current_type]}}</text>
                    <!--<text class="variety-text" wx:else>{{pet_info.sex===2?'MM':'GG'}}</text>-->
                    <!-- <view class="iconfont icon-arrow-down"></view> -->
                </view>
            </picker>
            <text class="iconfont icon-xiangxia min-icon"></text>
        </view>
        <view class="time-box">
            <text class="time-title">时间</text>
            <picker mode='date' bindchange="bindDateChange" value='{{date}}' end='{{today}}'>
                <view class='select'>
                    <view class="picker">{{month}}
                        <text class="iconfont icon-xiangxia min-icon"></text>
                    </view>
                    <text class="margin">月</text>
                    <view class="picker">{{day}}
                        <text class="iconfont icon-xiangxia min-icon"></text>
                    </view>
                    <text class="margin">日</text>
                    <!--<view class='select_right' style='color:rgba(51,51,51,1)'>{{date}}</view>-->
                </view>
            </picker>
            <picker mode="time"
                    value="{{time}}"
                    start="00:00"
                    end="24:00"
                    bindchange="bindTimeChange">
                <view class='select'>
                    <view class="picker">{{hour}}
                        <text class="iconfont icon-xiangxia min-icon"></text>
                    </view>
                    <text class="margin">时</text>
                    <view class="picker">{{minute}}
                        <text class="iconfont icon-xiangxia min-icon"></text>
                    </view>
                    <text class="margin">分</text>
                </view>
            </picker>
        </view>
        <view class="address-box">
            <text class="address-title">餐厅</text>
            <input type="text" bindinput="inputAddress" class="input"/>
        </view>
        <view class="address-box" bindtap="choosePosition">
            <text class="address-title">地址</text>
            <!--<input type="text"  bindtap="choosePosition" value="" class="input"/>-->
            <text class="input">{{address_position}}</text>
            <text class="iconfont icon-location"></text>
        </view>
        <view class="time-limit">
            <text class="limit-title">时限 开餐前</text>
            <input type="number" bindinput="inputOverTime" value=""/>
            <text>小时 停止拼餐</text>
        </view>
    </view>

    <button class="complete" form-type="submit">
        <!--<view class="complete" bindtap="confirmRelease">-->
        <view class="btn">确定发布</view>
        <!--</view>-->
    </button>
</view>
<!--发布成功弹框-->
<view class="modal" wx:if="{{is_showRelease_modal}}" catchtouchmove="disableScroll">
    <image class="sorry-img" src="../../images/success@2x.png"></image>
    <view class="title">恭喜您拼餐成功</view>
    <view class="view-btn" catchtap="goMyRelease">查看我的订单</view>
    <view class="complete-btn" catchtap="goBack">完成</view>
</view>
<view class="modal_box" wx:if="{{is_showRelease_modal}}" bindtap="handleBackground"
      catchtouchmove="disableScroll"></view>
</form>