Merge branch 'release/6.9.10' into 'master'
Release/6.9.10 See merge request !1782
Showing
7 changed files
with
83 additions
and
1 deletions
@@ -485,6 +485,41 @@ const shopIntro = (req, res, next) => { | @@ -485,6 +485,41 @@ const shopIntro = (req, res, next) => { | ||
485 | }; | 485 | }; |
486 | 486 | ||
487 | /** | 487 | /** |
488 | + * 营业执照简介 | ||
489 | + * @param req | ||
490 | + * @param res | ||
491 | + * @param next | ||
492 | + */ | ||
493 | +const shopLicense = (req, res, next) => { | ||
494 | + let shopId = req.query.shop_id; | ||
495 | + let appVersion = req.body.appVersion || false; | ||
496 | + let params = {}; | ||
497 | + | ||
498 | + if (parseInt(shopId, 10)) { | ||
499 | + req.ctx(listModel).getShopIntro(shopId).then(result => { | ||
500 | + if (appVersion) { | ||
501 | + params = { | ||
502 | + title: '证照信息' | ||
503 | + }; | ||
504 | + } else { | ||
505 | + params = { | ||
506 | + pageHeader: headerModel.setNav({ | ||
507 | + navTitle: '证照信息' | ||
508 | + }) | ||
509 | + }; | ||
510 | + } | ||
511 | + | ||
512 | + res.render('shop/license', _.assign(params, result, { | ||
513 | + module: 'product', | ||
514 | + page: 'license' | ||
515 | + })); | ||
516 | + }).catch(next); | ||
517 | + } else { | ||
518 | + res.redirect('/?go=1'); | ||
519 | + } | ||
520 | +}; | ||
521 | + | ||
522 | +/** | ||
488 | * 品牌[店铺]收藏/取消收藏 | 523 | * 品牌[店铺]收藏/取消收藏 |
489 | * id 品牌ID | 524 | * id 品牌ID |
490 | * opt 操作标识("ok":表示收藏,"cancel":表示取消收藏) | 525 | * opt 操作标识("ok":表示收藏,"cancel":表示取消收藏) |
@@ -604,6 +639,7 @@ module.exports = { | @@ -604,6 +639,7 @@ module.exports = { | ||
604 | brand, | 639 | brand, |
605 | favoriteBrand, | 640 | favoriteBrand, |
606 | shopIntro, | 641 | shopIntro, |
642 | + shopLicense, | ||
607 | brandFav, | 643 | brandFav, |
608 | shopAppCookie, | 644 | shopAppCookie, |
609 | shopFav, | 645 | shopFav, |
@@ -192,6 +192,7 @@ router.get('/index/getShopCouponsList', cors, newShop.getShopCouponsList); | @@ -192,6 +192,7 @@ router.get('/index/getShopCouponsList', cors, newShop.getShopCouponsList); | ||
192 | router.post('/index/userCoupon', cors, newShop.userCoupon); | 192 | router.post('/index/userCoupon', cors, newShop.userCoupon); |
193 | router.get('/red-shop', newShop.redShop); // 红人店铺 | 193 | router.get('/red-shop', newShop.redShop); // 红人店铺 |
194 | router.get('/index/intro', list.shopIntro); // 店铺介绍 | 194 | router.get('/index/intro', list.shopIntro); // 店铺介绍 |
195 | +router.get('/index/license', list.shopLicense); // 营业执照信息 | ||
195 | router.get('/opt/favoriteBrand', list.favoriteBrand); // 品牌|店铺收藏|取消收藏 | 196 | router.get('/opt/favoriteBrand', list.favoriteBrand); // 品牌|店铺收藏|取消收藏 |
196 | router.get('/index/allBrand', newShop.allBrand); // 店铺全部品牌 | 197 | router.get('/index/allBrand', newShop.allBrand); // 店铺全部品牌 |
197 | 198 |
@@ -11,4 +11,15 @@ | @@ -11,4 +11,15 @@ | ||
11 | <span class="iconfont"></span> | 11 | <span class="iconfont"></span> |
12 | 100%品牌授权正品 | 12 | 100%品牌授权正品 |
13 | </p> | 13 | </p> |
14 | + | ||
15 | + {{#ifcond shop_sell_type '===' 200}} | ||
16 | + {{#ifcond shop_sell_type_name '===' '专营'}} | ||
17 | + <a class="license" href="/product/index/license?shop_id={{shops_id}}"> | ||
18 | + <p class="license-style"> | ||
19 | + 网上营业者营业执照信息 | ||
20 | + </p> | ||
21 | + </a> | ||
22 | + {{/ifcond}} | ||
23 | + {{/ifcond}} | ||
24 | + | ||
14 | </div> | 25 | </div> |
apps/product/views/action/shop/license.hbs
0 → 100644
1 | { | 1 | { |
2 | "name": "yohobuywap-node", | 2 | "name": "yohobuywap-node", |
3 | - "version": "6.9.9-10", | 3 | + "version": "6.9.10-2", |
4 | "private": true, | 4 | "private": true, |
5 | "description": "A New Yohobuy Project With Express", | 5 | "description": "A New Yohobuy Project With Express", |
6 | "repository": { | 6 | "repository": { |
public/js/product/license.page.js
0 → 100644
@@ -32,6 +32,29 @@ | @@ -32,6 +32,29 @@ | ||
32 | .sign-icon > span { | 32 | .sign-icon > span { |
33 | width: auto; | 33 | width: auto; |
34 | } | 34 | } |
35 | + | ||
36 | + .license { | ||
37 | + width: auto; | ||
38 | + display: block; | ||
39 | + overflow: hidden; | ||
40 | + } | ||
41 | + | ||
42 | + .license-style { | ||
43 | + font-size: 24px; | ||
44 | + color: #444; | ||
45 | + height: 50px; | ||
46 | + line-height: 50px; | ||
47 | + text-align: center; | ||
48 | + max-width: 300px; | ||
49 | + margin: auto; | ||
50 | + margin-top: 10px; | ||
51 | + margin-bottom: 30px; | ||
52 | + border: 1px solid #e0e0e0; | ||
53 | + } | ||
54 | + | ||
55 | + .license-description { | ||
56 | + margin: 0 auto; | ||
57 | + } | ||
35 | } | 58 | } |
36 | 59 | ||
37 | .brand-shop-page { | 60 | .brand-shop-page { |
-
Please register or login to post a comment