goodsDetail.wxml 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <!-- 轮播 -->
  2. <view class="page-section">
  3. <swiper
  4. indicator-dots="{{true}}"
  5. indicator-color="rgba(130, 130, 130, 1)"
  6. indicator-active-color="#FFF"
  7. autoplay="{{false}}">
  8. <block
  9. wx:for="{{objProductDetail.product_rotation_img_list}}"
  10. wx:key="*this">
  11. <swiper-item>
  12. <view class="swiper-item">
  13. <image src="{{item}}"></image>
  14. </view>
  15. </swiper-item>
  16. </block>
  17. </swiper>
  18. </view>
  19. <view class="main-information">
  20. <view class="tag-list">
  21. <text>{{objProductDetail.product_category_name}}</text>
  22. </view>
  23. <text
  24. class="name"
  25. user-select>{{objProductDetail.product_title}}</text>
  26. <view class="unit-price">
  27. <text class="price">¥{{tools.fen2Yuan(objProductDetail.product_price)}}</text>
  28. <text class="unit">/ {{objProductDetail.product_unit}}</text>
  29. </view>
  30. </view>
  31. <customer-tab
  32. nav="{{nav}}"
  33. active="{{active}}"
  34. bind:change="handleNav"/>
  35. <!--描述-->
  36. <view
  37. class="goods-info"
  38. hidden="{{active === '2'}}">
  39. <text class="introduce" user-select>{{objProductDetail.product_desc}}</text>
  40. <block wx:if="{{false}}">
  41. <view class="subtitle">预计上架时间</view>
  42. <view
  43. class="date">
  44. {{objProductDetail.product_sale_at === 0 ? '预售' : tools.formatTs(objProductDetail.product_sale_at, 'YYYY-MM-DD hh:mm')}}
  45. </view>
  46. </block>
  47. <!-- TODO 暂时不做 -->
  48. <block wx:if="{{false}}">
  49. <view class="subtitle">相关产品</view>
  50. <scroll-view
  51. class="goods-scroll"
  52. scroll-x>
  53. <view
  54. class="item"
  55. wx:for="{{[1, 2, 3, 4]}}"
  56. wx:key="item">
  57. <view>
  58. <view class="photo">
  59. <image src=""></image>
  60. </view>
  61. <view class="info">
  62. <text
  63. class="name">名字名字名字名字名字名字名字名字</text>
  64. <view class="unit-price">
  65. <text class="price">¥23.00</text>
  66. <text class="unit">/ kg</text>
  67. </view>
  68. </view>
  69. </view>
  70. </view>
  71. </scroll-view>
  72. </block>
  73. </view>
  74. <view
  75. hidden="{{active === '1'}}">
  76. <business-detail-large
  77. shopDetail="{{objShopDetail}}"/>
  78. </view>
  79. <view
  80. class="fixed-bottom"
  81. hidden="{{active === '2'}}">
  82. <view>
  83. <button
  84. class="btn-collection"
  85. type="primary"
  86. disabled="{{booLock}}"
  87. bind:tap="productCollect"
  88. wx:if="{{searchForm.type >= 1}}">{{searchForm.type === 2 ? '取消收藏' : '添加收藏'}}
  89. </button>
  90. </view>
  91. </view>
  92. <wxs src="../../components/wxs/index.wxs" module="tools"></wxs>