meal.wxml 4.4 KB
<!--pages/activity/activity.wxml-->
<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="inputTitle" 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="{{typeList}}" class="picker">
                <view class="input">
                    <text class="variety-text">{{typeList[current_sex]}}</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="09:01"
                    end="21:01"
                    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">
            <text class="address-title">地址</text>
            <input type="text" bindinput="inputPosition" value="" class="input"/>
            <text class="iconfont icon-location"></text>
        </view>
        <view class="time-limit">
            <text class="limit-title">时限 开餐前</text>
            <input type="number" bindinput="inputPosition" value=""/>
            <text>小时 停止拼餐</text>
        </view>
    </view>

    <view class="complete">
        <view class="btn">确定发布</view>
    </view>
</view>