card-mini/pages/mine/product/recycle/productrecycle.wxml

39 lines
2.0 KiB
Plaintext

<!--pages/mine/shop/choose.wxml-->
<cu-custom isBack="{{true}}">
<view slot="content">商品回收站</view>
</cu-custom>
<scroll-view style="margin-bottom:80rpx;margin-top:10rpx" refresher-enabled="true" refresher-threshold="{{50}}"
refresher-background="#fff" bindrefresherrefresh="dorefreshList" refresher-triggered="{{isRefreshing}}">
<view wx:if="{{goodsList.length>0}}">
<view class="cu-list menu-avatar" wx:for="{{goodsList}}" wx:key="index">
<view class="cu-item" data-item="{{item}}" bindtap="manageGoods">
<view class="cu-avatar radius xl" style="background-image:url({{baseImageUrl+item.goodsIcon}});">
</view>
<view class="content" style="width:85%;">
<view class="text-depblack" style="width:80%;">
<text class="text-cut">{{item.goodsName}}</text>
</view>
<view class="text-gray text-sm flex" style="width:80%;">
<text class="text-cut">{{item.goodsSummary}}</text>
</view>
<view class="bottom-action margin-top-ls">
<view class="text-lg text-red">¥:{{item.goodsUnitPrice}}</view>
<view class="text-grey text-sm">
所属类目:{{item.categoryName}}
</view>
</view>
</view>
</view>
<view class="btn-box">
<view class="btn bg-red radius" bindtap="doDelOne" data-item="{{item}}">删除</view>
<view class="btn bg-yellow-light-1 radius margin-left-sm" bindtap="doRecoverOne" data-item="{{item}}">恢复
</view>
</view>
</view>
</view>
<van-empty description="暂无数据" wx:else />
</scroll-view>
<view class="padding-xs foot bg-white" style="display:flex;">
<button class="cu-btn bg-red margin-left-sm" style="width:100%" bindtap="doClearAll">清空回收站</button>
</view>