businessDetail.wxml 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <!-- 轮播 -->
  2. <view
  3. class="page-section"
  4. wx:if="{{!!objShopDetail.shop_img_url}}">
  5. <swiper
  6. indicator-dots="{{false}}"
  7. indicator-color="rgba(130, 130, 130, 1)"
  8. indicator-active-color="#FFF"
  9. autoplay="{{false}}">
  10. <block
  11. wx:for="{{[objShopDetail.shop_img_url]}}"
  12. wx:key="*this">
  13. <swiper-item>
  14. <view class="swiper-item">
  15. <image
  16. mode="widthFix"
  17. src="{{item}}"></image>
  18. </view>
  19. </swiper-item>
  20. </block>
  21. </swiper>
  22. </view>
  23. <view
  24. class="business-name">
  25. <view class="name-wrap">
  26. <text
  27. wx:for="{{objShopDetail.shop_name}}"
  28. wx:key="index">{{item}}</text>
  29. </view>
  30. <view
  31. class="btn-bookmark"
  32. bind:tap="shopCollect">
  33. <image
  34. src="../../image/common/bookmark_0.png"
  35. wx:if="{{searchForm.type === 1}}"></image>
  36. <image
  37. src="../../image/common/bookmark_1.png"
  38. wx:elif="{{searchForm.type === 2}}"></image>
  39. 收藏
  40. </view>
  41. </view>
  42. <customer-tab
  43. nav="{{nav}}"
  44. active="{{active}}"
  45. bind:change="handleNav"/>
  46. <!--详情-->
  47. <view
  48. class="business-info"
  49. hidden="{{active === '2'}}">
  50. <business-detail-large
  51. shopDetail="{{objShopDetail}}"/>
  52. </view>
  53. <!--产品-->
  54. <view
  55. class="goods-list"
  56. hidden="{{active === '1'}}">
  57. <goods-item-normal
  58. listData="{{listData}}"/>
  59. </view>
  60. <!-- 无数据 -->
  61. <view class="list-bitmap" wx:if="{{finished && listData.length < 1 && active === '2'}}">
  62. <image src="../../image/common/bitmap.png"></image>
  63. <text>暂无数据</text>
  64. </view>
  65. <view class="pullup-wrapper" wx:if="{{!isRefresh && active === '2'}}">
  66. <van-loading
  67. wx:if="{{!finished}}"
  68. size="24px"
  69. type="spinner">加载中...
  70. </van-loading>
  71. </view>