Authored by 2586703@qq.com

detail-container show

@@ -6,6 +6,7 @@ @@ -6,6 +6,7 @@
6 <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0 user-scalable=no"> 6 <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0 user-scalable=no">
7 <meta content="telephone=no" name="format-detection"> 7 <meta content="telephone=no" name="format-detection">
8 <script type="text/javascript"> 8 <script type="text/javascript">
  9 +
9 (function (doc, win) { 10 (function (doc, win) {
10 var docEl = doc.documentElement, 11 var docEl = doc.documentElement,
11 resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize', 12 resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize',
@@ -27,12 +28,15 @@ @@ -27,12 +28,15 @@
27 <link rel="stylesheet" href="../css/detail.css"> 28 <link rel="stylesheet" href="../css/detail.css">
28 </head> 29 </head>
29 <body> 30 <body>
30 - {{{body}}} 31 + <div class="detail-container" style="display:none">
  32 + {{{body}}}
  33 + </div>
  34 +
31 </body> 35 </body>
32 36
33 <script src="//localhost:5000/dist/all-debug.js"></script> 37 <script src="//localhost:5000/dist/all-debug.js"></script>
34 <script type="text/javascript"> 38 <script type="text/javascript">
35 - seajs.use(['yohobuy-mobile/1.0.0/public/js/article-type-three-debug','yohobuy-mobile/1.0.0/public/js/detail-debug'], function(article,detail) { 39 + seajs.use(['jquery/1.8.3/jquery-debug','yohobuy-mobile/1.0.0/public/js/article-type-three-debug','yohobuy-mobile/1.0.0/public/js/detail-debug'], function($,article,detail) {
36 if (article) { 40 if (article) {
37 article.init(); 41 article.init();
38 } 42 }
@@ -40,6 +44,8 @@ @@ -40,6 +44,8 @@
40 if(detail) { 44 if(detail) {
41 detail.init(); 45 detail.init();
42 } 46 }
  47 +
  48 + $(".detail-container").show();
43 }); 49 });
44 </script> 50 </script>
45 </html> 51 </html>
@@ -5,6 +5,6 @@ $pxConvertRem : 40; @@ -5,6 +5,6 @@ $pxConvertRem : 40;
5 background: #fff; 5 background: #fff;
6 } 6 }
7 .article-type-one .img { 7 .article-type-one .img {
8 - width: 640rem / $pxConvertRem; 8 + width: 100%;
9 height: 640rem / $pxConvertRem; 9 height: 640rem / $pxConvertRem;
10 } 10 }