add.wxml 6.4 KB

1
  1. <view class="app-content _div data-v-63216df7"><form data-event-opts="{{[['submit',[['formSubmit',['$event']]]]]}}" bindsubmit="__e" class="data-v-63216df7"><view class="module-com input-line-wrap _div data-v-63216df7"><tui-list-cell class="line-cell data-v-63216df7" vue-id="703dc052-1" hover="{{false}}" bind:__l="__l" vue-slots="{{['default']}}"><view class="tui-title required _div data-v-63216df7">名称</view><input class="tui-input data-v-63216df7" placeholder-class="phcolor" name="goodsName" placeholder="请输入" maxlength="50" type="text" data-event-opts="{{[['input',[['__set_model',['$0','goodsName','$event',[]],['form']]]]]}}" value="{{form.goodsName}}" bindinput="__e"/></tui-list-cell><tui-list-cell class="line-cell data-v-63216df7" vue-id="703dc052-2" hover="{{false}}" bind:__l="__l" vue-slots="{{['default']}}"><view class="tui-title _div data-v-63216df7">历史销量</view><input class="tui-input data-v-63216df7" placeholder-class="phcolor" name="sold" placeholder="选填,商城销量=历史销量+真实销量" maxlength="50" type="number" data-event-opts="{{[['input',[['__set_model',['$0','sold','$event',[]],['form']]]]]}}" value="{{form.sold}}" bindinput="__e"/></tui-list-cell><tui-list-cell class="line-cell data-v-63216df7" vue-id="703dc052-3" hover="{{false}}" bind:__l="__l" vue-slots="{{['default']}}"><view class="tui-title _div data-v-63216df7">库存</view><input class="tui-input data-v-63216df7" placeholder-class="phcolor" name="stock" placeholder="请输入库存,留空表示库存充足" maxlength="50" type="number" data-event-opts="{{[['input',[['__set_model',['$0','stock','$event',[]],['form']]]]]}}" value="{{form.stock}}" bindinput="__e"/></tui-list-cell><tui-list-cell class="line-cell category-wrap data-v-63216df7" vue-id="703dc052-4" hover="{{false}}" bind:__l="__l" vue-slots="{{['default']}}"><view class="tui-title _div data-v-63216df7">类型</view><view class="tui-input _div data-v-63216df7"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block class="data-v-63216df7"><button data-event-opts="{{[['tap',[['selCategoryFn',['$0'],[[['categoryData','',index]]]]]]]}}" class="{{['admin-button-com data-v-63216df7',item.g0||item.g1?'':'default']}}" bindtap="__e">{{item.$orig.categoryName||'暂无'}}</button></block></block></view></tui-list-cell><tui-list-cell class="line-cell data-v-63216df7" vue-id="703dc052-5" hover="{{false}}" bind:__l="__l" vue-slots="{{['default']}}"><view class="tui-title required _div data-v-63216df7">价格</view><input class="tui-input data-v-63216df7" placeholder-class="phcolor" name="price" placeholder="请输入" maxlength="50" type="digit" data-event-opts="{{[['input',[['__set_model',['$0','price','$event',[]],['form']]]]]}}" value="{{form.price}}" bindinput="__e"/><view class="tui-prompt _div data-v-63216df7">元</view></tui-list-cell><tui-list-cell class="line-cell data-v-63216df7" vue-id="703dc052-6" hover="{{false}}" bind:__l="__l" vue-slots="{{['default']}}"><view class="tui-title _div data-v-63216df7">节日涨价</view><label class="tui-input data-v-63216df7" for="autoPrice" data-event-opts="{{[['tap',[['autoRiseChange',['$0'],['form.autoRise']]]]]}}" bindtap="__e"><checkbox class="ljd-checkbox data-v-63216df7" style="transform:scale(0.7,0.7);" id="autoPrice" checked="{{form.autoRise==1}}"></checkbox><label class="_span data-v-63216df7">需要</label></label></tui-list-cell><tui-list-cell class="line-cell data-v-63216df7" vue-id="703dc052-7" hover="{{false}}" bind:__l="__l" vue-slots="{{['default']}}"><view class="tui-title _div data-v-63216df7">配送类型</view><label class="tui-input data-v-63216df7" for="sendType" data-event-opts="{{[['tap',[['needSendChange',['$0'],['form.needSend']]]]]}}" bindtap="__e"><checkbox class="ljd-checkbox data-v-63216df7" style="transform:scale(0.7,0.7);" id="sendType" checked="{{form.needSend==1}}" data-event-opts="{{[['change',[['giftChange',['$event']]]]]}}" bindchange="__e"></checkbox><label class="_span data-v-63216df7">自取商品</label></label></tui-list-cell><tui-list-cell class="line-cell data-v-63216df7" vue-id="703dc052-8" hover="{{false}}" bind:__l="__l" vue-slots="{{['default']}}"><view class="tui-title _div data-v-63216df7">运费</view><radio-group data-event-opts="{{[['change',[['freightChange',['$event']]]]]}}" class="tui-input flex-center-between data-v-63216df7" bindchange="__e"><label class="list data-v-63216df7" for="customLink"><radio style="transform:scale(0.8,0.8);" id="customLink" value="0" checked="{{form.freightType==0}}" class="data-v-63216df7"></radio><label class="checkbox-text _span data-v-63216df7">按距离收费</label></label><label class="list data-v-63216df7" for="goodsLink"><radio style="transform:scale(0.8,0.8);" id="goodsLink" value="1" checked="{{form.freightType==1}}" class="data-v-63216df7"></radio><label class="checkbox-text _span data-v-63216df7">免运费</label></label></radio-group></tui-list-cell></view><view class="module-com input-line-wrap goods-wrap _div data-v-63216df7"><view class="module-tit _div data-v-63216df7"><label class="_span data-v-63216df7">商品图片</label><label class="app-color-3 _span data-v-63216df7">(最多上传4张)</label></view><view class="module-det _div data-v-63216df7"><app-uploader vue-id="703dc052-9" imgList="{{form.shopImg}}" isMain="{{true}}" num="{{4}}" data-ref="appUploader" data-event-opts="{{[['^updateImgList',[['__set_sync',['$0','shopImg','$event'],['form']]]],['^updateImgList',[['__set_sync',['$0','shopImg','$event'],['form']]]]]}}" bind:updateImgList="__e" class="data-v-63216df7 vue-ref" bind:__l="__l"></app-uploader></view></view><view class="module-com input-line-wrap summary-wrap _div data-v-63216df7"><view class="module-tit _div data-v-63216df7">商品简介</view><view class="module-det _div data-v-63216df7" style="padding-bottom:10px;"><textarea class="goods-summary data-v-63216df7" placeholder-class="phcolor" placeholder="请输入商品简介" data-event-opts="{{[['input',[['__set_model',['$0','briefContent','$event',[]],['form']]]]]}}" value="{{form.briefContent}}" bindinput="__e"></textarea></view></view><view class="app-footer _div data-v-63216df7"><button class="admin-button-com middle default data-v-63216df7" formType="submit" data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" bindtap="__e">加入仓库</button><button class="admin-button-com middle blue data-v-63216df7" formType="submit" data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" bindtap="__e">上架</button></view></form></view>