123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261 |
- <!--pages/details/details.wxml-->
- <import src="../../wxParse/wxParse.wxml" />
- <import src="../components/template/loadAnimation/loadAnimation.wxml" />
- <template is="detailLoad" wx:if="{{!show}}" />
- <view>
- <image wx:for="{{imgUrls}}" wx:for-index="idx" wx:key="idx" class="imageHeight" src="{{item}}" bindload="swiperImgLoad"></image>
- </view>
- <view class="bacfff" wx:if="{{show}}">
- <view class="pos_rel" >
- <swiper indicator-dots="{{indicatorDots}}" autoplay="{{autoplay}}" interval="{{interval}}" duration="{{duration}}" indicator-color="#E8E8E8"
- circular="true" indicator-active-color="##2B2B2B" style="height:750rpx">
- <block wx:for="{{imgUrls}}" wx:for-index="idx" wx:key="idx" >
- <swiper-item>
- <image src="{{item}}" class="slide-image" mode="widthFix" style="width: 100%;" />
- </swiper-item>
- </block>
- </swiper>
- </view>
- <view class="place-bacd9"></view>
- <!-- <view bindtap="toWebView">查看详情</view> -->
- <view class="promotion_header align_center" wx:if="{{getOneSummary['act_type'] == 2}}">
- <view class="promotion_single">限时特价</view>
- <view>还剩
- <text class="col333 ft_bold">{{promotionDays}}天</text>恢复
- <text class="col333 ft_bold">¥{{getOneSummary.goods_price}}</text>,不可同享其他优惠</view>
- </view>
- <view class="n_goods_content">
- <view class="n_price_content align_center">
- <text class="f40 col2B2B2B ft_bold" wx:if="{{getOneSummary['act_type'] == 0}}">¥{{getOneSummary.bonus_price}}</text>
- <text class="f40 col2B2B2B ft_bold" wx:if="{{getOneSummary['act_type'] == 2}}">¥{{getOneSummary['goods_promotion_price']}}</text>
- <text class="f24 col999 ml10 line-through">天猫价:¥{{getOneSummary.goods_price}}</text>
- </view>
- <view class="f24 col666 l_height34 mt4">库存:{{getOneSummary.goods_storage}}件</view>
- <view class="n_goods_title">
- <view class="brand_auth" wx:if="{{getOneSummary.brand_author_desc}}">{{getOneSummary.brand_author_desc}}</view>
- <text decode="{{true}}">{{getOneSummary.goods_mobile_name}} {{getOneSummary.goods_jingle}}</text>
- </view>
- </view>
- <view class="place-bacd9"></view>
- <view class="ensure_desc" bindtap='isExplain_flag' data-flag="true">
- <view class="stamps_list">
- <view class="n_stamps_item" wx:if="{{getOneSummary.brand_country_logo}}">
- <image class="stamp_pic" src="{{getOneSummary.brand_country_logo}}"></image>
- {{getOneSummary.brand_country}}品牌
- </view>
- <view class="n_stamps_item">
- <image class="stamp_pic" src="../../image/lrlz.png"></image>
- 丽妆自营
- </view>
- <view class="n_stamps_item">
- <image class="stamp_pic zg" src="../../image/zg.png"></image>
- 线上专柜
- </view>
- </view>
- <view class="ensure_desc_text" wx:if="{{datas.common_info.brand_tip}}">{{datas.common_info.brand_tip}} </view>
- <view class="see_ensure_wrap">
- <image class="see_ensure_desc" src="../../image/back.png"></image>
- </view>
- </view>
- <block wx:if="{{bundleList}}">
- <block wx:for="{{bundleList}}" wx:key="index" wx:for-index="index">
- <view class="place-bac247"></view>
- <view class="comments_box">
- <view class="comments_header">-套装推荐-</view>
- <view class="comments_basic_info ">
- <view class="f30 col333 ft_bold">{{item['bundling']['bl_name']}}</view>
- <view class="transform_bundleList_wrapper align_center" catchtap="toggleBundle" data-index="{{index}}">
- <image class="transform_bundleList {{ bundleIndex == index ? 'bundle_active' : ''}}" src="../../image/back.png"></image>
- </view>
- </view>
- <view class="{{bundleIndex == index ? 'bundle_list_hide' : ''}}">
- <view class="align_center mb20 mt20 ">
- <scroll-view class="scroll-view_H" scroll-x="true" style="width: 100%">
- <block wx:for="{{item['bundlesSumary']}}" wx:key="bundleIndex" wx:for-item="bundle" wx:for-index="bundleIndex">
- <view class="scroll-view-item_H bundle_scroll_view" catchtap="bundleDetail" data-id="{{bundle['goods_id']}}">
- <image class="bundle_img" src="{{bundle['goods_image_url']}}"></image>
- <view class="bundle_desc">{{bundle['goods_mobile_name']}}</view>
- </view>
- <view class="scroll-view-item_H scroll_place" wx:if="{{bundleIndex < item['bundlesSumary'].length - 1}}">+</view>
- </block>
- </scroll-view>
- </view>
- <view class="f30 text_center col666 mb20">套装总价:
- <text class="ft_bold col333">¥{{item['bundling']['bl_price']}}</text>
- </view>
- </view>
- <!-- 展开后的样式 -->
- <view class="{{bundleIndex == index ? '' : 'bundle_list_hide'}}">
- <block wx:for="{{item['bundlesSumary']}}" wx:key="bundleIndex" wx:for-item="bundle" wx:for-index="bundleIndex">
- <view class="order_goods_content vux-1px-b" style="padding-left: 0;" catchtap="bundleDetail" data-id="{{bundle['goods_id']}}">
- <image class="bundle_img" src="{{bundle['goods_image_url']}}"></image>
- <view class="order_content_middle default_place_flex over_hidden">
- <view class="l_height42 ft_bold one_line_hidden">{{bundle['goods_mobile_name']}}</view>
- <view>
- <text class="f30 col333 ft_bold mr10">
- <text class="f24 mr6">¥</text>{{bundle['bl_goods_price']}}</text>
- <text decode="{{true}}" class="col999 line-through f24">天猫价{{bundle['goods_price']}}</text>
- </view>
- </view>
- <image class="see_ensure_desc" style="right: 0;" src="../../image/back.png"></image>
- </view>
- </block>
- <view class="handle_bar align_center mt20 mb20">
- <view>
- <view class="f24 col666">套装价格:
- <text class="ft_bold f28 ml10 col333">¥{{item['bundling']['bl_price']}}</text>
- </view>
- <view class="f24 col666">单价直降:
- <text class="f28 ml10 col333">¥{{item['bundling']['reduce_price']}}</text>
- </view>
- </view>
- <view class="add_bundle_cart" catchtap="addBundleCart" data-blid="{{item['bundling']['bl_id']}}">加入购物车</view>
- </view>
- </view>
- </view>
- </block>
- </block>
- <block wx:if="{{datas.comment}}">
- <view class="place-bac247"></view>
- <view class="comments_box">
- <view class="comments_header">
- -商品评价-
- <view class="all_comments" catchtap="allComments">
- 查看全部
- <image class="all_comments_icon" src="../../image/back.png"></image>
- </view>
- </view>
- <view class="comments_basic_info">
- <view class="f30 col333">商品评论
- <text class="ft_bold ml8">({{datas.common_info.comments}})</text>
- </view>
- <view class="align_center">
- <text class="f24 col333 mr10">{{datas.common_info.comments_rate}}</text>
- <block wx:for="{{starSrcs}}" wx:for-index="idx" wx:key="idx" >
- <image class="star" src="{{item}}"></image>
- </block>
- </view>
- </view>
- <block wx:for="{{comments}}" wx:key="index" wx:for-index="index">
- <view class="comments_item">
- <view>
- <view class="align_center member_avatar">
- <image src="{{item.member_avatar}}"></image>
- <view class="f28 col333 ml20">{{item.nickname}}</view>
- </view>
- </view>
- <view class="f24 col333 l_height34 mt20">{{item.content}}</view>
- <view class="f24 col333 l_height34 mt20">规格:{{item.goods_spec}}</view>
- <view class="f24 col999 l_height34 mt10" wx:if="{{item['transform_addtime']}}">{{item['transform_addtime']}}</view>
- <view wx:if="{{item.images.length}}">
- <view class="content_img" bindtap='showCarousel' data-images="{{item.images}}" data-current="{{imgIndex}}" wx:for-item="imgItem" wx:for="{{item.images}}" wx:for-index="imgIndex" wx:key="imgIndex">
- <view class="align_center" style="width: 100%;height: 100%;">
- <image mode="widthFix" class="content_src_img" src="{{imgItem}}"></image>
- </view>
- </view>
- </view>
- <view class="content" wx:if="{{item.explain}}">掌柜回复:{{item.explain}}</view>
- </view>
- <view class="place-bacd9" wx:if="{{index < comments.length - 1}}"></view>
- </block>
- </view>
- </block>
- <view class="place-bac247"></view>
- <view class="comments_box view_img">
- <view class="comments_header mb20">-图文详情-</view>
- <template is="wxParse" data="{{wxParseData:article.nodes}}" />
- </view>
- <view class="place_details_tabbar"></view>
- <view class="details_tabbar">
- <navigator class="details_tabbar_item right_line" url="/pages/index/index" open-type="switchTab">
- <view class="tabbar_icon_wrap flex_center">
- <image class="home_icon" src="../../image/home-icon.png"></image>
- </view>
- <view class="details_tabbar_label">首页</view>
- </navigator>
- <navigator class="details_tabbar_item right_line" url="/pages/shopCart/shopCart" open-type="switchTab">
- <view class="tabbar_icon_wrap flex_center">
- <image class="shopcart_icon" src="../../image/shopcart-icon.png"></image>
- </view>
- <view class="details_tabbar_label">购物车</view>
- </navigator>
- <view class="details_tabbar_item" session-from="weapp">
- <contact-button session-from="weapp" style="opacity:0;position: absolute;left: 0;right:0;top: 0;bottom: 0;z-index:2;"></contact-button>
- <view class="tabbar_icon_wrap flex_center">
- <image class="shopcart_icon" src="../../image/details_customer.png"></image>
- </view>
- <view class="details_tabbar_label">客服</view>
- </view>
- <view class="details_tabbar_simple" bindtap='animation_flag' data-flag="true" data-cartorbuy="isCart">加入购物车</view>
- <view class="details_tabbar_simple buy" bindtap='animation_flag' data-flag="true" data-cartorbuy="isBuy">立即购买</view>
- </view>
- <view class="animation_popup {{animation_flag ? 'show_popup' : ''}}" bindtap='animation_flag' data-flag="false"></view>
- <view class="simple_shopcart {{animation_flag ? 'show_animation' : ''}}">
- <view class="simple_goods_info pab30 vux-1px-b">
- <view class="flexbox_item">
- <image class="goods_small_img" src="{{getOneSummary.goods_image_url}}"></image>
- </view>
- <view class="flexbox_item" style="margin-left: -220rpx;">
- <view class="simple_goods_price">
- <text decode="{{true}}" wx:if="{{getOneSummary['act_type'] == 0}}">¥{{getOneSummary.bonus_price}} </text>
- <text decode="{{true}}" wx:if="{{getOneSummary['act_type'] == 2}}">¥{{getOneSummary['goods_promotion_price']}} </text>
- <text class="goods_original_price line-through">天猫价{{getOneSummary.goods_price}}</text>
- </view>
- <view class="f24">库存{{getOneSummary.goods_storage}}件</view>
- <view class="f26 mt8">已选择:"{{datas.common_info.skus[sec_index]['spv_name']}}"</view>
- <block wx:if="{{getgift}}">
- <navigator url="/pages/details/details?goods_id={{item.gifts.gift_goods_id}}" wx:for="{{getgift}}" wx:index="giftindex" wx:key="giftindex">
- <view class="gifts_wrap one_line_hidden">
- <text class="gift_tag">赠品</text>
- <text class="gift_underline ml8">{{item.sum.goods_mobile_name}}</text>
- </view>
- </navigator>
- </block>
- </view>
- </view>
- <view class="simple_goods_spec vux-1px-b">
- <view class="f24">选择{{datas.common_info.spec_name}}</view>
- <view class="simple_sec_content">
- <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>
- </view>
- </view>
- <view class="simple_goods_info">
- <view class="flexbox_item pal30 f24">数量</view>
- <view class="flexbox_item">
- <view class="simple_goods_compute" bindtap="goodsNumHandle" data-type="minus">-</view>
- <view class="simple_goods_result">{{goodsNumber}}</view>
- <view class="simple_goods_compute" bindtap="goodsNumHandle" data-type="add">+</view>
- </view>
- </view>
- <view class="close_btn" bindtap='animation_flag' data-flag="false"></view>
- <view class="simple_goods_buy" bindtap="checkSubmit">确定</view>
- </view>
- <!-- 评论图片弹窗 -->
- <commentsCarousel wx:if="{{show_carousel}}" bind:hideCarousel="hideCarousel" current="{{current}}" carouselImgs="{{carouselImgs}}">
- </commentsCarousel>
- <!-- 商品说明弹窗 -->
- <view class="animation_popup {{isExplain ? 'show_popup' : ''}}" bindtap='isExplain_flag' data-flag="false"></view>
- <view class="simple_explain {{isExplain ? 'show_animation' : ''}}">
- <!-- view -->
- <view class="close_explain" bindtap='isExplain_flag' data-flag="false"></view>
- <image src="../../image/goods_explain.png" style="width: 100%" mode="widthFix"></image>
- </view>
- </view>
|