...
|
...
|
@@ -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 = {},
|
...
|
...
|
|