Sanakey
2021-05-28 7a3e7575db72044e973d5ef5d8d1a57993937cd6
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
<!--pages/flashSaleCreate/flashSaleCreate.wxml-->
<view class="container has-footer">
  <van-cell-group class="my-cell-group">
    <van-field
        class="my-cell"
        value="{{ promotionsTitle }}"
        name="promotionsTitle"
        label="活动标题"
        placeholder="建议标题文字在3-17字之间"
        bind:blur="checkPromotionsTitle"
        error-message="{{promotionsTitleError}}"
    />
  </van-cell-group>
  <van-cell-group class="my-cell-group">
    <van-cell class="my-cell" border="{{false}}" title="产品图片"></van-cell>
    <my-file-uploader id="file-uploader" img-list="{{coverImageList}}" url="{{fileUploadUrl+'&isCoverImage=true'}}" file-delete-url="/shopping/panicBuying.do?m=deleteAttachment"></my-file-uploader>
 
  </van-cell-group>
 
  <van-cell-group class="my-cell-group">
    <van-field
        class="my-cell"
        value="{{ originalPrice }}"
        name="originalPrice"
        label="标价"
        type="digit"
        placeholder="请输入产品标价"
        bind:blur="checkOriginalPrice"
        error-message="{{originalPriceError}}"
    >
      <view class="icon" slot="right-icon">
        元
      </view>
    </van-field>
    <van-field
        class="my-cell"
        value="{{ flashSalePrice }}"
        name="flashSalePrice"
        label="秒杀价"
        type="digit"
        placeholder="请输入产品秒杀价"
        bind:blur="checkFlashSalePrice"
        error-message="{{flashSalePriceError}}"
    >
      <view class="icon" slot="right-icon">
        元
      </view>
    </van-field>
 
    <my-time-quantum id="time-quantum" start-time="{{startTime}}" end-time="{{endTime}}" bind:selectedStartTime="selectedStartTime" bind:selectedEndTime="selectedEndTime"></my-time-quantum>
 
    <van-field
        class="my-cell"
        value="{{ flashSaleTotal }}"
        name="flashSaleTotal"
        label="秒杀总量"
        type="number"
        placeholder="请输入产品总量"
        bind:blur="checkFlashSaleTotal"
        error-message="{{flashSaleTotalError}}"
    >
      <view class="icon" slot="right-icon">
        个
      </view>
    </van-field>
    <van-field
        class="my-cell"
        value="{{ flashSaleLimit }}"
        name="flashSaleLimit"
        label="限购数量"
        type="number"
        placeholder="设置每人限购数量,0为不限制"
        bind:blur="checkFlashSaleLimit"
        error-message="{{flashSaleLimitError}}"
    >
      <view class="icon" slot="right-icon">
        个
      </view>
    </van-field>
 
    <view>
      <my-delivery-method id="delivery-method" delivery="{{delivery}}" doccode="{{doccode}}" bind:getDeliveryMethod="getDeliveryMethod"></my-delivery-method>
    </view>
 
  </van-cell-group>
 
  <view class="desc font-size-12 padding-lr"><text class="iconfont icon-gantanhao-xianxingyuankuang theme-font-color"></text> 客户秒杀之后,金额将扣除平台手续费{{feeRateForPay||0}}%后,打入后台账户,请手动提现。</view>
 
  <my-seller-edit id="seller-edit" seller-list="{{sellerList}}"></my-seller-edit>
  <van-cell-group class="my-cell-group">
    <van-cell border="{{false}}" title="请输入活动描述规则"></van-cell>
    <van-field
        value="{{ promotionDescription }}"
        class="field-text-left"
        type="textarea"
        placeholder="点击输入活动描述,文字描述200字以内"
        autosize="{{autosize}}"
        bind:blur="checkPromotionDescription"
        error-message="{{promotionDescriptionError}}"
        border="{{ false }}"
        maxlength="{{200}}"
        show-word-limit
    />
 
    <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>
  </van-cell-group>
</view>
<view class="fixed-footer fixed-footer-button {{!status?'flex-row':''}} space-around">
  <van-button plain class="btn-padding" wx:if="{{!status}}" type="warning" data-status="0" bind:click="onSave">保存</van-button>
  <view class="{{!status?'':'padding'}}">
    <van-button class="theme-button btn-padding" block="{{!!status}}" type="warning" data-status="1" bind:click="onSubmit">发布</van-button>
  </view>
</view>