home.wxml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. <cu-custom bgColor="bg-lw-header" isCustom="{{true}}">
  2. <view slot="content">商家</view>
  3. </cu-custom>
  4. <!-- <image src="/common/images/business_backgroud.jpg" style="width:750rpx;height:400rpx;" bindtap="toAd"></image> -->
  5. <!-- 地图 -->
  6. <view class="business-header">
  7. <map longitude="{{longitude}}" latitude="{{latitude}}" scale="15" markers="{{markers}}" style="width: 100%; height: 400rpx;"></map>
  8. <view class="lw-search">
  9. <view class="search-form">
  10. <input type="text" placeholder="请输入关键字" placeholder-class="placeholder" model:value="{{keyword}}" confirm-type="search" bindconfirm="bindSearch" bindinput="bindInput"></input>
  11. </view>
  12. <view class="search-icon">
  13. <text class="cuIcon-search" style="font-size:30rpx;color:#687a9c;"></text>
  14. </view>
  15. </view>
  16. </view>
  17. <view style="width:100%;height: 200px;"></view>
  18. <!-- 列表 -->
  19. <view class="site-list">
  20. <view class="site-item" wx:for="{{list}}" wx:key="key">
  21. <image class="main_image" mode="aspectFill" src="{{item.main_image ? item.main_image : '/common/images/no_photo.png'}}" bindtap="toDetail" data-id="{{item.id}}"></image>
  22. <view class="content">
  23. <view class="site-name" bindtap="toDetail" data-id="{{item.id}}">
  24. {{item.title}}
  25. </view>
  26. <view class="site-address" bindtap="setLocation" data-lat="{{item.latitude}}" data-lon="{{item.longitude}}" data-title="{{item.title}}">
  27. <image src="/common/images/location.png"></image>
  28. <view class="address">{{item.address}}</view>
  29. </view>
  30. <view class="site-mobile" bindtap="callMobile" data-mobile="{{item.mobile}}">
  31. <image src="/common/images/phone.png"></image> {{item.mobile}}
  32. </view>
  33. </view>
  34. </view>
  35. </view>
  36. <view wx:if="no_more" class="no_more">没有更多数据</view>