detail.wxml 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. <view class="common_fix common_back" hidden="{{!showBack}}" bindtap="toTop">
  2. <text class="icon icon-toTop"></text>
  3. </view>
  4. <navigator class="common_fix common_home" wx:if="{{currentPages == 1}}" open-type="reLaunch" url="/pages/home/index" hover-class="none">
  5. <text class="icon icon-home"></text>
  6. </navigator>
  7. <chat show="{{chatShow}}" aid="{{aid}}" type="0" />
  8. <sku show="{{skuShow}}" aid="{{aid}}" atype="{{datas.atype}}" setMeals="{{['颜色类别','型号尺码']}}" maxUserCoin="{{datas.maxUserCoin||0}}" />
  9. <!-- <view class="bar-bottom buttons-row">
  10. <button class="button button-white" bindtap="chat">
  11. <text class="middle icon-chat font20 subtitleColor"></text><text class="middle"> 咨询</text>
  12. </button>
  13. <view class="button button-warn" bindtap="goPay" wx:if="{{datas.status == 0 && datas.canbuy == 0}}">立即购买</view>
  14. <view class="button disabled" wx:if="{{datas.status == 0 && datas.canbuy != 0}}">立即购买</view>
  15. <view class="button disabled" wx:if="{{datas.status == 2}}">已满额</view>
  16. <view class="button disabled" wx:if="{{datas.status == 3}}">已下架</view>
  17. </view> -->
  18. <!-- 底部按钮 -->
  19. <view class="barOnBottom ">
  20. <view class="buttons-row">
  21. <view class="button-growup">
  22. <button class="button button-white" bindtap="gohome">
  23. <image src="https://img.bbztx.com/miniProgram/challengeFamily/actToHome.png" class="actBoIcon" mode="widthFix" />
  24. <text class="middle font12"> 首页</text>
  25. </button>
  26. <button class="button button-white" bindtap="chat">
  27. <image src="https://img.bbztx.com/miniProgram/challengeFamily/actToConsult.png" class="actBoIcon" mode="widthFix" />
  28. <text class="middle font12"> 咨询</text>
  29. </button>
  30. <button id="invite" class="button button-white" bindtap='invite'>
  31. <image src="https://img.bbztx.com/miniProgram/challengeFamily/actToDate.png" class="actBoIcon" mode="widthFix" />
  32. <text class="middle font12"> 约伴</text>
  33. </button>
  34. </view>
  35. <view class="button-growup">
  36. <view class="button-r button-warn" bindtap="goPay" wx:if="{{datas.status == 0 && datas.canbuy == 0}}">立即购买</view>
  37. <view class="button-r disabled" wx:if="{{datas.status == 0 && datas.canbuy != 0}}">立即购买</view>
  38. <view class="button-r disabled" wx:if="{{datas.status == 2}}">已满额</view>
  39. <view class="button-r disabled" wx:if="{{datas.status == 3}}">已下架</view>
  40. </view>
  41. </view>
  42. </view>
  43. <view class="content">
  44. <view class="header">
  45. <view class="nav topNav" hidden="{{!isColumn}}">
  46. <view class="nav-one {{item.id == current?'current':'nocur'}}" wx:for="{{nav}}" wx:key="unique" data-id="{{item.id}}" bindtap="chooseNav">{{item.title}}</view>
  47. </view>
  48. <swiper indicator-dots="true" class="swiper">
  49. <block wx:for="{{datas.pics}}" wx:key="unique">
  50. <swiper-item>
  51. <image src="{{item}}" class="slide-image" mode="aspectFill" />
  52. </swiper-item>
  53. </block>
  54. </swiper>
  55. <view class="goods-price" wx:if="{{datas.price || datas.originalPrice}}">
  56. <view class="price-ins">当前价</view>
  57. <view class="real-p" wx:if="{{datas.price}}">¥{{datas.price}}</view>
  58. <view class="orig-p" wx:if="{{datas.originalPrice}}">¥{{datas.originalPrice}}</view>
  59. </view>
  60. </view>
  61. <view class="headDet card">
  62. <view class="titleBox">
  63. <view class="title">{{datas.title}}</view>
  64. </view>
  65. <!-- 两行标签滑动 -->
  66. <view class="tag subtitleColor">
  67. <view class="product-tag">
  68. <view>
  69. <view class="product-tag-item" wx:for="{{datas.keyTag1}}" wx:for-index="idx" wx:for-item="it" wx:key="idx">{{it.tagValue}}</view>
  70. </view>
  71. <view>
  72. <view class="product-tag-item" wx:for="{{datas.keyTag2}}" wx:for-index="idx" wx:for-item="it" wx:key="idx">{{it.tagValue}}</view>
  73. </view>
  74. </view>
  75. </view>
  76. </view>
  77. <view class="card" wx:if="{{comments.comments.length>0}}">
  78. <navigator class="r-float font12 buttom1" url="/pages/product/comment/index?aid={{datas.aid}}">查看全部 </navigator>
  79. <view class="scoreBox">
  80. <view class="scoreTit inline-block">整体评分</view>
  81. <view class="starBlank inline-block">
  82. <view class="scoreBG" style="width:{{score}}%"></view>
  83. </view>
  84. </view>
  85. <view class="line"></view>
  86. <block wx:for="{{comments.comments}}" wx:key="unique">
  87. <view class="userInfor">
  88. <view class="headerBox">
  89. <image class="headerImgB" src="{{item.ownerAvatar}}" />
  90. <text>{{item.ownerNick}}</text>
  91. </view>
  92. <view class="userBox">
  93. <text class="gray font12">{{item.weiboTime}}</text>
  94. </view>
  95. </view>
  96. <view class="listScore">
  97. <view class="score" bindtap="showAllComment"><view class="comment_content">{{item.contented}}</view></view>
  98. <view class="scoreImg " wx:if="{{item.imageList.length>0}}" bindtap="previewImage" data-index="{{index}}">
  99. <image class="appraise" src="{{item.imageList[0]}}?x-oss-process=image/resize,m_mfit,h_300,w_300" mode="aspectFill"></image>
  100. </view>
  101. <view class="addScore" wx:if="{{item.fcomments.fcontent}}">
  102. <view class="addTitle">{{item.fcomments.fweibotime}}追加评论</view>
  103. <view class="score" wx:if="{{item.fcontent}}">{{item.fcontent}}</view>
  104. <view class="scoreImg mTop10" wx:if="{{item.fcomments.fimages.length > 0}}" bindtap="previewFimages" data-index="{{index}}">
  105. <image wx:for="{{item.fcomments.fimages}}" wx:key="unique" wx:for-item="itemImg" src="{{itemImg}}?x-oss-process=image/resize,m_mfit,h_300,w_300" mode="aspectFill" data-i="{{index}}"></image>
  106. </view>
  107. </view>
  108. <view class="reply" wx:if="{{item.answer}}">
  109. <view class="addTitle replyTitle"><text class="icon icon-commentd"></text>宝大大回复:</view>
  110. <view class="score">{{item.answer}}</view>
  111. </view>
  112. </view>
  113. </block>
  114. </view>
  115. <!-- 保障 -->
  116. <view class="card" wx:if="{{datas.postExplain||datas.goodsGuarantee.length>0||datas.maxUserCoin>0}}">
  117. <view class="col-item" wx:if="{{datas.maxUserCoin&&datas.maxUserCoin>0}}">
  118. <view class="col-it-label"><text>宝贝币</text></view>
  119. <view class="col-it-val">部分规格可用,最高可再抵<text class="subtitleColor">{{datas.maxUserCoin/10}}元</text></view>
  120. </view>
  121. <view class="col-item" wx:if="{{datas.postExplain}}">
  122. <view class="col-it-label"><text>快递</text></view>
  123. <view class="col-it-val">{{datas.postExplain}}</view>
  124. </view>
  125. <view class="col-item" wx:if="{{datas.goodsGuarantee.length>0}}">
  126. <view class="col-it-label"><text>保障</text></view>
  127. <view class="col-it-val"><text wx:for="{{datas.goodsGuarantee}}" wx:key="*this" style="margin-right: 10rpx;">{{item.tagValue}}</text></view>
  128. </view>
  129. </view>
  130. <!-- 详情内容 -->
  131. <view class="details card">
  132. <view class="product-nav {{isColumn ? 'product-nav-fiexd':''}}">
  133. <view class="nav {{isColumn ? 'topNav':''}}">
  134. <view class="nav-one {{item.id == current?'current':'nocur'}}" wx:for="{{nav}}" wx:key="unique" data-id="{{item.id}}" bindtap="chooseNav">{{item.title}}</view>
  135. </view>
  136. </view>
  137. <view class="detail-content" id="content">
  138. <video class="video" id="myVideo-{{index}}" wx:if="{{viode}}" wx:for="{{viode}}" wx:if="{{index < 3}}" wx:key="unique" src="{{item}}"></video>
  139. <rich-text nodes="{{datas.content}}"></rich-text>
  140. </view>
  141. <view class="detail-content" id="notes">
  142. <rich-text nodes="{{datas.notes}}"></rich-text>
  143. </view>
  144. </view>
  145. </view>