Commit 4c57b86f by 李伟康

Merge branch 'saas+v5.8.3' of http://192.168.3.233:8090/glsx/gl_tape into saas+v5.8.3

2 parents 829e7f3a ae5196ca
......@@ -48,8 +48,8 @@
<view
v-for="(item, index) in goodsList"
:key="item.id || index"
class="goods-item"
@click="$emit('goodsClick', item, index)"
:class="['goods-item', { active: goodsIndex === index }]"
@click="handleGoodsClick(item, index)"
>
<view v-if="item.isMain" class="goods-item-badge">主推</view>
<view v-else class="goods-item-badge badge02">次推</view>
......@@ -138,6 +138,7 @@ export default {
{ label: '特斯拉 Model 3', key: 'model3' }
],
carModelIndex: 0,
goodsIndex: 0,
goodsList: MOCK_GOODS_LIST
}
},
......@@ -150,6 +151,10 @@ export default {
this.carModelIndex = index
this.$emit('carModelChange', this.carModelTabs[index], index)
},
handleGoodsClick(item, index) {
this.goodsIndex = index
this.$emit('goodsClick', item, index)
},
handleEntranceClick(item) {
this.$emit('entranceClick', item)
}
......@@ -162,12 +167,13 @@ export default {
width: toRpx(1138);
height: 100%;
background-color: #ffffff;
.type-box {
height: 62px;
height: 31px;
display: flex;
align-items: center;
gap: 12px;
margin-bottom: toRpx(28);
}
.type-tag-item {
......@@ -262,7 +268,7 @@ export default {
justify-content: center;
gap: 4px;
padding: toRpx(10) toRpx(16);
border-radius: 0 0 0 8px;
border-radius: 0 8px 0 8px;
background: rgba(0, 0, 0, 0.60);
font-size: 14px;
text-align: center;
......@@ -285,9 +291,10 @@ export default {
.goods-menu {
$goods-item-height: 120px;
$shadow-space: 8px;
width: 100%;
height: $goods-item-height;
height: calc(#{$goods-item-height} + #{$shadow-space * 2});
white-space: nowrap;
margin: toRpx(28) 0;
......@@ -296,27 +303,35 @@ export default {
flex-wrap: nowrap;
gap: 12px;
height: $goods-item-height;
padding: $shadow-space;
box-sizing: content-box;
}
.goods-item {
position: relative;
flex-shrink: 0;
box-sizing: border-box;
width: 252px;
height: $goods-item-height;
display: flex;
align-items: stretch;
overflow: hidden;
border: 1.5px solid rgba(44, 102, 247, 0.1);
border: none;
border-radius: 8px;
box-shadow: 0 2px 8px 0 rgba(44, 102, 247, 0.1);
background: linear-gradient(90deg, rgba(44, 102, 247, 0.05) 0%, rgba(44, 102, 247, 0.05) 100%), #fff;
background: #FFF;
box-shadow: 0 2px 8px 0 rgba(44, 102, 247, 0.10);
cursor: pointer;
&.active {
border: 1.5px solid rgba(44, 102, 247, 0.10);
background: linear-gradient(0deg, rgba(44, 102, 247, 0.05) 0%, rgba(44, 102, 247, 0.05) 100%), #FFF;
}
}
.goods-item-badge {
position: absolute;
left: -1.5px;
top: -1.5px;
left: 0;
top: 0;
z-index: 2;
padding: 2px 10px;
border-radius: 0 0 8px 0;
......@@ -329,6 +344,11 @@ export default {
.badge02 {
background: linear-gradient(90deg, #5C8AFF 0%, #49B6FF 100%);
}
.goods-item.active .goods-item-badge {
left: -1.5px;
top: -1.5px;
}
.goods-item-img-wrap {
flex-shrink: 0;
width: 88px;
......
......@@ -27,6 +27,7 @@
</view>
</view>
<scroll-view class="customer-list" scroll-y show-scrollbar="false">
<view class="customer-list-inner">
<view class="customer-count">
<view class="customer-count-left">
<image
......@@ -41,11 +42,11 @@
<text class="customer-count-unit">位客户</text>
</view>
</view>
<view
v-for="item in customerList"
:key="item.id"
class="customer-item"
>
<view
v-for="item in customerList"
:key="item.id"
class="customer-item"
>
<view class="customer-item-avatar">
<text class="customer-item-avatar-text">{{ item.surname }}</text>
</view>
......@@ -78,6 +79,7 @@
<view class="sprite-icon icon-arrow-right"></view>
</view>
</view>
</view>
</view>
</scroll-view>
</view>
......@@ -175,7 +177,7 @@ export default {
justify-content: space-between;
padding: toRpx(8) 0 toRpx(28) 0;
border-bottom: 1px solid #F5F7FA;
margin-top: toRpx(36);
margin-top: toRpx(28);
.header-left {
display: flex;
align-items: center;
......@@ -231,7 +233,11 @@ export default {
.customer-list {
flex: 1;
min-height: 0;
padding-top: 12px;
box-sizing: border-box;
}
.customer-list-inner {
padding: 12px 4px 4px;
box-sizing: border-box;
}
......
......@@ -72,7 +72,6 @@
<view
v-show="homeContentTabIndex === 0"
class="right-content-box flex right-content-box-scene1"
style="margin-top: 16px;"
>
<view class="content-left" style="padding-bottom: 40px;">
<view class="module-box box-class scene1-box-shadow">
......@@ -1086,7 +1085,7 @@ export default {
}
.right-content-scene1 {
box-sizing: border-box;
background: #ebf7a6;
background: #ffffff;
border-radius: toRpx(48);
border: 2px solid #FFF;
}
......@@ -1126,6 +1125,7 @@ export default {
overflow: hidden;
position: relative;
z-index: 1;
background-color: #eef4fe;
.home-content-tab {
flex: 1;
......@@ -1145,6 +1145,7 @@ export default {
background: linear-gradient(90deg, #61C0FF 0%, #2C66F7 100%);
border-radius: toRpx(24);
margin-right: toRpx(48);
margin-bottom: toRpx(4);
.start-icon {
width: toRpx(48);
height: toRpx(48);
......@@ -1245,13 +1246,13 @@ export default {
}
}
.right-content-box-scene1 {
// border-radius: 24px;
border-radius: 24px;
padding: 16px 20px;
box-sizing: border-box;
background-color: #ffffff;
flex: 1;
min-height: 0;
transform: translateY(toMinusRpx(32));
// transform: translateY(toMinusRpx(32));
.tab-container {
width: 100%;
height: 100%;
......@@ -1262,7 +1263,8 @@ export default {
.line {
width: 1px;
flex-shrink: 0;
margin: 0 20px;
margin-left: 20px;
margin-right: 20px;
background-color: #F5F7FA;
}
.container-left {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!