diff --git a/components/DIYScrollView/DIYScrollView.vue b/components/DIYScrollView/DIYScrollView.vue index 2f875a5..2f319ca 100644 --- a/components/DIYScrollView/DIYScrollView.vue +++ b/components/DIYScrollView/DIYScrollView.vue @@ -9,6 +9,8 @@ :scroll-into-view="targetId" @scroll="handleScroll" :enable-flex="direction === 'x'?true:false" + @touchmove.prevent="handleTouchMove" + style="touch-action: none;" > @@ -53,6 +55,13 @@ const targetId = ref(null); const itemPositions = ref([]); // 存储每个项的位置信息 const scrollViewInfo = ref(null); // 滚动容器信息 +const handleTouchMove = (e)=> { + e.preventDefault(); // 强制阻止默认滚动行为 + return false; // 增强阻止效果 + + +} + // 获取元素信息的工具函数 const getElementsInfo = (selector) => { return new Promise(resolve => { @@ -167,6 +176,6 @@ defineExpose({ \ No newline at end of file diff --git a/components/signPopup/signPopup.vue b/components/signPopup/signPopup.vue new file mode 100644 index 0000000..b656c9a --- /dev/null +++ b/components/signPopup/signPopup.vue @@ -0,0 +1,158 @@ + + + + + \ No newline at end of file diff --git a/pages/index/index.vue b/pages/index/index.vue index 8a75b17..f44cd85 100644 --- a/pages/index/index.vue +++ b/pages/index/index.vue @@ -287,11 +287,13 @@ direction="x" :itemCount="4" :activeIndex="activeOne" + :scroll-into-view="`scroll-${activeOne}`" @update:activeIndex="val => activeOne = val" itemSelector=".scroll-item" class="list-scroll scrollView" + style="display: none;" > - + {{index}} @@ -301,14 +303,17 @@ + + diff --git a/static/coin.png b/static/coin.png new file mode 100644 index 0000000..d3bc6a2 Binary files /dev/null and b/static/coin.png differ diff --git a/static/signBG.png b/static/signBG.png new file mode 100644 index 0000000..facd72b Binary files /dev/null and b/static/signBG.png differ diff --git a/static/systemBG.png b/static/systemBG.png new file mode 100644 index 0000000..08180a8 Binary files /dev/null and b/static/systemBG.png differ