From d2617f11fc0051d272d1efe791fcc0752bd26f3b Mon Sep 17 00:00:00 2001 From: juwei001 <974220104@qq.com> Date: Wed, 3 Apr 2024 11:22:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=A3=E7=A0=81=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- subpages/businessRecord/businessRecord.js | 14 ++-- subpages/businessRecord/businessRecord.json | 3 +- subpages/businessRecord/businessRecord.wxml | 29 ++++++- subpages/businessRecord/businessRecord.wxss | 28 ++++++- .../pages/housePortrait/housePortrait.js | 43 ++++++++-- .../pages/housePortrait/housePortrait.json | 4 +- .../pages/housePortrait/housePortrait.wxml | 38 ++++++++- .../pages/housePortrait/housePortrait.wxss | 78 ++++++++++++++++++- 8 files changed, 210 insertions(+), 27 deletions(-) diff --git a/subpages/businessRecord/businessRecord.js b/subpages/businessRecord/businessRecord.js index 0e8df00..d54abeb 100644 --- a/subpages/businessRecord/businessRecord.js +++ b/subpages/businessRecord/businessRecord.js @@ -29,22 +29,24 @@ Page({ }], tabValue: '12345', data: {}, - residIds:["1704792537883688962","1705416782032064514"] + residIds:[], }, /** * 生命周期函数--监听页面加载 */ onLoad(options) { - + console.log('zoule') }, /** * 生命周期函数--监听页面初次渲染完成 */ onReady() { + const pages = getCurrentPages(); this.setData({ - tabValue: "12345" + tabValue: "12345", + residIds:[pages[1].options.resiId] }) this.show12345("12345"); }, @@ -53,7 +55,7 @@ Page({ * 生命周期函数--监听页面显示 */ onShow() { - + console.log('zoule') }, /** @@ -92,8 +94,10 @@ Page({ }, tabChange({currentTarget: {dataset:{index}}}) { + const pages = getCurrentPages(); this.setData({ - tabValue: index + tabValue: index, + residIds:[pages[1].options.resiId] }) if(index === "12345"){ this.show12345(index); diff --git a/subpages/businessRecord/businessRecord.json b/subpages/businessRecord/businessRecord.json index 3928faa..cdf14a7 100644 --- a/subpages/businessRecord/businessRecord.json +++ b/subpages/businessRecord/businessRecord.json @@ -1,3 +1,4 @@ { - "usingComponents": {} + "usingComponents": { + } } \ No newline at end of file diff --git a/subpages/businessRecord/businessRecord.wxml b/subpages/businessRecord/businessRecord.wxml index 123a522..961a028 100644 --- a/subpages/businessRecord/businessRecord.wxml +++ b/subpages/businessRecord/businessRecord.wxml @@ -9,15 +9,38 @@ - + 事件类型 事件描述 - - + + 不满意事项类型 + 不满意事项描述 + + + 需求类型 + 需求描述 + + + 需求类型 + 事件描述 + + + 打卡人 + 打卡地址 + 打卡时间 + + {{item.categorycode}} {{item.eventcontent}} + + + {{item.name}} + {{item.clockInAddress}} + {{item.clockInTime}} + + diff --git a/subpages/businessRecord/businessRecord.wxss b/subpages/businessRecord/businessRecord.wxss index dd9e0fa..7729eeb 100644 --- a/subpages/businessRecord/businessRecord.wxss +++ b/subpages/businessRecord/businessRecord.wxss @@ -2,10 +2,10 @@ display: flex; flex-wrap: wrap; /* 使得元素可以换行显示 */ margin: 0 -8rpx; - margin-bottom: 15px; + /* margin-bottom: 15px; */ } .tag-list .tag { - padding: 10rpx 20rpx; + padding: 0rpx 20rpx; font-size: 23rpx; margin: 10rpx 8rpx; text-align: center; /* 使标签文本居中 */ @@ -101,7 +101,7 @@ .header { font-weight: bold; - padding: 10px 0; + /* padding: 10px 0 0; */ } .cell { @@ -122,6 +122,28 @@ font-size: 23rpx; } + .cell1 { + flex: 1; + padding: 10px 0; + font-size: 23rpx; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + } + .cell1:nth-child(1) { + flex-basis: 20%; + font-size: 23rpx; + } + + .cell1:nth-child(2) { + flex-basis: 30%; + font-size: 23rpx; + } + .cell1:nth-child(2) { + flex-basis: 30%; + font-size: 23rpx; + } + .even { background-color: #f0f4fd; } diff --git a/subpages/house/pages/housePortrait/housePortrait.js b/subpages/house/pages/housePortrait/housePortrait.js index 37e115b..15ea7ff 100644 --- a/subpages/house/pages/housePortrait/housePortrait.js +++ b/subpages/house/pages/housePortrait/housePortrait.js @@ -7,6 +7,26 @@ Page({ */ data: { detail: {}, + logs: [ + { + "resiName": "栈-1-1-101-001", + "operatorName": "王显章6", + "type": "edit", + "typeName": "修改", + "beforeChange": "是否低保户:是,", + "afterChange": "是否低保户:否,", + "changeTime": "2024-02-21 16:43:05" + }, + { + "resiName": "栈-1-1-101-001", + "operatorName": "王显章6", + "type": "edit", + "typeName": "修改", + "beforeChange": "是否特殊人群:否,", + "afterChange": "是否特殊人群:是,", + "changeTime": "2024-02-20 17:58:27" + }, + ] }, /** @@ -14,18 +34,25 @@ Page({ */ onLoad(options) { this.setData({ - houseId:options.houseId + houseId: options.resiId }) this.getData() }, - getData() { + getData() {// this.data.houseId api.getClearHouseDeatilById(this.data.houseId).then((res) => { this.setData({ - detail: res.data - }) - }).catch((error) => { + detail: res.data + }) + }).catch((error) => { + }); + // this.data.houseId + api.getLogList({ resiId: this.data.houseId }).then((res) => { + this.setData({ + logs: res.data.list + }) + }).catch((error) => { console.error("发生错误:", error); - }); + }); }, /** * 生命周期函数--监听页面初次渲染完成 @@ -76,8 +103,8 @@ Page({ }, - gotopage({currentTarget: {dataset}}) { - const {url} = dataset + gotopage({ currentTarget: { dataset } }) { + const { url } = dataset console.log(url) wx.navigateTo({ url diff --git a/subpages/house/pages/housePortrait/housePortrait.json b/subpages/house/pages/housePortrait/housePortrait.json index f84455f..eeb4838 100644 --- a/subpages/house/pages/housePortrait/housePortrait.json +++ b/subpages/house/pages/housePortrait/housePortrait.json @@ -1,5 +1,7 @@ { "usingComponents": { - "BusinessRecord": "../../../businessRecord/businessRecord" + "BusinessRecord": "../../../businessRecord/businessRecord", + "van-steps": "@vant/weapp/steps/index", + "van-step": "@vant/weapp/steps/index" } } \ No newline at end of file diff --git a/subpages/house/pages/housePortrait/housePortrait.wxml b/subpages/house/pages/housePortrait/housePortrait.wxml index d1cb09f..87d57fe 100644 --- a/subpages/house/pages/housePortrait/housePortrait.wxml +++ b/subpages/house/pages/housePortrait/housePortrait.wxml @@ -36,14 +36,46 @@ 业务记录 - + 更新记录 - + + + + + + + {{item.typeName}}-{{item.operatorName}} + {{item.changeTime}} + + + + + 变更前: + {{item.beforeChange}} + + + 变更后: + {{item.afterChange}} + + + + + 操作人: + {{item.operatorName}} + + + 备注: + {{item.resiName}} + + + + + - + \ No newline at end of file diff --git a/subpages/house/pages/housePortrait/housePortrait.wxss b/subpages/house/pages/housePortrait/housePortrait.wxss index 9bd7bec..17bd75d 100644 --- a/subpages/house/pages/housePortrait/housePortrait.wxss +++ b/subpages/house/pages/housePortrait/housePortrait.wxss @@ -17,9 +17,10 @@ display: flex; align-items: center; margin-left: -30rpx; - margin-bottom: 39rpx; + margin-bottom: 12rpx; position: relative; } + .card .title:before { content: ''; display: block; @@ -29,6 +30,7 @@ border-radius: 4rpx; margin-right: 20rpx; } + .card .title .view { font-size: 28rpx; font-weight: 400; @@ -52,7 +54,7 @@ } .card .line { - display: flex; + display: flex; flex-wrap: nowrap; } @@ -62,4 +64,74 @@ color: #999999; margin-top: 20rpx; flex: 0 0 30%; -} \ No newline at end of file +} + +.logsBox { + border-left: 3rpx solid #DADEE5; + margin-left: -18rpx; + padding-left: 12rpx; +} + +.logs-top { + display: flex; + justify-content: space-between; + position: relative; + top: -32rpx; + padding-left: 12rpx; +} + +.logs-top-title { + height: 31rpx; + font-family: PingFang SC; + font-weight: 500; + font-size: 32rpx; + color: #333333; + line-height: 41rpx; +} + +.logs-top-time { + height: 20rpx; + font-family: PingFang SC; + font-weight: 500; + font-size: 26rpx; + color: #BDBDBD; + line-height: 40rpx; +} + +.logs-content { + position: relative; + top: -24rpx; + padding-top: 12rpx; + padding-bottom: 24rpx; + display: flex; + justify-content: space-between; + font-family: PingFang SC; + font-weight: 500; + font-size: 30rpx; + color: #999999; + line-height: 40rpx; +} + +.logs-content-title {} + +.logs-content-txt { + color: #333333; +} + +.item-dian { + position: relative; + left: -28rpx; + width: 20rpx; + height: 20rpx; + background: #FFFFFF; + border-radius: 50%; + border: 1px solid #3A80E7; + padding: 2rpx; +} + +.neidian { + width: 18rpx; + height: 18rpx; + background: #3A80E7; + border-radius: 50%; +}