details.wxml 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. <!--pages/details/details.wxml-->
  2. <view class="bacfff">
  3. <view class="pos_rel">
  4. <swiper indicator-dots="{{indicatorDots}}" autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}" indicator-color="rgba(208, 205, 209, 1)" circular="true" indicator-active-color="#eb4e4f" style="height:750rpx">
  5. <block wx:for="{{imgUrls}}" wx:key="*this">
  6. <swiper-item>
  7. <image src="{{item}}" class="slide-image" mode="widthFix" style="width: 100%;" />
  8. </swiper-item>
  9. </block>
  10. </swiper>
  11. <view class="comment_swiper" wx:if="{{datas.comment.content}}">
  12. <navigator class="f0" url="/pages/comments/comments?common_id={{datas.comment.common_id}}">
  13. <image src="{{datas.comment.member_avatar}}"></image>
  14. <text class="comment_content one_line_hidden" decode="{{true}}">&nbsp;&nbsp;{{datas.comment.nickname}}:{{datas.comment.content}}</text>
  15. <!-- <text class="nickname" decode="{{true}}">&nbsp;&nbsp;{{datas.comment.nickname}}:</text>
  16. <text class="comment_content one_line_hidden">{{datas.comment.content}}</text> -->
  17. </navigator>
  18. </view>
  19. <view class="details_collection flex_center">已收藏人数 {{getOneSummary.goods_collect}}</view>
  20. </view>
  21. <view class="goods_content">
  22. <view class="padLR30">
  23. <view class="one_line_hidden goods_name_title">{{getOneSummary.goods_mobile_name}}</view>
  24. <view class="one_line_hidden col333 f28">{{getOneSummary.goods_jingle}}</view>
  25. </view>
  26. <view class="bonus_price flex_center">
  27. <text decode="{{true}}">¥{{getOneSummary['act_type'] == 0?getOneSummary.bonus_price:getOneSummary['goods_promotion_price']}}&nbsp;&nbsp;</text>
  28. <text class="goods_price" decode="{{true}}">天猫价&nbsp;{{getOneSummary.goods_price}}</text>
  29. </view>
  30. <view class="goods_desc">
  31. <text wx:if="{{getOneSummary['act_type'] == 0}}" decode="{{true}}">红包抵{{getOneSummary.differencePrice}}元&nbsp;/</text>
  32. <text decode="{{true}}">已售{{getOneSummary.goods_salenum}}件&nbsp;/&nbsp;库存{{getOneSummary.goods_storage}}件</text>
  33. </view>
  34. </view>
  35. <view wx:if="{{getOneSummary['act_type'] == 0}}" class="congratulation_text one_line_hidden">{{getOneSummary.gap_desc}}</view>
  36. <navigator url="/pages/special/special?title=F码专区&special_id=905" wx:if="{{getOneSummary['is_fcode']}}">
  37. <view class="congratulation_text one_line_hidden colef524d">F码购买
  38. <view class="tospecial">去看看 ></view>
  39. </view>
  40. </navigator>
  41. <view class="details_stamps">
  42. <view class="stamps_item">
  43. <image class="goods_logo" src="{{getOneSummary.brand_country_logo}}"></image>
  44. {{getOneSummary.brand_country}}品牌
  45. </view>
  46. <view class="stamps_item">
  47. <image class="goods_logo" src="../../image/small_logo.png"></image>
  48. 熊猫美妆自营
  49. </view>
  50. <view class="stamps_item">
  51. <image class="goods_logo" src="../../image/authorize_icon.png"></image>
  52. {{getOneSummary.brand_author_desc}}
  53. </view>
  54. <view class="stamps_item">
  55. <image class="goods_logo" src="../../image/seven_icon.png"></image>
  56. 7天无理由退货
  57. </view>
  58. </view>
  59. <view class="place-bac247"></view>
  60. <navigator url="/pages/special/special?title=N元任选&special_id=869&is_special=true" wx:if="{{getOneSummary.is_opgoods}}">
  61. <view class="congratulation_text one_line_hidden">{{getOneSummary.opgoods_desc}}
  62. <view class="tospecial">去看看 ></view>
  63. </view>
  64. </navigator>
  65. <block wx:if="{{datas.comment}}">
  66. <view class="comments_block">
  67. <view>用户评价
  68. <text class="colef524d">({{datas.common_info.comments}})</text>
  69. </view>
  70. <navigator url="/pages/comments/comments?common_id={{datas.comment.common_id}}">
  71. <view class="f24">查看全部评论 > </view>
  72. </navigator>
  73. </view>
  74. <view class="comment">
  75. <view class="user">
  76. <view class="member_avatar f_left">
  77. <image src="{{datas.comment.member_avatar}}">
  78. </image>
  79. </view>
  80. <view class="f28 f_left">{{datas.comment.nickname}}</view>
  81. <view class="scores f_right">
  82. <view class="flex-stars">
  83. <image class="star" src="../../image/star.png" wx:for="{{datas.comment.scores}}" wx:index="starindex" wx:key="starindex"></image>
  84. </view>
  85. <view class="comment_time">{{datas.comment.comment_time}}</view>
  86. </view>
  87. </view>
  88. <view class="spec">规格:{{datas.comment.goods_spec}}</view>
  89. <view class="content">{{datas.comment.content}}</view>
  90. <view class="content_img"></view>
  91. </view>
  92. </block>
  93. <view class="place-bac247"></view>
  94. <view class="comments_block">
  95. <view>产品参数</view>
  96. </view>
  97. <view class="vux-1px-b">
  98. <view class="attr_list_item" wx:for="{{datas.common_info.attrs}}" wx:index="attrindex" wx:key="attrindex">
  99. <text>{{item.name}}</text>
  100. <text class="col333">{{item.value}}</text>
  101. </view>
  102. </view>
  103. <view class="place-bac247"></view>
  104. <view class="see_more_details" bindtap="toWebView">查看更多详情</view>
  105. <view class="place_details_tabbar"></view>
  106. <view class="details_tabbar">
  107. <navigator class="details_tabbar_item" url="/pages/index/index" open-type="switchTab">
  108. <image class="details_tabbar_icon" src="../../image/home-icon.png"></image>
  109. <view class="details_tabbar_label">首页</view>
  110. </navigator>
  111. <navigator class="details_tabbar_item" url="/pages/shopCart/shopCart" open-type="switchTab">
  112. <image class="details_tabbar_icon" src="../../image/shopcart-icon.png"></image>
  113. <view class="details_tabbar_label">购物车</view>
  114. </navigator>
  115. <view class="details_tabbar_simple" bindtap='animation_flag' data-flag="true" data-cartorbuy="isCart">加入购物车</view>
  116. <view class="details_tabbar_simple buy" bindtap='animation_flag' data-flag="true" data-cartorbuy="isBuy">立即购买</view>
  117. </view>
  118. <view class="animation_popup {{animation_flag ? 'show_popup' : ''}}" bindtap='animation_flag' data-flag="false"></view>
  119. <view class="simple_shopcart {{animation_flag ? 'show_animation' : ''}}">
  120. <view class="simple_goods_info pab30 vux-1px-b">
  121. <view class="flexbox_item">
  122. <image class="goods_small_img" src="{{getOneSummary.goods_image_url}}"></image>
  123. </view>
  124. <view class="flexbox_item">
  125. <view class="simple_goods_price">
  126. <text decode="{{true}}">¥{{getOneSummary['act_type'] !== 1?getOneSummary.bonus_price:datas['groupbuy'][0]['promotion_price']}}&nbsp;&nbsp;</text>
  127. <text class="goods_original_price">{{getOneSummary.goods_price}}</text>
  128. </view>
  129. <view class="f24">已售{{getOneSummary.goods_salenum}}件/库存{{getOneSummary.goods_storage}}件</view>
  130. <block wx:if="{{getgift}}">
  131. <navigator url="/pages/details/details?goods_id={{item.gifts.gift_goods_id}}" wx:for="{{getgift}}" wx:index="giftindex" wx:key="giftindex">
  132. <view class="gifts_wrap one_line_hidden">
  133. <text class="gift_tag">赠品</text>
  134. <text class="gift_underline ml8">{{item.sum.goods_mobile_name}}</text>
  135. </view>
  136. </navigator>
  137. </block>
  138. </view>
  139. </view>
  140. <view class="simple_goods_spec vux-1px-b">
  141. <view class="f24">选择{{datas.common_info.spec_name}}</view>
  142. <view class="simple_sec_content">
  143. <view class="sec_content_btn {{sec_index==idx?'sec_active':''}}" wx:for="{{datas.common_info.skus}}" wx:for-index="idx" wx:key="idx" bindtap='secSku' data-secindex="{{idx}}" data-goodsid="{{item.goods_id}}">{{item.spv_name}}</view>
  144. </view>
  145. </view>
  146. <view class="simple_goods_info">
  147. <view class="flexbox_item pal30 f24">数量</view>
  148. <view class="flexbox_item">
  149. <view class="simple_goods_compute" bindtap="goodsNumHandle" data-type="minus">-</view>
  150. <view class="simple_goods_result">{{goodsNumber}}</view>
  151. <view class="simple_goods_compute" bindtap="goodsNumHandle" data-type="add">+</view>
  152. </view>
  153. </view>
  154. <view class="close_btn" bindtap='animation_flag' data-flag="false"></view>
  155. <view class="simple_goods_buy" bindtap="checkSubmit">确定</view>
  156. </view>
  157. </view>