Authored by 李奇

修改页面上报名称

@@ -55,7 +55,7 @@ @@ -55,7 +55,7 @@
55 fixIosTop: false, 55 fixIosTop: false,
56 56
57 // for yas report 57 // for yas report
58 - pageName: 'FP_category_h5', 58 + pageName: 'FP_BLK_Category_h5',
59 pageParam: locationQuery.sort || '' 59 pageParam: locationQuery.sort || ''
60 60
61 }; 61 };
@@ -51,7 +51,7 @@ @@ -51,7 +51,7 @@
51 cartCount: 0, 51 cartCount: 0,
52 52
53 // for yas report 53 // for yas report
54 - pageName: 'FP_new_h5', 54 + pageName: 'FP_BLK_New_h5',
55 pageParam: '' 55 pageParam: ''
56 }; 56 };
57 }, 57 },
@@ -43,7 +43,7 @@ @@ -43,7 +43,7 @@
43 filter: {}, 43 filter: {},
44 44
45 // for yas report 45 // for yas report
46 - pageName: 'FP_search_h5', 46 + pageName: 'FP_BLK_Search_h5',
47 }; 47 };
48 }, 48 },
49 computed: { 49 computed: {
@@ -94,7 +94,7 @@ @@ -94,7 +94,7 @@
94 cartCount: 0, 94 cartCount: 0,
95 95
96 // for yas report 96 // for yas report
97 - pageName: 'FP_brand_h5', 97 + pageName: 'FP_BLK_Brand_h5',
98 pageParam: locationQuery.brandId || '' 98 pageParam: locationQuery.brandId || ''
99 }; 99 };
100 }, 100 },
@@ -15,7 +15,12 @@ export default { @@ -15,7 +15,12 @@ export default {
15 data() { 15 data() {
16 return { 16 return {
17 componentStatus: {}, 17 componentStatus: {},
18 - waiting: [] 18 + waiting: [],
  19 + pageNameMap: {
  20 + 'channel.home': 'FP_BLK_Home_h5',
  21 + 'channel.channelHome.channelMen': 'FP_BLK_MenHome_h5',
  22 + 'channel.channelHome.channelWomen': 'FP_BLK_WomenHome_h5',
  23 + }
19 }; 24 };
20 }, 25 },
21 computed: { 26 computed: {
@@ -60,7 +65,12 @@ export default { @@ -60,7 +65,12 @@ export default {
60 }, 65 },
61 methods: { 66 methods: {
62 report(param) { 67 report(param) {
63 - console.log('<<<<<<<< report >>>>>>>>', param) 68 + _.each(param, item => {
  69 + if (this.pageNameMap[item.P_NAME]) {
  70 + item.P_NAME = this.pageNameMap[item.P_NAME];
  71 + }
  72 + });
  73 +
64 this.$store.dispatch(REPORT_YAS, { 74 this.$store.dispatch(REPORT_YAS, {
65 params: { 75 params: {
66 appop: 'YB_SHOW_EVENT', 76 appop: 'YB_SHOW_EVENT',
@@ -133,7 +143,6 @@ export default { @@ -133,7 +143,6 @@ export default {
133 } 143 }
134 144
135 if (param) { 145 if (param) {
136 - console.log(`${reportData.template_name} push`);  
137 _.isArray(param) ? (this.waiting = this.waiting.concat(param)) : this.waiting.push(param); 146 _.isArray(param) ? (this.waiting = this.waiting.concat(param)) : this.waiting.push(param);
138 } 147 }
139 } 148 }
@@ -143,8 +152,8 @@ export default { @@ -143,8 +152,8 @@ export default {
143 const parentRect = $parent.getBoundingClientRect(); 152 const parentRect = $parent.getBoundingClientRect();
144 153
145 return ((parentRect.top >= rect.top && parentRect.top <= (rect.top + rect.height)) || 154 return ((parentRect.top >= rect.top && parentRect.top <= (rect.top + rect.height)) ||
146 - ((parentRect.top + parentRect.height) >= rect.top && (parentRect.top + parentRect.height) <= (rect.top + rect.height)) ||  
147 - (rect.top >= parentRect.top && (rect.top + rect.height) <= (parentRect.top + parentRect.height))); 155 + ((parentRect.top + parentRect.height) >= rect.top && (parentRect.top + parentRect.height) <= (rect.top + rect.height)) ||
  156 + (rect.top >= parentRect.top && (rect.top + rect.height) <= (parentRect.top + parentRect.height)));
148 }, 157 },
149 checkReqFromChild(index) { 158 checkReqFromChild(index) {
150 // 重置子组件显示状态方可重新记录 159 // 重置子组件显示状态方可重新记录
@@ -153,7 +162,6 @@ export default { @@ -153,7 +162,6 @@ export default {
153 }, 162 },
154 focusComponentDataRecord(index, param) { 163 focusComponentDataRecord(index, param) {
155 if (this.componentStatus[index]) { 164 if (this.componentStatus[index]) {
156 - console.log('focus push')  
157 this.waiting.push(param); 165 this.waiting.push(param);
158 } 166 }
159 } 167 }