通知公告/看房预约/合同签约/退租申请页面样式改版

This commit is contained in:
2025-12-26 17:39:00 +08:00
parent dac2ae956d
commit fb8a6cc27e
6 changed files with 534 additions and 457 deletions

View File

@@ -204,7 +204,7 @@ export default {
font-size: 16px; font-size: 16px;
} }
.cancel { color: #999; } .cancel { color: #999; }
.confirm { color:#007aff; } .confirm { color:#EA4D3E; }
.title { font-weight:bold; } .title { font-weight:bold; }
.picker-columns { .picker-columns {
@@ -225,7 +225,7 @@ export default {
} }
.item.active { .item.active {
color:#007aff; color:#EA4D3E;
font-weight:bold; font-weight:bold;
font-size:18px; font-size:18px;
} }

View File

@@ -6,18 +6,12 @@
<!-- Tabs --> <!-- Tabs -->
<view class="tab-wrapper"> <view class="tab-wrapper">
<u-tabs :list="tabList" :current="currentTab" @change="onTabChange" lineColor="#2979ff" <u-tabs :list="tabList" :current="currentTab" @change="onTabChange" lineColor="#EA4D3E" activeColor="#EA4D3E"
activeColor="#2979ff" itemStyle="padding: 0 30rpx;"></u-tabs> itemStyle="padding: 0 30rpx;"></u-tabs>
</view> </view>
<DateFilter :start="startDate" :end="endDate" @update:start="startDate = $event" @update:end="endDate = $event"
<DateFilter @change="onDateFilterChange" />
:start="startDate"
:end="endDate"
@update:start="startDate = $event"
@update:end="endDate = $event"
@change="onDateFilterChange"
/>
<!-- 合同列表 --> <!-- 合同列表 -->
<scroll-view scroll-y class="scroll-content" @scrolltolower="loadMore" :refresher-enabled="true" <scroll-view scroll-y class="scroll-content" @scrolltolower="loadMore" :refresher-enabled="true"
@@ -55,8 +49,8 @@
<script> <script>
import DateFilter from '../../components/DatePicker/DateFilter.vue'; import DateFilter from '../../components/DatePicker/DateFilter.vue';
export default { export default {
components: { DateFilter }, components: { DateFilter },
data() { data() {
return { return {
@@ -226,52 +220,52 @@
} }
}, },
}, },
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.contract-page { .contract-page {
background-color: #f8f8f8; background-color: #f8f8f8;
padding-top: 175rpx; padding-top: 120rpx;
/* 给导航栏留空间 */ /* 给导航栏留空间 */
min-height: 100vh; min-height: 100vh;
} }
.scroll-content { .scroll-content {
height: calc(100vh - 100rpx); height: calc(100vh - 100rpx);
} }
.contract-list { .contract-list {
padding: 20rpx; padding: 20rpx;
} }
.contract-card { .contract-card {
display: flex; display: flex;
background: #fff; background: #fff;
border-radius: 16rpx; border-radius: 16rpx;
margin-bottom: 20rpx; margin-bottom: 24rpx;
padding: 20rpx; padding: 20rpx;
box-shadow: 0 4rpx 8rpx rgba(0, 0, 0, 0.05); box-shadow: 0 4rpx 8rpx rgba(0, 0, 0, 0.05);
position: relative; position: relative;
} }
.contract-cover { .contract-cover {
width: 160rpx; width: 193rpx;
height: 160rpx; height: 145rpx;
border-radius: 12rpx; border-radius: 10rpx;
background-color: #f0f0f0; background-color: #FCE5E0;
flex-shrink: 0; flex-shrink: 0;
} }
.contract-info { .contract-info {
flex: 1; flex: 1;
margin-left: 20rpx; margin-left: 20rpx;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
position: relative; position: relative;
} }
.top-row { .top-row {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
@@ -282,55 +276,54 @@
color: #333; color: #333;
flex: 1; flex: 1;
} }
} }
.asset-room { .asset-room {
font-size: 26rpx; font-size: 26rpx;
color: #555; color: #555;
margin-top: 10rpx; margin-top: 18rpx;
} }
.date-range { .date-range {
font-size: 24rpx; font-size: 24rpx;
color: #888; color: #888;
margin-top: 8rpx; margin-top: 20rpx;
} }
.status-tag { .status-tag {
position: absolute; position: absolute;
bottom: 10rpx; bottom: 20rpx;
right: 0rpx; right: 0rpx;
padding: 6rpx 16rpx; padding: 12rpx 15rpx;
border-radius: 24rpx; border-radius: 6rpx;
font-size: 24rpx; font-size: 26rpx;
&.pending { &.pending {
background: #fff8e1; background: #FEEDDD;
color: #ff9800; color: #EFA049;
} }
&.signed { &.signed {
background: #e8f5e9; background: #FCE5E0;
color: #4caf50; color: #ED7748;
} }
&.expired { &.expired {
background: #fbe9e7; background: #CDCDCD;
color: #e53935; color: #969696;
}
} }
}
.empty { .empty {
margin-top: 200rpx; margin-top: 200rpx;
} }
.tab-wrapper { .tab-wrapper {
background-color: #ffffff; background-color: #ffffff;
padding: 10rpx 0; padding: 10rpx 0;
box-shadow: 0 2rpx 6rpx rgba(0, 0, 0, 0.06); box-shadow: 0 2rpx 6rpx rgba(0, 0, 0, 0.06);
position: sticky; position: sticky;
top: 0; top: 0;
z-index: 10; z-index: 10;
} }
</style> </style>

View File

@@ -45,12 +45,7 @@
<!-- 底部操作栏 --> <!-- 底部操作栏 -->
<view v-if="contract.status === '待签署'" class="bottom-bar"> <view v-if="contract.status === '待签署'" class="bottom-bar">
<u-button <u-button class="sign-btn" @click="goSign">
type="primary"
shape="circle"
class="sign-btn"
@click="goSign"
>
去签署 去签署
</u-button> </u-button>
</view> </view>
@@ -141,8 +136,10 @@ export default {
.contract-detail-page { .contract-detail-page {
background: #f7f8fa; background: #f7f8fa;
min-height: 100vh; min-height: 100vh;
padding-top: 175rpx; /* 给导航栏留空间 */ /* 给导航栏留空间 */
padding-bottom: 120rpx; /* 预留底部操作栏空间 */ padding-top: 120rpx;
/* 预留底部操作栏空间 */
padding-bottom: 150rpx;
} }
/* 顶部封面信息 */ /* 顶部封面信息 */
@@ -154,9 +151,9 @@ export default {
margin: 20rpx; margin: 20rpx;
.cover { .cover {
width: 180rpx; width: 194rpx;
height: 180rpx; height: 156rpx;
border-radius: 12rpx; border-radius: 10rpx;
margin-right: 20rpx; margin-right: 20rpx;
} }
@@ -164,12 +161,12 @@ export default {
flex: 1; flex: 1;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: center;
.name { .name {
font-size: 30rpx; font-size: 30rpx;
font-weight: bold; font-weight: bold;
color: #333; color: #333;
margin-top: 10rpx;
margin-bottom: 12rpx; margin-bottom: 12rpx;
} }
@@ -188,17 +185,17 @@ export default {
padding: 20rpx 24rpx; padding: 20rpx 24rpx;
.section-title { .section-title {
font-weight: bold; font-weight: 500;
font-size: 28rpx; font-size: 40rpx;
margin-bottom: 12rpx; margin-bottom: 12rpx;
color: #333; color: #212121;
} }
.info-item { .info-item {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
padding: 20rpx 0; padding: 40rpx 0;
border-bottom: 1rpx solid #f0f0f0; border-bottom: 1rpx solid #f0f0f0;
&:last-child { &:last-child {
@@ -206,8 +203,8 @@ export default {
} }
.label { .label {
font-size: 26rpx; font-size: 30rpx;
color: #666; color: #86868C;
} }
.value-box { .value-box {
@@ -215,8 +212,8 @@ export default {
align-items: center; align-items: center;
.value { .value {
font-size: 26rpx; font-size: 30rpx;
color: #333; color: #222222;
} }
u-icon { u-icon {
@@ -241,5 +238,13 @@ export default {
width: 100%; width: 100%;
height: 88rpx; height: 88rpx;
} }
/* 使用样式穿透让u-btn样式生效 */
&::v-deep .u-btn {
font-size: 30rpx;
color: #fff;
background: linear-gradient(90deg, #FF6F63 0%, #FB392A 100%);
border-radius: 10rpx;
}
} }
</style> </style>

View File

@@ -135,7 +135,7 @@ export default {
background-color: #f6f8fa; background-color: #f6f8fa;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
padding-top: 175rpx; padding-top: 120rpx;
padding-bottom: 120rpx; padding-bottom: 120rpx;
} }
@@ -159,7 +159,7 @@ export default {
.section-title { .section-title {
font-size: 30rpx; font-size: 30rpx;
font-weight: bold; font-weight: bold;
color: #007aff; color: #EA4D3E;
margin-top: 40rpx; margin-top: 40rpx;
margin-bottom: 20rpx; margin-bottom: 20rpx;
} }
@@ -191,6 +191,7 @@ export default {
font-size: 28rpx; font-size: 28rpx;
min-height: 140rpx; min-height: 140rpx;
color: #333; color: #333;
width: 94%;
} }
} }
@@ -202,12 +203,13 @@ export default {
background-color: #fff; background-color: #fff;
padding: 20rpx 40rpx; padding: 20rpx 40rpx;
box-shadow: 0 -4rpx 10rpx rgba(0, 0, 0, 0.08); box-shadow: 0 -4rpx 10rpx rgba(0, 0, 0, 0.08);
z-index: 999;
} }
.submit-btn { .submit-btn {
width: 100%; width: 100%;
height: 88rpx; height: 88rpx;
background: linear-gradient(90deg, #007aff, #00aaff); background: linear-gradient(90deg, #FF6F63 0%, #FB392A 100%);
border-radius: 44rpx; border-radius: 44rpx;
color: #fff; color: #fff;
font-size: 32rpx; font-size: 32rpx;

View File

@@ -5,19 +5,17 @@
<scroll-view scroll-y style="height: 100%;width: 100%;"> <scroll-view scroll-y style="height: 100%;width: 100%;">
<view class="page-box"> <view class="page-box">
<view class="tabSwiper" v-for="(item, index) in dataList" :key="item.id" @click="clickContent(item)"> <view class="tabSwiper" v-for="(item, index) in dataList" :key="item.id" @click="clickContent(item)">
<u-icon name="bell" :size="35" color="#2979ff" class="bell-icon"></u-icon>
<view class="content-wrapper">
<view class="top"> <view class="top">
<view class="left">
<u-icon name="bell" :size="35" color="#2979ff"></u-icon>
<view class="title">{{ item.title }}</view> <view class="title">{{ item.title }}</view>
<u-icon name="arrow-right" color="rgb(203,203,203)" :size="26"></u-icon> <view class="date">{{ item.date }}</view>
</view>
<view class="right">{{ item.date }}</view>
</view> </view>
<view class="item"> <view class="item">
<view class="content"> <view class="content u-line-2">{{ item.content }}</view>
<view class="title u-line-2">{{ item.content }}</view>
</view> </view>
</view> </view>
<u-icon name="arrow-right" color="rgb(203,203,203)" :size="26" class="arrow-icon"></u-icon>
</view> </view>
</view> </view>
</scroll-view> </scroll-view>
@@ -28,106 +26,145 @@
<script> <script>
export default { export default {
data() { data() {
// 静态公告数据
const staticNoticeList = [
{
id: 1,
title: '关于开展2025年度招商工作的通知',
date: '2025-01-15',
content: '为进一步推进我市招商引资工作优化营商环境现就开展2025年度招商工作有关事项通知如下一、工作目标二、重点领域三、保障措施...'
},
{
id: 2,
title: '2024年度招商成果通报',
date: '2025-01-10',
content: '2024年我市招商引资工作取得显著成效共引进各类项目120个总投资达500亿元现将具体成果通报如下一、总体情况二、主要特点三、下一步计划...'
},
{
id: 3,
title: '关于举办2025年春季招商推介会的通知',
date: '2025-01-05',
content: '为搭建投资合作平台展示我市投资环境和发展机遇定于2025年3月15日举办春季招商推介会诚邀各界企业家参会...'
},
{
id: 4,
title: '关于印发《市招商引资优惠政策实施细则》的通知',
date: '2024-12-28',
content: '为进一步规范招商引资优惠政策的实施,经市政府同意,现将《市招商引资优惠政策实施细则》印发给你们,请认真贯彻执行...'
},
{
id: 5,
title: '关于认定2024年度市重点招商引资项目的通知',
date: '2024-12-20',
content: '根据《市重点招商引资项目认定管理办法》经评审认定以下30个项目为2024年度市重点招商引资项目现予以公布...'
}
];
return { return {
pageNum:1, pageNum: 1,
pageSize:50, pageSize: 50,
dataList: [], dataList: staticNoticeList,
}; };
}, },
onLoad() { onLoad() {
this.getNoticecList(); // 静态数据已在data中初始化无需调用接口
// this.getNoticecList();
}, },
methods: { methods: {
clickContent(item){ clickContent(item) {
if(item.id){ if (item.id) {
this.$u.route('/pages/notice/noticeDetail', { this.$u.route('/pages/notice/noticeDetail', {
id: item.id id: item.id
}); });
} }
}, },
getNoticecList(){ getNoticecList() {
let url = "/notice/findNoticeList"; // 静态数据已在data中初始化无需调用接口
this.$u.get(url,{ // 保留此方法以保持兼容性
pageNum:this.pageNum, return;
pageSize:this.pageSize,
orderByColumn:'create_time',
isAsc:'desc'
}).then(obj => {
let data = obj.data.result
data.filter(item=>{
this.dataList.push(
{
id:item.noticeId,
title: item.noticeTitle,
date:item.createTime,
content: item.reMark,
}
)
})
});
} }
} }
}; };
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.tabSwiper { .tabSwiper {
width: 710rpx; width: 95%;
background-color: #ffffff; background-color: #ffffff;
margin: 20rpx auto; margin: 16rpx auto;
border-radius: 20rpx; border-radius: 12rpx;
box-sizing: border-box; box-sizing: border-box;
padding: 20rpx; padding: 32rpx;
font-size: 28rpx; box-shadow: 0 1rpx 8rpx rgba(0, 0, 0, 0.04);
transition: all 0.2s ease;
border: 1rpx solid #f0f0f0;
display: flex;
align-items: center;
position: relative;
&:hover {
box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.08);
}
.bell-icon {
margin-right: 32rpx;
flex-shrink: 0;
margin-top: 4rpx;
}
.content-wrapper {
flex: 1;
min-width: 0;
}
.arrow-icon {
margin-left: 24rpx;
flex-shrink: 0;
margin-top: 16rpx;
}
.top { .top {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
.left { align-items: flex-start;
display: flex; margin-top: 20rpx;
align-items: center;
.title {
margin: 0 10rpx;
font-size: 32rpx;
font-weight: bold;
}
}
.right {
color: $u-tips-color;
}
}
.item {
display: flex;
margin: 20rpx 0 0;
.left {
margin-right: 20rpx;
image {
width: 200rpx;
height: 200rpx;
border-radius: 10rpx;
}
}
.content {
.title { .title {
font-size: 28rpx; font-size: 28rpx;
line-height: 50rpx; font-weight: 600;
color: #1a1a1a;
line-height: 38rpx;
flex: 1;
}
.date {
color: #999999;
font-size: 26rpx;
flex-shrink: 0;
position: absolute;
right: 30rpx;
top: 15rpx;
} }
} }
.right {
margin-left: 10rpx; .item {
padding-top: 20rpx; .content {
text-align: right; font-size: 26rpx;
line-height: 36rpx;
color: #666666;
letter-spacing: 0.5rpx;
margin-top: 10rpx;
} }
} }
} }
.wrap { .wrap {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
height: calc(100vh - var(--window-top)); height: calc(100vh - var(--window-top));
width: 100%; width: 100%;
background-color: #fafafa;
} }
.swiper-box {
flex: 1; .page-box {
} padding: 16rpx 0 40rpx 0;
.swiper-item {
height: 100%;
} }
</style> </style>

View File

@@ -18,12 +18,9 @@
:key="item.id" :key="item.id"
class="record-card" class="record-card"
> >
<!-- 顶部时间 + 状态 --> <!-- 资产名称和状态 -->
<view class="record-header"> <view class="card-header">
<view class="time-box"> <text class="asset-name">{{ item.assetName }}</text>
<u-icon name="clock" size="32" color="#999" />
<text class="record-time">{{ item.date }}</text>
</view>
<text <text
:class="['record-status', item.status]" :class="['record-status', item.status]"
> >
@@ -32,41 +29,40 @@
</view> </view>
<!-- 内容部分 --> <!-- 内容部分 -->
<view class="record-body"> <view class="card-content">
<!-- 资产名称 --> <!-- 预约时间 -->
<view class="info-line"> <view class="info-item">
<text class="info-text">资产名称{{ item.assetName }}</text> <text class="info-label">预约时间</text>
<text class="info-value">{{ formatDate(item.date) }}</text>
</view> </view>
<!-- 资产地址 + 查看位置按钮 --> <!-- 地址 -->
<view class="info-line"> <view class="info-item">
<text class="info-text">地址{{ item.assetAddress }}</text> <text class="info-label">地址</text>
<u-button <text class="info-value">{{ item.assetAddress }}</text>
class="map-btn" </view>
size="mini"
type="primary" <!-- 管家 -->
<view class="info-item">
<text class="info-label">管家</text>
<text class="info-value">{{ item.managerName }}{{ item.managerPhone }}</text>
</view>
</view>
<!-- 操作按钮 -->
<view class="action-buttons">
<button
class="location-btn"
@click="viewLocation(item)" @click="viewLocation(item)"
icon="map"
> >
查看位置 查看位置
</u-button> </button>
</view> <button
<!-- 管家信息 + 拨号按钮 -->
<view class="info-line">
<text class="info-text">
管家{{ item.managerName }}{{ item.managerPhone }}
</text>
<u-button
class="call-btn" class="call-btn"
size="mini"
type="success"
icon="phone"
@click="callManager(item.managerPhone)" @click="callManager(item.managerPhone)"
> >
拨打电话 拨打电话
</u-button> </button>
</view>
</view> </view>
</view> </view>
@@ -123,6 +119,19 @@ export default {
return '未知'; return '未知';
} }
}, },
formatDate(dateStr) {
// 格式化日期例如2025-11-10 周五 09:00
const date = new Date(dateStr);
const weekdays = ['周日', '周一', '周二', '周三', '周四', '周五', '周六'];
const year = date.getFullYear();
const month = String(date.getMonth() + 1).padStart(2, '0');
const day = String(date.getDate()).padStart(2, '0');
const weekday = weekdays[date.getDay()];
const hours = String(date.getHours()).padStart(2, '0');
const minutes = String(date.getMinutes()).padStart(2, '0');
return `${year}-${month}-${day} ${weekday} ${hours}:${minutes}`;
},
viewLocation(item) { viewLocation(item) {
uni.openLocation({ uni.openLocation({
latitude: item.lat, latitude: item.lat,
@@ -153,9 +162,9 @@ export default {
<style lang="scss" scoped> <style lang="scss" scoped>
.reserve-records { .reserve-records {
background: #f8f8f8; background: #f5f5f5;
min-height: 100vh; min-height: 100vh;
padding-top: 175rpx; /* 给导航栏留空间 */ padding-top: 120rpx; /* 给导航栏留空间 */
} }
.scroll-content { .scroll-content {
@@ -163,76 +172,107 @@ export default {
} }
.record-list { .record-list {
padding: 20rpx; padding: 30rpx 40rpx;
} }
.record-card { .record-card {
background: #fff; background: #fff;
border-radius: 16rpx; border-radius: 12rpx;
padding: 24rpx; padding: 32rpx;
margin-bottom: 20rpx; margin-bottom: 30rpx;
box-shadow: 0 4rpx 8rpx rgba(0, 0, 0, 0.05); box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.05);
} }
.record-header { .card-header {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
margin-bottom: 16rpx; margin-bottom: 24rpx;
}
.time-box { .asset-name {
display: flex; font-size: 32rpx;
align-items: center; font-weight: 500;
gap: 8rpx; color: #2D2B2C;
} }
.record-time { .record-status {
font-size: 28rpx;
color: #666;
}
.record-status {
font-size: 26rpx; font-size: 26rpx;
padding: 4rpx 14rpx; padding: 10rpx 15rpx;
border-radius: 24rpx; border-radius: 4rpx;
&.done { &.done {
background: #e8f5e9; background: #FCE5E0;
color: #4caf50; color: #ED7748;
} }
&.pending { &.pending {
background: #fffbe6; background: #F2F3F7;
color: #ff9800; color: #86868C;
}
} }
} }
.record-body { .card-content {
display: flex; margin-bottom: 32rpx;
flex-direction: column; }
gap: 16rpx;
.info-line { .info-item {
display: flex;
align-items: flex-start;
}
.info-item:last-child {
margin-bottom: 0;
}
.info-label {
font-size: 24rpx;
color: #666;
width: 120rpx;
flex-shrink: 0;
line-height: 44rpx;
}
.info-value {
font-size: 24rpx;
color: #333;
flex: 1;
line-height: 44rpx;
}
.action-buttons {
display: flex;
justify-content: flex-end;
gap: 20rpx;
margin-top: 32rpx;
padding-top: 32rpx;
border-top: 1rpx solid #f0f0f0;
}
.location-btn {
width: 220rpx;
height: 72rpx;
background: #fff;
color: #2D2B2C;
font-size: 28rpx;
border-radius: 8rpx;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: center;
gap: 10rpx; box-sizing: border-box;
border: 1px solid #222222;
}
.call-btn {
width: 220rpx;
height: 72rpx;
background: #ff3b30;
color: #fff;
font-size: 28rpx; font-size: 28rpx;
color: #333; border-radius: 8rpx;
display: flex;
.info-text { align-items: center;
flex: 1; justify-content: center;
line-height: 1.6; box-sizing: border-box;
} border: none;
u-icon {
flex-shrink: 0;
}
u-button {
flex-shrink: 0;
margin-left: 10rpx;
}
}
} }
.empty { .empty {