canting.wxml
3.7 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<!-- <view class="colecttop flextwo">
<view class="comt">(20/34)</view>
</view> -->
<view class="noimg" wx:if="{{restaurant.length==0}}">
<view class="nodataimg" >
<image src="/img/nodataimg.png"></image>
</view>
<view class="nomoer nomoredata">没有更多了哦~</view>
</view>
<view class="collectbox" wx:else>
<view class="colectbitem flex" wx:for="{{restaurant}}" wx:key="" bindtap="goodtail" data-id="{{item.id}}">
<view class="collectbitemleft">
<image src="{{item.image}}"></image>
</view>
<view class="collectbtitemr">
<view class='goodname'>{{item.name}}</view>
<view class="flexone starbox">
<view class="star flexone">
<view class="staritem">
<image src="/img/pingfenshi.png" wx:if="{{item.level>=1}}"></image>
<image src="/img/noxing.png" wx:if="{{item.level<0.5}}"></image>
<image src="/img/banke.png" wx:if="{{item.level>=0.5&&item.level<1}}"></image>
</view>
<view class="staritem">
<image src="/img/pingfenshi.png" wx:if="{{item.level>=2}}"></image>
<image src="/img/noxing.png" wx:if="{{item.level<1.5}}"></image>
<image src="/img/banke.png" wx:if="{{item.level>=1.5&&item.level<2}}"></image>
</view>
<view class="staritem">
<image src="/img/pingfenshi.png" wx:if="{{item.level>=3}}"></image>
<image src="/img/noxing.png" wx:if="{{item.level<2.5}}"></image>
<image src="/img/banke.png" wx:if="{{item.level>=2.5&&item.level<3}}"></image>
</view>
<view class="staritem">
<image src="/img/pingfenshi.png" wx:if="{{item.level>=4}}"></image>
<image src="/img/noxing.png" wx:if="{{item.level<3.5}}"></image>
<image src="/img/banke.png" wx:if="{{item.level>=3.5&&item.level<4}}"></image>
</view>
<view class="staritem">
<image src="/img/pingfenshi.png" wx:if="{{item.level>=5}}"></image>
<image src="/img/noxing.png" wx:if="{{item.level<4.5}}"></image>
<image src="/img/banke.png" wx:if="{{item.level>=4.5&&item.level<5}}"></image>
</view>
</view>
<view class="shouprice">¥{{item.price}}</view>
</view>
<view class="addressbox flexone">
<view class='asddressitem'>{{item.business_name}}</view>
<view class='asddressitem'>{{item.series_name}}</view>
<!-- <view class='asddressitem'>东京街</view> -->
</view>
</view>
</view>
<!-- <view class="colectbitem flex">
<view class="collectbitemleft">
<image src="/img/photo.png"></image>
</view>
<view class="collectbtitemr">
<view class='goodname'>海贼王寿司店</view>
<view class="flexone starbox">
<view class="star flexone">
<view class="staritem">
<image src="/img/pingfenshi.png"></image>
</view>
<view class="staritem">
<image src="/img/pingfenshi.png"></image>
</view>
<view class="staritem">
<image src="/img/pingfenshi.png"></image>
</view>
<view class="staritem">
<image src="/img/pingfenshi.png"></image>
</view>
<view class="staritem">
<image src="/img/pingfenshi.png"></image>
</view>
</view>
<view class="shouprice">¥88</view>
</view>
<view class="addressbox flexone">
<view class='asddressitem'>东京街</view>
<view class='asddressitem'>东京街</view>
<view class='asddressitem'>东京街</view>
</view>
</view>
</view> -->
</view>
<!-- <view class="nomoer">没有更多了哦~</view> -->