合伙人运营小程序
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

index.wxml 2.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. <view class="container">
  2. <!-- 地图核心区域 -->
  3. <map
  4. id="map"
  5. class="map"
  6. longitude="{{longitude}}"
  7. latitude="{{latitude}}"
  8. scale="{{scale}}"
  9. markers="{{markers}}"
  10. show-location
  11. bindregionchange="onRegionChange"
  12. bindmarkertap="onMarkerTap"
  13. ></map>
  14. <!-- 分类选项卡 -->
  15. <view class="tab-container">
  16. <view class="tab-item {{activeType === 'car' ? 'tab-active' : ''}}" bindtap="switchType" data-type="car">
  17. <span class="tab-text">储能车</span>
  18. <span class="tab-badge">{{pointData.car.length}}</span>
  19. </view>
  20. <view class="tab-item {{activeType === 'station' ? 'tab-active' : ''}}" bindtap="switchType" data-type="station">
  21. <span class="tab-text">电站</span>
  22. <span class="tab-badge">{{pointData.station.length}}</span>
  23. </view>
  24. <view class="tab-item {{activeType === 'user' ? 'tab-active' : ''}}" bindtap="switchType" data-type="user">
  25. <span class="tab-text">用电点</span>
  26. <span class="tab-badge">{{pointData.user.length}}</span>
  27. </view>
  28. </view>
  29. <!-- 点位列表区 -->
  30. <view class="list-wrap">
  31. <view class="list-header">
  32. <text class="list-title">{{activeType === 'car' ? '储能车列表' : activeType === 'station' ? '电站列表' : '用电点列表'}}</text>
  33. <text class="list-count">共{{currentList.length}}个点位</text>
  34. </view>
  35. <!-- 空数据占位 -->
  36. <view class="empty-wrap" wx:if="{{currentList.length === 0}}">
  37. <view class="empty-icon">📍</view>
  38. <view class="empty-text">暂无{{activeType === 'car' ? '储能车' : activeType === 'station' ? '电站' : '用电点'}}数据</view>
  39. </view>
  40. <!-- 卡片式列表项(点击跳转详情页) -->
  41. <view class="list-card" wx:for="{{currentList}}" wx:key="id" bindtap="toDetailPage" data-item="{{item}}">
  42. <view class="card-left">
  43. <view class="card-tag {{item.type === 'car' ? 'tag-car' : item.type === 'station' ? 'tag-station' : 'tag-user'}}">
  44. {{item.type === 'car' ? '储能车' : item.type === 'station' ? '电站' : '用电点'}}
  45. </view>
  46. <view class="card-name">{{item.name}}</view>
  47. <view class="card-address">{{item.address}}</view>
  48. <view class="card-status" wx:if="{{item.status}}">{{item.status}}</view>
  49. </view>
  50. <view class="card-right">
  51. <view class="detail-btn">详情</view>
  52. </view>
  53. </view>
  54. </view>
  55. </view>