canyin-project/ybcy/miniApp/components/my-map.wxml
2024-11-01 16:07:54 +08:00

1 line
1.7 KiB
Plaintext

<view class="mymap-box _div"><uni-status-bar vue-id="f4b1eae0-1" bind:__l="__l"></uni-status-bar><view class="search-box _div"><view class="postion _div"><uni-icons vue-id="f4b1eae0-2" type="location-filled" color="#666" size="28" bind:__l="__l"></uni-icons><text class="postion-text">{{city?city:'定位中'}}</text></view><view class="search _div"><input class="search-label" type="text" placeholder="请输入地理名称" data-event-opts="{{[['input',[['__set_model',['','key','$event',[]]]]]]}}" value="{{key}}" bindinput="__e"/></view><button class="search-btn" size="mini" type="primary" data-event-opts="{{[['tap',[['handClickSeach',['$event']]]]]}}" bindtap="__e">搜索</button></view><block wx:if="{{mapshow}}"><map class="mymap vue-ref" id="mymap" show-location="{{true}}" scale="{{scale}}" markers="{{markers}}" data-ref="mymap" data-event-opts="{{[['tap',[['handClickAmp',['$event']]]]]}}" bindtap="__e"></map></block><block wx:if="{{type==1}}"><list class="footer-list-box" vue-id="f4b1eae0-3" bind:__l="__l" vue-slots="{{['default']}}"><block wx:if="{{poiList.length}}"><block wx:for="{{poiList}}" wx:for-item="item" wx:for-index="index" wx:key="index"><cell class="footer-list-cont" bind:click="__e" vue-id="{{('f4b1eae0-4-'+index)+','+('f4b1eae0-3')}}" data-event-opts="{{[['^click',[['handClickChange',['$0'],[[['poiList','',index]]]]]]]}}" bind:__l="__l" vue-slots="{{['default']}}"><uni-icons vue-id="{{('f4b1eae0-5-'+index)+','+('f4b1eae0-4-'+index)}}" type="location-filled" color="#2a75ed" size="36" bind:__l="__l"></uni-icons><view class="footer-list-cont-l _div"><text class="footer-list-cont-l-text">{{item.name}}</text><text class="footer-list-cont-l-bottom">{{item.address}}</text></view></cell></block></block></list></block></view>