index.hbs 3.33 KB
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta charset="utf-8">
    <title>{{title}}</title>
    <meta name="format-detection" content="telephone=no">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no,minimal-ui">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="grey">
    <script type="text/javascript">
        (function(d,c){var e=d.documentElement,a="orientationchange" in window?"orientationchange":"resize",b=function(){var f=e.clientWidth;if(!f){return}if(f>=640){e.style.fontSize="40px"}else{e.style.fontSize=40*(f/640)+"px"}};if(!d.addEventListener){return}b();c.addEventListener(a,b,false);d.addEventListener("DOMContentLoaded",b,false)})(document,window);
    </script>
    <link rel="stylesheet" href="{{assetsUrl}}/{{module}}/dist/css/style.css">
</head>
<body>
    <div class="main-wrap home">
        <div class="header"></div>
        <a class="coupon" href="{{couponUrl}}"></a>
        <div class="share">
            快去分享给小伙伴吧 <span class="arrow"></span>
        </div>
        <a class="banner" href="{{banner.url}}">
            <img src="{{banner.img}}">
        </a>
        {{#unless isApp}}
        <div class="download">
            <a class="weixin" href="{{weixinUrl}}">
                关注有货微信 <span class="arrow"></span>
            </a>
            <a class="app" href="{{appUrl}}">
                下载YOHO!BUY有货APP <span class="arrow"></span>
            </a>
        </div>
        {{/unless}}
        <div class="footer">
        </div>
    </div>
    <div class="mask hide">
        <div class="pengyouquan">
        </div>
        <div class="arrow">
        </div>
        <p>
            点击右上角<br>
            微信分享至朋友圈
        </p>
    </div>

    {{#if fail}}
    <div class="tip-wrap">
        <div class="tip fail">
            <div class="title">
                领取失败<br>
                请刷新重新领取
            </div>
            <div class="desc">
                如多次领取失败,请联系客服人员<br>
                带来不便敬请谅解
            </div>
            <a class="button" href="">
                刷新
            </a>
        </div>
    </div>
    {{/if}}

    {{#if geted}}
    <div class="tip-wrap">
        <div class="tip geted">
            <div class="title">
                你已领取过优惠券
            </div>
            <div class="sub-title">
                 快去分享给更多<br>
                 喜爱<span class="title">潮流</span>的小伙伴吧!
            </div>
            <a class="button close" href="">
                返回
            </a>
        </div>
    </div>
    {{/if}}

    <input type="hidden" id="shareTitle" value="{{shareTitle}}">
    <input type="hidden" id="shareDesc" value="{{shareDesc}}">
    <input type="hidden" id="shareImg" value="{{shareImg}}">
    <input type="hidden" id="shareLink" value="{{shareLink}}">
    <script type="text/javascript" src="//res.wx.qq.com/open/js/jweixin-1.1.0.js"></script>
    <script type="text/javascript" src="{{assetsUrl}}/{{module}}/dist/js/libs.js"></script>
    <script type="text/javascript" src="{{assetsUrl}}/{{module}}/dist/js/main.js"></script>
</body>