|
|
@ -287,11 +287,13 @@
|
|
|
|
direction="x"
|
|
|
|
direction="x"
|
|
|
|
:itemCount="4"
|
|
|
|
:itemCount="4"
|
|
|
|
:activeIndex="activeOne"
|
|
|
|
:activeIndex="activeOne"
|
|
|
|
|
|
|
|
:scroll-into-view="`scroll-${activeOne}`"
|
|
|
|
@update:activeIndex="val => activeOne = val"
|
|
|
|
@update:activeIndex="val => activeOne = val"
|
|
|
|
itemSelector=".scroll-item"
|
|
|
|
itemSelector=".scroll-item"
|
|
|
|
class="list-scroll scrollView"
|
|
|
|
class="list-scroll scrollView"
|
|
|
|
|
|
|
|
style="display: none;"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<view class="list" style="margin: 0 26rpx;">
|
|
|
|
<view class="scroll-list" style="">
|
|
|
|
<view class="scroll-item" v-for="(item,index) in 4" :id="`scroll-${index}`">
|
|
|
|
<view class="scroll-item" v-for="(item,index) in 4" :id="`scroll-${index}`">
|
|
|
|
<image class="swiper-img" src="/static/test/test3.png" mode="widthFix"></image>
|
|
|
|
<image class="swiper-img" src="/static/test/test3.png" mode="widthFix"></image>
|
|
|
|
<text>{{index}}</text>
|
|
|
|
<text>{{index}}</text>
|
|
|
@ -301,14 +303,17 @@
|
|
|
|
</DIYScrollView>
|
|
|
|
</DIYScrollView>
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<signPopup :isOpen="signOpen"></signPopup>
|
|
|
|
<tabbar :tabIndex="0"></tabbar>
|
|
|
|
<tabbar :tabIndex="0"></tabbar>
|
|
|
|
|
|
|
|
|
|
|
|
</view>
|
|
|
|
</view>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script setup>
|
|
|
|
<script setup>
|
|
|
|
import { ref, nextTick } from 'vue';
|
|
|
|
import { ref, nextTick, onMounted } from 'vue';
|
|
|
|
import diamondLine from '../../components/diamondLine/diamondLine.vue';
|
|
|
|
import diamondLine from '../../components/diamondLine/diamondLine.vue';
|
|
|
|
import DIYScrollView from '../../components/DIYScrollView/DIYScrollView.vue';
|
|
|
|
import DIYScrollView from '../../components/DIYScrollView/DIYScrollView.vue';
|
|
|
|
|
|
|
|
import signPopup from '../../components/signPopup/signPopup.vue';
|
|
|
|
const activeOne = ref(0)
|
|
|
|
const activeOne = ref(0)
|
|
|
|
|
|
|
|
|
|
|
|
const changeBar = (index)=>{
|
|
|
|
const changeBar = (index)=>{
|
|
|
@ -321,6 +326,12 @@ const handleTouchMove = (e)=> {
|
|
|
|
e.preventDefault(); // 强制阻止默认滚动行为
|
|
|
|
e.preventDefault(); // 强制阻止默认滚动行为
|
|
|
|
return false; // 增强阻止效果
|
|
|
|
return false; // 增强阻止效果
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
const signOpen = ref(false)
|
|
|
|
|
|
|
|
onMounted(()=>{
|
|
|
|
|
|
|
|
nextTick(()=>{
|
|
|
|
|
|
|
|
signOpen.value = true
|
|
|
|
|
|
|
|
})
|
|
|
|
|
|
|
|
})
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
|
|
<style lang="scss" scoped>
|
|
|
@ -919,22 +930,25 @@ const handleTouchMove = (e)=> {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
.scroll11{
|
|
|
|
.scroll11{
|
|
|
|
width: 100%;
|
|
|
|
width: 100%;
|
|
|
|
.scrollView{
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.scrollView{
|
|
|
|
|
|
|
|
@include flexBox(start,start);
|
|
|
|
|
|
|
|
// flex-wrap: nowrap;
|
|
|
|
|
|
|
|
overflow: auto;
|
|
|
|
|
|
|
|
.scroll-item{
|
|
|
|
width: 100%;
|
|
|
|
width: 100%;
|
|
|
|
@include flexBox(start,start);
|
|
|
|
flex-shrink: 0; /* 核心:禁止子元素被压缩 */
|
|
|
|
// flex-wrap: nowrap;
|
|
|
|
box-sizing: border-box;
|
|
|
|
overflow: auto;
|
|
|
|
padding: 26rpx;
|
|
|
|
.scroll-item{
|
|
|
|
.swiper-img{
|
|
|
|
width: 100%;
|
|
|
|
width: 100%;
|
|
|
|
flex-shrink: 0; /* 核心:禁止子元素被压缩 */
|
|
|
|
height: auto;
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
|
|
padding: 26rpx;
|
|
|
|
|
|
|
|
.swiper-img{
|
|
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
height: auto;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
.scroll-list{
|
|
|
|
|
|
|
|
width: 100%;
|
|
|
|
|
|
|
|
@include flexBox(start,start);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|
|
|
|
</style>
|
|
|
|