...
|
...
|
@@ -14,15 +14,15 @@ const helpers = require(`${library}/helpers`); |
|
|
|
|
|
const headTab = [
|
|
|
{
|
|
|
url: '/guang/star?openby:yohobuy={"action":"go.h5","params":{"id":"","share":"","shareparam":{},"islogin":"Y","type":0,"updateflag":"N","url":"\/guang\/star","param":{}}}', // eslint-disable-line
|
|
|
url: '/guang/star?openby:yohobuy={"action":"go.h5","params":{"id":"","share":"","shareparam":{},"islogin":"N","type":0,"updateflag":"N","url":"http:\/\/guang.m.yohobuy.com\/guang\/star","param":{}}}', // eslint-disable-line
|
|
|
name: '全部'
|
|
|
},
|
|
|
{
|
|
|
url: '/guang/star/special?openby:yohobuy={"action":"go.h5","params":{"id":"","share":"","shareparam":{},"islogin":"Y","type":0,"updateflag":"N","url":"\/guang\/star\/special","param":{}}}', // eslint-disable-line
|
|
|
url: '/guang/star/special?openby:yohobuy={"action":"go.h5","params":{"id":"","share":"","shareparam":{},"islogin":"N","type":0,"updateflag":"N","url":"http:\/\/guang.m.yohobuy.com\/guang\/star\/special","param":{}}}', // eslint-disable-line
|
|
|
name: '星专题'
|
|
|
},
|
|
|
{
|
|
|
url: '/guang/star/collocation?openby:yohobuy={"action":"go.h5","params":{"id":"","share":"","shareparam":{},"islogin":"Y","type":0,"updateflag":"N","url":"\/guang\/star\/collocation","param":{}}}', // eslint-disable-line
|
|
|
url: '/guang/star/collocation?openby:yohobuy={"action":"go.h5","params":{"id":"","share":"","shareparam":{},"islogin":"N","type":0,"updateflag":"N","url":"http:\/\/guang.m.yohobuy.com\/guang\/star\/collocation","param":{}}}', // eslint-disable-line
|
|
|
name: '星搭配'
|
|
|
}
|
|
|
];
|
...
|
...
|
@@ -153,8 +153,8 @@ exports.setFavorite = (req, res, next) => { |
|
|
refer: req.get('Referer') || url
|
|
|
});
|
|
|
} else {
|
|
|
urlEncode = '\\/guang\\/star\\/collocation';
|
|
|
result.data = `${url}?openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"${urlEncode}","param":{"from":"app"}},"requesturl":{"url":"","param":{}},"priority":"N"}}`; // eslint-disable-line
|
|
|
urlEncode = '\/guang\/star\/collocation';
|
|
|
result.data = `${url}?openby:yohobuy={"action":"go.weblogin","params":{"jumpurl":{"url":"http:\/\/guang.m.yohobuy.com${urlEncode}","param":{"from":"app"}},"requesturl":{"url":"","param":{}},"priority":"N"}}`; // eslint-disable-line
|
|
|
}
|
|
|
}
|
|
|
res.json(result);
|
...
|
...
|
|