1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- <nav type="back" title="{{id?'编辑商品':'添加商品'}}" background-color="#46a9a4"></nav>
- <view class="top">
- <view class="top-figure">套餐首图</view>
- <upload bind:onChangeFile="changeFile" fileList="{{imageList}}" accept="image" maxCount="1" uploadURL="{{uploadURL}}"
- domain="{{domain}}" uptokenURL="{{uptokenURL}}"></upload>
- <input bindblur="blur" type="text" class="input" data-name="name" value="{{name}}" placeholder="商品名称"></input>
- <input bindblur="blur" type="text" class="input" data-name="desc" value="{{desc}}"
- placeholder="商品简介"></input>
- <view class="top-input">
- <view class="top-txt">
- <input bindblur="blur" type="text" class="inputs" data-name="price" value="{{price}}"
- placeholder="售价多少"></input>
- <view>元</view>
- </view>
- <view class="top-txt">
- <input bindblur="blur" type="text" class="inputs" data-name="originalPrice" value="{{originalPrice}}"
- placeholder="商品原价"></input>
- <view>元</view>
- </view>
- </view>
- <view class="top-input">
- <view class="top-txt">
- <input bindblur="blur" type="number" class="inputs" data-name="sales" value="{{sales}}"
- placeholder="已售数量"></input>
- <view>件</view>
- </view>
- <view class="top-txt">
- <input bindblur="blur" type="number" class="inputs" data-name="total" value="{{total}}"
- placeholder="库存数量"></input>
- <view>件</view>
- </view>
- </view>
- </view>
- <view class="goods-title" bindtap="showCategory">
- <view class="goods-txt">商品分类</view>
- <view class="txt-placeholder">
- <view class="txt-place">{{category?category.name:'请选择商品分类'}}</view>
- <van-icon name="arrow" />
- </view>
- </view>
- <van-popup show="{{ showPicker }}" round position="bottom" custom-style="height: 50%" bind:close="closePicker">
- <van-picker show-toolbar title="选择商品分类" custom-style="height: 100%" columns="{{ columns }}" value-key="{{'name'}}"
- defaultIndex="{{pickerIndex}}" getColumnIndex="{{item}}" bind:cancel="onCancel" bind:confirm="onConfirm" />
- </van-popup>
- <view class="goods-title">
- <view class="goods-txt">是否上架商品</view>
- <van-switch checked="{{ checked }}" bind:change="onChange" />
- </view>
- <view class="goods-title">
- <view class="goods-txt">是否推荐商品</view>
- <van-switch checked="{{ check }}" bind:change="oChange" />
- </view>
- <view class="buttoms">
- <buttom class="buttoms-bottom2" bindtap="submit">发布商品</buttom>
- </view>
|