Commit 56e9f86f by 李伟康

Merge branch 'v1.0.5' of http://192.168.3.233:8090/glsx/gl_tape into v1.0.5

2 parents 604a66cb 1686023d
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* @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:14:07 * @LastEditTime: 2024-05-31 16:44:47
--> -->
<template> <template>
<view> <view>
...@@ -37,9 +37,18 @@ ...@@ -37,9 +37,18 @@
v-for="(item, ind) in secondNav" v-for="(item, ind) in secondNav"
:key="ind" :key="ind"
class="tab-item" class="tab-item"
:class="[secondIndex == ind ? 'active':'']"
@click="changeIndex(ind, 'secondIndex')" @click="changeIndex(ind, 'secondIndex')"
>{{item}}</view> >
<view class="text" :class="[secondIndex == ind ? 'active':'']">{{item}}</view>
</view>
</view>
<view class="product-list">
<view class="product-item">
<image
:src="require('@/assets/images/boutique/product.png')"
mode="scaleToFill"
/>
</view>
</view> </view>
</view> </view>
</view> </view>
...@@ -181,7 +190,7 @@ export default { ...@@ -181,7 +190,7 @@ export default {
position: relative; position: relative;
background-color: #fff; background-color: #fff;
width: 100%; width: 100%;
height: 200rpx; min-height: 1040rpx;
padding: 64rpx; padding: 64rpx;
margin-top: -48rpx; margin-top: -48rpx;
border-radius: 48rpx; border-radius: 48rpx;
...@@ -189,22 +198,33 @@ export default { ...@@ -189,22 +198,33 @@ export default {
display: inline-flex; display: inline-flex;
background: #f2f2f2; background: #f2f2f2;
border-radius: 16rpx; border-radius: 16rpx;
height: 100%; height: 84rpx;
align-items: center; align-items: center;
.tab-item { .tab-item {
display: inline-block; display: inline-block;
height: 100%;
.text {
display: flex;
align-items: center;
margin: 4rpx;
width: auto;
height: 100%;
padding: 0 48rpx; padding: 0 48rpx;
&.active { &.active {
background-color: #fff; background-color: #fff;
margin: 4rpx 0; // margin: 4rpx 0;
border-radius: 16rpx; border-radius: 16rpx;
height: calc(100% - 8rpx); height: calc(100% - 8rpx);
display: flex;
align-items: center;
} }
} }
} }
} }
.product-list {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 48rpx;
}
}
} }
@keyframes moveAndFade { @keyframes moveAndFade {
0% { 0% {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!