menu.wxml
4.27 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
<nav backgroundColor="transparent" place="{{false}}">
<view class="flex-lr" style="width: 100%;height: 100%;">
<view class="me-button white-font font24r smooth flex-cc" bindtap="tome">我的</view>
<button class="share-button flex-cc" open-type="share">
<image src="http://nosqn.colorcun.com/takeout/share.png"></image>
</button>
</view>
</nav>
<view class="seller-basic" style="background: url({{seller.seller_image}});background-size:cover;">
<view class="seller-mask"></view>
<view style="height: {{headerHeight}}px;"></view>
<view class="flex-ll">
<!-- <image src="{{seller.seller_image}}" class="seller-image"></image> -->
<view class="flex-vl seller-basic-info">
<view class="font38r font-bold white-font font-more" style="width:480rpx;margin-bottom: 16rpx;">{{seller.sellername}}</view>
<view class="gray-light-font font28r flex-ll" bindtap="openaddress">
<image src="../../image/local.svg" style="width: 44rpx;height: 44rpx;margin-left: -8rpx;"></image>
<view>{{seller.map_address}}</view>
</view>
<!-- <view class="flex-ll">
<image src="" class="pos-icon"></image>
<view class="font26r white-font smooth">500m</view>
</view> -->
</view>
</view>
</view>
<view class="seller-tab flex-lr">
<block wx:for="{{tablist}}">
<view class="tab-single {{index==tabidx ? 'black-font font-bold' : 'gray-deep-font'}} smooth" bindtap="selecttab" data-index="{{index}}">
<view class="tab-name flex-cc">{{item.name}}</view>
<view class="decr-line {{index==tabidx ? 'bg-red-pink' : 'bg-white'}}"></view>
</view>
</block>
</view>
<!-- 菜品信息 -->
<view class="menu flex-lt" hidden="{{tabidx==1 ? true :false}}">
<block wx:if="{{seller}}">
<class seller="{{seller}}" classidx="{{classidx}}" bindtellclass="getclassidx"></class>
</block>
<view>
<view class="current-class class-fixed black-font font28r bg-white">{{cooklist[currentidx].class_name}}</view>
<scroll-view class="food-conent" style="height:{{contentheight}}px;padding-top: 20rpx;" scroll-y scroll-into-view="view_{{cooklist[classidx].id}}" bindscroll="getcurrentclass" wx:if="{{cooklist}}">
<view class="cook-list">
<block wx:for="{{cooklist}}" wx:for-item="classitem" wx:for-index="classidx">
<view class="gray-deep-font font28r current-class" id="view_{{classitem.id}}">{{classitem.class_name}}</view>
<!-- <view id="view_{{classitem.id}}"></view> -->
<block wx:for="{{classitem.cookbookList[0]}}">
<food item="{{item}}" bindrefresh="refreshprice" classidx="{{classidx}}" cookidx="{{index}}" bindshowspec="showspec" bindshowrmodal="showrmodal"></food>
</block>
</block>
</view>
</scroll-view>
</view>
<block wx:if="{{seller && cooklist}}">
<totalprice seller="{{seller}}" refresh="{{refresh}}" bindtellfood="tellfood" bindrefresh="getfoodlist"></totalprice>
</block>
<spec fooditem="{{additem}}" id="spec" bindaddfood="tellfood"></spec>
<rmodal fooditem="{{reduceitem}}" bindtellfood="tellfood" id="rmodal"></rmodal>
</view>
<!-- 商家信息 -->
<view class="seller-other-info" hidden="{{tabidx==0 ? true :false}}">
<view class="seller-other-single">
<view class="seller-info-title flex-ll">
<view class="title-decr bg-red-pink" style="margin-right: 12rpx;"></view>
<view class="font30r black-font font-bold smooth">店名</view>
</view>
<view class="black-font font28r">{{seller.sellername}}</view>
</view>
<view class="seller-other-single">
<view class="seller-info-title flex-ll">
<view class="title-decr bg-red-pink" style="margin-right: 12rpx;"></view>
<view class="font30r black-font font-bold smooth">地址</view>
</view>
<view class="black-font font28r">{{seller.map_address}}</view>
</view>
<view class="seller-other-single">
<view class="seller-info-title flex-ll">
<view class="title-decr bg-red-pink" style="margin-right: 12rpx;"></view>
<view class="font30r black-font font-bold smooth">电话</view>
</view>
<view class="black-font font28r">{{seller.seller_tel}}</view>
</view>
<view class="seller-other-single" wx:if="{{seller.daily_time}}">
<view class="seller-info-title flex-ll">
<view class="title-decr bg-red-pink" style="margin-right: 12rpx;"></view>
<view class="font30r black-font font-bold smooth">营业时间</view>
</view>
<view class="black-font font28r">{{seller.daily_time}}</view>
</view>
</view>