Authored by 梁志锋

店铺使用单独的JS和CSS,临时版本

1 -{{> layout/main_header}} 1 +{{> layout/main_header_shop}}
2 {{# shopIndex}} 2 {{# shopIndex}}
3 <div class="shop-index yoho-page scroll-wrapper" id="wrapper"> 3 <div class="shop-index yoho-page scroll-wrapper" id="wrapper">
4 4
  1 +<!DOCTYPE html>
  2 +<html>
  3 +<head>
  4 +<meta charset="utf-8">
  5 +<title>{{title}}</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 http-equiv="cleartype" content="on">
  10 +<meta name="apple-mobile-web-app-status-bar-style" content="black" />
  11 +<meta content="telephone=no" name="format-detection" />
  12 +<meta content="email=no" name="format-detection" />
  13 +<script type="text/javascript">
  14 + (function(doc, win) {
  15 + var docEl = doc.documentElement;
  16 + (function() {
  17 + var clientWidth = docEl.clientWidth;
  18 + if (!clientWidth) {
  19 + return;
  20 + }
  21 + docEl.style.fontSize = 20 * (clientWidth / 320) + 'px';
  22 + }());
  23 + })(document, window);
  24 +</script>
  25 +<link rel="dns-prefetch" href="//cdn.yoho.cn">
  26 +<link rel="dns-prefetch" href="//static.yohobuy.com">
  27 +<link rel="dns-prefetch" href="//img12.static.yhbimg.com">
  28 +<link rel="dns-prefetch" href="//img13.static.yhbimg.com">
  29 +{{#if rlsEnv}}
  30 +<link rel="stylesheet" href="//cdn.yoho.cn/myohobuy/{{version}}.shop/index.css">
  31 +{{/if}}
  32 +{{#if preEnv}}
  33 +<link rel="stylesheet" href="//cdn.yoho.cn/myohobuy/{{version}}.shop/index.css">
  34 +{{/if}}
  35 +{{#if testEnv}}
  36 +<link rel="stylesheet" href="//cdn.yoho.cn/myohobuy/{{version}}.shop/index.css">
  37 +{{/if}}
  38 +{{#if devEnv}}
  39 +<link rel="stylesheet" href="//static.dev.yohobuy.com/css/index.css">
  40 +{{/if}}
  41 +<link rel="apple-touch-icon-precomposed" href="//static.yohobuy.com/m/v1/img/touch/apple-touch-icon-144x144-precomposed-new.png">
  42 +<link rel="apple-touch-startup-image" sizes="640x920" href="//static.yohobuy.com/m/v1/img/startup/startup-retina.png" media="screen and (max-device-width: 480px) and (-webkit-min-device-pixel-ratio: 2)">
  43 +<link rel="apple-touch-startup-image" sizes="320x460" href="//static.yohobuy.com/m/v1/img/startup/startup.png" media="screen and (max-device-width: 320)">
  44 +</head>
  45 +<body class="{{#if isPassportPage}}passport-body{{/if}} {{#if isWechat}}wechat-body{{/if}}">
  46 +{{#if systemUpdate}}
  47 + <div class="systemUpdate">
  48 + <a href="index/systemUpdate" class="systemHeader">Yoho!Buy有货关于系统升级的公告</a>
  49 + <span>X</span>
  50 + </div>
  51 +{{/if}}