Authored by 周奇琪

修复接口文档的样式和js

@@ -142,9 +142,9 @@ exports.deepSet = function(obj, key, cb) { @@ -142,9 +142,9 @@ exports.deepSet = function(obj, key, cb) {
142 */ 142 */
143 exports.getInterfaceConfig = function(routers) { 143 exports.getInterfaceConfig = function(routers) {
144 var env = process.env.NODE_ENV || 'development'; 144 var env = process.env.NODE_ENV || 'development';
145 - var cssFile = 'css/all.css'; 145 + var cssFile = 'dist/index.css';
146 if (env !== 'development') { 146 if (env !== 'development') {
147 - cssFile = staticOptions.staticDir[env] + '/all.css'; 147 + cssFile = staticOptions.staticDir[env].path+'/index.css';
148 } 148 }
149 149
150 return function(req, res) { 150 return function(req, res) {
@@ -13,10 +13,10 @@ @@ -13,10 +13,10 @@
13 13
14 <body> 14 <body>
15 15
16 - <header>  
17 - <div class="headerwrapper"> 16 + <header style="background:#fff">
  17 + <div class="headerwrapper" >
18 <div class="header-left"> 18 <div class="header-left">
19 - <h4 class="mt5" style="color:#fff">YOHO!BUY API DOC</h4> 19 + <h4 class="mt5" style="margin:0;padding:10px">YOHO!BUY API DOC</h4>
20 </div> 20 </div>
21 21
22 </div> 22 </div>
@@ -84,10 +84,9 @@ @@ -84,10 +84,9 @@
84 </div> 84 </div>
85 </section> 85 </section>
86 86
87 -<script src="js/jquery-1.11.1.min.js"></script>  
88 -<script src="js/jquery-migrate-1.2.1.min.js"></script>  
89 -<script src="js/bootstrap.min.js"></script>  
90 -<script src="js/custom.js"></script> 87 +<script src="/assets/plugins/jquery/jquery-1.9.1.min.js"></script>
  88 +<script src="/assets/plugins/jquery/jquery-migrate-1.1.0.min.js"></script>
  89 +<script src="/assets/plugins/bootstrap/js/bootstrap.min.js"></script>
91 <script type="text/javascript"> 90 <script type="text/javascript">
92 var formatJson = function(json, options) { 91 var formatJson = function(json, options) {
93 var reg = null, 92 var reg = null,