map.wxml
4.76 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
95
96
97
98
99
100
101
102
103
104
105
<map id="map" scale="{{map.scale}}"
longitude="{{map.longitude||118.170300}}" latitude="{{map.latitude||39.65273}}"
markers="{{markers}}" polygons="{{polygons}}"
bindmarkertap="markertap"
bindcallouttap="markertap"
bindregionchange="regionChange"
bindupdated="mapUpdated"
show-location="{{false}}"
enable-3D="{{false}}"
enable-zoom
enable-scroll
enable-rotate
subkey="SDEBZ-I74W4-QLGUX-XXYXU-HIR23-3QFBJ"
layer-style="2"
style="width: 100%; height: 100vh;position: relative;">
</map>
<view class="moveToLocationView">
<view bindtap="moveToLocation" class="view moveToLocation flex align-center justify-center">
<image class="moveToLocation-image" src="http://nosqn.colorcun.com/loaction.png"></image>
</view>
</view>
<view class="moveToLocationView">
<view bindtap="switchpage" class="view moveToLocation flex-vc" style="top: -490rpx;">
<image class="moveToLocation-image" src="http://nosqn.colorcun.com/menu.png" style="width: 32rpx;height: 26rpx;margin-bottom: 8rpx;"></image>
<view style="color: #42A5FF;font-size: 20rpx;">列表</view>
</view>
</view>
<view class="seller-list">
<swiper previous-margin="50rpx" next-margin="50rpx" current="{{current}}" bindchange="switchseller">
<block wx:for="{{sellers}}" wx:key="{{item.id}}" wx:for-item="selleritem">
<swiper-item style="padding: 20rpx 0;">
<view class="seller-item" bindtap="todetail" data-index="{{index}}">
<view class="flex-ll" style="align-items: flex-start;">
<view class="seller-image-cover">
<image src="{{selleritem.seller_image}}" class="seller-image" mode="aspectFill"></image>
</view>
<view>
<view class="black-font font-bold font38r font-more" style="margin-bottom: 10rpx;width: 370rpx;">{{selleritem.sellername}}</view>
<view class="gray-font font26r" style="padding-bottom: 14rpx;">{{selleritem.cateStr}}</view>
<view style="padding-top:4rpx;" wx:if="{{selleritem.activity && selleritem.activity.length>0}}">
<block wx:for="{{selleritem.activity}}" wx:key="selleractivitykey" wx:if="{{index<2}}">
<view class="cu-tag line-yellow" style="margin-bottom: 6rpx;">
<text class="text-orange">{{(item.type==2?'满赠':item.title)}}</text>
</view>
</block>
</view>
<view class="flex-ll">
<view class="gray-font font24r" style="margin-right: 40rpx;">{{selleritem.distance}}m</view>
<view class="gray-font font24r" wx:if="{{selleritem.average>0}}">¥{{selleritem.average}}/人</view>
</view>
<!-- <view></view> -->
</view>
</view>
<view class="seller-room flex-ll">
<view class="flex-ll" style="width:450rpx;height:52rpx;overflow: scroll;">
<block wx:for="{{selleritem.class}}" wx:key="seclass">
<view data-cid="{{item.id}}" data-cname="{{item.name}}" class="room-type line-blue text-blue">{{item.name}}</view>
</block>
</view>
<view class="box-shadow"></view>
<view class="book-cover">
<view class="white-font font28r font-bold book-button" data-index="{{index}}" catchtap="reserve">订包间</view>
</view>
</view>
</view>
</swiper-item>
</block>
</swiper>
<!-- <block wx:for="{{sellers}}" wx:key="{{item.id}}" wx:for-item="selleritem">
<view class="seller-item" style="left:{{(index-current)*650+60}}rpx" catchtouchstart="start" catchtouchend="switch">
<view class="flex-ll" style="align-items: flex-start;">
<view class="seller-image-cover">
<cover-image src="{{selleritem.seller_image}}" class="seller-image"></cover-image>
</view>
<view>
<view class="black-font font-bold font38r font-more" style="margin-bottom: 10rpx;width: 370rpx;">{{selleritem.sellername}}</view>
<view class="gray-font font26r">{{selleritem.cateStr}}</view>
<block wx:for="{{selleritem.activity}}" wx:key="selleractivitykey" wx:if="{{index<3}}">
<view class="cu-tag line-yellow view">
<text class="text-orange">{{(item.type==2?'满赠':item.title)}}</text>
</view>
</block>
</view>
</view>
<view class="seller-room flex-ll">
<view class="flex-ll" style="width:450rpx;height:52rpx;overflow: auto;">
<block wx:for="{{selleritem.class}}" wx:key="seclass">
<view data-cid="{{item.id}}" data-cname="{{item.name}}" class="room-type line-blue text-blue">{{item.name}}</view>
</block>
</view>
<view class="book-cover">
<view class="white-font font28r font-bold book-button">订包间</view>
</view>
</view>
</view>
</block> -->
</view>
<getpos bindpos="onpos" id="getpos" hasFailPop></getpos>
<a2l bindshow="a2lshow" bindhide="a2lshow" key="INDEX" type="black20"></a2l>
<as-phone id="as"></as-phone>
<menu></menu>
<service></service>