feat(fittingRoom):优化试衣间页面布局和功能
- 移除 uv-sticky 组件,调整页面结构 - 设置容器高度为100%,优化滚动区域高度计算 - 禁用试衣间页面下拉刷新功能-为 STabs 组件添加 overflow: hidden 样式- 更新 STabs 组件最后编辑时间戳
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
* @Author: liguigong liguigong@shopline.com
|
||||
* @Date: 2025-09-19 16:26:36
|
||||
* @LastEditors: liguigong liguigong@shopline.com
|
||||
* @LastEditTime: 2025-09-22 19:17:46
|
||||
* @LastEditTime: 2025-10-11 10:51:04
|
||||
* @FilePath: pages/fittingRoom/components/STabs.vue
|
||||
* @Description: 这是默认设置,可以在设置》工具》File Description中进行配置
|
||||
-->
|
||||
@@ -51,6 +51,7 @@
|
||||
height: 130rpx;
|
||||
background: #000;
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
|
||||
.tab-top {
|
||||
margin: 18rpx 0 14rpx;
|
||||
|
||||
+42
-41
@@ -1,45 +1,45 @@
|
||||
<template>
|
||||
<view class="container">
|
||||
<uv-sticky :customNavHeight="0" :offset-top="0">
|
||||
<view class="uni-margin-wrap">
|
||||
<uni-swiper-dot
|
||||
:current="fittingRoomStore.swiperCurrentIndex"
|
||||
:dots-styles="dotsStyles"
|
||||
:info="fittingRoomStore.testResults"
|
||||
:mode="'default'"
|
||||
field="content"
|
||||
<!-- <uv-sticky :customNavHeight="0" :offset-top="0">-->
|
||||
<view class="uni-margin-wrap">
|
||||
<uni-swiper-dot
|
||||
:current="fittingRoomStore.swiperCurrentIndex"
|
||||
:dots-styles="dotsStyles"
|
||||
:info="fittingRoomStore.testResults"
|
||||
:mode="'default'"
|
||||
field="content"
|
||||
>
|
||||
<swiper
|
||||
:autoplay="false"
|
||||
:duration="500"
|
||||
:interval="5000"
|
||||
:next-margin="'160rpx'"
|
||||
:previous-margin="'160rpx'"
|
||||
circular
|
||||
class="swiper"
|
||||
current="0"
|
||||
@change="swiperChange"
|
||||
>
|
||||
<swiper
|
||||
:autoplay="false"
|
||||
:duration="500"
|
||||
:interval="5000"
|
||||
:next-margin="'160rpx'"
|
||||
:previous-margin="'160rpx'"
|
||||
circular
|
||||
class="swiper"
|
||||
current="0"
|
||||
@change="swiperChange"
|
||||
>
|
||||
<swiper-item v-for="(item, index) in fittingRoomStore.testResults" :key="index">
|
||||
<view class="swiper-item">
|
||||
<image
|
||||
:class="[
|
||||
'swiper-image',
|
||||
fittingRoomStore.swiperCurrentIndex === index ? 'active' : '',
|
||||
]"
|
||||
:src="item.tryOnResultUrl || '/static/uploads/loading12.gif'"
|
||||
mode="aspectFill"
|
||||
></image>
|
||||
</view>
|
||||
</swiper-item>
|
||||
</swiper>
|
||||
</uni-swiper-dot>
|
||||
<s-select-mote />
|
||||
<Clothespic />
|
||||
</view>
|
||||
<swiper-item v-for="(item, index) in fittingRoomStore.testResults" :key="index">
|
||||
<view class="swiper-item">
|
||||
<image
|
||||
:class="[
|
||||
'swiper-image',
|
||||
fittingRoomStore.swiperCurrentIndex === index ? 'active' : '',
|
||||
]"
|
||||
:src="item.tryOnResultUrl || '/static/uploads/loading12.gif'"
|
||||
mode="aspectFill"
|
||||
></image>
|
||||
</view>
|
||||
</swiper-item>
|
||||
</swiper>
|
||||
</uni-swiper-dot>
|
||||
<s-select-mote />
|
||||
<Clothespic />
|
||||
</view>
|
||||
|
||||
<s-tabs />
|
||||
</uv-sticky>
|
||||
<s-tabs />
|
||||
<!-- </uv-sticky>-->
|
||||
<scroll-view class="scroll" scroll-y="true">
|
||||
<s-grid-clothes />
|
||||
<view class="height1"></view>
|
||||
@@ -135,6 +135,7 @@
|
||||
<style lang="scss" scoped>
|
||||
.container {
|
||||
position: relative;
|
||||
height: 100%;
|
||||
}
|
||||
.uni-margin-wrap {
|
||||
width: 100%;
|
||||
@@ -233,7 +234,7 @@
|
||||
background: #171717;
|
||||
}
|
||||
}
|
||||
//.scroll {
|
||||
// overflow-y: scroll;
|
||||
//}
|
||||
.scroll {
|
||||
height: calc(100% - 850rpx);
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user