|
|
<div class="feature-page yoho-page" data-id="{{activity_id}}">
|
|
|
{{#unless content.visiable}}
|
|
|
<div class="over">
|
|
|
<p>此活动已结束</p>
|
|
|
<p>稍后自动跳转更多其他精彩活动...</p>
|
|
|
</div>
|
|
|
{{else}}
|
|
|
{{#content.webShare}}
|
|
|
<input id="shareLink" type="hidden" value="{{url}}">
|
|
|
<input id="shareDesc" type="hidden" value="{{content}}">
|
|
|
<input id="shareImg" type="hidden" value="{{pic}}">
|
|
|
<input id="shareTitle" type="hidden" value="{{title}}">
|
|
|
{{/content.webShare}}
|
|
|
{{#content.floors}}
|
|
|
{{#isEqualOr type 'sidebar'}}
|
|
|
{{! 侧悬浮}}
|
|
|
{{#isEqualOr param.linkTarget '1' '3'}}
|
|
|
<a id="sidebar" href="//m.yohobuy.com" data-type="link"></a>
|
|
|
<div class="over">
|
|
|
<p>此活动已结束</p>
|
|
|
<p>稍后自动跳转更多其他精彩活动...</p>
|
|
|
</div>
|
|
|
{{else}}
|
|
|
{{#content.webShare}}
|
|
|
<input id="shareLink" type="hidden" value="{{url}}">
|
|
|
<input id="shareDesc" type="hidden" value="{{content}}">
|
|
|
<input id="shareImg" type="hidden" value="{{pic}}">
|
|
|
<input id="shareTitle" type="hidden" value="{{title}}">
|
|
|
{{/content.webShare}}
|
|
|
{{#content.floors}}
|
|
|
{{#isEqualOr type 'sidebar'}}
|
|
|
{{! 侧悬浮}}
|
|
|
{{#isEqualOr param.linkTarget '1' '3'}}
|
|
|
<a href="{{param.sidebarPageId}}" class="sidebar-link" target="_blank">
|
|
|
<img src="{{param.icon}}">
|
|
|
</a>
|
|
|
{{/isEqualOr}}
|
|
|
{{#isEqualOr param.linkTarget '2'}}
|
|
|
<div id="sidebar" pageid="{{param.sidebarPageId}}">
|
|
|
<img src="{{param.icon}}">
|
|
|
</div>
|
|
|
{{/isEqualOr}}
|
|
|
{{/isEqualOr}}
|
|
|
{{#isEqualOr param.linkTarget '2'}}
|
|
|
<div id="sidebar" pageid="{{param.sidebarPageId}}"></div>
|
|
|
{{/isEqualOr}}
|
|
|
{{/isEqualOr}}
|
|
|
{{#isEqualOr type '' 'common_floor' 'fix'}}
|
|
|
{{! 普通楼层 顶悬浮}}
|
|
|
<div {{#if param.anchorname}}id="{{param.anchorname}}"{{/if}} {{#if param.tabname}}tabname="{{param.tabname}}"{{/if}} {{#if id}}data-id="{{id}}"{{/if}} class="floor {{type}} {{#if hide}}hide{{/if}}"
|
|
|
style="{{#if param.bgcolor}}background-color:{{param.bgcolor}}{{/if}}">
|
|
|
{{#if param.bgimg}}
|
|
|
{{#isLazyLoad type @index}}
|
|
|
<img class="lazy" data-original="{{image2 param.bgimg q=85}}">
|
|
|
{{#isEqualOr type '' 'common_floor' 'fix'}}
|
|
|
{{! 普通楼层 顶悬浮}}
|
|
|
<div {{#if param.anchorname}} id="{{param.anchorname}}" {{/if}} {{#if param.tabname}} tabname="{{param.tabname}}" {{/if}}
|
|
|
{{#if id}} data-id="{{id}}" {{/if}} class="floor {{type}} {{#if hide}}hide{{/if}}" style="{{#if param.bgcolor}}background-color:{{param.bgcolor}}{{/if}}">
|
|
|
{{#if param.bgimg}}
|
|
|
{{#isLazyLoad type @index}}
|
|
|
<img class="lazy" data-original="{{image2 param.bgimg q=85}}">
|
|
|
{{else}}
|
|
|
<img src="{{image2 param.bgimg q=85}}">
|
|
|
{{/isLazyLoad}}
|
|
|
{{/if}}
|
|
|
{{#component}}
|
|
|
{{#isEqualOr type 'link'}}
|
|
|
{{! 普通组件}}
|
|
|
<a class="anchor {{#if modalImg}}modalimg{{/if}}" style="{{styleFormat this percent=1}}" href="{{#if url}}{{url}}{{else}}javascript:void(0);{{/if}}" fp="{{getAnalysis ../this @index}}"></a>
|
|
|
{{#if modalImg}}
|
|
|
<div class="modal">
|
|
|
<span class="modal-close"></span>
|
|
|
<img class="modal-img lazy" data-original="{{image2 modalImg q=85}}">
|
|
|
</div>
|
|
|
{{/if}}
|
|
|
{{/isEqualOr}}
|
|
|
{{/isLazyLoad}}
|
|
|
{{/if}}
|
|
|
{{#component}}
|
|
|
{{#isEqualOr type 'link'}}
|
|
|
{{! 普通组件}}
|
|
|
<a class="anchor {{#if modalImg}}modalimg{{/if}}" style="{{styleFormat this percent=1}}" href="{{#if url}}{{url}}{{else}}javascript:void(0);{{/if}}"
|
|
|
{{#isEqualOr linkTarget '3'}} target="_blank" {{/isEqualOr}} fp="{{getAnalysis ../this @index}}"></a>
|
|
|
{{#if modalImg}}
|
|
|
<div class="modal">
|
|
|
<span class="modal-close"></span>
|
|
|
<img class="modal-img lazy" data-original="{{image2 modalImg q=85}}">
|
|
|
</div>
|
|
|
{{/if}}
|
|
|
{{/isEqualOr}}
|
|
|
|
|
|
{{#isEqualOr type 'coupon'}}
|
|
|
{{! 优惠券}}
|
|
|
<a class="anchor yoho-conpon" style="{{styleFormat this percent=1}}" data-persenal-enable="{{persenal_enable}}" data-token="{{token}}" href="{{#if url}}{{url}}{{else}}javascript:void(0);{{/if}}"
|
|
|
fp="{{getAnalysis ../this @index}}"></a>
|
|
|
{{/isEqualOr}}
|
|
|
{{#isEqualOr type 'coupon'}}
|
|
|
{{! 优惠券}}
|
|
|
<a class="anchor yoho-conpon" style="{{styleFormat this percent=1}}" data-persenal-enable="{{persenal_enable}}" data-token="{{token}}"
|
|
|
href="{{#if url}}{{url}}{{else}}javascript:void(0);{{/if}}" fp="{{getAnalysis ../this @index}}"></a>
|
|
|
{{/isEqualOr}}
|
|
|
|
|
|
{{#isEqualOr type 'yohoCoin'}}
|
|
|
{{! 有货币}}
|
|
|
<a class="anchor yoho-coin" style="{{styleFormat this percent=1}}" data-token="{{token}}" href="{{#if url}}{{url}}{{else}}javascript:void(0);{{/if}}" fp="{{getAnalysis ../this @index}}"></a>
|
|
|
{{/isEqualOr}}
|
|
|
{{#isEqualOr type 'yohoCoin'}}
|
|
|
{{! 有货币}}
|
|
|
<a class="anchor yoho-coin" style="{{styleFormat this percent=1}}" data-token="{{token}}" href="{{#if url}}{{url}}{{else}}javascript:void(0);{{/if}}"
|
|
|
fp="{{getAnalysis ../this @index}}"></a>
|
|
|
{{/isEqualOr}}
|
|
|
|
|
|
{{#isEqualOr type 'video'}}
|
|
|
{{! 视频}}
|
|
|
<a class="anchor video-bg" style="{{styleFormat this percent=1}}" href="{{#if url}}{{url}}{{else}}javascript:void(0);{{/if}}" fp="{{getAnalysis ../this @index}}"></a>
|
|
|
<div class="video-android-close hide"></div>
|
|
|
<div class="video-android-bg hide"></div>
|
|
|
<video class="video" controls loop preload="meta" name="media">
|
|
|
<source src="{{videoSrc}}">
|
|
|
</video>
|
|
|
{{/isEqualOr}}
|
|
|
{{#isEqualOr type 'video'}}
|
|
|
{{! 视频}}
|
|
|
<a class="anchor video-bg" style="{{styleFormat this percent=1}}" href="{{#if url}}{{url}}{{else}}javascript:void(0);{{/if}}"
|
|
|
fp="{{getAnalysis ../this @index}}"></a>
|
|
|
<div class="video-android-close hide"></div>
|
|
|
<div class="video-android-bg hide"></div>
|
|
|
<video class="video" controls loop preload="meta" name="media">
|
|
|
<source src="{{videoSrc}}">
|
|
|
</video>
|
|
|
{{/isEqualOr}}
|
|
|
|
|
|
{{#isEqualOr type 'marquee' 'swiper'}}
|
|
|
{{! 轮播/滑动}}
|
|
|
<div class="swiper-container {{type}}" data-loop="{{loop}}" {{#if spaceBetween}}data-spacebetween="{{spaceBetween}}"{{/if}} {{#if autoplay}}data-autoplay="{{autoplay}}"{{/if}}>
|
|
|
<div class="swiper-wrapper">
|
|
|
{{#list}}
|
|
|
<div class="swiper-slide" style="{{styleFormat this percent=1}}">
|
|
|
<img src="{{image2 src q=85}}">
|
|
|
<a class="anchor" href="{{#if link}}{{link}}{{else}}javascript:void(0);{{/if}}" fp="{{getAnalysis ../../this @index}}"></a>
|
|
|
</div>
|
|
|
{{/list}}
|
|
|
{{#isEqualOr type 'marquee' 'swiper'}}
|
|
|
{{! 轮播/滑动}}
|
|
|
<div class="swiper-container {{type}}" data-loop="{{loop}}" {{#if spaceBetween}} data-spacebetween="{{spaceBetween}}" {{/if}}
|
|
|
{{#if autoplay}} data-autoplay="{{autoplay}}" {{/if}}>
|
|
|
<div class="swiper-wrapper">
|
|
|
{{#list}}
|
|
|
<div class="swiper-slide" style="{{styleFormat this percent=1}}">
|
|
|
<img src="{{image2 src q=85}}">
|
|
|
<a class="anchor" href="{{#if link}}{{link}}{{else}}javascript:void(0);{{/if}}" fp="{{getAnalysis ../../this @index}}"></a>
|
|
|
</div>
|
|
|
{{/list}}
|
|
|
</div>
|
|
|
{{#isEqualOr type 'marquee'}}
|
|
|
<div class="swiper-pagination"></div>
|
|
|
{{/isEqualOr}}
|
|
|
</div>
|
|
|
{{#isEqualOr type 'marquee'}}
|
|
|
<div class="swiper-pagination"></div>
|
|
|
{{/isEqualOr}}
|
|
|
</div>
|
|
|
{{/isEqualOr}}
|
|
|
{{/isEqualOr}}
|
|
|
|
|
|
{{#isEqualOr type 'tab'}}
|
|
|
{{! tab}}
|
|
|
<div class="tab-container">
|
|
|
{{#repeat count}}
|
|
|
<a class="anchor {{#if @first}}active{{/if}}" tab={{tabName @index ../tabnames}} style="{{tabStyle @index ../count}}"></a>
|
|
|
{{/repeat}}
|
|
|
</div>
|
|
|
{{/isEqualOr}}
|
|
|
{{#isEqualOr type 'tab'}}
|
|
|
{{! tab}}
|
|
|
<div class="tab-container">
|
|
|
{{#repeat count}}
|
|
|
<a class="anchor {{#if @first}}active{{/if}}" tab= {{tabName @index ../tabnames}} style="{{tabStyle @index ../count}}"></a>
|
|
|
{{/repeat}}
|
|
|
</div>
|
|
|
{{/isEqualOr}}
|
|
|
|
|
|
{{#isEqualOr type 'shopGroup'}}
|
|
|
{{!-- 店铺组 --}}
|
|
|
{{> feature/shop-group}}
|
|
|
{{/isEqualOr}}
|
|
|
{{#isEqualOr type 'shopGroup'}}
|
|
|
{{!-- 店铺组 --}}
|
|
|
{{> feature/shop-group}}
|
|
|
{{/isEqualOr}}
|
|
|
|
|
|
{{#isEqualOr type 'productGroup'}}
|
|
|
{{! 商品池}}
|
|
|
{{#isEqualOr newStyle '1'}}
|
|
|
{{> feature/product-new-style}}
|
|
|
{{^}}
|
|
|
{{> feature/product-old-style}}
|
|
|
{{#isEqualOr type 'productGroup'}}
|
|
|
{{! 商品池}}
|
|
|
{{#isEqualOr newStyle '1'}}
|
|
|
{{> feature/product-new-style}} {{^}} {{> feature/product-old-style}}
|
|
|
{{/isEqualOr}}
|
|
|
{{/isEqualOr}}
|
|
|
{{/isEqualOr}}
|
|
|
{{/component}}
|
|
|
</div>
|
|
|
{{/isEqualOr}}
|
|
|
{{#isEqualOr type 'bottombar'}}
|
|
|
<div class="floor common_floor" style="width:100%;height:{{height}}rem"></div>
|
|
|
{{> feature/bottom-fix}}
|
|
|
{{/isEqualOr}}
|
|
|
{{/content.floors}}
|
|
|
{{/component}}
|
|
|
</div>
|
|
|
{{/isEqualOr}}
|
|
|
{{#isEqualOr type 'bottombar'}}
|
|
|
<div class="floor common_floor" style="width:100%;height:{{height}}rem"></div>
|
|
|
{{> feature/bottom-fix}}
|
|
|
{{/isEqualOr}}
|
|
|
{{/content.floors}}
|
|
|
{{/unless}}
|
|
|
</div> |
...
|
...
|
|