Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
xianyu-ufo-app-web
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
张文文
5 years ago
Commit
f85f6fa4d9875f4eae669d5a17675486a3da07cc
1 parent
b08a234f
埋点问题fix review by lea.guo
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
apps/pages/second/components/second-list.vue
apps/pages/second/list.vue
apps/pages/second/components/second-list.vue
View file @
f85f6fa
...
...
@@ -47,7 +47,7 @@ export default {
methods: {
goDetail(product, index) {
if (this.yasParams && Object.keys(this.yasParams).length) {
this.yasDetail(product.id, index);
this.yasDetail(product.
product_
id, index);
}
this.$router.push({
...
...
@@ -91,8 +91,8 @@ export default {
}
// 判断是否是重复曝光
if (list.length && list[0].id !== this.yasFirstId) {
this.yasFirstId = list[0].id;
if (list.length && list[0].product_id !== this.yasFirstId) {
this.yasFirstId = list[0].product_id;
let DATA = [];
list.map((value, i) => {
...
...
apps/pages/second/list.vue
View file @
f85f6fa
...
...
@@ -2,7 +2,6 @@
<LayoutApp :show-back="true" title="二手" class="list-wrapper">
<LayoutScroll
ref="scrolllist"
@scroll="scrollHandler"
@scroll-end="scrollEndHandler"
@pulling-up="fetchSkupList(isMore)"
v-if="skupList.list.length"
...
...
@@ -30,7 +29,12 @@ export default {
},
data() {
return {
yasParams: {P_NAME: 'XY_UFOSecondList', TYPE_ID: 5, TAB_ID: '', TAB_NAME: '', P_PARAM: [].toString()},
yasParams: { P_NAME: 'XY_UFOSecondList',
TYPE_ID: 5,
TAB_ID: '',
TAB_NAME: '',
P_PARAM: [].toString()
}
}
},
computed: {
...
...
@@ -44,13 +48,9 @@ export default {
await this.fetchSecondSkupList({ isReset: false });
}
},
scrollHandler({y}) {
this.scrollY = -y;
},
scrollEndHandler({y}) {
let height = -y;
this.$refs.second.yasShowEvent(height);
},
...
...
@@ -59,7 +59,7 @@ export default {
let PRD_LIST = [];
for (let item of list) {
PRD_LIST.push(item.id);
PRD_LIST.push(item.
product_
id);
}
PRD_LIST = PRD_LIST.toString();
this.$store.dispatch('reportYas', {
...
...
Please
register
or
login
to post a comment