Showing
5 changed files
with
18 additions
and
10 deletions
@@ -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 | } |
-
Please register or login to post a comment