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