meal.wxml
6.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
<!--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 num-box">
<text class="title type-title">地区</text>
<picker bindchange="bindCityChange" value="{{current_city}}" range="{{city_picker_list}}" class="picker">
<view class="input">
<text class="variety-text">{{is_select?city_picker_list[current_city]:city}}</text>
</view>
</picker>
<text class="iconfont icon-xiangxia min-icon"></text>
<input type="text" bindinput="inputKey" class="input search-box" bindconfirm="search" value="{{search_text}}"/>
<text bindtap="search">搜索</text><text class="tips">* 可搜索地区</text>
</view>
<view class="min-num num-box">
<text class="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 num-box">
<text class="title">最高人数</text>
<input type="number" bindinput="inputMaxNum" class="input" bindblur="maxNumBlur" value="{{max_num}}"/>
<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_type}}" 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='2021-12-31' start="{{start_date}}">
<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="{{start_time}}"
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">-->
<!--手动填地址-->
<!--<text class="address-title">地址</text>-->
<!--<input type="text" value="" class="input" bindinput="inputAddr"/>-->
<!--打开地图选地址-->
<!--<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="{{over_time}}"/>
<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">
<view class="close-icon" bindtap="close">
<text class="iconfont icon-x"></text>
</view>
<image class="sorry-img" src="../../images/success@2x.png"></image>
<view class="title">恭喜您发布成功</view>
<view class="view-btn" catchtap="goMyRelease">查看我的发布</view>
<button class="complete-btn" catchtap="goBack" open-type="share">分享</button>
</view>
<view class="modal_box" wx:if="{{is_showRelease_modal}}" bindtap="handleBackground"
catchtouchmove="disableScroll"></view>
</form>