Merge remote-tracking branch 'refs/remotes/origin/h5' into h5

This commit is contained in:
kenny
2025-10-09 10:57:58 +08:00
4 changed files with 38 additions and 4 deletions
+30 -1
View File
@@ -4,6 +4,7 @@
<!-- https://ext.dcloud.net.cn/plugin?id=22930-->
<hbxw-stack-carousel
:key="fittingRoomStore.testResults"
:autoplay="false"
:height="680"
:interval="15000"
:list="fittingRoomStore.testResults"
@@ -22,6 +23,17 @@
/>
</view>
</template>
<template #indicator="{ currentIndex, total, handleClick }">
<view class="custom-indicators">
<view
v-for="i in total"
:key="i"
:class="{ active: currentIndex === i - 1 }"
class="custom-indicator"
@click="handleClick(i - 1)"
></view>
</view>
</template>
</hbxw-stack-carousel>
<s-select-mote />
<Clothespic />
@@ -92,7 +104,7 @@
// const template = computed(() => sheep.$store('app').template?.home);
onLoad((options) => {
uni.setStorageSync('token', options?.token ?? 'e84526c0f7a3457da54e663fb4396beb');
uni.setStorageSync('token', options?.token ?? '92d2805a85ca422e90dd7d50eef49a85');
console.log('🚀 ~ URL上的token ~ options?.token: ', options?.token);
});
@@ -178,4 +190,21 @@
width: 550rpx;
padding: 0 100rpx;
}
.custom-indicators {
display: flex;
justify-content: center;
align-items: center;
.custom-indicator {
width: 10rpx;
height: 1px;
opacity: 0.5;
background: #fff;
margin: 0 5rpx;
}
.active {
width: 30rpx;
height: 1px;
background: #171717;
}
}
</style>