businessDetail.wxml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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. bind:tap="shopCollect">
  26. <text
  27. wx:for="{{objShopDetail.shop_name}}"
  28. wx:key="index">{{item}}</text>
  29. <image
  30. src="../../image/common/bookmark_0.png"
  31. wx:if="{{searchForm.type === 1}}"></image>
  32. <image
  33. src="../../image/common/bookmark_1.png"
  34. wx:elif="{{searchForm.type === 2}}"></image>
  35. </view>
  36. <customer-tab
  37. nav="{{nav}}"
  38. active="{{active}}"
  39. bind:change="handleNav"/>
  40. <!--详情-->
  41. <view
  42. class="business-info"
  43. hidden="{{active === '2'}}">
  44. <business-detail-large
  45. shopDetail="{{objShopDetail}}"/>
  46. </view>
  47. <!--产品-->
  48. <view
  49. class="goods-list"
  50. hidden="{{active === '1'}}">
  51. <goods-item-normal
  52. listData="{{listData}}"/>
  53. </view>
  54. <!-- 无数据 -->
  55. <view class="list-bitmap" wx:if="{{finished && listData.length < 1 && active === '2'}}">
  56. <image src="../../image/common/bitmap.png"></image>
  57. <text>暂无数据</text>
  58. </view>
  59. <view class="pullup-wrapper" wx:if="{{!isRefresh && active === '2'}}">
  60. <van-loading
  61. wx:if="{{!finished}}"
  62. size="24px"
  63. type="spinner">加载中...
  64. </van-loading>
  65. </view>