history.wxml
3.08 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
55
56
57
58
<!--pages/me/history.wxml-->
<nav>订好座,就用周到安排</nav>
<view class="pages">
<view class="flex-vc empty" wx:if="{{sellersLength<1}}">
<block wx:if="{{!hasFirstShow}}">
<image src="http://nosqn.colorcun.com/custom/lite-online/image/follow-empty.png"></image>
<view class="text">您还没有留下足迹哦~</view>
<view class="goHome" bindtap="goHome">去首页逛逛</view>
</block>
</view>
<block wx:else="">
<view class="clean flex-rr" bindtap="clean">
<view class="clean-img"></view>
<view class="clean-text">清空</view>
</view>
<view class="follow" >
<view class="seller-group" wx:for="{{sellers}}" wx:key="sellerskey" wx:for-item="group">
<view class="timeline">{{group.day}}</view>
<view class="seller-item flex-ll" wx:for="{{group.sellers}}" wx:key="groupSellerskey" wx:for-item="seller"
bindtap="gotoDetail" data-sid="{{seller.id}}">
<image mode="aspectFill" class="image"
src="{{seller.seller_image?seller.seller_image+'?imageView2/2/w/320/interlace/0/q/100':'http://nosqn.colorcun.com/reserve/images/3x/%E6%9A%82%E6%97%A0.png'}}"></image>
<view class="seller-item-info">
<view class="seller-item-name">{{seller.sellername}}</view>
<view class="seller-item-price" wx:if="{{seller.average>0}}">¥{{seller.average}}元/人</view>
</view>
<view class="seller-item-line"></view>
</view>
</view>
<hr class="seller flex-vc" bgColor="#f5f5f5" wx:if="{{!hasMore}}" style="margin-top: 20rpx;">我是有底线的</hr>
</view>
</block>
</view>
<block wx:if="{{!hasFirstShow && sellersLength<1}}">
<view class="rsl-block">
<view class="line-push">为你推荐</view>
<view class="transverse-list">
<swiper
indicator-dots="{{false}}" autoplay="{{false}}" circular="{{false}}" vertical="{{false}}"
interval="2000" duration="500"
previous-margin="{{15}}px" next-margin="{{15}}px" style="height: 350rpx;"
current="{{current}}" bindchange="bindtransition" bindanimationfinish="bindtransition">
<block wx:for="{{rsl}}" wx:key="rsl.key">
<swiper-item bindtap="gotoDetail" data-sid="{{item.id}}" id="{{item.id}}">
<view class="seller" id="seller-{{item.id}}">
<sb-tr seller="{{item}}"
hasActivityTags="{{false}}"
hasActivityShort="{{true}}"
hasBrand="true" hasActivityTese="true"
hasSlogan="{{false}}"></sb-tr>
</view>
</swiper-item>
</block>
</swiper>
</view>
</view>
</block>
<getpos bindpos="onpos" id="getpos" hasAllowFail></getpos>