goodsDetail.wxml 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  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. <!-- todo 供应商-->
  75. <view
  76. hidden="{{active === '1'}}">
  77. <business-detail-large
  78. shopDetail="{{objShopDetail}}"/>
  79. </view>
  80. <view
  81. class="fixed-bottom"
  82. hidden="{{active === '2'}}">
  83. <view>
  84. <button
  85. class="btn-collection"
  86. type="primary">添加收藏夹
  87. </button>
  88. </view>
  89. </view>
  90. <wxs src="../../components/wxs/index.wxs" module="tools"></wxs>