Showing
4 changed files
with
19 additions
and
6 deletions
@@ -57,7 +57,9 @@ if (config.zookeeperServer) { | @@ -57,7 +57,9 @@ if (config.zookeeperServer) { | ||
57 | app.enable('trust proxy'); | 57 | app.enable('trust proxy'); |
58 | 58 | ||
59 | // 请求限制中间件 | 59 | // 请求限制中间件 |
60 | -app.use(require('./doraemon/middleware/limiter')); | 60 | +if (!app.locals.devEnv) { |
61 | + app.use(require('./doraemon/middleware/limiter')); | ||
62 | +} | ||
61 | 63 | ||
62 | app.set('subdomain offset', 2); | 64 | app.set('subdomain offset', 2); |
63 | app.use(global.yoho.hbs({ | 65 | app.use(global.yoho.hbs({ |
@@ -51,7 +51,7 @@ | @@ -51,7 +51,7 @@ | ||
51 | <p class="caveat-tip"></p> | 51 | <p class="caveat-tip"></p> |
52 | </li> | 52 | </li> |
53 | <li> | 53 | <li> |
54 | - <span class="left-rd \{{#if info.default}} on\{{/if}}"></span> | 54 | + <span class="left-rd"></span> |
55 | <label class="radio-btn">设置为默认收货地址</label> | 55 | <label class="radio-btn">设置为默认收货地址</label> |
56 | </li> | 56 | </li> |
57 | </ul> | 57 | </ul> |
@@ -43,7 +43,7 @@ files.forEach((file) => { | @@ -43,7 +43,7 @@ files.forEach((file) => { | ||
43 | 43 | ||
44 | // 选择模块 | 44 | // 选择模块 |
45 | const loadRule = (domain) => { | 45 | const loadRule = (domain) => { |
46 | - return domainRules[domain] || domain.default; | 46 | + return domainRules[domain] || domainRules.default; |
47 | }; | 47 | }; |
48 | 48 | ||
49 | // 已处理完 | 49 | // 已处理完 |
@@ -369,7 +369,6 @@ | @@ -369,7 +369,6 @@ | ||
369 | display: inline; | 369 | display: inline; |
370 | } | 370 | } |
371 | 371 | ||
372 | - | ||
373 | &.open > .more-addr-btn { | 372 | &.open > .more-addr-btn { |
374 | display: none; | 373 | display: none; |
375 | } | 374 | } |
@@ -777,10 +776,16 @@ | @@ -777,10 +776,16 @@ | ||
777 | margin: 10px 0; | 776 | margin: 10px 0; |
778 | } | 777 | } |
779 | 778 | ||
780 | - .open + dd { | 779 | + .open { |
780 | + &:after { | ||
781 | + content: ''; | ||
782 | + } | ||
783 | + | ||
784 | + & + dd { | ||
781 | display: block; | 785 | display: block; |
782 | } | 786 | } |
783 | } | 787 | } |
788 | + } | ||
784 | 789 | ||
785 | .use-coupons { | 790 | .use-coupons { |
786 | .tip-box { | 791 | .tip-box { |
@@ -1429,9 +1434,15 @@ | @@ -1429,9 +1434,15 @@ | ||
1429 | } | 1434 | } |
1430 | } | 1435 | } |
1431 | 1436 | ||
1432 | - .on-edit + .area-select { | 1437 | + .on-edit { |
1438 | + &:after { | ||
1439 | + content: ''; | ||
1440 | + } | ||
1441 | + | ||
1442 | + & + .area-select { | ||
1433 | display: block; | 1443 | display: block; |
1434 | } | 1444 | } |
1445 | + } | ||
1435 | 1446 | ||
1436 | .area-select .tab-on { | 1447 | .area-select .tab-on { |
1437 | background-color: #fff; | 1448 | background-color: #fff; |
-
Please register or login to post a comment