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
baoss
5 years ago
Commit
9b1d065ad25d733147f8e32556de7a0d1e403f22
1 parent
294da2eb
update
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
6 deletions
apps/pages/home/channel/channel.vue
config/home-api-map.js
apps/pages/home/channel/channel.vue
View file @
9b1d065
...
...
@@ -17,10 +17,10 @@
<input class="search-input" type="search" disabled="true" placeholder="搜索商品名称或货号"/>
</div>
<template v-for="(item, index) in channelList.list">
<Swiper @click="getParams" :list="item.data" :key="index" v-if="item.template_name == 'threePicture'"/>
<Hot :list="item.data" :key="index" v-if="item.template_name == 'image_list'"/>
<Banner :list="item.data" :key="index" v-if="item.template_name == 'single_image'"/>
<TwoBanner :list="item.data" :key="index" v-if="item.template_name == 'twoPicture'"/>
<Swiper @click="getParams" :list="item.data" :ref="index" :key="index" v-if="item.template_name == 'threePicture'"/>
<Hot :list="item.data" :ref="index" :key="index" v-if="item.template_name == 'image_list'"/>
<Banner :list="item.data" :ref="index" :key="index" v-if="item.template_name == 'single_image'"/>
<TwoBanner :list="item.data" :ref="index" :key="index" v-if="item.template_name == 'twoPicture'"/>
</template>
</div>
<div ref="scrollNav" class="scroll-nav-wrap" v-if="navList.length">
...
...
@@ -134,8 +134,16 @@ export default {
this.navHeight = get(this.$refs, 'scrollNav.offsetHeight') || 0;
this.total = this.$refs.scroll.$el.offsetHeight - this.navHeight;
this.refreshProductList(this.active);
this.getReportEle()
});
},
// 曝光上报
getReportEle() {
this.channelList.list.forEach((item, index) => {
console.log(this.$refs[index])
})
},
getIndex(index) {
this.active = Number(index);
this.$refs.scroll.scrollTo(0, -this.navTop, 300);
...
...
config/home-api-map.js
View file @
9b1d065
...
...
@@ -58,14 +58,14 @@ module.exports = {
'/api/ufo/mine/order/summary'
:
{
ufo
:
true
,
auth
:
true
,
path
:
'
/ufo-gateway/
shopping'
,
path
:
'shopping'
,
api
:
'ufo.order.summary'
,
params
:
{},
},
'/api/ufo/mine/coupon'
:
{
ufo
:
true
,
auth
:
true
,
path
:
'
/ufo-gateway/
coupon'
,
path
:
'coupon'
,
api
:
'ufo.coupons.cnt'
,
params
:
{},
},
...
...
Please
register
or
login
to post a comment