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
4.9 KiB
1 lines
4.9 KiB
<view class="index-box"><view class="add-goodsimg-box"><view class="img-box acea-row"><view class="upload-box"><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]==''}}"><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]==''}}"><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]==''}}"><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><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>去编辑</text><image src="../../../static/images/arror-r-s.png"></image></view></view></view><view data-event-opts="{{[['tap',[['addSku',['$event']]]]]}}" class="title2" bindtap="__e">添加规格</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 data-event-opts="{{[['tap',[['delSku',[index]]]]]}}" class="close-btn" bindtap="__e">×</view><view class="sku img-sku acea-row row-middle row-between"><text>图片</text><block wx:if="{{item.pic==''}}"><image src="../../../static/images/upload.png" data-event-opts="{{[['tap',[['uploadSkuImg',[index]]]]]}}" bindtap="__e"></image></block><block wx:else><image src="{{item.pic}}" mode="aspectFill" data-event-opts="{{[['tap',[['uploadSkuImg',[index]]]]]}}" bindtap="__e"></image></block></view><view class="sku img-sku acea-row row-middle row-between"><text>价格<text class="colR">*</text></text><input type="text" 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="text" 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="text" 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="text" placeholder="请输入重量" 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="text" placeholder="请输入体积" data-event-opts="{{[['input',[['__set_model',['$0','volume','$event',[]],[[['attrs','',index]]]]]]]}}" value="{{item.volume}}" bindinput="__e"/></view></view></block></view><view class="temp-box acea-row row-between-wrapper"><text>运费模板</text><view class="acea-row row-middle"><text>全国包邮(默认)</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></view> |