goods.wxml 4.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <import src='../../wxParse/wxParse.wxml'></import>
  2. <view class='page'>
  3. <include src='/components/common/common'></include>
  4. <include src='/components/header/header'></include>
  5. <view class='body'>
  6. <!-- <include src='/components/specifications_model/specifications_model.wxml'></include> -->
  7. <include src='/components/goods/specifications_model.wxml'></include>
  8. <include src='/components/quick-navigation/quick-navigation'></include>
  9. <view class='{{( ( (show_attr_picker || show) || no_scroll) ?"no-scroll":"")}}'>
  10. <view style='padding-bottom: 120rpx'>
  11. <include src='/components/goods/goods_banner.wxml'></include>
  12. <include src='/components/goods/goods_info.wxml'></include>
  13. <view class='tab-group'>
  14. <view class='flex-row tab-group-header'>
  15. <view bindtap='tabSwitch' class='flex-grow-1 flex-x-center tab-group-item {{tab_detail}}' data-tab='detail'><text class='flex-y-center'>商品详情</text></view>
  16. <block wx:if='{{__is_comment}}'>
  17. <view bindtap='tabSwitch' class='flex-grow-1 flex-x-center tab-group-item {{tab_comment}}' data-tab='comment'><text class='flex-y-center'>评价</text></view>
  18. </block>
  19. </view>
  20. <view class='tab-group-body'>
  21. <view class='tab-group-item {{tab_detail}}'>
  22. <view class='goods-detail'><template is='wxParse' data='{{wxParseData:detail.nodes}}'></template></view>
  23. </view>
  24. <view class='tab-group-item {{tab_comment}}'>
  25. <view class='comment-count flex-row'>
  26. <view class='comment-count-item flex-grow-1 flex-x-center flex-col'>
  27. <view>全部</view>
  28. <view>({{(comment_count.score_all > 999?"999+":comment_count.score_all)}})</view>
  29. </view>
  30. <view class='comment-count-item flex-grow-1 flex-x-center flex-col'>
  31. <view>好评</view>
  32. <view>({{(comment_count.score_3 > 999?"999+":comment_count.score_3)}})</view>
  33. </view>
  34. <view class='comment-count-item flex-grow-1 flex-x-center flex-col'>
  35. <view>中评</view>
  36. <view>({{(comment_count.score_2 > 999?"999+":comment_count.score_2)}})</view>
  37. </view>
  38. <view class='comment-count-item flex-grow-1 flex-x-center flex-col'>
  39. <view>差评</view>
  40. <view>({{(comment_count.score_1 > 999?"999+":comment_count.score_1)}})</view>
  41. </view>
  42. </view>
  43. <view class='comment-list'>
  44. <block wx:for='{{comment_list}}' wx:for-item='item' wx:for-index='index' wx:key='{{item.id}}'>
  45. <view class='comment-item flex-row'>
  46. <view class='flex-grow-0' style='overflow: visible'>
  47. <image mode='aspectFill' src='{{item.avatar_url}}' style='width: 70rpx;height: 70rpx;border-radius: 1000rpx'></image>
  48. </view>
  49. <view class='flex-grow-1'>
  50. <view class='flex-row mb-20'>
  51. <view class='flex-grow-1 flex-y-center nickname'>{{item.nickname}}</view>
  52. <view class='flex-grow-0 flex-y-center addtime'>{{item.addtime}}</view>
  53. </view>
  54. <view class='mb-20'>{{item.content}}</view>
  55. <block wx:if='{{ (item.pic_list && item.pic_list.length > 0) }}'>
  56. <view class='pic-list'>
  57. <block wx:for='{{item.pic_list}}' wx:for-item='item' wx:for-index='pic_index' wx:key='{{item.id}}'>
  58. <image bindtap='commentPicView' class='pic-item' data-index='{{index}}' data-pic-index='{{pic_index}}' mode='aspectFill' src='{{item}}'></image>
  59. </block>
  60. </view>
  61. </block>
  62. <block wx:if='{{item.reply_content}}'>
  63. <view class='reply'>商家: <view class='reply-content'>{{item.reply_content}}</view>
  64. </view>
  65. </block>
  66. </view>
  67. </view>
  68. </block>
  69. </view>
  70. </view>
  71. </view>
  72. </view>
  73. <include src='/components/goods/goods_recommend'></include>
  74. </view>
  75. <block wx:if='{{quick == 1}}'>
  76. <include src='/components/shopping_cart/shopping_cart'></include>
  77. </block>
  78. <block wx:else>
  79. <!-- <navigator class='cart-nav' openType='redirect' url='/pages/cart/cart'>
  80. <image src='{{__wxapp_img.nav.cart.url}}'></image>
  81. </navigator> -->
  82. <include src='/components/goods/goods_buy'></include>
  83. </block>
  84. <include src='/components/common/get-coupon.wxml'></include>
  85. </view>
  86. </view>
  87. <include src='/components/footer/footer'></include>
  88. </view>