From 946e9efdfa003dfec493baf39531dbf8ee2b59a4 Mon Sep 17 00:00:00 2001 From: "username@email.com" <819653817@qq.com> Date: Tue, 26 Mar 2024 18:01:15 +0800 Subject: [PATCH 1/3] no message --- app.json | 10 + components/custom-tab-bar/index.js | 9 + components/custom-tab-bar/index.wxml | 4 +- images/work2/Header.png | Bin 0 -> 2471 bytes images/work2/add_houses.png | Bin 0 -> 11684 bytes images/work2/add_record.png | Bin 0 -> 12561 bytes images/work2/add_resident.png | Bin 0 -> 12601 bytes images/work2/data.png | Bin 0 -> 11812 bytes images/work2/footer.png | Bin 0 -> 3766 bytes images/work2/rep_record.png | Bin 0 -> 9945 bytes images/work2/reporting.png | Bin 0 -> 8741 bytes images/work2/satisfaction.png | Bin 0 -> 11910 bytes images/work2/time.png | Bin 0 -> 4675 bytes images/work2/work2.png | Bin 0 -> 10664 bytes pages/work2/work2.js | 66 ++++ pages/work2/work2.json | 9 + pages/work2/work2.wxml | 83 +++++ pages/work2/work2.wxss | 517 +++++++++++++++++++++++++++ project.config.json | 3 +- project.private.config.json | 39 +- utils/config.js | 4 +- 21 files changed, 732 insertions(+), 12 deletions(-) create mode 100644 images/work2/Header.png create mode 100644 images/work2/add_houses.png create mode 100644 images/work2/add_record.png create mode 100644 images/work2/add_resident.png create mode 100644 images/work2/data.png create mode 100644 images/work2/footer.png create mode 100644 images/work2/rep_record.png create mode 100644 images/work2/reporting.png create mode 100644 images/work2/satisfaction.png create mode 100644 images/work2/time.png create mode 100644 images/work2/work2.png create mode 100644 pages/work2/work2.js create mode 100644 pages/work2/work2.json create mode 100644 pages/work2/work2.wxml create mode 100644 pages/work2/work2.wxss diff --git a/app.json b/app.json index 73e2567..7be07a0 100644 --- a/app.json +++ b/app.json @@ -4,6 +4,8 @@ "pages/logs/logs", "pages/login/login", "pages/work/work", + "pages/work2/work2", + "pages/work1/work1", "pages/information/information", "pages/mine/mine", "pages/webView/webView", @@ -20,6 +22,8 @@ "pages/addhouse/addhouse" ] }, + + { "root": "subpages/searchResult", "name": "searchResult", @@ -133,6 +137,12 @@ "iconPath": "images/home/work.png", "selectedIconPath": "images/home/workSelected.png" }, + { + "pagePath": "pages/work2/work2", + "text": "工作", + "iconPath": "images/home/work.png", + "selectedIconPath": "images/home/workSelected.png" + }, { "pagePath": "pages/statistics/statistics", "text": "统计", diff --git a/components/custom-tab-bar/index.js b/components/custom-tab-bar/index.js index 075ea51..ec6692c 100644 --- a/components/custom-tab-bar/index.js +++ b/components/custom-tab-bar/index.js @@ -24,6 +24,15 @@ Component({ show: true }, + , + { + "pagePath": "/pages/work2/work2", + "text": "工作", + "iconPath": "/images/home/work.png", + "selectedIconPath": "/images/home/workSelected.png", + show: true + + }, { "pagePath": "/pages/statistics/statistics", "text": "数据", diff --git a/components/custom-tab-bar/index.wxml b/components/custom-tab-bar/index.wxml index 712ebfe..6f9975a 100644 --- a/components/custom-tab-bar/index.wxml +++ b/components/custom-tab-bar/index.wxml @@ -1,7 +1,7 @@ - - + + + + + + + + + 海伦路街道 + + + + + + + + + 居民信息 + + + + + + + 新增居民信息 + 新增记录 + + + + + 房屋信息 + + + + + + + 新增房屋信息 + 新增记录 + + + + + + 服务信息 + + + + 诉求上报 + + + + 诉求上报记录 + + + + 满意度调查 + + + + + 数据 + + 数据 + + + + + + \ No newline at end of file diff --git a/pages/work2/work2.wxss b/pages/work2/work2.wxss new file mode 100644 index 0000000..cc9e630 --- /dev/null +++ b/pages/work2/work2.wxss @@ -0,0 +1,517 @@ +/* pages/work2/work2.wxss */ +.page { + /*定位方式为相对定位 */ + position: relative; + width: 750rpx; + height: 1546rpx; + /* 超过页面显示滑轮 */ + overflow: hidden; + display: flex; + /* 按照行排序 */ + flex-direction: column; +} +.box_1 { + height: 1546rpx; + background-size: 100% 100%; + display: flex; + flex-direction: column; + width: 750rpx; +} +.block_1 { + background: #1673ee; + width: 750rpx; + height: 298rpx; + display: flex; + flex-direction: column; +} +.box_2 { + background-color: rgba(247,247,247,1.000000); + border-radius: 20rpx; + /* 相对于父级进行定位 */ + position: absolute; + left: 0rpx; + top: 181rpx; + width: 750rpx; + height: 1365rpx; + display: flex; + flex-direction: column; + justify-content: flex-end; +} +.section_5 { + width: 750rpx; + height: 1395rpx; + display: flex; + flex-direction: column; +} +.header { + width: 699rpx; + height: 56rpx; + flex-direction: row; + display: flex; + margin: 100rpx 0 0 31rpx; +} +.label_1 { + width: 34rpx; + height: 31rpx; + margin-top: 11rpx; +} +.text_1 { + width: 157rpx; + height: 30rpx; + overflow-wrap: break-word; + color: rgba(255,255,255,1); + font-size: 32rpx; + font-family: PingFang-SC-Medium; + font-weight: 500; + text-align: left; + white-space: nowrap; + line-height: 42rpx; + margin: 13rpx 0 0 18rpx; +} +.image_2 { + width: 158rpx; + height: 56rpx; + margin-left: 332rpx; +} +.list_1 { + width: 710rpx; + height: 603rpx; + display: flex; + flex-direction: column; + justify-content: space-between; + margin: 43rpx 0 0 20rpx; +} +.section_1-0 { + background-color: rgba(255,255,255,1.000000); + border-radius: 20rpx; + height: 292rpx; + margin-bottom: 19rpx; + width: 710rpx; + display: flex; + flex-direction: column; +} +.text-wrapper_7-0 { + width: 134rpx; + height: 33rpx; + display: flex; + /* row水平排列 */ + flex-direction: row; + margin: 29rpx 0 0 29rpx; +} +.text_2-0 { + width: 134rpx; + height: 33rpx; + /* 文本换行 */ + overflow-wrap: break-word; + color: rgba(51,51,51,1); + font-size: 34rpx; + font-family: PingFang-SC-Bold; + font-weight: 700; + text-align: left; + white-space: nowrap; + line-height: 42rpx; +} +.image-wrapper_9-0 { + width: 303rpx; + height: 100rpx; + flex-direction: row; + display: flex; + justify-content: space-between; + margin: 40rpx 0 0 59rpx; +} +.image_12-0 { + width: 100rpx; + height: 100rpx; +} +.image_13-0 { + width: 100rpx; + height: 100rpx; +} +.text-wrapper_8-0 { + width: 336rpx; + height: 27rpx; + flex-direction: row; + display: flex; + justify-content: space-between; + margin: 23rpx 0 40rpx 31rpx; +} +.text_3-0 { + width: 166rpx; + height: 27rpx; + overflow-wrap: break-word; + color: rgba(51,51,51,1); + font-size: 28rpx; + font-family: PingFang-SC-Medium; + font-weight: 500; + text-align: left; + white-space: nowrap; + line-height: 28rpx; +} +.text_4-0 { + width: 109rpx; + height: 27rpx; + overflow-wrap: break-word; + color: rgba(51,51,51,1); + font-size: 28rpx; + font-family: PingFang-SC-Medium; + font-weight: 500; + text-align: left; + white-space: nowrap; + line-height: 28rpx; +} +.section_1-1 { + background-color: rgba(255,255,255,1.000000); + border-radius: 20rpx; + height: 292rpx; + margin-bottom: 19rpx; + width: 710rpx; + display: flex; + flex-direction: column; +} +.text-wrapper_7-1 { + width: 134rpx; + height: 33rpx; + display: flex; + flex-direction: row; + margin: 29rpx 0 0 29rpx; +} +.text_2-1 { + width: 134rpx; + height: 33rpx; + overflow-wrap: break-word; + color: rgba(51,51,51,1); + font-size: 34rpx; + font-family: PingFang-SC-Bold; + font-weight: 700; + text-align: left; + white-space: nowrap; + line-height: 42rpx; +} +.image-wrapper_9-1 { + width: 303rpx; + height: 100rpx; + flex-direction: row; + display: flex; + justify-content: space-between; + margin: 40rpx 0 0 59rpx; +} +.image_12-1 { + width: 100rpx; + height: 100rpx; +} +.image_13-1 { + width: 100rpx; + height: 100rpx; +} +.text-wrapper_8-1 { + width: 336rpx; + height: 27rpx; + flex-direction: row; + display: flex; + justify-content: space-between; + margin: 23rpx 0 40rpx 31rpx; +} +.text_3-1 { + width: 166rpx; + height: 27rpx; + overflow-wrap: break-word; + color: rgba(51,51,51,1); + font-size: 28rpx; + font-family: PingFang-SC-Medium; + font-weight: 500; + text-align: left; + white-space: nowrap; + line-height: 28rpx; +} +.text_4-1 { + width: 109rpx; + height: 27rpx; + overflow-wrap: break-word; + color: rgba(51,51,51,1); + font-size: 28rpx; + font-family: PingFang-SC-Medium; + font-weight: 500; + text-align: left; + white-space: nowrap; + line-height: 28rpx; +} +.group_5 { + background-color: rgba(255,255,255,1.000000); + border-radius: 20rpx; + width: 710rpx; + height: 292rpx; + display: flex; + flex-direction: column; + margin: 20rpx 0 0 20rpx; +} +.text_8 { + width: 134rpx; + height: 33rpx; + overflow-wrap: break-word; + color: rgba(51,51,51,1); + font-size: 34rpx; + font-family: PingFang-SC-Bold; + font-weight: 700; + text-align: left; + white-space: nowrap; + line-height: 42rpx; + margin: 29rpx 0 0 29rpx; +} +.list_2 { + width: 524rpx; + height: 150rpx; + flex-direction: row; + display: flex; + margin: 40rpx 0 40rpx 58rpx; +} +.list-items_1-0 { + width: 110rpx; + height: 150rpx; + margin-right: 66rpx; + display: flex; + flex-direction: column; + justify-content: space-between; +} +.image_14-0 { + width: 100rpx; + height: 100rpx; + margin-left: 5rpx; +} +.text_9-0 { + width: 165rpx; + height: 26rpx; + overflow-wrap: break-word; + color: rgba(51,51,51,1); + font-size: 28rpx; + font-family: PingFang-SC-Medium; + font-weight: 500; + text-align: left; + white-space: nowrap; + line-height: 28rpx; + margin-top: 24rpx; +} +.list-items_1-1 { + width: 110rpx; + height: 150rpx; + margin-right: 66rpx; + display: flex; + flex-direction: column; + justify-content: space-between; +} +.image_14-1 { + width: 100rpx; + height: 100rpx; + margin-left: 5rpx; +} +.text_9-1 { + width: 165rpx; + height: 26rpx; + overflow-wrap: break-word; + color: rgba(51,51,51,1); + font-size: 28rpx; + font-family: PingFang-SC-Medium; + font-weight: 500; + text-align: left; + white-space: nowrap; + line-height: 28rpx; + margin-top: 24rpx; +} +.list-items_1-2 { + width: 110rpx; + height: 150rpx; + margin-right: 66rpx; + display: flex; + flex-direction: column; + justify-content: space-between; +} +.image_14-2 { + width: 100rpx; + height: 100rpx; + margin-left: 5rpx; +} +.text_9-2 { + width: 165rpx; + height: 26rpx; + overflow-wrap: break-word; + color: rgba(51,51,51,1); + font-size: 28rpx; + font-family: PingFang-SC-Medium; + font-weight: 500; + text-align: left; + white-space: nowrap; + line-height: 28rpx; + margin-top: 24rpx; +} +.group_6 { + background-color: rgba(255,255,255,1.000000); + border-radius: 20rpx; + width: 710rpx; + height: 292rpx; + display: flex; + flex-direction: column; + margin: 20rpx 0 22rpx 20rpx; +} +.text_12 { + width: 66rpx; + height: 32rpx; + overflow-wrap: break-word; + color: rgba(51,51,51,1); + font-size: 34rpx; + font-family: PingFang-SC-Bold; + font-weight: 700; + text-align: left; + white-space: nowrap; + line-height: 42rpx; + margin: 30rpx 0 0 29rpx; +} +.image_15 { + width: 100rpx; + height: 100rpx; + margin: 40rpx 0 0 64rpx; +} +.text_13 { + width: 54rpx; + height: 26rpx; + overflow-wrap: break-word; + color: rgba(51,51,51,1); + font-size: 28rpx; + font-family: PingFang-SC-Medium; + font-weight: 500; + text-align: left; + white-space: nowrap; + line-height: 28rpx; + margin: 24rpx 0 40rpx 87rpx; +} +.group_7 { + box-shadow: 0px 7px 35px 0px rgba(226,232,234,0.440000); + background-color: rgba(255,255,255,1.000000); + width: 750rpx; + height: 96rpx; + margin-top: -1rpx; + flex-direction: row; + display: flex; + +} +.image-text_5 { + width: 45rpx; + height: 74rpx; + display: flex; + flex-direction: column; + justify-content: space-between; + margin: 14rpx 0 0 60rpx; +} +.label_4 { + width: 45rpx; + height: 45rpx; +} +.text-group_1 { + width: 39rpx; + height: 19rpx; + overflow-wrap: break-word; + color: rgba(51,51,51,1); + font-size: 20rpx; + font-family: PingFang-SC-Medium; + font-weight: 500; + text-align: left; + white-space: nowrap; + line-height: 42rpx; + margin: 10rpx 0 0 4rpx; +} +.image-text_6 { + width: 42rpx; + height: 71rpx; + display: flex; + flex-direction: column; + justify-content: space-between; + margin: 17rpx 0 0 141rpx; +} +.label_5 { + width: 42rpx; + height: 42rpx; +} +.text-group_2 { + width: 40rpx; + height: 19rpx; + overflow-wrap: break-word; + color: rgba(51,51,51,1); + font-size: 20rpx; + font-family: PingFang-SC-Medium; + font-weight: 500; + text-align: left; + white-space: nowrap; + line-height: 42rpx; + margin: 10rpx 0 0 1rpx; +} +.image-text_7 { + width: 42rpx; + height: 72rpx; + display: flex; + flex-direction: column; + justify-content: space-between; + margin: 16rpx 0 0 144rpx; +} +.group_8 { + height: 42rpx; + background: url(https://lanhu.oss-cn-beijing.aliyuncs.com/psb107itikvx7wanfoldvxanukh8hgavt1d771ff1-de09-48b8-b053-853d6d42d3b4) 100% no-repeat; + background-size: 100% 100%; + display: flex; + flex-direction: column; + width: 42rpx; +} +.box_4 { + background-image: linear-gradient(180deg, rgba(116,170,248,1.000000) 0, rgba(116,170,248,1.000000) 0, rgba(130,181,253,1.000000) 100.000000%, rgba(130,181,253,1.000000) 100.000000%); + border-radius: 4rpx; + height: 22rpx; + display: flex; + flex-direction: column; + width: 22rpx; + margin: -1rpx 0 0 21rpx; +} +.section_4 { + background-color: rgba(205,225,255,1.000000); + border-radius: 4rpx; + width: 14rpx; + height: 14rpx; + border: 2px solid rgba(225,236,253,1); + display: flex; + flex-direction: column; + margin: 4rpx 0 0 4rpx; +} +.text-group_3 { + width: 39rpx; + height: 19rpx; + overflow-wrap: break-word; + color: rgba(58,128,231,1); + font-size: 20rpx; + font-family: PingFang-SC-Bold; + font-weight: 700; + text-align: left; + white-space: nowrap; + line-height: 42rpx; + margin: 11rpx 0 0 2rpx; +} +.image-text_8 { + width: 54rpx; + height: 79rpx; + display: flex; + flex-direction: column; + justify-content: space-between; + margin: 9rpx 54rpx 0 168rpx; +} +.image_11 { + width: 54rpx; + height: 54rpx; +} +.text-group_4 { + width: 39rpx; + height: 19rpx; + overflow-wrap: break-word; + color: rgba(51,51,51,1); + font-size: 20rpx; + font-family: PingFang-SC-Medium; + font-weight: 500; + text-align: left; + white-space: nowrap; + line-height: 42rpx; + margin: 6rpx 0 0 10rpx; +} \ No newline at end of file diff --git a/project.config.json b/project.config.json index d6e1cf8..8873c38 100644 --- a/project.config.json +++ b/project.config.json @@ -55,5 +55,6 @@ "editorSetting": { "tabIndent": "insertSpaces", "tabSize": 4 - } + }, + "simulatorPluginLibVersion": {} } \ No newline at end of file diff --git a/project.private.config.json b/project.private.config.json index a1e1d7f..d032632 100644 --- a/project.private.config.json +++ b/project.private.config.json @@ -8,6 +8,38 @@ "condition": { "miniprogram": { "list": [ + { + "name": "pages/work2", + "pathName": "pages/work2/work2", + "query": "", + "launchMode": "default", + "scene": null, + "partialCompile": { + "enabled": true, + "pages": [] + } + }, + { + "name": "工作", + "pathName": "pages/work/work", + "query": "", + "launchMode": "default", + "scene": null + }, + { + "name": "pages/index/index", + "pathName": "pages/index/index", + "query": "", + "launchMode": "default", + "scene": null + }, + { + "name": "pages/test1/test1", + "pathName": "pages/test1/test1", + "query": "", + "launchMode": "default", + "scene": null + }, { "name": "subpages/statistics/pages/residentPortrait2/residentPortrait", "pathName": "subpages/statistics/pages/residentPortrait2/residentPortrait", @@ -218,13 +250,6 @@ "launchMode": "default", "scene": 1017 }, - { - "name": "工作", - "pathName": "pages/work/work", - "query": "", - "launchMode": "default", - "scene": null - }, { "name": "新增居民", "pathName": "subpages/addResi/pages/addResi/addResi", diff --git a/utils/config.js b/utils/config.js index ea6f599..ddfab2e 100644 --- a/utils/config.js +++ b/utils/config.js @@ -5,8 +5,8 @@ module.exports = { }; function BASEURL() { - return 'https://epmet-preview.elinkservice.cn/api/' // 演示环境 - // return 'http://192.168.1.144/api/' //测试环境 + // return 'https://epmet-preview.elinkservice.cn/api/' // 演示环境 + return 'http://192.168.1.144/api/' //测试环境 } From f522eb774dcaa481bdf6e95f7a8df8974085bec8 Mon Sep 17 00:00:00 2001 From: "username@email.com" <819653817@qq.com> Date: Wed, 27 Mar 2024 14:52:05 +0800 Subject: [PATCH 2/3] no message --- pages/index/index.js | 1 + pages/index/index.json | 4 + pages/login/login.js | 17 ++ pages/login/login.wxml | 5 +- pages/login/login.wxss | 4 + pages/work/work.wxss | 4 +- pages/work2/work2.js | 48 ++++ pages/work2/work2.wxml | 86 ++++--- pages/work2/work2.wxss | 456 ++++++++++-------------------------- project.private.config.json | 9 +- 10 files changed, 249 insertions(+), 385 deletions(-) diff --git a/pages/index/index.js b/pages/index/index.js index b9eb93b..6c1d703 100644 --- a/pages/index/index.js +++ b/pages/index/index.js @@ -4,6 +4,7 @@ const app = getApp() import api, {getIntelligentMessage,getToken,getStaffbasicinfo,clearMessage} from "../../utils/api" Page({ data: { + selectList:['全部消息','居民信息采集','房屋信息采集','社区满意度自查'], selectValue:0, pageSize:10, diff --git a/pages/index/index.json b/pages/index/index.json index 614568f..87ed097 100644 --- a/pages/index/index.json +++ b/pages/index/index.json @@ -1,10 +1,14 @@ { + "usingComponents": { + "load-more": "../../components/loadMore/loadMore", "no-data": "../../components/noData/nodata", "custom-tab-bar":"../../components/custom-tab-bar" }, + "navigationBarTitleText": "消息", + "enablePullDownRefresh": true, "backgroundColor": "#f8f8f8", "backgroundTextStyle": "dark" diff --git a/pages/login/login.js b/pages/login/login.js index 751bdbb..d4e9cb6 100644 --- a/pages/login/login.js +++ b/pages/login/login.js @@ -1,4 +1,5 @@ // pages/register/register.js +// 到入一个 import {userLoginlog} from "../../utils/api" Page({ @@ -63,20 +64,24 @@ Page({ }, handelBlurMobile(e){ this.setData({ + // 获取绑定过的值,付给fromData.mobile 'formData.mobile': e.detail.value }) console.log(this.data.formData) }, handelBlurPassword(e){ this.setData({ + // 获取绑定过的值,付给fromData.password 'formData.password': e.detail.value }) console.log(this.data.formData) }, handelClickSubmit(){ if(!this.data.formData.mobile){ + // 微信的轻量级api wx.showToast({ title: '请填写手机号', + // 不显示图标 icon:'none', duration:3000 }) @@ -86,27 +91,39 @@ Page({ wx.showToast({ title: '请输入密码', icon:'none', + // 提示时间为3s duration:3000 }) return } + //var和const的区别,一个可变,一个不可变, + // const 声明一个不可变的对象parm,并创建了对象 const parm = { + // wxCode对象的初始化 wxCode :'', + // ...将this.data.formData所有属性,赋值到表单中 ...this.data.formData } + // 轻量级api,在加载时进行显示 wx.showLoading({ title: '登录中', }) + //微信的api,获取登录凭证 + // 在这一步骤中,用户获取凭证 wx.login({ success: (res) => { parm.wxCode = res.code console.log(parm.wxCode); + // 调用登录的接口 userLoginlog(parm).then((res)=>{ console.log(res); + // 不明白这里判断的是什么 if(res.code == 0){ + // 用于跳转的api,跳转到某某某 wx.switchTab({ url: '/pages/index/index', }) + //加入本地内存的api wx.setStorageSync('token', res.data.token) } }).catch(err=>{ diff --git a/pages/login/login.wxml b/pages/login/login.wxml index 28dfb8c..bc897ee 100644 --- a/pages/login/login.wxml +++ b/pages/login/login.wxml @@ -11,10 +11,13 @@ diff --git a/pages/login/login.wxss b/pages/login/login.wxss index 986645b..0f813f3 100644 --- a/pages/login/login.wxss +++ b/pages/login/login.wxss @@ -1,12 +1,16 @@ /* pages/register/register.wxss */ page { + /*宽度为100% */ width: 100%; + /* 最小高度 */ min-height: 100vh; + /* 垂直方向.元素溢出时,显示滚动条 */ overflow-y: auto; } .header { height: 500rpx; width: 100%; + /*渐变色 */ background: linear-gradient(180deg, #1673ee 0%, #66A6FD 63%, #F7F7F7 100%); box-sizing: border-box; padding: 140rpx 0rpx 100rpx 50rpx; diff --git a/pages/work/work.wxss b/pages/work/work.wxss index b8df4bc..47e5a5d 100644 --- a/pages/work/work.wxss +++ b/pages/work/work.wxss @@ -62,8 +62,8 @@ page { width: 100%; display: flex; align-items: center; - justify-content: start; - color: #fff; + /* justify-content: start; */ + color: rgb(131, 80, 80); font-size: 32rpx; position: relative; padding-left: 20rpx; diff --git a/pages/work2/work2.js b/pages/work2/work2.js index 8a233b8..e3fa136 100644 --- a/pages/work2/work2.js +++ b/pages/work2/work2.js @@ -62,5 +62,53 @@ Page({ */ onShareAppMessage() { + }, + onAddResident(){ + wx.navigateTo({ + url: '../../subpages/addResi/pages/addResi/addResi', + }) + }, + onAddHouse(){ + wx.navigateTo({ + url: '../../subpages/addhouse/pages/addhouse/addhouse', + }) + }, + onBusinessRecord(){ + wx.navigateTo({ + url: '../../subpages/businessRecord/businessRecord', + }) + }, + onHistoryQuery(){ + wx.navigateTo({ + url: '../../subpages/communitySelfInsp/pages/historyQuery/historyQuery', + }) + }, + onFollowUpList(){ + wx.navigateTo({ + url: '../../subpages/communitySelfInsp/pages/followUpList/followUpList', + }) + }, + onMyTroubleshootDemand(){ + wx.navigateTo({ + url: '../../subpages/myTroubleshootDemand/pages/index/index', + }) + }, + onDemandCheck(){ + wx.navigateTo({ + url: '../../subpages/demandCheck/pages/dissatisfied/demandCheck/demandCheck', + }) + }, + onAddHouse(){ + wx.navigateTo({ + url: '../../subpages/communitySelfInsp/pages/followUpList/followUpList', + }) } + // onAddHouse(){ + // wx.navigateTo({ + // url: '../../subpages/addhouse/pages/addhouse/addhouse', + // }) + // }, + + + }) \ No newline at end of file diff --git a/pages/work2/work2.wxml b/pages/work2/work2.wxml index 86dda10..d08d5dc 100644 --- a/pages/work2/work2.wxml +++ b/pages/work2/work2.wxml @@ -1,11 +1,9 @@ - - - - - - 海伦路街道 + + + + 海伦路街道 @@ -16,65 +14,63 @@ 居民信息 - - - + + + + 新增居民信息 - - 新增居民信息 + + 新增记录 + - 房屋信息 - - - - + 房屋信息 - + + + 新增房屋信息 + + 新增记录 + + - - - - 服务信息 - - - - 诉求上报 - - - - 诉求上报记录 + + + 满意度调查 - - - 满意度调查 - - 数据 - + + 数据 + + + + + 数据 + + + diff --git a/pages/work2/work2.wxss b/pages/work2/work2.wxss index cc9e630..ae2c4d5 100644 --- a/pages/work2/work2.wxss +++ b/pages/work2/work2.wxss @@ -3,26 +3,46 @@ /*定位方式为相对定位 */ position: relative; width: 750rpx; - height: 1546rpx; + height: 1400rpx; /* 超过页面显示滑轮 */ overflow: hidden; display: flex; /* 按照行排序 */ flex-direction: column; } -.box_1 { - height: 1546rpx; - background-size: 100% 100%; +.header { display: flex; - flex-direction: column; - width: 750rpx; -} -.block_1 { background: #1673ee; - width: 750rpx; - height: 298rpx; - display: flex; + width: 100%; + height: 400rpx; flex-direction: column; + /* margin: 100rpx 0 0 31rpx; */ + height: 500rpx; + +} +.header>view{ + display:flex; + flex-direction: row; + justify-items:self-end; + margin: 130rpx 0 0 29rpx; + width: 100%; +} +.image_1 { + width: 34rpx; + height: 31rpx; +} +.text_1 { + /* width: 157rpx; + height: 30rpx; */ + overflow-wrap: break-word; + color: rgba(255,255,255,1); + font-size: 32rpx; + font-family: PingFang-SC-Medium; + font-weight: 500; + text-align: left; + white-space: nowrap; + line-height: 42rpx; + margin-left: 15rpx; } .box_2 { background-color: rgba(247,247,247,1.000000); @@ -43,31 +63,49 @@ display: flex; flex-direction: column; } -.header { - width: 699rpx; - height: 56rpx; - flex-direction: row; +.content_1{ display: flex; - margin: 100rpx 0 0 31rpx; + /* flex-direction: row; */ + justify-self:center; + margin: 40rpx 0 0 10rpx; + } -.label_1 { - width: 34rpx; - height: 31rpx; - margin-top: 11rpx; +.content_1>view{ + display: flex; + flex-direction: column; + align-items: center; + width: 250rpx; + height:210rpx; } -.text_1 { - width: 157rpx; - height: 30rpx; - overflow-wrap: break-word; - color: rgba(255,255,255,1); - font-size: 32rpx; - font-family: PingFang-SC-Medium; - font-weight: 500; - text-align: left; - white-space: nowrap; - line-height: 42rpx; - margin: 13rpx 0 0 18rpx; +.data{ + display: flex; + flex-direction: column; + margin: 40rpx 0 0 10rpx; + +} +.data >view{ + display: flex; + flex-direction: column; + align-items: center; + width: 303rpx; + height: 200rpx; +} + +.house{ + display: flex; + justify-content: start; + margin: 40rpx 0 0 10rpx; + +} +.house >view{ + display: flex; + flex-direction: column; + align-items: center; + width: 303rpx; + height: 200rpx; + } + .image_2 { width: 158rpx; height: 56rpx; @@ -90,6 +128,14 @@ display: flex; flex-direction: column; } +.image-wrapper_9-1{ + width: 404rpx; + height: 100rpx; + flex-direction: row; + display: flex; + justify-content: space-between; + margin: 40rpx 0 0 59rpx; +} .text-wrapper_7-0 { width: 134rpx; height: 33rpx; @@ -136,7 +182,6 @@ margin: 23rpx 0 40rpx 31rpx; } .text_3-0 { - width: 166rpx; height: 27rpx; overflow-wrap: break-word; color: rgba(51,51,51,1); @@ -146,9 +191,10 @@ text-align: left; white-space: nowrap; line-height: 28rpx; + margin-top: 15rpx; } .text_4-0 { - width: 109rpx; + /* width: 109rpx; */ height: 27rpx; overflow-wrap: break-word; color: rgba(51,51,51,1); @@ -158,37 +204,33 @@ text-align: left; white-space: nowrap; line-height: 28rpx; + margin-top: 15rpx; + } -.section_1-1 { - background-color: rgba(255,255,255,1.000000); - border-radius: 20rpx; - height: 292rpx; - margin-bottom: 19rpx; - width: 710rpx; - display: flex; - flex-direction: column; -} -.text-wrapper_7-1 { - width: 134rpx; - height: 33rpx; - display: flex; - flex-direction: row; - margin: 29rpx 0 0 29rpx; -} -.text_2-1 { - width: 134rpx; - height: 33rpx; +.text_5-0 { + width: 109rpx; + height: 27rpx; overflow-wrap: break-word; color: rgba(51,51,51,1); - font-size: 34rpx; - font-family: PingFang-SC-Bold; - font-weight: 700; - text-align: left; + font-size: 28rpx; + font-family: PingFang-SC-Medium; + font-weight: 500; + text-align: right; white-space: nowrap; - line-height: 42rpx; -} + line-height: 28rpx; + margin-top: 15rpx; + + } + .text-wrapper_8-1{ + width: 500rpx; + height: 27rpx; + flex-direction: row; + display: flex; + justify-content: space-between; + margin: 23rpx 0 40rpx 31rpx; + } .image-wrapper_9-1 { - width: 303rpx; + width: 500rpx; height: 100rpx; flex-direction: row; display: flex; @@ -198,159 +240,39 @@ .image_12-1 { width: 100rpx; height: 100rpx; + } .image_13-1 { width: 100rpx; height: 100rpx; } -.text-wrapper_8-1 { - width: 336rpx; - height: 27rpx; - flex-direction: row; - display: flex; - justify-content: space-between; - margin: 23rpx 0 40rpx 31rpx; -} -.text_3-1 { - width: 166rpx; - height: 27rpx; - overflow-wrap: break-word; - color: rgba(51,51,51,1); - font-size: 28rpx; - font-family: PingFang-SC-Medium; - font-weight: 500; - text-align: left; - white-space: nowrap; - line-height: 28rpx; -} -.text_4-1 { - width: 109rpx; - height: 27rpx; - overflow-wrap: break-word; - color: rgba(51,51,51,1); - font-size: 28rpx; - font-family: PingFang-SC-Medium; - font-weight: 500; - text-align: left; - white-space: nowrap; - line-height: 28rpx; -} -.group_5 { - background-color: rgba(255,255,255,1.000000); - border-radius: 20rpx; - width: 710rpx; - height: 292rpx; - display: flex; - flex-direction: column; - margin: 20rpx 0 0 20rpx; -} -.text_8 { - width: 134rpx; - height: 33rpx; - overflow-wrap: break-word; - color: rgba(51,51,51,1); - font-size: 34rpx; - font-family: PingFang-SC-Bold; - font-weight: 700; - text-align: left; - white-space: nowrap; - line-height: 42rpx; - margin: 29rpx 0 0 29rpx; -} -.list_2 { - width: 524rpx; - height: 150rpx; - flex-direction: row; - display: flex; - margin: 40rpx 0 40rpx 58rpx; -} -.list-items_1-0 { - width: 110rpx; - height: 150rpx; - margin-right: 66rpx; - display: flex; - flex-direction: column; - justify-content: space-between; -} -.image_14-0 { +.image_12-2{ width: 100rpx; height: 100rpx; - margin-left: 5rpx; -} -.text_9-0 { - width: 165rpx; - height: 26rpx; - overflow-wrap: break-word; - color: rgba(51,51,51,1); - font-size: 28rpx; - font-family: PingFang-SC-Medium; - font-weight: 500; - text-align: left; - white-space: nowrap; - line-height: 28rpx; - margin-top: 24rpx; } -.list-items_1-1 { - width: 110rpx; - height: 150rpx; - margin-right: 66rpx; - display: flex; - flex-direction: column; - justify-content: space-between; +.image_13-2{ + width: 100rpx; + height: 100rpx; } + + + + + + .image_14-1 { width: 100rpx; height: 100rpx; margin-left: 5rpx; } -.text_9-1 { - width: 165rpx; - height: 26rpx; - overflow-wrap: break-word; - color: rgba(51,51,51,1); - font-size: 28rpx; - font-family: PingFang-SC-Medium; - font-weight: 500; - text-align: left; - white-space: nowrap; - line-height: 28rpx; - margin-top: 24rpx; -} -.list-items_1-2 { - width: 110rpx; - height: 150rpx; - margin-right: 66rpx; - display: flex; - flex-direction: column; - justify-content: space-between; -} + .image_14-2 { width: 100rpx; height: 100rpx; margin-left: 5rpx; } -.text_9-2 { - width: 165rpx; - height: 26rpx; - overflow-wrap: break-word; - color: rgba(51,51,51,1); - font-size: 28rpx; - font-family: PingFang-SC-Medium; - font-weight: 500; - text-align: left; - white-space: nowrap; - line-height: 28rpx; - margin-top: 24rpx; -} -.group_6 { - background-color: rgba(255,255,255,1.000000); - border-radius: 20rpx; - width: 710rpx; - height: 292rpx; - display: flex; - flex-direction: column; - margin: 20rpx 0 22rpx 20rpx; -} + + .text_12 { width: 66rpx; height: 32rpx; @@ -367,10 +289,9 @@ .image_15 { width: 100rpx; height: 100rpx; - margin: 40rpx 0 0 64rpx; + } .text_13 { - width: 54rpx; height: 26rpx; overflow-wrap: break-word; color: rgba(51,51,51,1); @@ -380,138 +301,15 @@ text-align: left; white-space: nowrap; line-height: 28rpx; - margin: 24rpx 0 40rpx 87rpx; -} -.group_7 { - box-shadow: 0px 7px 35px 0px rgba(226,232,234,0.440000); - background-color: rgba(255,255,255,1.000000); - width: 750rpx; - height: 96rpx; - margin-top: -1rpx; - flex-direction: row; - display: flex; - -} -.image-text_5 { - width: 45rpx; - height: 74rpx; - display: flex; - flex-direction: column; - justify-content: space-between; - margin: 14rpx 0 0 60rpx; -} -.label_4 { - width: 45rpx; - height: 45rpx; -} -.text-group_1 { - width: 39rpx; - height: 19rpx; - overflow-wrap: break-word; - color: rgba(51,51,51,1); - font-size: 20rpx; - font-family: PingFang-SC-Medium; - font-weight: 500; - text-align: left; - white-space: nowrap; - line-height: 42rpx; - margin: 10rpx 0 0 4rpx; -} -.image-text_6 { - width: 42rpx; - height: 71rpx; - display: flex; - flex-direction: column; - justify-content: space-between; - margin: 17rpx 0 0 141rpx; -} -.label_5 { - width: 42rpx; - height: 42rpx; -} -.text-group_2 { - width: 40rpx; - height: 19rpx; - overflow-wrap: break-word; - color: rgba(51,51,51,1); - font-size: 20rpx; - font-family: PingFang-SC-Medium; - font-weight: 500; - text-align: left; - white-space: nowrap; - line-height: 42rpx; - margin: 10rpx 0 0 1rpx; -} -.image-text_7 { - width: 42rpx; - height: 72rpx; - display: flex; - flex-direction: column; - justify-content: space-between; - margin: 16rpx 0 0 144rpx; + margin-top: 15rpx; } -.group_8 { - height: 42rpx; - background: url(https://lanhu.oss-cn-beijing.aliyuncs.com/psb107itikvx7wanfoldvxanukh8hgavt1d771ff1-de09-48b8-b053-853d6d42d3b4) 100% no-repeat; - background-size: 100% 100%; - display: flex; - flex-direction: column; - width: 42rpx; -} -.box_4 { - background-image: linear-gradient(180deg, rgba(116,170,248,1.000000) 0, rgba(116,170,248,1.000000) 0, rgba(130,181,253,1.000000) 100.000000%, rgba(130,181,253,1.000000) 100.000000%); - border-radius: 4rpx; - height: 22rpx; - display: flex; - flex-direction: column; - width: 22rpx; - margin: -1rpx 0 0 21rpx; -} -.section_4 { - background-color: rgba(205,225,255,1.000000); - border-radius: 4rpx; - width: 14rpx; - height: 14rpx; - border: 2px solid rgba(225,236,253,1); - display: flex; - flex-direction: column; - margin: 4rpx 0 0 4rpx; -} -.text-group_3 { - width: 39rpx; - height: 19rpx; - overflow-wrap: break-word; - color: rgba(58,128,231,1); - font-size: 20rpx; - font-family: PingFang-SC-Bold; - font-weight: 700; - text-align: left; - white-space: nowrap; - line-height: 42rpx; - margin: 11rpx 0 0 2rpx; -} -.image-text_8 { - width: 54rpx; - height: 79rpx; - display: flex; - flex-direction: column; - justify-content: space-between; - margin: 9rpx 54rpx 0 168rpx; -} -.image_11 { - width: 54rpx; - height: 54rpx; + } -.text-group_4 { - width: 39rpx; - height: 19rpx; - overflow-wrap: break-word; - color: rgba(51,51,51,1); - font-size: 20rpx; - font-family: PingFang-SC-Medium; - font-weight: 500; - text-align: left; - white-space: nowrap; - line-height: 42rpx; - margin: 6rpx 0 0 10rpx; -} \ No newline at end of file + + + + + + + + diff --git a/project.private.config.json b/project.private.config.json index d032632..84f563f 100644 --- a/project.private.config.json +++ b/project.private.config.json @@ -9,7 +9,7 @@ "miniprogram": { "list": [ { - "name": "pages/work2", + "name": "工作2", "pathName": "pages/work2/work2", "query": "", "launchMode": "default", @@ -33,13 +33,6 @@ "launchMode": "default", "scene": null }, - { - "name": "pages/test1/test1", - "pathName": "pages/test1/test1", - "query": "", - "launchMode": "default", - "scene": null - }, { "name": "subpages/statistics/pages/residentPortrait2/residentPortrait", "pathName": "subpages/statistics/pages/residentPortrait2/residentPortrait", From 1d3dd55b9fe69faf20796a896e597b7d7446404a Mon Sep 17 00:00:00 2001 From: mk <2403457699@qq.com> Date: Wed, 27 Mar 2024 14:57:17 +0800 Subject: [PATCH 3/3] =?UTF-8?q?=E8=AF=AD=E6=B3=95=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/work2/work2.wxss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/work2/work2.wxss b/pages/work2/work2.wxss index ae2c4d5..6ef5b53 100644 --- a/pages/work2/work2.wxss +++ b/pages/work2/work2.wxss @@ -304,7 +304,7 @@ margin-top: 15rpx; } -} +