|
@@ -32,12 +32,26 @@ export default { |
|
@@ -32,12 +32,26 @@ export default { |
32
|
let {product_skn} = product;
|
32
|
let {product_skn} = product;
|
33
|
let href = `/product/pro_${product_skn}.html`;
|
33
|
let href = `/product/pro_${product_skn}.html`;
|
34
|
|
34
|
|
|
|
35
|
+ const pageNameMap = {
|
|
|
36
|
+ 'channel.home': 'FP_BLK_Home_h5',
|
|
|
37
|
+ 'channel.channelHome.channelMen': 'FP_BLK_MenHome_h5',
|
|
|
38
|
+ 'channel.channelHome.channelWomen': 'FP_BLK_WomenHome_h5'
|
|
|
39
|
+ };
|
|
|
40
|
+
|
|
|
41
|
+ let from_page_name = this.$route.name;
|
|
|
42
|
+
|
|
|
43
|
+ if (this.yoho) {
|
|
|
44
|
+ const prefix = this.yoho.env.isiOS ? 'i' : (this.yoho.env.isAndroid ? 'a' : '');
|
|
|
45
|
+ from_page_name = pageNameMap[this.$route.name] ? `${prefix}${pageNameMap[this.$route.name]}` :
|
|
|
46
|
+ this.$route.name;
|
|
|
47
|
+ }
|
|
|
48
|
+
|
35
|
if ((this.$yoho && this.$yoho.isYohoBuy) || this.yoho.env.isYohoBuy) {
|
49
|
if ((this.$yoho && this.$yoho.isYohoBuy) || this.yoho.env.isYohoBuy) {
|
36
|
let goParams = {
|
50
|
let goParams = {
|
37
|
action: 'go.productDetail',
|
51
|
action: 'go.productDetail',
|
38
|
params: {
|
52
|
params: {
|
39
|
product_skn: product_skn,
|
53
|
product_skn: product_skn,
|
40
|
- from_page_name: this.$route.name,
|
54
|
+ from_page_name: from_page_name,
|
41
|
from_page_param: this.$route.query
|
55
|
from_page_param: this.$route.query
|
42
|
}
|
56
|
}
|
43
|
};
|
57
|
};
|