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 lines
5.9 KiB

<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-r-s.png"></image></view></view><view class="temp-box goods-state acea-row row-between-wrapper"><text>商品状态</text><view class="acea-row row-middle"><radio-group data-event-opts="{{[['change',[['radioChange',['$event']]]]]}}" bindchange="__e"><label><radio value="{{0}}" checked="{{state==0}}"></radio><text>上架</text></label><label><radio value="{{1}}" checked="{{state==1}}"></radio><text>下架</text></label></radio-group></view></view><view class="btn-box"><view data-event-opts="{{[['tap',[['submit',['$event']]]]]}}" class="btn" bindtap="__e">提交</view></view><block wx:if="{{maskShow==true}}"><view class="mask-box"><block wx:if="{{addOptionsDialog==true}}"><view class="addattr-dialog"><view class="dialog-top acea-row row-between row-middle"><text>规格属性</text><view data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" class="close" bindtap="__e">×</view></view><view><view class="a-name"><input type="text" placeholder="输入属性名称,如:颜色" data-event-opts="{{[['input',[['__set_model',['$0','attrName','$event',[]],['attr']]]]]}}" value="{{attr.attrName}}" bindinput="__e"/></view><view class="o-name-box"><block wx:for="{{attr.attrOptions}}" wx:for-item="o" wx:for-index="i" wx:key="i"><block><view class="o-item-box acea-row row-between row-middle"><input type="text" maxlength="10" placeholder="输入选项,如:红色,10个字以内" data-event-opts="{{[['input',[['__set_model',['$0','name','$event',[]],[[['attr.attrOptions','',i]]]]]]]}}" value="{{o.name}}" bindinput="__e"/><text data-event-opts="{{[['tap',[['delOption',[i]]]]]}}" class="close" bindtap="__e">×</text></view></block></block><view data-event-opts="{{[['tap',[['addOption',['$event']]]]]}}" class="add-option-btn" bindtap="__e">+选项</view></view></view><view data-event-opts="{{[['tap',[['submitAddAttr',['$event']]]]]}}" class="s-btn" bindtap="__e">确定</view></view></block></view></block></view>