chooseadress.wxml
2.2 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
<!--pages/chooseadress/chooseadress.wxml-->
<view class='bg'>
<image src='../../images/bg@2x.jpg'></image>
<image src='{{src}}'></image>
<view class='top_text'>必选地点</view>
<view class='main'>
<view class='main_left'>
<view class="left_cell {{item.parentcheck?'activity_cell':''}}" wx:for='{{cityList}}' wx:key bindtap='chooseone' data-index='{{index}}'>
<view class='unit_num' wx:if='{{item.num != 0}}'>{{item.num}}</view>
<text>{{item.name}}</text>
</view>
</view>
<view class="main_rigth {{showright?'heiht80':''}}" wx:if='{{showright}}'>
<view class="rigth_cell {{item.check?'activity_cell':''}}" wx:for='{{cityList[currentindex].children}}' data-index='{{index}}' wx:key bindtap='choosetwo'>{{item.scenic_name}}</view>
</view>
<view class="main_rigth {{showright?'':'heiht100'}}" wx:else>
<view class='seach_box'>
<view class='seach_text'>
<input placeholder='请输入地点' bindinput='setkeyword'
value='{{keywords}}' placeholder-class='pclass'></input>
</view>
<cover-view class='seach_items' wx:if='{{tips.length !=0 }}'>
<cover-view class='seach_item' wx:for='{{tips}}' wx:key data-keywords='{{item.name}} ' data-location='{{item.location}}' bindtap='choosekeyword'>
<cover-view>{{item.name}}</cover-view>
</cover-view>
</cover-view>
</view>
<view class='map_box'>
<view class='map_container'>
<map class="map" id="map" longitude="{{longitude}}" latitude="{{latitude}}" show-location="true" scale="{{scale}}" markers="{{markers}}" bindmarkertap="makertap"></map>
</view>
</view>
<view class='tab_box' wx:if='{{chooseitem.length!=0}}'>
<view class='tab_cell' wx:for='{{chooseitem}}' wx:key style='order:{{chooseitem.length-index}}'>
<view class='close_box' catchtap='delchooseitem' data-index='{{index}}'>
<image src='../../images/close2.png'></image>
</view>
<text>{{item.name}}</text>
</view>
</view>
</view>
</view>
<view class='bottom_btn' wx:if='{{showbtn}}' bindtap='gorecord'>生成我的音乐LOGO</view>
</view>