chooseadress.wxml 2.2 KB
<!--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>