|
|
@ -2,7 +2,7 @@
|
|
|
|
* @Author: ch
|
|
|
|
* @Author: ch
|
|
|
|
* @Date: 2022-05-03 22:14:16
|
|
|
|
* @Date: 2022-05-03 22:14:16
|
|
|
|
* @LastEditors: ch
|
|
|
|
* @LastEditors: ch
|
|
|
|
* @LastEditTime: 2022-05-31 18:41:33
|
|
|
|
* @LastEditTime: 2022-06-01 09:36:44
|
|
|
|
* @Description: file content
|
|
|
|
* @Description: file content
|
|
|
|
-->
|
|
|
|
-->
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
@ -104,6 +104,7 @@ export default {
|
|
|
|
location : AD_LOCATION.HOME_BANNER
|
|
|
|
location : AD_LOCATION.HOME_BANNER
|
|
|
|
});
|
|
|
|
});
|
|
|
|
bannerList = bannerList || [];
|
|
|
|
bannerList = bannerList || [];
|
|
|
|
|
|
|
|
console.log('bannerList', bannerList);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return {
|
|
|
|
return {
|
|
|
@ -133,6 +134,10 @@ export default {
|
|
|
|
this.getSelectProducts();
|
|
|
|
this.getSelectProducts();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
async mounted() {
|
|
|
|
async mounted() {
|
|
|
|
|
|
|
|
let {result:bannerList} = await ApiGetAdList({
|
|
|
|
|
|
|
|
location : AD_LOCATION.HOME_BANNER
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
console.log(bannerList);
|
|
|
|
// 监听滚动事件
|
|
|
|
// 监听滚动事件
|
|
|
|
window.addEventListener("scroll", this.scrollEventMethod);
|
|
|
|
window.addEventListener("scroll", this.scrollEventMethod);
|
|
|
|
},
|
|
|
|
},
|
|
|
|