myCollection.wxml
3.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<!--pages/my/myCollection/myCollection.wxml-->
<view class='page'>
<view class='banner'>
<view class='iconfont icon-fanhui' catchtap='get_my'></view>
<view class='coupons'>我的收藏</view>
<view class='complete' bindtap='manage_relative'>管理</view>
</view>
<view wx:if='{{collectionList!=0}}'>
<view class='select_list'>
<view bindtap='changeId' data-id='{{cell.id}}' class='select_list_item {{navId==cell.id?"active":""}}' wx:for='{{collectionList}}' wx:for-index='cellindex' wx:key='{{cellindex}}' wx:for-item='cell'>{{cell.name}}</view>
</view>
<block wx:if='{{navId==parentId}}'>
<view class='content_item' wx:if='{{arr.length!=0}}'>
<view class='item_list' wx:for='{{arr}}' wx:for-item='item' wx:for-index='index' wx:key='{{index}}' bindtap="get_goodsDetail"data-index='{{index}}' data-id='{{item.id}}'>
<view class='iconfont icon-xuanzhong {{item.t?"active":""}}' wx:if='{{manage}}' catchtap='choose_del' data-fid='{{item.favorite_id}}' data-id='{{item.id}}' data-flag='{{item.t}}' data-index='{{index}}'></view>
<view class='content_img' >
<image src='{{item.more.thumbnail}}' mode='widthFix'></image>
</view>
<view class='content_information'>
<view class='content_title'>{{item.title}}</view>
<view class='content_hint'>{{item.excerpt}}</view>
<view class='price_box'>
<text class='money_icon'>¥</text>
<text class='present_price'>{{item.price}}</text>
<text class='original_price'>¥{{item.old_price}}</text>
</view>
<view class='special_offer_box'>
<text class='money_icon1'>¥</text>
<text class='special_offer'>{{item.vip_price}}</text>
<view class='members_only'>会员专享</view>
</view>
</view>
</view>
</view>
<view wx:if='{{arr.length==0}}' class='da'>
<image src='../../imgs/noMessage.png'></image>
<view>您暂时没有消息哦</view>
</view>
</block>
</view>
<view wx:if='{{collectionList.length==0}}' class='gogogo'>
<image src='../../imgs/noMessage.png'></image>
<view>您暂时没有消息哦</view>
</view>
<view class='bottom_btn' wx:if='{{manage}}'>
<view class='all_btn' bindtap='chooseAllDel'>
<view class='iconfont icon-xuanzhong {{chooseAll?"active":""}}' ></view>
<view class='all'>全选</view>
</view>
<view class='delete_btn' bindtap='deleteGoods'>删除</view>
</view>
</view>