Browse Source

fix: 🧩 店铺名滚动 屏保倒计时圈注掉 圈圈加速修改

pull/16/head
张耀 3 years ago
parent
commit
59fe460810
  1. 4
      src/components/HomeDialog/HomeDialog.vue
  2. 9
      src/components/Map/Map.vue
  3. 4
      src/composables/useHandleScreen.ts

4
src/components/HomeDialog/HomeDialog.vue

@ -51,9 +51,9 @@ function move() {
// }
// console.log('x,y :>> ', x, y)
tip.value.style.transform = `translate(${x}px,${y}px)` //
i += 0.5 //35
i += 0.75 //35
//10i+=3i36912...
j += 0.5
j += 0.75
x = i
y = j
if (i >= winWidth) {

9
src/components/Map/Map.vue

@ -43,9 +43,12 @@ function handleDetail() {
emits('handle-Detail')
}
watch(shop, () => {
nextTick(() => {
nameWidth.value = nameRef.value.clientWidth
})
const timeId = setTimeout(() => {
clearTimeout(timeId)
nextTick(() => {
nameWidth.value = nameRef.value.clientWidth
})
}, 400)
})
</script>

4
src/composables/useHandleScreen.ts

@ -81,7 +81,9 @@ export const useHandleScreen = (callback: () => void) => {
//监听时间 大于等于0且小于等于5时显示弹框
watch([toIndexTime, toWallpaperTime], ([indexTime, wallpaperTime]) => {
if ((indexTime >= MIN_TIME && indexTime <= MAX_TIME) || (wallpaperTime >= MIN_TIME && wallpaperTime <= MAX_TIME)) {
showCountDownDialog.value = true
if (!isWallpaper.value) {
showCountDownDialog.value = true
}
} else {
showCountDownDialog.value = false
}

Loading…
Cancel
Save