|
|
|
<view class="index-box"><view class="add-goodsimg-box"><view class="img-box acea-row"><view data-event-opts="{{[['tap',[['uploadImgs',['$event']]]]]}}" class="upload-box" bindtap="__e"><image src="../../../static/images/upload.png"></image></view><view data-event-opts="{{[['tap',[['uploadImg',[0]]]]]}}" class="upload-box" bindtap="__e"><block wx:if="{{!slider_image[0]||slider_image[0]==''}}"><image src="../../../static/images/addimg.png"></image></block><block wx:else><image src="{{slider_image[0]}}" mode="aspectFill"></image></block></view><view data-event-opts="{{[['tap',[['uploadImg',[1]]]]]}}" class="upload-box" bindtap="__e"><block wx:if="{{!slider_image[1]||slider_image[1]==''}}"><image src="../../../static/images/addimg.png"></image></block><block wx:else><image src="{{slider_image[1]}}" mode="aspectFill"></image></block></view><view data-event-opts="{{[['tap',[['uploadImg',[2]]]]]}}" class="upload-box" bindtap="__e"><block wx:if="{{!slider_image[2]||slider_image[2]==''}}"><image src="../../../static/images/addimg.png"></image></block><block wx:else><image src="{{slider_image[2]}}" mode="aspectFill"></image></block></view></view><view class="tips acea-row row-middle"><image src="../../../static/images/tips-icon.png"></image><text>最少上传一张,最多只能上传三张图片哦!</text></view></view><view class="goodsInfo-box"><view class="goodsInfo-item"><text>商品名称<text class="colR">*</text></text><input type="text" placeholder="输入商品名称" data-event-opts="{{[['input',[['__set_model',['','store_name','$event',[]]]]]]}}" value="{{store_name}}" bindinput="__e"/></view><view class="goodsInfo-item"><text>商品单位<text class="colR">*</text></text><input type="text" placeholder="输入商品单位" data-event-opts="{{[['input',[['__set_model',['','unit_name','$event',[]]]]]]}}" value="{{unit_name}}" bindinput="__e"/></view><view class="goodsInfo-item"><text>商品详情<text class="colR">*</text></text><view data-event-opts="{{[['tap',[['toGoodsDetails',['$event']]]]]}}" class="toEdit acea-row row-middle" bindtap="__e"><text>{{description==''?'去编辑':'已编辑'}}</text><image src="../../../static/images/arror-r-s.png"></image></view></view></view><view class="set-title">规格设置</view><view class="setattr-box"><view data-event-opts="{{[['tap',[['addAttr',['$event']]]]]}}" class="attr-item colB" bindtap="__e">添加属性</view><block wx:for="{{attrArr}}" wx:for-item="item" wx:for-index="index" wx:key="index"><view data-event-opts="{{[['tap',[['editAttr',[index]]]]]}}" class="attr-item acea-row row-between row-middle" bindtap="__e"><view class="attr-item-l">{{item.attrName+"("+item.attrOptions.length+")"}}</view><image src="../../../static/images/arror-r-s.png"></image><view data-event-opts="{{[['tap',[['delAttr',[index]]]]]}}" class="del-attr" catchtap="__e">×</view></view></block></view><view class="add-sku-box"><view class="sku-item"><view class="sku img-sku acea-row row-middle row-between"><text>价格<text class="colR">*</text></text><input type="number" placeholder="请输入售价(元)" data-event-opts="{{[['input',[['__set_model',['$0','price','$event',[]],['attrs.__$n0']],['changePrice',['$event']]]]]}}" value="{{attrs[0].price}}" bindinput="__e"/></view><view class="sku img-sku acea-row row-middle row-between"><text>库存<text class="colR">*</text></text><input type="number" placeholder="请输入库存" data-event-opts="{{[['input',[['__set_model',['$0','stock','$event',[]],['attrs.__$n0']],['changeStock',['$event']]]]]}}" value="{{attrs[0].stock}}" bindinput="__e"/></view></view></view><block wx:if="{{batchData.titleStr}}"><view class="batch-set-box"><view class="box-top acea-row row-between-wrapper"><view class="name">{{batchData.titleStr}}</view><view class="attr-name w15">库存</view><view class="attr-name w15">价格</view></view><block wx:for="{{$root.l0}}" wx:for-item="i" wx:for-index="idx" wx:key="idx"><block><view class="box-b acea-row row-between-wrapper"><view class="name line1">{{i.g0}}</view><view class="inp-box w15"><input type="number" placeholder="0" da
|