Authored by 沈志敏

在线客服跳转

... ... @@ -12,7 +12,7 @@ Name | Path | Note
资讯列表 | /news |
资讯详情 | /news/{newsId} |
个人中心 | /home |
个人信息 | /mydetails |
个人信息 | /home/mydetails |
全部订单 | /home/orders?type=1 |
待付款 | /home/orders?type=2 |
待发货 | /home/orders?type=3 |
... ... @@ -26,8 +26,8 @@ yoho币 | /home/mycurrency |
帮助中心详情 | /home/help-detail |
意见反馈 | /home/feedback |
关于我们 | /home/about |
物流详情 | /home/logistic?order_code=1609827614 |
退换货物流详情|home/logistic?order_code=1609827614&type=refund|
物流详情 | /home/logistic?order_code=1609827614 |
退换货物流详情| /home/logistic?order_code=1609827614&type=refund|
--------------------------------------------------------------------------------
... ...
... ... @@ -31,7 +31,7 @@ const component = {
head_ico: proData && proData.head_ico ? helpers.image(proData.head_ico, 200, 200) : '',
nickname: proData ? proData.nickname : '登录/注册',
userinfourl: proData ? '/home/mydetails' : '',
serviceUrl: 'http://chat8.live800.com/live800/chatClient/chatbox.jsp?companyID=620092&configID=149091&jid=8732423409&'
serviceUrl: '/home/service'
};
res.render('index', _.merge(result, data[1]));
... ... @@ -81,6 +81,9 @@ const component = {
return res.json(data);
}).catch(next);
},
service: (req, res, next) => {
res.redirect('http://chat8.live800.com/live800/chatClient/chatbox.jsp?companyID=620092&configID=149091&jid=8732423409')
},
help: (req, res, next) => {
homeModel.getHelpInfo().then(helpList => {
res.render('help', {
... ...
... ... @@ -31,6 +31,7 @@ router.post('/confirm-order', order.confirmOrder); // 确认订单
router.get('/mycurrency', order.coin); // yoho币
router.get('/coin-detail', order.getCoinDetail); // yoho币明细
router.get('/service', home.service) // 在线客服
router.get('/help', home.help); // 帮助中心列表页
router.get('/help-detail', home.helpDetail); // 帮助中心详情页
router.get('/feedback', home.feedback); // 个人中心-意见反馈
... ...
... ... @@ -112,10 +112,10 @@ const matchHeader = (url) => {
}
if (/\/home\/orders/.test(url)) {
var des = '',
u = url.split('?')[1],
u = parse(u);
let des = '';
let u = url.split('?')[1];
u = parse(u);
if (u.type === '1') {
des = '我的订单';
} else if (u.type === '2') {
... ... @@ -130,6 +130,13 @@ const matchHeader = (url) => {
return header;
}
if (/\/home\/order-detail/.test(url)) {
header = titleMap[2];
header.title.des = '订单详情';
header.title.right.action = origin + '/home/service';
return header;
}
if (/\/home\/refund\/orders/.test(url)) {
header = titleMap[1];
header.title.des = '退/换货';
... ... @@ -165,7 +172,7 @@ const matchHeader = (url) => {
return header;
}
if (/chat8.live800.com/.test(url)) {
if (/\/home\/service$/.test(url)) {
header = titleMap[1];
header.title.des = 'Yoho!Blk在线客服';
return header;
... ...