添加商城标签

This commit is contained in:
JACKYMYPERSON
2025-09-24 21:37:23 +08:00
9 changed files with 51 additions and 176 deletions

View File

@@ -1,7 +1,7 @@
<view style="height: 80vh;">
<scroll-view
class="scroll-container"
scroll-y="true"
scroll-y="true"
enable-flex="true"
show-scrollbar="true"
enhanced="true"

View File

@@ -7,25 +7,27 @@
background-color: #f5f7fa;
padding: 20rpx;
}
.scroll-container {
width: 100%;
}
.voting-card {
min-width: calc(100% - 30px); /* 确保在手机上卡片占满宽度 */
/* 其他原有样式保持不变 */
}
/* 卡片容器使用纵向布局 */
.cards-container {
display: flex;
flex-direction: column; /* 纵向排列卡片 */
gap: 15px; /* 卡片之间的间距 */
padding: 15px;
box-sizing: border-box;
}
/* 投票卡片卡片样式 */
.voting-card {
width: 90%;
background-color: #ffffff;
border-radius: 24rpx;
box-shadow: 0 4rpx 16rpx rgba(0, 0, 0, 0.05);
overflow: hidden;
width: 100%;
min-height: 400px; /* 卡片最小高度,可根据内容调整 */
background: #fff;
border-radius: 10px;
box-shadow: 0 2px 8px rgba(0,0,0,0.1);
padding: 15px;
box-sizing: border-box;
}
/* 卡片头部样式 */
.card-header {
display: flex;