Authored by 黄涛

fix name

@@ -10,7 +10,7 @@ const router = require('express').Router(); // eslint-disable-line @@ -10,7 +10,7 @@ const router = require('express').Router(); // eslint-disable-line
10 const cRoot = './controllers'; 10 const cRoot = './controllers';
11 11
12 // 商品详情controller 12 // 商品详情controller
13 - const detail = require(`${cRoot}/detail`); 13 +const detail = require(`${cRoot}/detail`);
14 14
15 // 商品促销controller 15 // 商品促销controller
16 const sale = require(`${cRoot}/sale`); 16 const sale = require(`${cRoot}/sale`);
@@ -32,6 +32,6 @@ router.get('/outlets/special/detail', outlets.special); @@ -32,6 +32,6 @@ router.get('/outlets/special/detail', outlets.special);
32 router.get('/outlets/:channel', outlets.channel); 32 router.get('/outlets/:channel', outlets.channel);
33 33
34 // 34 //
35 -router.get('/detail/:id/:gid',detail.index); 35 +router.get('/detail/:id/:gid', detail.index);
36 36
37 module.exports = router; 37 module.exports = router;
@@ -4,6 +4,6 @@ @@ -4,6 +4,6 @@
4 4
5 var $ = require('yoho-jquery'); 5 var $ = require('yoho-jquery');
6 6
7 -$('description-material').on('click', function () {  
8 - alert("ok"); 7 +$('description-material').on('click', function() {
  8 + alert('ok');
9 }); 9 });