|
|
|
@ -1,7 +1,7 @@ |
|
|
|
<template> |
|
|
|
<WeatherAndTime :mall-code="mallCode" /> |
|
|
|
<ScrollList ref="scrollList" :customer-list="customerList" :mall-code="mallCode" /> |
|
|
|
<img src="./assets/images/back_index_icon.svg" class="fixed bottom-3 left-3 w-28 h-12 z-100" alt="" @click="back" /> |
|
|
|
<img src="./assets/images/back_index_icon.svg" class="fixed bottom-11 left-[52px] w-28 h-12 z-100" alt="" @click="back" /> |
|
|
|
</template> |
|
|
|
<script setup lang="ts"> |
|
|
|
import { onMounted, onBeforeUnmount, ref, toRefs, shallowRef } from 'vue' |
|
|
|
@ -39,7 +39,7 @@ onMounted(() => { |
|
|
|
_getCustomerList() |
|
|
|
timer = setInterval(() => { |
|
|
|
_getCustomerList() |
|
|
|
scrollList.value.swiper?.value?.scrollTo(0, 1000, false) |
|
|
|
scrollList.value.scroll() |
|
|
|
}, 1000 * 60) |
|
|
|
}) |
|
|
|
onBeforeUnmount(() => { |
|
|
|
@ -47,7 +47,7 @@ onBeforeUnmount(() => { |
|
|
|
}) |
|
|
|
|
|
|
|
function back() { |
|
|
|
scrollList.value.swiper?.value?.scrollTo(0, 1000, false) |
|
|
|
scrollList.value.scroll() |
|
|
|
} |
|
|
|
</script> |
|
|
|
|
|
|
|
|