index.wxml 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. <view>
  2. <auth bindlogin="onShow" />
  3. <view class="container">
  4. <view class="search">
  5. <input placeholder="VR找房、看车、逛店,就上指房宝!" value="{{keyword}}" bindinput="inputChange" bindconfirm="search" confirm-type="search" type="text"></input>
  6. <image wx:if="{{imgServer}}" src="{{imgServer + '/search.png'}}"></image>
  7. </view>
  8. <view class="banner" wx:if="{{banners.length}}">
  9. <swiper indicator-dots="{{false}}" bindchange="swiperChange" autoplay="{{true}}" interval="{{2000}}" duration="{{500}}">
  10. <block wx:for="{{banners}}" wx:key="{{item.coverImage}}">
  11. <swiper-item>
  12. <view class="swiper-item" bindtap="clickSwiper">
  13. <image src="{{item.coverImage}}"></image>
  14. </view>
  15. </swiper-item>
  16. </block>
  17. </swiper>
  18. <view class="dots">
  19. <view class="dot{{index == currentBanner ? 'active' : ''}}" wx:for="{{banners}}"></view>
  20. </view>
  21. </view>
  22. <view>
  23. <view class="header " id="index-nav">
  24. <view class="ul nav">
  25. <view bindtap="tapHeaderBar" wx:for="{{header}}" wx:key="{{item.type}}" data-id='{{item.id}}' class="li {{item.id==activeType?'active':''}}">
  26. <text>{{item.name}}</text>
  27. </view>
  28. </view>
  29. </view>
  30. </view>
  31. <view class="body" id="tab-con">
  32. <view class="ul" wx:if="{{loading || brandList.length}}">
  33. <view bindtap="gotoWV" data-img="{{item.img}}" data-id="{{item.id}}" class="li" wx:for='{{brandList}}' wx:key="id">
  34. <view class="b-image">
  35. <image wx:if="{{imgServer}}" class="cover" mode="aspectFill" src="{{item.appListPicUrl}}"></image>
  36. <!-- <image class="icon" src="/static/images/img_shop_scene@2x.png"></image> -->
  37. <view class="scene-icon">
  38. <view class="brick brick-1 enter">
  39. <view class="brick-top face"></view>
  40. <view class="brick-bottom face"></view>
  41. <view class="brick-left face"></view>
  42. <view class="brick-right face"></view>
  43. <view class="brick-front face"></view>
  44. <view class="brick-back face"></view>
  45. </view>
  46. <view class="brick brick-2 enter">
  47. <view class="brick-top face"></view>
  48. <view class="brick-bottom face"></view>
  49. <view class="brick-left face"></view>
  50. <view class="brick-right face"></view>
  51. <view class="brick-front face"></view>
  52. <view class="brick-back face"></view>
  53. </view>
  54. <view class="brick brick-3 enter">
  55. <view class="brick-top face"></view>
  56. <view class="brick-bottom face"></view>
  57. <view class="brick-left face"></view>
  58. <view class="brick-right face"></view>
  59. <view class="brick-front face"></view>
  60. <view class="brick-back face"></view>
  61. </view>
  62. </view>
  63. </view>
  64. <view class="b-content">
  65. <view class="b-title">{{item.name}}</view>
  66. <view class="b-addres">
  67. {{item.address || ''}}
  68. <text class="user-motto" decode="{{true}}">&nbsp;</text>
  69. </view>
  70. <view class="b-maker">
  71. <text>VR看房</text>
  72. <text>随时可看</text>
  73. </view>
  74. <view class="b-money">
  75. <text>{{item.retailPrice ? item.retailPrice + '万': ''}}</text>
  76. <text>{{item.averagePrice ? item.averagePrice + '元/平' : ''}}</text>
  77. </view>
  78. </view>
  79. </view>
  80. </view>
  81. <view wx:else class="unbrand">
  82. <image src="/static/images/img_noshop@3x.png"></image>
  83. <view class="text">暂无相关店铺</view>
  84. </view>
  85. </view>
  86. <view class="linear-mask {{hideMask? '': 'mask-hidden'}}"></view>
  87. <view bindtap="tabHide" class="search-con" wx:if="{{showSearch}}">
  88. <view class="sc-con" catchtap>
  89. <input focus="true" value="{{keyword}}" bindinput="inputChange" bindconfirm="search" confirm-type="search" type="text"></input>
  90. <image wx:if="{{imgServer}}" src="{{imgServer + '/fangdajing.png'}}"></image>
  91. </view>
  92. <view class="no-record" wx:if="{{noRecord}}">未搜索到相关内容</view>
  93. </view>
  94. </view>
  95. </view>