...
|
...
|
@@ -34,7 +34,7 @@ module.exports = () => { |
|
|
let domain = 'm.yohobuy.com';
|
|
|
let proReg = /^\/product\/pro/,
|
|
|
guangReg = /^\/guang/,
|
|
|
guangDetailReg = /.html$/,
|
|
|
guangDetailReg = /\/guang\/info\/index/,
|
|
|
qsReg = /\?/;
|
|
|
|
|
|
if (!req.xhr) {
|
...
|
...
|
@@ -53,7 +53,7 @@ module.exports = () => { |
|
|
data.mobileRefer = `//guang.${domain}`;
|
|
|
|
|
|
if (guangDetailReg.test(url)) {
|
|
|
data.mobileRefer += url.replace(/\/guang\/detail\/([\d]+).html/, '/info/index?id=$1');
|
|
|
data.mobileRefer += url.replace(/\/guang\/info\/index/, '/info/index');
|
|
|
} else if (url === '/guang/Index/editor') {
|
|
|
data.mobileRefer += `/author/index?id=${req.query.author_id}`;
|
|
|
}
|
...
|
...
|
|