Commit be76e4d5 by 肖康

阿斯达

parent 3163d964
Showing with 70 additions and 70 deletions
......@@ -165,7 +165,7 @@
</div>
<ul class="list boxsiz">
<li class="boxsiz" v-for="(v,index) in item.data.pointGoods" :key="index">
<a class="boxsiz" :href="/v3/pointmall" :target="v.window_open > 0 ? '_blank':'_self'" @click="recordFloorFn(ptag+'-floor'+(count * 1 +1))">
<a class="boxsiz" href="/v3/pointmall" :target="v.window_open > 0 ? '_blank':'_self'" @click="recordFloorFn(ptag+'-floor'+(count * 1 +1))">
<div class="pic">
<img v-lazy="v.prize_img_url" :alt="v.prize_name">
</div>
......@@ -212,7 +212,7 @@
<i class="lineBlock"></i>
<span class="t1">资讯中心</span>
</div>
<a class="r" :href="/news?cat_id=11" @click="recordFloorFn(ptag+'-dynamic')">
<a class="r" href="/news?cat_id=11" >
<span class="va-m">更多</span>
<i class="lineBlock va-m"></i>
</a>
......@@ -249,78 +249,78 @@
</template>
<script>
import Vue from 'vue';
import {mapState} from 'vuex'
import {PullRefresh, Loading, Lazyload} from 'vant';
import Navigator from '@/views/common/Navigator.vue';
import Slide from '@/views/common/Slide.vue';
import SideBar from '@/views/common/SideBar.vue';
Vue.use(PullRefresh).use(Loading).use(Lazyload);
import Vue from 'vue';
import {mapState} from 'vuex'
import {PullRefresh, Loading, Lazyload} from 'vant';
import Navigator from '@/views/common/Navigator.vue';
import Slide from '@/views/common/Slide.vue';
import SideBar from '@/views/common/SideBar.vue';
export default {
name: 'index',
computed: mapState({
index: state => state.home.index,
loading: state => state.home.loading,
loginCheck: state => state.common.loginCheck
}),
data() {
return {
ptag: 'index',
isLoading: false,
height: 33
}
},
beforeRouteEnter(to, from, next) {
next(vm => {
vm.getData();
})
},
methods: {
getData() {
this.$store.dispatch({
type: 'index'
})
},
onRefresh() {
setTimeout(() => {
this.isLoading = false;
this.$store.dispatch({
type: 'index'
})
}, 1000);
},
recordFn(type) {
// if (type == 'login') {
// sensors.track('TopNavClick', {
// top_nav_click: "h5-登录"
// });
// } else if (type == 'search') {
// sensors.track('TopNavClick', {
// top_nav_click: "h5-搜索"
// });
// } else if (type == 'member') {
// sensors.track('TopNavClick', {
// top_nav_click: "h5-会员中心"
// });
// }
},
recordFloorFn(type) { //神策预留
Vue.use(PullRefresh).use(Loading).use(Lazyload);
},
jump() {
this.recordFn('search');
window.location.href = '/v3/search/search_index.html';
}
},
components: {
Navigator,
Slide,
SideBar
export default {
name: 'index',
computed: mapState({
index: state => state.home.index,
loading: state => state.home.loading,
loginCheck: state => state.common.loginCheck
}),
data() {
return {
ptag: 'index',
isLoading: false,
height: 33
}
},
beforeRouteEnter(to, from, next) {
next(vm => {
vm.getData();
})
},
methods: {
getData() {
this.$store.dispatch({
type: 'index'
})
},
onRefresh() {
setTimeout(() => {
this.isLoading = false;
this.$store.dispatch({
type: 'index'
})
}, 1000);
},
recordFn(type) {
// if (type == 'login') {
// sensors.track('TopNavClick', {
// top_nav_click: "h5-登录"
// });
// } else if (type == 'search') {
// sensors.track('TopNavClick', {
// top_nav_click: "h5-搜索"
// });
// } else if (type == 'member') {
// sensors.track('TopNavClick', {
// top_nav_click: "h5-会员中心"
// });
// }
},
recordFloorFn(type) { //神策预留
},
jump() {
this.recordFn('search');
window.location.href = '/v3/search/search_index.html';
}
},
components: {
Navigator,
Slide,
SideBar
}
}
}
</script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment