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
2.1 KiB

<view class="goodsManage-page"><view class="nav acea-row row-around"><view data-event-opts="{{[['tap',[['changeType',[1]]]]]}}" class="{{['item',(type===1)?'on':'']}}" bindtap="__e"><view>出售中</view></view><view data-event-opts="{{[['tap',[['changeType',[0]]]]]}}" class="{{['item',(type===0)?'on':'']}}" bindtap="__e"><view>待上架</view></view></view><view class="goods-list-box"><block wx:if="{{goodsList.length==0}}"><view class="no-order"><image src="https://download.cyjyyjy.com/no-goods.png"></image></view></block><block wx:else><block wx:for="{{goodsList}}" wx:for-item="item" wx:for-index="__i0__" wx:key="*this"><view data-event-opts="{{[['tap',[['goGoodsCon',['$0'],[[['goodsList','',__i0__]]]]]]]}}" class="goods-item" bindtap="__e"><view class="item-top acea-row"><image class="goods-img" src="{{item.image}}" mode="aspectFill"></image><view class="info-box"><view class="title line1">{{item.storeName}}</view><view class="colG">{{"规格 "+item.unitName}}</view><view class="price-box acea-row row-between-wrapper"><view class="money">{{"¥"+item.price}}</view><view class="colG">{{"库存:"+item.stock}}</view></view></view></view><view class="btn-box acea-row row-right"><block wx:if="{{type==0}}"><view data-event-opts="{{[['tap',[['toAddGoods',['$0'],[[['goodsList','',__i0__]]]]]]]}}" class="edit-btn acea-row row-middle" bindtap="__e"><image src="../../../static/images/edit-goods.png"></image><text>编辑商品</text></view></block><view data-event-opts="{{[['tap',[['showProduct',['$0'],[[['goodsList','',__i0__]]]]]]]}}" class="off-shelf-btn acea-row row-middle" catchtap="__e"><image class="{{[type==0?'flip':'']}}" src="../../../static/images/off-shelf.png"></image><text>{{(type==1?'下架':'上架')+"商品"}}</text></view><block wx:if="{{type==0}}"><view data-event-opts="{{[['tap',[['delProduct',['$0'],[[['goodsList','',__i0__]]]]]]]}}" class="del-btn acea-row row-middle" bindtap="__e"><image src="../../../static/images/del-goods.png"></image><text>删除商品</text></view></block></view></view></block></block></view><view data-event-opts="{{[['tap',[['toAddGoods',['']]]]]}}" class="add-btn" bindtap="__e">新增商品</view></view>