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