You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
5.9 KiB

3 years ago
<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="add-sku-box"><block wx:for="{{attrs}}" wx:for-item="item" wx:for-index="index" wx:key="index"><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','',index]]]]]]]}}" value="{{item.price}}" bindinput="__e"/></view><view class="sku img-sku acea-row row-middle row-between"><text>市场价格</text><input type="number" placeholder="请输入市场价格(元)" data-event-opts="{{[['input',[['__set_model',['$0','ot_orice','$event',[]],[[['attrs','',index]]]]]]]}}" value="{{item.ot_orice}}" 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','',index]]]]]]]}}" value="{{item.stock}}" bindinput="__e"/></view><view class="sku img-sku acea-row row-middle row-between"><text>重量</text><input type="number" placeholder="请输入重量kg" data-event-opts="{{[['input',[['__set_model',['$0','weight','$event',[]],[[['attrs','',index]]]]]]]}}" value="{{item.weight}}" bindinput="__e"/></view><view class="sku img-sku acea-row row-middle row-between"><text>体积</text><input type="number" placeholder="请输入体积m³" data-event-opts="{{[['input',[['__set_model',['$0','volume','$event',[]],[[['attrs','',index]]]]]]]}}" value="{{item.volume}}" bindinput="__e"/></view></view></block></view><view data-event-opts="{{[['tap',[['toTempList',['$event']]]]]}}" class="temp-box acea-row row-between-wrapper" bindtap="__e"><text>运费模板</text><view class="acea-row row-middle"><text>{{temp}}</text><image src="../../../static/images/arror-