Sanakey
2021-04-30 8724a444c8a1d09dc8f9efd005e8443aad8df1ab
提交 | 用户 | 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>
282d69 16     <my-file-uploader id="file-uploader" img-list="{{coverImageList}}" url="{{fileUploadUrl+'&isCoverImage=true'}}" file-delete-url="/shopping/panicBuying.do?m=deleteAttachment"></my-file-uploader>
27d5ae 17
b6cc28 18   </van-cell-group>
S 19
20   <van-cell-group class="my-cell-group">
21     <van-field
22         class="my-cell"
23         value="{{ originalPrice }}"
24         name="originalPrice"
8724a4 25         label="价"
S 26         placeholder="请输入产品标价"
b6cc28 27         bind:blur="checkOriginalPrice"
S 28         error-message="{{originalPriceError}}"
29     >
30       <view class="icon" slot="right-icon">
31         元
32       </view>
33     </van-field>
34     <van-field
35         class="my-cell"
36         value="{{ flashSalePrice }}"
37         name="flashSalePrice"
38         label="秒杀价"
39         placeholder="请输入产品秒杀价"
40         bind:blur="checkFlashSalePrice"
41         error-message="{{flashSalePriceError}}"
42     >
43       <view class="icon" slot="right-icon">
44         元
45       </view>
46     </van-field>
47
27d5ae 48     <my-time-quantum id="time-quantum" start-time="{{startTime}}" end-time="{{endTime}}" bind:selectedStartTime="selectedStartTime" bind:selectedEndTime="selectedEndTime"></my-time-quantum>
b6cc28 49
S 50     <van-field
51         class="my-cell"
52         value="{{ flashSaleTotal }}"
53         name="flashSaleTotal"
54         label="秒杀总量"
55         placeholder="请输入产品总量"
56         bind:blur="checkFlashSaleTotal"
57         error-message="{{flashSaleTotalError}}"
58     >
59       <view class="icon" slot="right-icon">
60         个
61       </view>
62     </van-field>
63     <van-field
64         class="my-cell"
65         value="{{ flashSaleLimit }}"
66         name="flashSaleLimit"
67         label="限购数量"
68         placeholder="设置每人限购数量,0为不限制"
69         bind:blur="checkFlashSaleLimit"
70         error-message="{{flashSaleLimitError}}"
71     >
72       <view class="icon" slot="right-icon">
73         个
74       </view>
75     </van-field>
76
77     <view>
27d5ae 78       <my-delivery-method id="delivery-method" delivery="{{delivery}}" doccode="{{doccode}}" bind:getDeliveryMethod="getDeliveryMethod"></my-delivery-method>
b6cc28 79     </view>
S 80
81   </van-cell-group>
82
282d69 83   <my-seller-edit id="seller-edit" seller-list="{{sellerList}}"></my-seller-edit>
b6cc28 84   <van-cell-group class="my-cell-group">
9e299c 85     <van-cell border="{{false}}" title="请输入活动描述规则" label="建议以图片描述为主,文字描述200字以内"></van-cell>
b6cc28 86     <van-field
27d5ae 87         value="{{ promotionDescription }}"
9e299c 88         class="field-text-left"
b6cc28 89         type="textarea"
3dd7c0 90         placeholder="点击输入活动描述"
6eb4ec 91         autosize="{{autosize}}"
3dd7c0 92         bind:blur="checkPromotionDescription"
S 93         error-message="{{promotionDescriptionError}}"
b6cc28 94         border="{{ false }}"
S 95         maxlength="{{200}}"
96         show-word-limit
97     />
3dd7c0 98
282d69 99     <my-file-uploader id="file-uploader-multiple" img-list="{{imagesList}}" url="{{fileUploadUrl+'&isCoverImage=false'}}" multiple="{{true}}" file-delete-url="/shopping/panicBuying.do?m=deleteAttachment"></my-file-uploader>
b6cc28 100   </van-cell-group>
S 101 </view>
8724a4 102 <view class="fixed-footer fixed-footer-button {{!status?'flex-row':''}} space-around">
27d5ae 103   <van-button plain class="btn-padding" wx:if="{{!status}}" type="warning" data-status="0" bind:click="onSave">保存</van-button>
8724a4 104   <view class="{{!status?'':'padding'}}">
S 105     <van-button class="theme-button btn-padding" block="{{!!status}}" type="warning" data-status="1" bind:click="onSubmit">发布</van-button>
106   </view>
b6cc28 107 </view>
S 108