Commit e4a594dd by 胡悦

提交

1 parent 1686023d
...@@ -3,10 +3,10 @@ ...@@ -3,10 +3,10 @@
* @Author: huyue * @Author: huyue
* @Date: 2024-05-30 14:40:39 * @Date: 2024-05-30 14:40:39
* @LastEditors: huyue * @LastEditors: huyue
* @LastEditTime: 2024-05-31 16:44:47 * @LastEditTime: 2024-05-31 18:06:10
--> -->
<template> <template>
<view> <view style="position: relative;">
<view class="bg"></view> <view class="bg"></view>
<!-- <view class="nav-bar"> <!-- <view class="nav-bar">
<view class="back" @click="back"> <view class="back" @click="back">
...@@ -26,9 +26,9 @@ ...@@ -26,9 +26,9 @@
<view <view
class="sprite-icon" class="sprite-icon"
:class="[firstIndex == index ? `icon-${i.class} active` : '']" :class="[firstIndex == index ? `icon-${i.class} active` : '']"
:style="{left: i.left}" :style="{ left: i.left }"
></view> ></view>
{{i.name}} {{ i.name }}
</view> </view>
</view> </view>
<view class="content"> <view class="content">
...@@ -39,7 +39,11 @@ ...@@ -39,7 +39,11 @@
class="tab-item" class="tab-item"
@click="changeIndex(ind, 'secondIndex')" @click="changeIndex(ind, 'secondIndex')"
> >
<view class="text" :class="[secondIndex == ind ? 'active':'']">{{item}}</view> <view
class="text"
:class="[secondIndex == ind ? 'active' : '']"
>{{ item }}</view
>
</view> </view>
</view> </view>
<view class="product-list"> <view class="product-list">
...@@ -47,7 +51,41 @@ ...@@ -47,7 +51,41 @@
<image <image
:src="require('@/assets/images/boutique/product.png')" :src="require('@/assets/images/boutique/product.png')"
mode="scaleToFill" mode="scaleToFill"
class="product-img"
/>
<view class="product-name">AITO问界 3M车窗膜(M5)</view>
</view>
<view class="product-item">
<image
:src="require('@/assets/images/boutique/product.png')"
mode="scaleToFill"
class="product-img"
/>
<view class="product-name">AITO问界 3M车窗膜(M5)</view>
</view>
<view class="product-item">
<image
:src="require('@/assets/images/boutique/product.png')"
mode="scaleToFill"
class="product-img"
/>
<view class="product-name">AITO问界 3M车窗膜(M5)</view>
</view>
<view class="product-item">
<image
:src="require('@/assets/images/boutique/product.png')"
mode="scaleToFill"
class="product-img"
/> />
<view class="product-name">AITO问界 3M车窗膜(M5)</view>
</view>
<view class="product-item">
<image
:src="require('@/assets/images/boutique/product.png')"
mode="scaleToFill"
class="product-img"
/>
<view class="product-name">AITO问界 3M车窗膜(M5)</view>
</view> </view>
</view> </view>
</view> </view>
...@@ -154,13 +192,15 @@ export default { ...@@ -154,13 +192,15 @@ export default {
z-index: -1; z-index: -1;
} }
.wrapper { .wrapper {
padding: 176rpx 64rpx 64rpx; box-sizing: border-box;
padding: 168rpx 64rpx 64rpx;
&-content { &-content {
background-color: #fff; background-color: #fff;
box-shadow: inset 0 0 16rpx 0 #ffffff; box-shadow: inset 0 0 16rpx 0 #ffffff;
border-radius: 48rpx; border-radius: 48rpx;
height: 500rpx;
padding: 4rpx; padding: 4rpx;
height: 1296rpx;
box-sizing: border-box;
} }
// filter: blur(8rpx); // filter: blur(8rpx);
...@@ -190,8 +230,7 @@ export default { ...@@ -190,8 +230,7 @@ export default {
position: relative; position: relative;
background-color: #fff; background-color: #fff;
width: 100%; width: 100%;
min-height: 1040rpx; padding: 64rpx 0;
padding: 64rpx;
margin-top: -48rpx; margin-top: -48rpx;
border-radius: 48rpx; border-radius: 48rpx;
.second-tab { .second-tab {
...@@ -200,6 +239,7 @@ export default { ...@@ -200,6 +239,7 @@ export default {
border-radius: 16rpx; border-radius: 16rpx;
height: 84rpx; height: 84rpx;
align-items: center; align-items: center;
margin-left: 64rpx;
.tab-item { .tab-item {
display: inline-block; display: inline-block;
height: 100%; height: 100%;
...@@ -223,6 +263,24 @@ export default { ...@@ -223,6 +263,24 @@ export default {
display: grid; display: grid;
grid-template-columns: repeat(4, 1fr); grid-template-columns: repeat(4, 1fr);
gap: 48rpx; gap: 48rpx;
margin-top: 48rpx;
height: 908rpx;
padding: 0 64rpx;
// height: 998rpx;
overflow-y: auto;
.product-item {
text-align: center;
background: #FFFFFF;
box-shadow: 0 16rpx 24rpx 0 #2c66f71a;
border-radius: 24rpx;
.product-img {
width: 486rpx;
height: 486rpx;
}
.product-name {
padding-bottom: 48rpx;
}
}
} }
} }
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!