This commit is contained in:
parent
a206f83412
commit
82b50285f9
|
|
@ -50,7 +50,7 @@
|
|||
"quickapp" : {},
|
||||
/* 小程序特有相关 */
|
||||
"mp-weixin" : {
|
||||
"appid" : "wxdf340fe2d9aff21d",
|
||||
"appid" : "wx0f5dc17ba3f9fe31",
|
||||
"setting" : {
|
||||
"urlCheck" : false,
|
||||
"minified" : false
|
||||
|
|
|
|||
|
|
@ -249,13 +249,11 @@
|
|||
</view>
|
||||
|
||||
<view class="pet-personality">
|
||||
<view
|
||||
class="personality-tag"
|
||||
<text
|
||||
class="personality-trait"
|
||||
v-for="trait in pet.personality.slice(0, 3)"
|
||||
:key="trait"
|
||||
>
|
||||
<text class="trait-text">{{ trait }}</text>
|
||||
</view>
|
||||
>{{ trait }}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
|
|
@ -1194,7 +1192,7 @@ export default {
|
|||
/* 头部搜索栏 */
|
||||
.header-section {
|
||||
background: transparent;
|
||||
padding: 24rpx 32rpx;
|
||||
padding: 24rpx 20rpx;
|
||||
|
||||
.search-wrapper {
|
||||
display: flex;
|
||||
|
|
@ -1289,7 +1287,7 @@ export default {
|
|||
.filter-panel {
|
||||
background: rgba(255, 255, 255, 0.95);
|
||||
backdrop-filter: blur(20rpx);
|
||||
padding: 24rpx 32rpx;
|
||||
padding: 24rpx 20rpx;
|
||||
border-bottom: 1rpx solid rgba(255, 255, 255, 0.3);
|
||||
position: relative;
|
||||
z-index: 10;
|
||||
|
|
@ -1516,7 +1514,7 @@ export default {
|
|||
/* 宠物列表区域 */
|
||||
.pets-scroll {
|
||||
height: calc(100vh - 100rpx);
|
||||
padding: 0 16rpx;
|
||||
padding: 0 20rpx;
|
||||
overflow-x: hidden;
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
|
|
@ -1561,10 +1559,10 @@ export default {
|
|||
.pet-image-container {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 200rpx;
|
||||
height: 280rpx;
|
||||
border-radius: 12rpx;
|
||||
overflow: hidden;
|
||||
margin-bottom: 8rpx;
|
||||
margin-bottom: 12rpx;
|
||||
|
||||
.pet-image {
|
||||
width: 100%;
|
||||
|
|
@ -1611,15 +1609,16 @@ export default {
|
|||
|
||||
.pet-info {
|
||||
.pet-basic {
|
||||
margin-bottom: 12rpx;
|
||||
margin-bottom: 8rpx;
|
||||
|
||||
.pet-name {
|
||||
font-size: 26rpx;
|
||||
font-size: 30rpx;
|
||||
font-weight: bold;
|
||||
color: #333333;
|
||||
margin-bottom: 6rpx;
|
||||
display: block;
|
||||
line-height: 1.2;
|
||||
padding: 6rpx 0;
|
||||
}
|
||||
|
||||
.pet-tags {
|
||||
|
|
@ -1629,11 +1628,12 @@ export default {
|
|||
|
||||
.pet-type,
|
||||
.pet-breed {
|
||||
background: rgba(255, 138, 128, 0.1);
|
||||
background: rgba(255, 138, 128, 0.2);
|
||||
border-radius: 8rpx;
|
||||
padding: 2rpx 8rpx;
|
||||
font-size: 18rpx;
|
||||
color: #FF8A80;
|
||||
color: #E57373;
|
||||
font-weight: 500;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1641,7 +1641,7 @@ export default {
|
|||
.pet-details {
|
||||
display: flex;
|
||||
gap: 16rpx;
|
||||
margin-bottom: 12rpx;
|
||||
margin-bottom: 8rpx;
|
||||
flex-wrap: wrap;
|
||||
|
||||
.detail-item {
|
||||
|
|
@ -1662,19 +1662,17 @@ export default {
|
|||
|
||||
.pet-personality {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
gap: 6rpx;
|
||||
margin-bottom: 12rpx;
|
||||
flex-wrap: wrap;
|
||||
margin-bottom: 8rpx;
|
||||
|
||||
.personality-tag {
|
||||
background: rgba(255, 138, 128, 0.05);
|
||||
.personality-trait {
|
||||
background: rgba(100, 181, 246, 0.15);
|
||||
border-radius: 8rpx;
|
||||
padding: 4rpx 8rpx;
|
||||
|
||||
.trait-text {
|
||||
font-size: 16rpx;
|
||||
color: #666666;
|
||||
}
|
||||
padding: 2rpx 8rpx;
|
||||
font-size: 18rpx;
|
||||
color: #42A5F5;
|
||||
font-weight: 500;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -197,23 +197,31 @@
|
|||
</view>
|
||||
</view>
|
||||
<view class="product-info">
|
||||
<view class="product-brand">{{ product.brand }}</view>
|
||||
<view class="product-name">{{ product.name }}</view>
|
||||
<view class="product-basic">
|
||||
<text class="product-name">{{ product.name }}</text>
|
||||
<view class="product-brand-tags">
|
||||
<text class="product-brand">{{ product.brand }}</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<view class="product-rating">
|
||||
<view class="rating-stars">
|
||||
<text
|
||||
class="star"
|
||||
<u-icon
|
||||
v-for="i in 5"
|
||||
:key="i"
|
||||
:class="{ active: i <= product.rating }"
|
||||
>★</text>
|
||||
name="star-fill"
|
||||
:color="i <= product.rating ? '#FFD700' : '#DDDDDD'"
|
||||
size="14"
|
||||
></u-icon>
|
||||
</view>
|
||||
<text class="rating-score">{{ product.rating }}</text>
|
||||
<text class="rating-count">({{ product.reviewCount }})</text>
|
||||
</view>
|
||||
|
||||
<view class="product-price">
|
||||
<text class="price-range">¥{{ product.priceRange }}</text>
|
||||
</view>
|
||||
|
||||
<view class="product-tags" v-if="viewMode === 'list'">
|
||||
<text
|
||||
class="product-tag"
|
||||
|
|
@ -811,12 +819,12 @@ export default {
|
|||
|
||||
<style lang="scss" scoped>
|
||||
.review-container {
|
||||
padding-bottom: 120rpx;
|
||||
padding-bottom: 60rpx;
|
||||
}
|
||||
|
||||
/* 搜索栏 */
|
||||
.search-section {
|
||||
padding: 20rpx 30rpx;
|
||||
padding: 24rpx 20rpx;
|
||||
|
||||
.search-wrapper {
|
||||
display: flex;
|
||||
|
|
@ -911,7 +919,7 @@ export default {
|
|||
|
||||
/* 产品列表 */
|
||||
.products-section {
|
||||
margin: 0 30rpx;
|
||||
margin: 0 20rpx;
|
||||
|
||||
.products-grid {
|
||||
&.grid {
|
||||
|
|
@ -929,8 +937,8 @@ export default {
|
|||
.product-card {
|
||||
background: rgba(255, 255, 255, 0.95);
|
||||
backdrop-filter: blur(20rpx);
|
||||
border-radius: 20rpx;
|
||||
overflow: hidden;
|
||||
border-radius: 12rpx;
|
||||
padding: 12rpx;
|
||||
box-shadow: 0 4rpx 16rpx rgba(255, 138, 128, 0.1);
|
||||
transition: all 0.3s ease;
|
||||
|
||||
|
|
@ -940,10 +948,16 @@ export default {
|
|||
|
||||
.product-image {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 280rpx;
|
||||
border-radius: 12rpx;
|
||||
overflow: hidden;
|
||||
margin-bottom: 12rpx;
|
||||
|
||||
.product-img {
|
||||
width: 100%;
|
||||
height: 200rpx;
|
||||
height: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
.product-badge {
|
||||
|
|
@ -986,54 +1000,57 @@ export default {
|
|||
}
|
||||
|
||||
.product-info {
|
||||
padding: 16rpx;
|
||||
|
||||
.product-brand {
|
||||
font-size: 20rpx;
|
||||
color: #999999;
|
||||
margin-bottom: 6rpx;
|
||||
}
|
||||
|
||||
.product-name {
|
||||
font-size: 26rpx;
|
||||
font-weight: 600;
|
||||
color: #333333;
|
||||
.product-basic {
|
||||
margin-bottom: 8rpx;
|
||||
line-height: 1.3;
|
||||
display: -webkit-box;
|
||||
-webkit-box-orient: vertical;
|
||||
-webkit-line-clamp: 2;
|
||||
overflow: hidden;
|
||||
|
||||
.product-name {
|
||||
font-size: 30rpx;
|
||||
font-weight: bold;
|
||||
color: #333333;
|
||||
margin-bottom: 6rpx;
|
||||
display: block;
|
||||
line-height: 1.2;
|
||||
padding: 6rpx 0;
|
||||
}
|
||||
|
||||
.product-brand-tags {
|
||||
display: flex;
|
||||
gap: 6rpx;
|
||||
flex-wrap: wrap;
|
||||
|
||||
.product-brand {
|
||||
background: rgba(100, 181, 246, 0.15);
|
||||
border-radius: 8rpx;
|
||||
padding: 2rpx 8rpx;
|
||||
font-size: 18rpx;
|
||||
color: #42A5F5;
|
||||
font-weight: 500;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.product-rating {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 4rpx;
|
||||
margin-bottom: 8rpx;
|
||||
|
||||
.rating-stars {
|
||||
margin-right: 8rpx;
|
||||
|
||||
.star {
|
||||
font-size: 16rpx;
|
||||
color: #DDDDDD;
|
||||
|
||||
&.active {
|
||||
color: #FFD700;
|
||||
}
|
||||
}
|
||||
display: flex;
|
||||
gap: 2rpx;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.rating-score {
|
||||
font-size: 20rpx;
|
||||
color: #333333;
|
||||
font-weight: 600;
|
||||
margin-right: 6rpx;
|
||||
font-size: 18rpx;
|
||||
color: #666666;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.rating-count {
|
||||
font-size: 18rpx;
|
||||
color: #999999;
|
||||
color: #666666;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -1065,8 +1082,10 @@ export default {
|
|||
|
||||
&.list .product-card {
|
||||
.product-image {
|
||||
height: 240rpx;
|
||||
|
||||
.product-img {
|
||||
height: 160rpx;
|
||||
height: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue