Authored by 沈志敏

回滚layout,hbs页面

1 <div class="my-page"> 1 <div class="my-page">
2 <div class="my-header"> 2 <div class="my-header">
3 <a class="user-info" id="user-info" {{#if userinfourl}} href='{{userinfourl}}' {{/if}}> 3 <a class="user-info" id="user-info" {{#if userinfourl}} href='{{userinfourl}}' {{/if}}>
  4 + <span class="setting icon icon-setting"></span>
4 <span class="user-avatar" {{#if head_ico}} style="background-image: url('{{head_ico}}');" {{/if}}></span> 5 <span class="user-avatar" {{#if head_ico}} style="background-image: url('{{head_ico}}');" {{/if}}></span>
5 <br><span class="username">{{profile_name}}</span> 6 <br><span class="username">{{profile_name}}</span>
6 </a> 7 </a>
  1 +<!DOCTYPE html>
  2 +<html>
  3 + <head>
  4 + <meta charset="utf-8">
  5 + <title>{{title}} {{#unless noYohoTitle}}{{yohoTitle}}{{/unless}}</title>
  6 + <meta name="keywords" content="{{keywords}}">
  7 + <meta name="description" content="{{description}}">
  8 + <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
  9 + <meta name="apple-mobile-web-app-status-bar-style" content="black">
  10 + <meta content="telephone=no" name="format-detection">
  11 + <meta content="email=no" name="format-detection">
  12 + <link rel="dns-prefetch" href="//cdn.yoho.cn">
  13 + <link rel="dns-prefetch" href="//static.yohobuy.com">
  14 + <script type="text/javascript">
  15 + (function(d,c){var e=d.documentElement,a="orientationchange" in window?"orientationchange":"resize",b=function(){var f=e.clientWidth;if(!f){return}if(f>=750){e.style.fontSize="40px"}else{e.style.fontSize=40*(f/750)+"px"}};if(!d.addEventListener){return}b();c.addEventListener(a,b,false);d.addEventListener("DOMContentLoaded",b,false)})(document,window);
  16 + </script>
  17 + {{#if devEnv}}
  18 + <link rel="stylesheet" href="//localhost:5004/css/index.css">
  19 + {{#unless noLocalCSS}}
  20 + <link rel="stylesheet" href="//localhost:5004/{{module}}.{{page}}.css">
  21 + {{/unless}}
  22 + {{^}}
  23 + <link rel="stylesheet" href="//cdn.yoho.cn/yohoblk-wap/{{version}}/index.css">
  24 + {{#unless noLocalCSS}}
  25 + <link rel="stylesheet" href="//cdn.yoho.cn/yohoblk-wap/{{version}}/{{module}}.{{page}}.css">
  26 + {{/unless}}
  27 + {{/if}}
  28 + </head>
  29 + <body {{#if isPassportPage}}class=passport-body{{/if}} {{#if isStarIndexPage}} class="star-index-bg"{{/if}} {{#if isStarDetailPage}}class="star-class-body"{{/if}}>
  30 + <div class="main-wrap">
  31 + {{{body}}}
  32 + </div>
  33 +
  34 + {{#wechatShare}}
  35 + <script type="text/javascript" src="//res.wx.qq.com/open/js/jweixin-1.1.0.js"></script>
  36 + {{/wechatShare}}
  37 + {{#if devEnv}}
  38 + <script src="//localhost:5004/libs.js"></script>
  39 + {{#unless noLocalJS}}
  40 + <script src="//localhost:5004/{{module}}.{{page}}.js"></script>
  41 + {{/unless}}
  42 + {{^}}
  43 + <script src="//cdn.yoho.cn/yohoblk-wap/{{version}}/libs.js"></script>
  44 + {{#unless noLocalJS}}
  45 + <script src="//cdn.yoho.cn/yohoblk-wap/{{version}}/{{module}}.{{page}}.js"></script>
  46 + {{/unless}}
  47 + {{/if}}
  48 + {{#unless devEnv}}
  49 + {{> analysis}}
  50 + {{/unless}}
  51 + </body>
  52 +</html>