修改引导页首页在线报修样式

This commit is contained in:
zhouyanli
2026-04-20 11:48:17 +08:00
parent fc7ef36a93
commit 05307a5d58
3 changed files with 30 additions and 15 deletions

View File

@@ -36,11 +36,12 @@
<view class="bannarClass"> <view class="bannarClass">
<up-swiper :list="bannerList" indicator indicatorMode="dot" ></up-swiper> <up-swiper :list="bannerList" indicator indicatorMode="dot" ></up-swiper>
</view> </view>
<view class="noticeClass"> <view class="noticeClass" @click="getNoticeMore">
<image src="/static/首页/公告.png" style="width: 38px;height: 38px;position: absolute;top: 21px;left: 23px;"></image> <image src="/static/首页/公告.png" style="width: 38px;height: 38px;position: absolute;top: 21px;left: 17px;"></image>
<uni-notice-bar show-icon :text="noticeText" type="line" <uni-notice-bar show-icon :text="noticeText" type="line"
:showIcon="true" show-get-more scrollable color="#000" background-color="#fff" moreColor="#000" @getmore="getNoticeMore"/> :showIcon="false" show-get-more scrollable color="#000" background-color="#fff" moreColor="#000">
<!-- <up-notice-bar class="notice-bar" :text="noticeText" mode="link" speed="100" bgColor="#FFF" color="#000" url="pages/notice-list/noticeList"></up-notice-bar> --> </uni-notice-bar>
</view> </view>
<!-- 一键开门 --> <!-- 一键开门 -->
<view class="u-demo-block__content bg-card-open"> <view class="u-demo-block__content bg-card-open">
@@ -334,6 +335,10 @@ const moreClick = () =>{
left: 0; left: 0;
padding: 40rpx 36rpx; padding: 40rpx 36rpx;
} }
// 修改通知栏样式
::v-deep .uni-noticebar__content-wrapper--scrollable{
left: 20px;
}
.noticeClass.uni-noticebar{ .noticeClass.uni-noticebar{
padding: 10px 15px 10px 45px; padding: 10px 15px 10px 45px;
} }

View File

@@ -13,7 +13,9 @@
<!-- 便捷服务 --> <!-- 便捷服务 -->
<swiper-item> <swiper-item>
<view class="guide-item"> <view class="guide-item">
<image class="guide-img" src="/static/引导1.png" ></image> <view class="guide-img">
<image class="" src="/static/引导1.png" style="width: 100%;height: 100%;"></image>
</view>
<view style="height: 200rpx;width: 100%;"></view> <view style="height: 200rpx;width: 100%;"></view>
<view class="guide-title">便捷服务</view> <view class="guide-title">便捷服务</view>
<view class="guide-subtitle">报修缴费预约</view> <view class="guide-subtitle">报修缴费预约</view>
@@ -23,7 +25,10 @@
<!-- 高效管理 --> <!-- 高效管理 -->
<swiper-item> <swiper-item>
<view class="guide-item"> <view class="guide-item">
<image class="guide-img" src="/static/引导2.png" ></image> <view class="guide-img">
<image src="/static/引导2.png" style="width: 100%;height: 100%;"></image>
</view>
<view style="height: 200rpx;width: 100%;"></view>
<view class="guide-title">高效管理</view> <view class="guide-title">高效管理</view>
<view class="guide-subtitle">自动化流程和智能设备</view> <view class="guide-subtitle">自动化流程和智能设备</view>
</view> </view>
@@ -32,7 +37,10 @@
<!--安全保障 --> <!--安全保障 -->
<swiper-item> <swiper-item>
<view class="guide-item"> <view class="guide-item">
<image class="guide-img" src="/static/引导3.png"></image> <view class="guide-img">
<image src="/static/引导3.png" style="width: 100%;height: 100%;"></image>
</view>
<view style="height: 200rpx;width: 100%;"></view>
<view class="guide-title">安全保障</view> <view class="guide-title">安全保障</view>
<view class="guide-subtitle">智能巡检和智慧访客</view> <view class="guide-subtitle">智能巡检和智慧访客</view>
</view> </view>
@@ -120,7 +128,7 @@ const handleBtnClick = () => {
/* 单个引导项 */ /* 单个引导项 */
.guide-item { .guide-item {
width: 360px; width: 360px;
height: 360px; height: 480px;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
@@ -130,13 +138,13 @@ const handleBtnClick = () => {
.guide-img { .guide-img {
width: 100%; width: 100%;
height: 100%; height: 50%;
margin-bottom: 80rpx; margin-bottom: 80rpx;
} }
/* 引导标题 */ /* 引导标题 */
.guide-title { .guide-title {
font-size: 48rpx; font-size: 56rpx;
font-weight: 600; font-weight: 600;
color: #333; color: #333;
margin-bottom: 20rpx; margin-bottom: 20rpx;

View File

@@ -16,6 +16,7 @@
class="type-tab" class="type-tab"
:class="{ active: activeType === 'public' }" :class="{ active: activeType === 'public' }"
@click="publicClick" @click="publicClick"
style="margin-right: 20rpx;"
> >
<image src="/static/在线报修/公共报修.png" style="width: 100%;height: 100%;"></image> <image src="/static/在线报修/公共报修.png" style="width: 100%;height: 100%;"></image>
<!-- <uni-icons type="staff" size="24" color="#fff"></uni-icons> --> <!-- <uni-icons type="staff" size="24" color="#fff"></uni-icons> -->
@@ -80,7 +81,7 @@
{{ item.content }} {{ item.content }}
</view> </view>
<!-- 图片占位可替换为图片组件 --> <!-- 图片占位 -->
<view class="item-imgs"> <view class="item-imgs">
<view class="img-placeholder" v-for="i in 3" :key="i"> <view class="img-placeholder" v-for="i in 3" :key="i">
<!-- <uni-icons type="image" size="20" color="#ccc"></uni-icons> --> <!-- <uni-icons type="image" size="20" color="#ccc"></uni-icons> -->
@@ -229,7 +230,6 @@ const goDetail = (item) => {
border-radius: 8px; border-radius: 8px;
color: #fff; color: #fff;
font-size: 14px; font-size: 14px;
margin-right: 20rpx;
} }
.type-tab.active { .type-tab.active {
background: linear-gradient(135deg, #1E88E5 0%, #64B5F6 100%); background: linear-gradient(135deg, #1E88E5 0%, #64B5F6 100%);
@@ -334,8 +334,8 @@ const goDetail = (item) => {
/* 标签 */ /* 标签 */
.item-tags { .item-tags {
display: flex; /* display: flex; */
gap: 8px; /* gap: 8px; */
margin-bottom: 10px; margin-bottom: 10px;
} }
.tag { .tag {
@@ -345,6 +345,7 @@ const goDetail = (item) => {
padding: 2px 8px; padding: 2px 8px;
border-radius: 4px; border-radius: 4px;
border: 1px solid #999999; border: 1px solid #999999;
margin-right: 8px;
} }
/* 内容 */ /* 内容 */
@@ -359,7 +360,7 @@ const goDetail = (item) => {
/* 图片占位 */ /* 图片占位 */
.item-imgs { .item-imgs {
display: flex; display: flex;
gap: 12px; /* gap: 12px; */
margin-bottom: 10px; margin-bottom: 10px;
} }
.img-placeholder { .img-placeholder {
@@ -370,6 +371,7 @@ const goDetail = (item) => {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
margin-right: 8px;
} }
/* 底部时间和详情 */ /* 底部时间和详情 */