Sanakey
2021-01-16 9e299c7766cdb22376dcc73321a8ea386de17812
提交 | 用户 | age
b6cc28 1 <!--pages/flashSaleCreate/flashSaleCreate.wxml-->
S 2 <view class="container has-footer">
3   <van-cell-group class="my-cell-group">
4     <van-field
5         class="my-cell"
6         value="{{ promotionsTitle }}"
7         name="promotionsTitle"
8         label="活动标题"
9         placeholder="建议标题文字10字以内"
10         bind:blur="checkPromotionsTitle"
11         error-message="{{promotionsTitleError}}"
12     />
13   </van-cell-group>
14   <van-cell-group class="my-cell-group">
15     <van-cell class="my-cell" border="{{false}}" title="产品图片"></van-cell>
16     <my-single-uploader></my-single-uploader>
17 <!--    <van-uploader-->
18 <!--        file-list="{{ goodsImgList }}"-->
19 <!--        max-count="1"-->
20 <!--        bind:after-read="afterRead"-->
21 <!--        preview-size="300px"-->
22 <!--        image-fit="widthFix"-->
23 <!--        class="my-single-uploader"-->
24 <!--    >-->
25 <!--      <view class="text-center desc my-uploader-desc" wx:if="{{goodsImgList.length<=0}}">-->
26 <!--        <view class="flex-row flex-center content-center desc-title">-->
27 <!--          <van-icon class="font-size-32" name="photo" /> <text>点击上传图片</text>-->
28 <!--        </view>-->
29 <!--        <view class="font-size-12">建议尺寸:500x500像素,72分辨率</view>-->
30 <!--      </view>-->
31 <!--    </van-uploader>-->
32   </van-cell-group>
33
34   <van-cell-group class="my-cell-group">
35     <van-field
36         class="my-cell"
37         value="{{ originalPrice }}"
38         name="originalPrice"
39         label="原价"
40         placeholder="请输入产品原价"
41         bind:blur="checkOriginalPrice"
42         error-message="{{originalPriceError}}"
43     >
44       <view class="icon" slot="right-icon">
45         元
46       </view>
47     </van-field>
48     <van-field
49         class="my-cell"
50         value="{{ flashSalePrice }}"
51         name="flashSalePrice"
52         label="秒杀价"
53         placeholder="请输入产品秒杀价"
54         bind:blur="checkFlashSalePrice"
55         error-message="{{flashSalePriceError}}"
56     >
57       <view class="icon" slot="right-icon">
58         元
59       </view>
60     </van-field>
61 <!--    <van-cell class="my-cell" title="开始时间" >-->
62 <!--      <view bindtap="showStartDatePopup">{{startTime||'选择计划开始时间'}}<icon class="iconfont icon-xiangxiazhankai"></icon></view>-->
63 <!--      <van-popup-->
64 <!--          show="{{isShowStartDatePopup}}"-->
65 <!--          position="bottom"-->
66 <!--          custom-style="height: 50%;"-->
67 <!--          bind:close="onStartDatePopupClose"-->
68 <!--      >-->
69 <!--        <van-datetime-picker-->
70 <!--            type="datetime"-->
71 <!--            value="{{ endDate }}"-->
72 <!--            min-date="{{ minEndDate }}"-->
73 <!--            max-date="{{ maxEndDate }}"-->
74 <!--            formatter="{{ formatter }}"-->
75 <!--            bind:input="onInputStartDate"-->
76 <!--            bind:confirm="onEnterStartDate"-->
77 <!--            bind:cancel="onCancelStartDate"-->
78 <!--        />-->
79 <!--      </van-popup>-->
80 <!--      <view class="error" wx:if="{{startTimeError}}">-->
81 <!--        {{startTimeError}}-->
82 <!--      </view>-->
83 <!--    </van-cell>-->
84 <!--    <van-cell class="my-cell" title="结束时间" >-->
85 <!--      <van-dropdown-menu wx:if="{{startTime}}">-->
86 <!--        <van-dropdown-item id="end-time" title="{{endTime||'选择计划结束时间'}}">-->
87 <!--          <van-datetime-picker-->
88 <!--              type="datetime"-->
89 <!--              value="{{ endDate }}"-->
90 <!--              min-date="{{ minEndDate }}"-->
91 <!--              max-date="{{ maxEndDate }}"-->
92 <!--              formatter="{{ formatter }}"-->
93 <!--              bind:input="onInputEndDate"-->
94 <!--              bind:confirm="onEnterEndDate"-->
95 <!--              bind:cancel="onCancelEndDate"-->
96 <!--          />-->
97 <!--        </van-dropdown-item>-->
98
99 <!--      </van-dropdown-menu>-->
100 <!--      <view class="error" wx:if="{{endTimeError}}">-->
101 <!--        {{endTimeError}}-->
102 <!--      </view>-->
103 <!--    </van-cell>-->
104
105     <my-time-quantum id="time-quantum" bind:selectedStartTime="selectedStartTime" bind:selectedEndTime="selectedEndTime"></my-time-quantum>
106
107     <van-field
108         class="my-cell"
109         value="{{ flashSaleTotal }}"
110         name="flashSaleTotal"
111         label="秒杀总量"
112         placeholder="请输入产品总量"
113         bind:blur="checkFlashSaleTotal"
114         error-message="{{flashSaleTotalError}}"
115     >
116       <view class="icon" slot="right-icon">
117         个
118       </view>
119     </van-field>
120     <van-field
121         class="my-cell"
122         value="{{ flashSaleLimit }}"
123         name="flashSaleLimit"
124         label="限购数量"
125         placeholder="设置每人限购数量,0为不限制"
126         bind:blur="checkFlashSaleLimit"
127         error-message="{{flashSaleLimitError}}"
128     >
129       <view class="icon" slot="right-icon">
130         个
131       </view>
132     </van-field>
133
134     <view>
135       <my-delivery-method bind:getDeliveryMethod="getDeliveryMethod"></my-delivery-method>
136     </view>
137
138   </van-cell-group>
139
9e299c 140 <!--  <van-cell-group class="my-cell-group">-->
S 141 <!--    <view class="text-center padding border-bottom">设置营销人员名单(至少填写一位)</view>-->
142
143 <!--    <block wx:for="{{sellerList}}" wx:key="key">-->
144 <!--      <view class="seller-cell" wx:if="{{index===0}}">-->
145 <!--        <van-field-->
146 <!--            title-width="7em"-->
147 <!--            class="my-cell"-->
148 <!--            value="{{ sellerList[0].username }}"-->
149 <!--            name="username"-->
150 <!--            label="营销人员姓名"-->
151 <!--            data-index="{{0}}"-->
152 <!--            placeholder="请输入营销人员姓名"-->
153 <!--            bind:blur="checkUsername"-->
154 <!--            error-message="{{usernameError}}"-->
155 <!--        />-->
156 <!--        <van-field-->
157 <!--            title-width="7em"-->
158 <!--            class="my-cell"-->
159 <!--            value="{{ sellerList[0].phone }}"-->
160 <!--            name="phone"-->
161 <!--            label="营销人员电话"-->
162 <!--            data-index="{{0}}"-->
163 <!--            maxlength="{{11}}"-->
164 <!--            placeholder="请输入营销人员电话"-->
165 <!--            bind:blur="checkPhone"-->
166 <!--            error-message="{{phoneError}}"-->
167 <!--            border="{{ false }}"-->
168 <!--        />-->
169 <!--      </view>-->
170 <!--      <van-swipe-cell class="seller-swipe"  wx:if="{{sellerList.length>1}}" right-width="{{ 65 }}" >-->
171 <!--        <view class="seller-cell" wx:if="{{index>0}}">-->
172 <!--          <van-field-->
173 <!--              title-width="7em"-->
174 <!--              class="my-cell"-->
175 <!--              value="{{ item.username }}"-->
176 <!--              name="username{{index+1}}"-->
177 <!--              data-index="{{index}}"-->
178 <!--              label="营销人员{{index?index+1:''}}姓名"-->
179 <!--              placeholder="请输入营销人员{{index?index+1:''}}姓名"-->
180 <!--              bind:blur="checkUsername"-->
181 <!--              error-message="{{item.usernameError}}"-->
182 <!--          />-->
183 <!--          <van-field-->
184 <!--              title-width="7em"-->
185 <!--              class="my-cell"-->
186 <!--              value="{{ item.phone }}"-->
187 <!--              name="phone{{index+1}}"-->
188 <!--              data-index="{{index}}"-->
189 <!--              maxlength="{{11}}"-->
190 <!--              label="营销人员{{index?index+1:''}}电话"-->
191 <!--              placeholder="请输入营销人员{{index?index+1:''}}电话"-->
192 <!--              bind:blur="checkPhone"-->
193 <!--              error-message="{{item.phoneError}}"-->
194 <!--              border="{{ false }}"-->
195 <!--          />-->
196 <!--        </view>-->
197 <!--        <view slot="right" class="flex flex-center swipe-right" data-index="{{index}}" bind:tap="onDeleteSeller" >-->
198 <!--          删除-->
199 <!--        </view>-->
200 <!--      </van-swipe-cell>-->
201 <!--    </block>-->
202
203
204 <!--  </van-cell-group>-->
205 <!--  <van-cell-group class="my-cell-group">-->
206 <!--    <van-cell class="my-cell" border="{{false}}" >-->
207 <!--      <view slot="title" bind:tap="addSeller" class="theme-font-color">-->
208 <!--        <van-icon name="plus" />继续添加-->
209 <!--      </view>-->
210 <!--      <view class="font-size-12">非认证账号最多添加5人,认证账号不限制</view>-->
211 <!--    </van-cell>-->
212 <!--  </van-cell-group>-->
213   <my-seller-edit id="seller-edit"></my-seller-edit>
b6cc28 214   <van-cell-group class="my-cell-group">
9e299c 215     <van-cell border="{{false}}" title="请输入活动描述规则" label="建议以图片描述为主,文字描述200字以内"></van-cell>
b6cc28 216     <van-field
S 217         value="{{ message }}"
9e299c 218         class="field-text-left"
b6cc28 219         type="textarea"
S 220         placeholder="请输入留言"
221         autosize
222         border="{{ false }}"
223         maxlength="{{200}}"
224         show-word-limit
225     />
226     <van-uploader
227         file-list="{{ goodsImgList }}"
228         max-count="9"
229         bind:after-read="afterReadDescImgs"
230         class="my-uploader"
231         upload-text="添加图片"
232         upload-icon="plus"
233     >
234 <!--      <view class="text-center desc" wx:if="{{goodsImgList.length<=0}}">-->
235 <!--        <view class="flex-row flex-center">-->
236 <!--          <van-icon class="font-size-32" name="photo" /> 点击上传图片-->
237 <!--        </view>-->
238 <!--        <view class="font-size-12">建议尺寸:500x500像素,72分辨率</view>-->
239 <!--      </view>-->
240     </van-uploader>
241   </van-cell-group>
242 </view>
243 <view class="fixed-footer fixed-footer-button flex-row space-around">
9e299c 244   <van-button plain class="btn-padding" type="warning">保存</van-button>
b6cc28 245   <van-button class="theme-button btn-padding" type="warning" bind:click="onSubmit">发布</van-button>
S 246 </view>
247