detail.hbs 2.38 KB
<div class="yoho-page bundle-body">
    <div class="bundle-tabs{{#if any}} any{{/if}}">
        <div class="swiper-wrapper">
            {{# bundleDatas}}
            <div class="swiper-slide{{#if selected}} selected{{/if}}" data-index="{{@index}}" data-href="{{href}}">
                <div class="line"></div>
                <div class="title">
                    <span>{{title}}</span>
                </div>
            </div>
            {{/ bundleDatas}}
        </div>
    </div>
    {{# productList}}
        <div class="bundle-detail-goods">
            <div class="goods-img"><a href="{{url}}"><img src="{{image default_images 155 206}}" alt=""></a></div>
            <div class="goods-info">
                <p><span class="title">{{product_name}}</span><span class="count">x 1</span></p>
                <p><span class="select-btn" id="gskn-{{product_skn}}" data-id="{{product_id}}" data-index="{{@index}}"
                    data-skn="{{product_skn}}">请选择商品属性 <i
                        class="iconfont">&#xe616;
                </i></span></p>
                <p><span class="price">{{format_sales_price}}</span></p>
            </div>
        </div>
    {{/ productList}}
    <div class="chose-panel-top"></div>
    {{# bundleInfo}}
    <div class="bundle-bar clearfix">
        {{#if @root.isApp}}
            <div class="no-buy">抱歉,套装商品仅支持在最新版app购买,请升级!</div>
        {{^}}
            <div class="bundle-bar-md">
                <div class="bundle-price">
                    {{#if subPrice}}
                    <span class="bundle-discount">立省¥{{subPrice}}</span>
                    {{/if}}
                    <span>套餐价: {{discountPriceStr}}</span>
                </div>
                <div class="sale-price">销售价: {{salesPriceStr}}</div>
            </div>
            <button id="bundle-buy-now" class="bundle-buy-btn">立即购买</button>
        {{/if}}
        
        
    </div>
        <input type="hidden" id="activityId" value="{{bundleId}}">
    {{/ bundleInfo}}
    {{#shareInfo}}
        <input type="hidden" id="shareImgUrl" value="{{imgUrl}}">
        <input type="hidden" id="shareSubTitle" value="{{subTitle}}">
        <input type="hidden" id="shareTitle" value="{{title}}">
        <input type="hidden" id="shareUrl" value="{{url}}">
    {{/shareInfo}}
    <input type="hidden" id="no-download" value="1" >
</div>