Sanakey
2021-07-09 3fc241d02fb8b671289de3d9d80bf848349c04d4
pages/flashSaleCreate/flashSaleCreate.wxml
@@ -1,29 +1,35 @@
<!--pages/flashSaleCreate/flashSaleCreate.wxml-->
<view class="container has-footer">
  <van-cell-group class="my-cell-group">
    <van-cell class="my-cell required" 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
        required
        id="promotionsTitle"
        class="my-cell"
        value="{{ promotionsTitle }}"
        name="promotionsTitle"
        label="活动标题"
        placeholder="建议标题文字10字以内"
        placeholder="建议标题文字在3-14字之间"
        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'}}"></my-file-uploader>
  </van-cell-group>
  <van-cell-group class="my-cell-group">
    <van-field
        required
        id="originalPrice"
        class="my-cell"
        value="{{ originalPrice }}"
        name="originalPrice"
        label="原价"
        placeholder="请输入产品原价"
        label="标价"
        type="digit"
        placeholder="请输入产品标价"
        bind:blur="checkOriginalPrice"
        error-message="{{originalPriceError}}"
    >
@@ -32,10 +38,13 @@
      </view>
    </van-field>
    <van-field
        required
        id="flashSalePrice"
        class="my-cell"
        value="{{ flashSalePrice }}"
        name="flashSalePrice"
        label="秒杀价"
        type="digit"
        placeholder="请输入产品秒杀价"
        bind:blur="checkFlashSalePrice"
        error-message="{{flashSalePriceError}}"
@@ -48,10 +57,13 @@
    <my-time-quantum id="time-quantum" start-time="{{startTime}}" end-time="{{endTime}}" bind:selectedStartTime="selectedStartTime" bind:selectedEndTime="selectedEndTime"></my-time-quantum>
    <van-field
        required
        id="flashSaleTotal"
        class="my-cell"
        value="{{ flashSaleTotal }}"
        name="flashSaleTotal"
        label="秒杀总量"
        type="number"
        placeholder="请输入产品总量"
        bind:blur="checkFlashSaleTotal"
        error-message="{{flashSaleTotalError}}"
@@ -61,10 +73,13 @@
      </view>
    </van-field>
    <van-field
        required
        id="flashSaleLimit"
        class="my-cell"
        value="{{ flashSaleLimit }}"
        name="flashSaleLimit"
        label="限购数量"
        type="number"
        placeholder="设置每人限购数量,0为不限制"
        bind:blur="checkFlashSaleLimit"
        error-message="{{flashSaleLimitError}}"
@@ -80,14 +95,18 @@
  </van-cell-group>
  <my-seller-edit id="seller-edit" sellers="{{sellerList}}"></my-seller-edit>
  <view class="desc font-size-12 padding-lr"><text class="iconfont icon-gantanhao-xianxingyuankuang theme-font-color"></text> 客户秒杀之后,金额将扣除平台手续费{{feeRateForPay||0}}%后,打入后台账户,请手动提现。</view>
  <my-store-edit id="store-edit" store-list="{{storeList}}" from="{{fromPage}}"></my-store-edit>
  <my-seller-edit id="seller-edit" seller-list="{{sellerList}}" from="{{fromPage}}"></my-seller-edit>
  <van-cell-group class="my-cell-group">
    <van-cell border="{{false}}" title="请输入活动描述规则" label="建议以图片描述为主,文字描述200字以内"></van-cell>
    <van-cell border="{{false}}" title="请输入活动描述规则(选填)"></van-cell>
    <van-field
        cursor-spacing="250"
        value="{{ promotionDescription }}"
        class="field-text-left"
        type="textarea"
        placeholder="点击输入活动描述"
        placeholder="点击输入活动描述,文字描述200字以内"
        autosize="{{autosize}}"
        bind:blur="checkPromotionDescription"
        error-message="{{promotionDescriptionError}}"
@@ -96,11 +115,15 @@
        show-word-limit
    />
    <my-file-uploader id="file-uploader-multiple" img-list="{{imagesList}}" url="{{fileUploadUrl+'&isCoverImage=false'}}" multiple="{{true}}"></my-file-uploader>
    <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 flex-row space-around">
<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>
  <van-button class="theme-button btn-padding" type="warning" data-status="1" bind:click="onSubmit">发布</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>
<my-seller-verify-dialog is-show="{{isShowDialog}}" seller-unchecked-names="{{sellerUnCheckedNames}}"></my-seller-verify-dialog>