修改首页样式

This commit is contained in:
TOP糯米 2023-04-06 14:04:41 +08:00
parent 46352a8225
commit 27ae4b177e
5 changed files with 62 additions and 33 deletions

View File

@ -122,35 +122,6 @@ export default {
margin-right: 0; margin-right: 0;
} }
} }
.group.g2 {
.service-item {
width: 100rpx;
margin-top: 40rpx;
margin-right: 42.5rpx;
}
.service-icon {
width: 100rpx;
height: 100rpx;
}
.service-item:nth-child(5n) {
margin-right: 0;
}
}
.group.g3 {
.service-item {
width: 320rpx;
height: auto;
margin-top: 40rpx;
margin-right: 30rpx;
}
.service-icon {
width: 320rpx;
height: 170rpx;
}
.service-item:nth-child(2n) {
margin-right: 0;
}
}
} }
// //
.common-bottom-components { .common-bottom-components {

View File

@ -1,5 +1,5 @@
<template> <template>
<app-layout headerBackgroundColor="#4B65ED" textColor="light" btnType="city" title="熊熊安装队"> <app-layout headerBackgroundColor="#ffffff" backgroundColor="#ffffff" textColor="dark" btnType="city" title="熊熊安装队">
<view class="search-component" @click="utils.toPage('/pages/service/cate', {}, 'switch')"> <view class="search-component" @click="utils.toPage('/pages/service/cate', {}, 'switch')">
<widget-search :disabled="true" /> <widget-search :disabled="true" />
</view> </view>
@ -43,7 +43,7 @@
</view> </view>
<view class="common-service-nav-group"> <view class="common-service-nav-group">
<text class="section-title">维修售后服务</text> <text class="section-title">维修售后服务</text>
<view class="group g2"> <view class="group g1">
<view <view
class="service-item" class="service-item"
v-for="(item, index) in aftermarketServiceList" v-for="(item, index) in aftermarketServiceList"
@ -57,6 +57,13 @@
</view> </view>
</view> </view>
</view> </view>
<view class="common-service-nav-group g4">
<view class="group g4">
<view class="service-item" @click="toPage(distribution.page)">
<image class="service-icon" :src="distribution.cover" mode="aspectFill" />
</view>
</view>
</view>
<view class="common-service-nav-group"> <view class="common-service-nav-group">
<text class="section-title">工程企业服务</text> <text class="section-title">工程企业服务</text>
<view class="group g3"> <view class="group g3">
@ -97,6 +104,10 @@ export default {
}, },
installServiceList: [], installServiceList: [],
aftermarketServiceList: [], aftermarketServiceList: [],
distribution: {
cover: require("@/static/temp/index/b3.png"),
page: "/pages/service/other/distribution",
},
bussinessServiceList: [ bussinessServiceList: [
{ {
id: 14, id: 14,
@ -187,10 +198,12 @@ export default {
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.component-widgets-search {
background-color: #f6f6f6;
}
.search-component { .search-component {
width: 100%; width: 100%;
height: 100rpx; height: 100rpx;
background-color: #4b65ed;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
@ -199,7 +212,7 @@ export default {
width: 100%; width: 100%;
height: 283rpx; height: 283rpx;
margin: 0 auto; margin: 0 auto;
background-color: #4b65ed; background-color: #f6f6f6;
} }
.notify { .notify {
width: 670rpx; width: 670rpx;
@ -230,4 +243,49 @@ export default {
max-height: 400rpx; max-height: 400rpx;
overflow-y: scroll; overflow-y: scroll;
} }
.common-service-nav-group {
.group.g2 {
.service-item {
width: 100rpx;
margin-top: 40rpx;
margin-right: 42.5rpx;
}
.service-icon {
width: 100rpx;
height: 100rpx;
}
.service-item:nth-child(5n) {
margin-right: 0;
}
}
.group.g3 {
.service-item {
width: 320rpx;
height: auto;
margin-top: 40rpx;
margin-right: 30rpx;
}
.service-icon {
width: 320rpx;
height: 160rpx;
}
.service-item:nth-child(2n) {
margin-right: 0;
}
}
}
.common-service-nav-group.g4 {
margin: 10rpx auto 0 auto;
padding-bottom: 0;
border-bottom: 0;
.group.g4 {
.service-item {
width: 100%;
}
.service-icon {
width: 618rpx;
height: 150rpx;
}
}
}
</style> </style>

Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 KiB

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 KiB

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB