| 1 |
- <view class="app-content _div data-v-c9d079e2"><form data-event-opts="{{[['submit',[['formSubmit',['$event']]]]]}}" bindsubmit="__e" class="data-v-c9d079e2"><view class="module-com input-line-wrap _div data-v-c9d079e2"><tui-list-cell class="line-cell data-v-c9d079e2" vue-id="703dc052-1" hover="{{false}}" bind:__l="__l" vue-slots="{{['default']}}"><view class="tui-title required _div data-v-c9d079e2">名称</view><input class="tui-input data-v-c9d079e2" 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-c9d079e2" vue-id="703dc052-2" hover="{{false}}" bind:__l="__l" vue-slots="{{['default']}}"><view class="tui-title required _div data-v-c9d079e2">价格</view><input class="tui-input data-v-c9d079e2" 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"/></tui-list-cell><tui-list-cell class="line-cell category-wrap data-v-c9d079e2" vue-id="703dc052-3" hover="{{false}}" bind:__l="__l" vue-slots="{{['default']}}"><view class="tui-title _div data-v-c9d079e2">分类</view><view class="tui-input _div data-v-c9d079e2"><block wx:for="{{$root.l0}}" wx:for-item="item" wx:for-index="index" wx:key="index"><block class="data-v-c9d079e2"><button data-event-opts="{{[['tap',[['selCategoryFn',['$0'],[[['categoryData','',index]]]]]]]}}" class="{{['admin-button-com data-v-c9d079e2',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-c9d079e2" vue-id="703dc052-4" hover="{{false}}" bind:__l="__l" vue-slots="{{['default']}}"><view class="tui-title _div data-v-c9d079e2">库存</view><input class="tui-input data-v-c9d079e2" 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 data-v-c9d079e2" vue-id="703dc052-5" hover="{{false}}" bind:__l="__l" vue-slots="{{['default']}}"><view class="tui-title _div data-v-c9d079e2">历史销量</view><input class="tui-input data-v-c9d079e2" 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-c9d079e2" vue-id="703dc052-6" hover="{{false}}" bind:__l="__l" vue-slots="{{['default']}}"><view class="tui-title _div data-v-c9d079e2">节日涨价</view><label class="tui-input data-v-c9d079e2" for="autoPrice" data-event-opts="{{[['tap',[['autoRiseChange',['$0'],['form.autoRise']]]]]}}" bindtap="__e"><checkbox class="ljd-checkbox data-v-c9d079e2" style="transform:scale(0.7,0.7);" id="autoPrice" checked="{{form.autoRise==1}}"></checkbox><label class="_span data-v-c9d079e2">需要</label></label></tui-list-cell><tui-list-cell class="line-cell data-v-c9d079e2" vue-id="703dc052-7" hover="{{false}}" bind:__l="__l" vue-slots="{{['default']}}"><view class="tui-title _div data-v-c9d079e2">配送类型</view><label class="tui-input data-v-c9d079e2" for="sendType" data-event-opts="{{[['tap',[['needSendChange',['$0'],['form.needSend']]]]]}}" bindtap="__e"><checkbox class="ljd-checkbox data-v-c9d079e2" 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-c9d079e2">自取商品</label></label></tui-list-cell><tui-list-cell class="line-cell data-v-c9d079e2" vue-id="703dc052-8" hover="{{false}}" bind:__l="__l" vue-slots="{{['default']}}"><view class="tui-title _div data-v-c9d079e2">运费</view><radio-group data-event-opts="{{[['change',[['freightChange',['$event']]]]]}}" class="tui-input flex-center-between data-v-c9d079e2" bindchange="__e"><label class="list data-v-c9d079e2" for="customLink"><radio style="transform:scale(0.8,0.8);" id="customLink" value="0" checked="{{form.freightType==0}}" class="data-v-c9d079e2"></radio><label class="checkbox-text _span data-v-c9d079e2">按距离收费</label></label><label class="list data-v-c9d079e2" for="goodsLink"><radio style="transform:scale(0.8,0.8);" id="goodsLink" value="1" checked="{{form.freightType==1}}" class="data-v-c9d079e2"></radio><label class="checkbox-text _span data-v-c9d079e2">免运费</label></label></radio-group></tui-list-cell></view><view class="module-com input-line-wrap goods-wrap _div data-v-c9d079e2"><view class="module-tit _div data-v-c9d079e2"><label class="_span data-v-c9d079e2">商品图片</label><label class="app-color-3 _span data-v-c9d079e2">(最多上传4张)</label></view><view class="module-det _div data-v-c9d079e2"><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-c9d079e2 vue-ref" bind:__l="__l"></app-uploader></view></view><view class="module-com input-line-wrap summary-wrap _div data-v-c9d079e2"><view class="module-tit _div data-v-c9d079e2">商品简介</view><view class="module-det _div data-v-c9d079e2" style="padding-bottom:10rpx;"><textarea class="goods-summary data-v-c9d079e2" 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-c9d079e2"><button class="admin-button-com middle default data-v-c9d079e2" formType="submit" data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" bindtap="__e">保存</button><button class="admin-button-com middle blue data-v-c9d079e2" formType="submit" data-event-opts="{{[['tap',[['e1',['$event']]]]]}}" bindtap="__e">保存上架</button></view></form></view>
|