details.wxml 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189
  1. <!--pages/details/details.wxml-->
  2. <import src="../../wxParse/wxParse.wxml" />
  3. <view class="bacfff">
  4. <view class="pos_rel">
  5. <swiper indicator-dots="{{indicatorDots}}" autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}" indicator-color="#E8E8E8"
  6. circular="true" indicator-active-color="##2B2B2B" style="height:750rpx">
  7. <block wx:for="{{imgUrls}}" wx:key="*this">
  8. <swiper-item>
  9. <image src="{{item}}" class="slide-image" mode="widthFix" style="width: 100%;" />
  10. </swiper-item>
  11. </block>
  12. </swiper>
  13. </view>
  14. <view class="place-bacd9"></view>
  15. <view class="promotion_header align_center" wx:if="{{getOneSummary['act_type'] == 2}}">
  16. <view class="promotion_single">限时特价</view>
  17. <view>还剩<text class="col333 ft_bold">{{promotionDays}}天</text>恢复<text class="col333 ft_bold">¥{{getOneSummary.goods_price}}</text>,不可同享其他优惠</view>
  18. </view>
  19. <view class="n_goods_content">
  20. <view class="n_price_content align_center">
  21. <text class="f40 col2B2B2B ft_bold" wx:if="{{getOneSummary['act_type'] == 0}}">¥{{getOneSummary.bonus_price}}</text>
  22. <text class="f40 col2B2B2B ft_bold" wx:if="{{getOneSummary['act_type'] == 2}}">¥{{getOneSummary['goods_promotion_price']}}</text>
  23. <text class="f24 col999 ml10 line-through">专柜价:¥{{getOneSummary.goods_price}}</text>
  24. </view>
  25. <view class="f24 col666 l_height34 mt4">库存:{{getOneSummary.goods_storage}}件</view>
  26. <view class="n_goods_title">
  27. <view class="brand_auth" wx:if="{{getOneSummary.brand_author_desc}}">{{getOneSummary.brand_author_desc}}</view>
  28. <text decode="{{true}}">{{getOneSummary.goods_mobile_name}}&nbsp;&nbsp;{{getOneSummary.goods_jingle}}</text>
  29. </view>
  30. </view>
  31. <view class="place-bacd9"></view>
  32. <view class="ensure_desc" bindtap='isExplain_flag' data-flag="true">
  33. <view class="stamps_list">
  34. <view class="n_stamps_item" wx:if="{{getOneSummary.brand_country_logo}}">
  35. <image class="stamp_pic" src="{{getOneSummary.brand_country_logo}}"></image>
  36. {{getOneSummary.brand_country}}品牌
  37. </view>
  38. <view class="n_stamps_item">
  39. <image class="stamp_pic" src="../../image/lrlz.png"></image>
  40. 丽妆自营
  41. </view>
  42. <view class="n_stamps_item">
  43. <image class="stamp_pic zg" src="../../image/zg.png"></image>
  44. 线上专柜
  45. </view>
  46. </view>
  47. <view class="ensure_desc_text" wx:if="{{datas.common_info.brand_tip}}">{{datas.common_info.brand_tip}} </view>
  48. <view class="see_ensure_wrap">
  49. <image class="see_ensure_desc" src="../../image/back.png"></image>
  50. </view>
  51. </view>
  52. <block wx:if="{{datas.comment}}">
  53. <view class="place-bac247"></view>
  54. <view class="comments_box">
  55. <view class="comments_header">
  56. -商品评价-
  57. <view class="all_comments" catchtap="allComments">
  58. 查看全部
  59. <image class="all_comments_icon" src="../../image/back.png"></image>
  60. </view>
  61. </view>
  62. <view class="comments_basic_info">
  63. <view class="f30 col333">商品评论
  64. <text class="ft_bold ml8">({{datas.common_info.comments}})</text>
  65. </view>
  66. <view class="align_center">
  67. <text class="f24 col333 mr10">{{datas.common_info.comments_rate}}</text>
  68. <block wx:for="{{starSrcs}}" wx:key="*this">
  69. <image class="star" src="{{item}}"></image>
  70. </block>
  71. </view>
  72. </view>
  73. <block wx:for="{{comments}}" wx:key="*this" wx:for-index="index">
  74. <view class="comments_item">
  75. <view>
  76. <view class="align_center member_avatar">
  77. <image src="{{item.member_avatar}}"></image>
  78. <view class="f28 col333 ml20">{{item.nickname}}</view>
  79. </view>
  80. </view>
  81. <view class="f24 col333 l_height34 mt20">{{item.content}}</view>
  82. <view class="f24 col333 l_height34 mt20">规格:{{item.goods_spec}}</view>
  83. <view class="f24 col999 l_height34 mt10" wx:if="{{item['transform_addtime']}}">{{item['transform_addtime']}}</view>
  84. <view wx:if="{{item.images.length}}">
  85. <image bindtap='showCarousel' mode="widthFix" data-images="{{item.images}}" data-current="{{imgIndex}}" class="content_img"
  86. src="{{imgItem}}" wx:for-item="imgItem" wx:for="{{item.images}}" wx:for-index="imgIndex" wx:key="imgIndex"></image>
  87. </view>
  88. <view class="content" wx:if="{{item.explain}}">{{item.explain}}</view>
  89. </view>
  90. <view class="place-bacd9" wx:if="{{index < comments.length - 1}}"></view>
  91. </block>
  92. </view>
  93. </block>
  94. <view class="place-bac247"></view>
  95. <view class="comments_box">
  96. <view class="comments_header mb20">-图文详情-</view>
  97. <template is="wxParse" data="{{wxParseData:article.nodes}}" />
  98. </view>
  99. <view class="place_details_tabbar"></view>
  100. <view class="details_tabbar">
  101. <navigator class="details_tabbar_item right_line" url="/pages/index/index" open-type="switchTab">
  102. <view class="tabbar_icon_wrap flex_center">
  103. <image class="home_icon" src="../../image/home-icon.png"></image>
  104. </view>
  105. <view class="details_tabbar_label">首页</view>
  106. </navigator>
  107. <navigator class="details_tabbar_item right_line" url="/pages/shopCart/shopCart" open-type="switchTab">
  108. <view class="tabbar_icon_wrap flex_center">
  109. <image class="shopcart_icon" src="../../image/shopcart-icon.png"></image>
  110. </view>
  111. <view class="details_tabbar_label">购物车</view>
  112. </navigator>
  113. <view class="details_tabbar_item" session-from="weapp">
  114. <contact-button session-from="weapp" style="opacity:0;position: absolute;left: 0;right:0;top: 0;bottom: 0;z-index:2;"></contact-button>
  115. <view class="tabbar_icon_wrap flex_center">
  116. <image class="shopcart_icon" src="../../image/details_customer.png"></image>
  117. </view>
  118. <view class="details_tabbar_label">客服</view>
  119. </view>
  120. <view class="details_tabbar_simple" bindtap='animation_flag' data-flag="true" data-cartorbuy="isCart">加入购物车</view>
  121. <view class="details_tabbar_simple buy" bindtap='animation_flag' data-flag="true" data-cartorbuy="isBuy">立即购买</view>
  122. </view>
  123. <view class="animation_popup {{animation_flag ? 'show_popup' : ''}}" bindtap='animation_flag' data-flag="false"></view>
  124. <view class="simple_shopcart {{animation_flag ? 'show_animation' : ''}}">
  125. <view class="simple_goods_info pab30 vux-1px-b">
  126. <view class="flexbox_item">
  127. <image class="goods_small_img" src="{{getOneSummary.goods_image_url}}"></image>
  128. </view>
  129. <view class="flexbox_item">
  130. <view class="simple_goods_price">
  131. <!-- <text decode="{{true}}">¥{{getOneSummary['act_type'] !== 1?getOneSummary.bonus_price:datas['groupbuy'][0]['promotion_price']}}&nbsp;&nbsp;</text> -->
  132. <text decode="{{true}}" wx:if="{{getOneSummary['act_type'] == 0}}">¥{{getOneSummary.bonus_price}}&nbsp;&nbsp;</text>
  133. <text decode="{{true}}" wx:if="{{getOneSummary['act_type'] == 2}}">¥{{getOneSummary['goods_promotion_price']}}&nbsp;&nbsp;</text>
  134. <text class="goods_original_price line-through">专柜价{{getOneSummary.goods_price}}</text>
  135. </view>
  136. <view class="f24">库存{{getOneSummary.goods_storage}}件</view>
  137. <block wx:if="{{getgift}}">
  138. <navigator url="/pages/details/details?goods_id={{item.gifts.gift_goods_id}}" wx:for="{{getgift}}" wx:index="giftindex" wx:key="giftindex">
  139. <view class="gifts_wrap one_line_hidden">
  140. <text class="gift_tag">赠品</text>
  141. <text class="gift_underline ml8">{{item.sum.goods_mobile_name}}</text>
  142. </view>
  143. </navigator>
  144. </block>
  145. </view>
  146. </view>
  147. <view class="simple_goods_spec vux-1px-b">
  148. <view class="f24">选择{{datas.common_info.spec_name}}</view>
  149. <view class="simple_sec_content">
  150. <view class="sec_content_btn {{sec_index==idx?'sec_active':''}}" wx:for="{{datas.common_info.skus}}" wx:for-index="idx" wx:key="idx"
  151. bindtap='secSku' data-secindex="{{idx}}" data-goodsid="{{item.goods_id}}">{{item.spv_name}}</view>
  152. </view>
  153. </view>
  154. <view class="simple_goods_info">
  155. <view class="flexbox_item pal30 f24">数量</view>
  156. <view class="flexbox_item">
  157. <view class="simple_goods_compute" bindtap="goodsNumHandle" data-type="minus">-</view>
  158. <view class="simple_goods_result">{{goodsNumber}}</view>
  159. <view class="simple_goods_compute" bindtap="goodsNumHandle" data-type="add">+</view>
  160. </view>
  161. </view>
  162. <view class="close_btn" bindtap='animation_flag' data-flag="false"></view>
  163. <view class="simple_goods_buy" bindtap="checkSubmit">确定</view>
  164. </view>
  165. <!-- 评论图片弹窗 -->
  166. <commentsCarousel wx:if="{{show_carousel}}" bind:hideCarousel="hideCarousel" current="{{current}}" carouselImgs="{{carouselImgs}}">
  167. </commentsCarousel>
  168. <!-- 商品说明弹窗 -->
  169. <view class="animation_popup {{isExplain ? 'show_popup' : ''}}" bindtap='isExplain_flag' data-flag="false"></view>
  170. <view class="simple_explain {{isExplain ? 'show_animation' : ''}}">
  171. <!-- view -->
  172. <view class="close_explain" bindtap='isExplain_flag' data-flag="false"></view>
  173. <image src="../../image/goods_explain.png" style="width: 100%" mode="widthFix"></image>
  174. </view>
  175. </view>