feat(fittingRoom):优化试衣间页面布局和功能

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