Authored by zhangxiaoru

修改连接 添加注释

... ... @@ -7,6 +7,9 @@ let responseData = {
footerTop: true
};
/**
* 关于有货
*/
const yohobuy = (req, res, next) => {
let channel = req.cookies._Channel || 'boys';
... ... @@ -17,6 +20,9 @@ const yohobuy = (req, res, next) => {
}).catch(next);
};
/**
* 新力传媒
*/
const newpower = (req, res, next) => {
let channel = req.cookies._Channel || 'boys';
... ... @@ -27,6 +33,9 @@ const newpower = (req, res, next) => {
}).catch(next);
};
/**
* 联系我们
*/
const contact = (req, res, next) => {
let channel = req.cookies._Channel || 'boys';
... ... @@ -37,6 +46,9 @@ const contact = (req, res, next) => {
}).catch(next);
};
/**
* 隐私条款
*/
const privacy = (req, res, next) => {
let channel = req.cookies._Channel || 'boys';
... ... @@ -47,6 +59,9 @@ const privacy = (req, res, next) => {
}).catch(next);
};
/**
* 友情链接
*/
const link = (req, res, next) => {
let channel = req.cookies._Channel || 'boys';
... ...
... ... @@ -10,6 +10,9 @@ const base64StrEncode = ($input) => {
return $input.replace('+/=', '-_.');
};
/**
* 入口页
*/
const index = (req, res, next) => {
let channel = req.cookies._Channel || 'boys';
let responseData = {
... ... @@ -25,6 +28,9 @@ const index = (req, res, next) => {
}).catch(next);
};
/**
* 申请页
*/
const apply = (req, res, next) => {
let channel = req.cookies._Channel || 'boys';
let uid = req.user.uid;
... ... @@ -34,7 +40,7 @@ const apply = (req, res, next) => {
if (!uid) {
loginUrl = helpers.urlFormat('/signin.html', {
refer: helpers.urlFormat('/apply', null, 'shop')
refer: helpers.urlFormat('/settled/apply', null, 'shop')
});
res.redirect(loginUrl);
... ... @@ -54,6 +60,9 @@ const apply = (req, res, next) => {
}).catch(next);
};
/**
* 获取二级品类
*/
const getTwoCategoryAction = (req, res, next) => {
let id = req.query.id;
... ... @@ -70,6 +79,9 @@ const getTwoCategoryAction = (req, res, next) => {
}).catch(next);
};
/**
* 提交申请
*/
const applysave = (req, res, next) => {
let uid = req.user.uid,
param = {},
... ...
... ... @@ -13,8 +13,8 @@ const cRoot = './controllers';
// const uploadCtrl = require(`${cRoot}/upload`);
const shopCtrl = require(`${cRoot}/shop`);
router.get('/', shopCtrl.index);
router.get('/apply', shopCtrl.apply);
router.get('/settled', shopCtrl.index);
router.get('/settled/apply', shopCtrl.apply);
router.get('/getTwoCategory', shopCtrl.getTwoCategoryAction);
router.post('/applysave', shopCtrl.applysave);
// router.post('/upload', multipartMiddleware, uploadCtrl.uploadImg);
... ...
<div class="settled-page center-content yoho-page">
<a href="//shop.yohobuy.com/apply">
<a href="//shop.yohobuy.com/settled/apply">
{{#if devEnv}}
<img class="banner" src="//webstatic.dev.yohobuy.com/img/about/banner.jpg">
{{^}}
... ...
... ... @@ -332,7 +332,7 @@ require('../plugins/jquery.qupload');
btnClass: ['apply-success-ok'],
name: '确认',
cb: function() {
location.href = '/shop';
location.href = '//shop.yohobuy.com/settled';
}
}
]
... ...