64 lines
3.2 KiB
Plaintext
64 lines
3.2 KiB
Plaintext
<loading wx:if="{{!show}}">加载中...</loading>
|
|
<view class="page footer" wx:if="{{show}}">
|
|
<view class="fui-list-group" wx:if="{{total>0}}">
|
|
<block wx:for="{{list}}">
|
|
<label bindtap="itemClick" class="fui-list" data-goodsid="{{item.goodsid}}" data-id="{{item.id}}" wx:if="{{item.deleted==0}}">
|
|
<view class="fui-list-media" wx:if="{{isedit}}">
|
|
<radio checked="{{checkObj[item.id]?true:''}}" class="zoom-80" color="#ef4f4f"></radio>
|
|
</view>
|
|
<view class="fui-list-media">
|
|
<image src="{{item.thumb}}"></image>
|
|
</view>
|
|
<view class="fui-list-inner">
|
|
<view class="subtitle">{{item.title}}</view>
|
|
<view class="title" style=" font-size: 30rpx">
|
|
<text class="text-danger">¥{{item.marketprice}}</text>
|
|
</view>
|
|
</view>
|
|
</label>
|
|
<label bindtap="{{isedit?'itemClick':''}}" class="fui-list" data-goodsid="{{item.goodsid}}" data-id="{{item.id}}" wx:if="{{item.deleted==1}}">
|
|
<view class="fui-list-media" wx:if="{{isedit}}">
|
|
<radio checked="{{checkObj[item.id]?true:''}}" class="zoom-80" color="#ef4f4f"></radio>
|
|
</view>
|
|
<view bindtap="{{isedit?'':'invalidModal'}}" class="fui-list-media">
|
|
<image src="{{item.thumb}}"></image>
|
|
</view>
|
|
<view bindtap="{{isedit?'':'invalidModal'}}" class="fui-list-inner">
|
|
<view class="subtitle">{{item.title}}</view>
|
|
<view class="title" style=" font-size: 30rpx">
|
|
<text class="text-danger">¥{{item.marketprice}}</text>
|
|
</view>
|
|
<view class="invalidText">失效</view>
|
|
</view>
|
|
</label>
|
|
</block>
|
|
</view>
|
|
<view class="fui-loading" wx:if="{{loading}}">
|
|
<view class="icon"></view>
|
|
<view class="text">正在加载</view>
|
|
</view>
|
|
<view class="fui-loading empty" wx:if="{{loaded&&list.length>0}}">
|
|
<view class="text">没有更多了</view>
|
|
</view>
|
|
<view class="fui-loading empty" wx:if="{{total<=0&&!loading}}">
|
|
<view class="text">没有数据</view>
|
|
</view>
|
|
<view class="fui-footer" wx:if="{{list.length>0}}">
|
|
<view class="tool">
|
|
<view class="check" wx:if="{{isedit}}">
|
|
<label bindtap="checkAllClick">
|
|
<radio checked="{{isCheckAll?true:''}}" class="zoom-80" color="#ef4f4f"></radio>
|
|
<text>全选</text>
|
|
</label>
|
|
</view>
|
|
<view class="text"></view>
|
|
<view class="btns">
|
|
<view bindtap="btnClick" class="btn btn-danger" data-action="edit" wx:if="{{!isedit}}">编辑</view>
|
|
<view bindtap="btnClick" class="btn btn-warning {{checkNum>0?'':'disabled'}}" data-action="delete" wx:if="{{isedit}}">删除</view>
|
|
<view bindtap="btnClick" class="btn btn-danger" data-action="finish" wx:if="{{isedit}}">完成</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
<include src="/pages/common/menu.wxml"></include>
|
|
</view>
|