JMApp/pages/wangdianList/wangdianList.wxml
XiaoMo 47d847e138 feat(地图导航): 添加网点地图导航功能
在多个页面中添加了地图导航功能,用户可以通过点击地址或导航图标打开地图并查看具体位置。如果位置信息缺失,会提示用户“暂无位置信息”。此功能提升了用户体验,方便用户快速找到网点位置。
2025-04-10 22:36:01 +08:00

27 lines
1.6 KiB
Plaintext

<template name="wangdianList">
<view class="index-wangdian-list">
<view class="index-wangdian-title">
<view bindtap="toPage" class="more" data-refresh="1" data-url="map/map">全部网点></view>
<view class="title_c">离我最近<view class="line"></view></view>
</view>
<view class="index-wangdian-box" wx:for="{{wangdianList}}" wx:key="index" wx:for-item="item">
<view class="info" bindtap="toPage" data-refresh="1" data-url="wangdian/wangdian?number={{item.number}}">
<view class="title">
<view class="title_c">{{item.name}}</view>
<view class="ld" wx:for="{{item.service}}" wx:key="index_i" wx:for-item="s" style="background-color: {{s.color}};">{{s.label}}</view>
</view>
<view class="tag">{{item.tags}}</view>
<view class="ads"><text class="iconfont icon-dingwei"></text>{{item.address}}</view>
<view class="jiqi">洗车机:闲{{item.free}}/{{item.machine}}台</view>
<view class="yingye">{{item.businesshours || '24小时'}}</view>
<view class="dw" catchtap="openLocation" data-latitude="{{item.latitude}}" data-longitude="{{item.longitude}}" data-name="{{item.name}}" data-address="{{item.address}}">
<text class="ico iconfont icon-daohangdaohang"></text>
<view class="jl">{{item.distance}}</view>
</view>
</view>
<view class="xian">
<view class="bili" style="width:{{item.ratio}}"></view>
</view>
</view>
</view>
</template>