From 41c8e18d3f4b1d9bc582c7e25407169cd0962ad0 Mon Sep 17 00:00:00 2001 From: itgaojian Date: Thu, 7 Dec 2023 15:45:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A1=88=E4=BB=B6=E4=B8=8A=E6=8A=A5=E3=80=81?= =?UTF-8?q?=E6=A1=88=E4=BB=B6=E6=A3=80=E6=9F=A5=E3=80=81=E4=B8=8A=E6=8A=A5?= =?UTF-8?q?=E5=8E=86=E5=8F=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.json | 106 +++---- images/ic_clock_icon.png | Bin 0 -> 976 bytes images/ic_issue_state_title_icon.png | Bin 0 -> 3662 bytes images/position_white.png | Bin 0 -> 635 bytes pages/caseCheck/caseCheck.js | 409 ++++++++++++--------------- pages/caseCheck/caseCheck.json | 3 +- pages/caseCheck/caseCheck.wxml | 183 ++++++------ pages/caseCheck/caseCheck.wxss | 401 ++++++++++++++++---------- pages/caseDetail/caseDetail.js | 184 +++++------- pages/caseDetail/caseDetail.json | 3 +- pages/caseDetail/caseDetail.wxml | 79 ++++-- pages/caseDetail/caseDetail.wxss | 359 ++++++++++++++++++----- pages/caseHistory/caseHistory.js | 135 +++++++++ pages/caseHistory/caseHistory.json | 8 + pages/caseHistory/caseHistory.wxml | 21 ++ pages/caseHistory/caseHistory.wxss | 113 ++++++++ pages/index/index.js | 8 +- pages/process/process.json | 3 +- pages/waitCheck/waitCheck.js | 253 ++++++++--------- pages/waitCheck/waitCheck.json | 7 +- pages/waitCheck/waitCheck.wxml | 51 ++-- pages/waitCheck/waitCheck.wxss | 197 ++++++------- utils/checkutils.wxs | 30 +- 23 files changed, 1562 insertions(+), 991 deletions(-) create mode 100644 images/ic_clock_icon.png create mode 100644 images/ic_issue_state_title_icon.png create mode 100644 images/position_white.png create mode 100644 pages/caseHistory/caseHistory.js create mode 100644 pages/caseHistory/caseHistory.json create mode 100644 pages/caseHistory/caseHistory.wxml create mode 100644 pages/caseHistory/caseHistory.wxss diff --git a/app.json b/app.json index 9abda0c..8ddaa69 100644 --- a/app.json +++ b/app.json @@ -1,54 +1,56 @@ { - "pages": [ - "pages/index/index", - "pages/caseCheck/caseCheck", - "pages/caseReport/caseReport", - "pages/caseDetail/caseDetail", - "pages/process/process", - "pages/waitCheck/waitCheck", - "pages/census/census", - "pages/mine/mine", - "pages/censusinput/censusinput", - "pages/chooseArea/chooseArea", - "pages/censusDetail/censusDetail", - "pages/censusEdit/censusEdit" - ], - "window": { - "backgroundTextStyle": "light", - "navigationBarBackgroundColor": "#4583FE", - "navigationBarTitleText": "包头高新网格化", - "navigationBarTextStyle": "white" - }, - "style": "v2", - "sitemapLocation": "sitemap.json", - "permission": { - "scope.userLocation": { - "desc": "你的位置信息将用于小程序位置接口的效果展示" - } - }, - "requiredPrivateInfos": [ - "getLocation" - ], - "usingComponents": { - "scroller": "components/coolui-scroller/scroller/index" - }, - "tabBar": { - "color": "#000", - "borderStyle": "white", - "selectedColor": "#4583FE", - "backgroundColor": "#F8F8F8", - "list": [{ - "pagePath": "pages/index/index", - "iconPath": "images/ic_home_nomarl_icon.png", - "text": "首页", - "selectedIconPath": "images/ic_home_sel_icon.png" - }, - { - "pagePath": "pages/mine/mine", - "iconPath": "images/ic_mine_nomarl_icon.png", - "text": "我的", - "selectedIconPath": "images/ic_mine_sel_icon.png" - } - ] - } + "pages": [ + "pages/index/index", + "pages/caseCheck/caseCheck", + "pages/caseReport/caseReport", + "pages/caseDetail/caseDetail", + "pages/process/process", + "pages/waitCheck/waitCheck", + "pages/census/census", + "pages/mine/mine", + "pages/censusinput/censusinput", + "pages/chooseArea/chooseArea", + "pages/censusDetail/censusDetail", + "pages/censusEdit/censusEdit", + "pages/caseHistory/caseHistory" + ], + "window": { + "backgroundTextStyle": "light", + "navigationBarBackgroundColor": "#4583FE", + "navigationBarTitleText": "包头高新网格化", + "navigationBarTextStyle": "white" + }, + "style": "v2", + "sitemapLocation": "sitemap.json", + "permission": { + "scope.userLocation": { + "desc": "你的位置信息将用于小程序位置接口的效果展示" + } + }, + "requiredPrivateInfos": [ + "getLocation" + ], + "usingComponents": { + "scroller": "components/coolui-scroller/scroller/index" + }, + "tabBar": { + "color": "#000", + "borderStyle": "white", + "selectedColor": "#4583FE", + "backgroundColor": "#F8F8F8", + "list": [ + { + "pagePath": "pages/index/index", + "iconPath": "images/ic_home_nomarl_icon.png", + "text": "首页", + "selectedIconPath": "images/ic_home_sel_icon.png" + }, + { + "pagePath": "pages/mine/mine", + "iconPath": "images/ic_mine_nomarl_icon.png", + "text": "我的", + "selectedIconPath": "images/ic_mine_sel_icon.png" + } + ] + } } \ No newline at end of file diff --git a/images/ic_clock_icon.png b/images/ic_clock_icon.png new file mode 100644 index 0000000000000000000000000000000000000000..5c58d39c3d8b628658c5f7252befc9138d558d10 GIT binary patch literal 976 zcmeAS@N?(olHy`uVBq!ia0vp^x**KK3=%maw1RrH&mtcJky& zpa{@3AQxgRgbUOH6alhNpFTa0KmHytq>@U4{DK+&zc_I6_4~)4?62OrxL5zH9na%&M{n$+Ih$n=7w#DmGEnyywMl{8xUyh$^qNWZ$&bjc#>X zQH96axwrDjGWqaziRDh@6poP-bu@CfkysX}6xw!s7BGIkd%8G=RLt2sCEfXufk4~u zO*)G@6r7JTzT5jf%%$+X?f?JtKU`X}B{S%i`aS>mvGcZFKdtIEd8+5q%P&Ko*=MX0 zVhgX%TxB@xtr_bnQEB^cspajgCIRm>`8n?YUDE#8aNDhE-d#WTUN|MR&{5Xr*tD)p z&F_Y%CfRGvN&Y!$lHP_dGt8?GoSJ+6s`%2WahBySD^JY*R<0NMwfo%}SMCWr3Lnk< z&?Efj!tM4uU+fa{c0LktTDM|9w?*M0*I!}x{%-M+{=UWk_SX#N7ZbC-UT|ZYvH34o zt>--^{aRj~oBPB$yt}z_br}C1x>T{F&dK{dqwt}i-(pNJ%pXkHox8v_E;y4p;mRL8&pU%0|`0>K341wP}UOSmg z=sPHq=kap;qRjM38FB7RFN6xTbK-J$gy$ZZxIuE4)SGO__5KP~sqFk&{Hb%9c2;fJ z{ETOb-)V>T7xKcqDTPPH?=4Z>`h4okiG7pmbwk?kv^w5;R46}#&pRj9FZ5>X+f{4V z#opSzb%(jNn4aG}`fbg=mUBjX8xZu;{P! z;Tf+tsNL$Rxvr*sr+t;3&dcm(<86!B)BhO+?-5vbRzdZgdzkd%ZOek^v6(y8JB2Dq Ubeb*C112~IPgg&ebxsLQ09Pa@NdN!< literal 0 HcmV?d00001 diff --git a/images/ic_issue_state_title_icon.png b/images/ic_issue_state_title_icon.png new file mode 100644 index 0000000000000000000000000000000000000000..60d011e305d9439bc7ba88815f311bccf4cb4054 GIT binary patch literal 3662 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 literal 0 HcmV?d00001 diff --git a/images/position_white.png b/images/position_white.png new file mode 100644 index 0000000000000000000000000000000000000000..3da9d9b831b10ad2841d3e42c531a35dc17f5f8d GIT binary patch literal 635 zcmeAS@N?(olHy`uVBq!ia0vp^1|ZDA3?vioaBc-sD*}8%T!Hlep#YSx+vWn@YEcs8 z7tHX#*X^qU^Dcn{o)e^0?;qJ{?D(Yp?eov#uNo{b1tf)^`tVESdfK_@Ek2L_I`6T* zGADg8YcbEt;P~(?pnn;?JY5_^D(2js`Z}t~L7=VNva?;m33FGJ3X8`&3?tD1*eQf)V9b3Ep?r0C}I;8)*IB6Uaw+$_0>crjVqaz#d<6o_g=3O zpS$OR$@iNl0?f0_zW@E{6aRSe_U6r1K2i>jHHA*XpC5G!f6z$1nY8cR$E40yQSA=C zM;{fQN-93Qtn?!9^`F}n6JtIK-`DDp4?YmQ@UndTr@8xu4*t2e;_~t3A2vQ{Uo>OG zg&tQ{JL#3CALCB)1+uC1too>Av3>n1?k6+n{fp|3O?BKMc|X~o@l^TAGqLFh{tD+Q avOl`dS31}IZ5A+Q7(8A5T-G@yGywq9h - - - {{caseDetail.communityName}} - 待处理 - - - {{caseDetail.caseContent}} - 上报时间:{{caseDetail.reportDate}} - 上报类型:{{caseDetail.caseTypeName}} - 上报人员:{{caseDetail.caseReporter}} - - - - - - {{caseDetail.casePosition}} - - - - - - - 案件处理详情 - - 处理人员:{{caseDetail.handleUserName}} - 处理时间:{{caseDetail.handleCreateTime}} - {{caseDetail.handleOpinion}} - - - - - - - *案件处理详情 - - - - - - 是否合格 - - - - - - - - - 处理满意度 - - - - - - - - - - - - - - - - - - - - - - - 确认处理 - - \ No newline at end of file + + + + {{tools.status(caseDetail.caseStatus)}} + + + + + + {{caseDetail.communityName}} + {{caseDetail.reportDate}} + + + {{caseDetail.caseContent}} + 上报类型:{{caseDetail.caseTypeName}} + 上报人员:{{caseDetail.caseReporter}} + + + + + + + + + + + {{caseDetail.casePosition}} + + + + + + + 案件处理详情 + + + 处理人员:{{caseDetail.handleUserName}} + 处理时间:{{caseDetail.handleCreateTime}} + {{caseDetail.handleOpinion}} + + + + + + + + + 案件检查 + + + + + + + 是否合格 + + + + + + + + + 处理满意度 + + + 非常不满意 + 不满意 + 一般 + 满意 + 非常满意 + + + + + + + + + + + + + + + + 确认处理 + + + \ No newline at end of file diff --git a/pages/caseCheck/caseCheck.wxss b/pages/caseCheck/caseCheck.wxss index 6fe6cdf..478a282 100644 --- a/pages/caseCheck/caseCheck.wxss +++ b/pages/caseCheck/caseCheck.wxss @@ -1,180 +1,293 @@ -page{ - background: #f2f1f6; +page { + background: #f2f1f6; } -.check{ - padding: 20rpx; + +.check { + padding: 20rpx; + position: fixed; + top: 70px; + width: 95%; + border-radius: 20px; } -.case-info{ - background: #fff; - border-radius: 10rpx; - padding: 20rpx; - margin-bottom: 15rpx; + +.case-info { + background: #fff; + border-radius: 10rpx; + padding: 20rpx; + margin-bottom: 15rpx; } -.title-status{ - display: flex; - justify-content: space-between; - margin-bottom: 10rpx; + +.title-status { + display: flex; + justify-content: space-between; + margin-bottom: 10rpx; } -.title{ - font-size: 36rpx; - line-height: 60rpx; - display: inline-block; - max-width: 65%; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; - color: #06a3f6; + +.radio-btns { + display: flex; + flex-direction: column; + justify-content: flex-start; + align-items: center; } -.status{ - line-height: 60rpx; - display: inline-block; - padding: 0 30rpx; - background: #fff7ec; - color: #fdc36e; - border-radius: 30rpx; + +.radio-btns radio { + width: 100%; + margin-left: -25px; } -.status.green{ - color: #2dfe2e; - background: rgba(45,254,46,0.1) + +.title { + font-size: 36rpx; + line-height: 60rpx; + display: inline-block; + max-width: 65%; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + color: #000000; } -.status.red{ - color: red; - background: rgba(255,0,0,0.1) + +.status { + line-height: 60rpx; + display: inline-block; + padding: 0 30rpx; + color: #FFFFFF; } -.row{ - border-bottom: 1px dashed #EEE; - font-size: 32rpx; - color: #888; - line-height: 60rpx; + +.status.green { + color: #2dfe2e; + background: rgba(45, 254, 46, 0.1) } -.photo{ - margin: 50rpx 0; + +.status.red { + color: red; + background: rgba(255, 0, 0, 0.1) } -.photo image{ - width: 140rpx; - height: 140rpx; - margin-right: 10rpx; - margin-bottom: 10rpx; + +.row { + font-size: 14px; + color: #101010; + line-height: 60rpx; } -.position{ - font-size: 36rpx; - color: #06a3f6; - margin-bottom: 10rpx; + +.row-desc { + color: #9A9A9A; } -.map-box map{ - width: 100%; - height: 400rpx; + +.title-date { + font-size: 12px; + color: #101010; } -.handle-info{ - border-radius: 10rpx; - background: #fff; - margin-top: 15rpx; - padding: 20rpx 20rpx 10rpx; + +.photo { + margin: 50rpx 0; } -.handle-photo{ - margin: 20rpx 0 0; + +.photo image { + width: 140rpx; + height: 140rpx; + margin-right: 10rpx; + margin-bottom: 10rpx; } -.handle-title{ - font-size: 36rpx; - color: #888; + +.position { + font-size: 14px; } -.handle-title text{ - color: red; + +.position-box { + position: absolute; + bottom: 0; + width: 100%; + padding: 5px 2px; + color: #FFFFFF; + background-color: rgba(0, 0, 0, .65); + display: flex; + flex-direction: row; + align-items: center; + justify-content: flex-start; } -.check-box{ - padding: 20rpx; - background: #fff; - border-radius: 10rpx; - margin-top: 15rpx; + +.position-box image { + width: 20px; + height: 20px; } -.check-content{ - background: #f2f1f6; - margin-bottom: 20rpx; + +.map-box map { + width: 100%; + height: 400rpx; } -.check-content textarea{ - width: 100%; - height: 300rpx; - padding: 15rpx; - box-sizing: border-box; + +.map { + width: 100%; + height: 400rpx; + position: relative; } -.qualified{ - display: flex; - justify-content: space-between; - background: #f2f1f6; - padding: 15rpx; + +.handle-info { + border-radius: 10rpx; + background: #fff; + margin-top: 15rpx; + padding: 20rpx 20rpx 10rpx; } -.qualified label{ - margin-right: 20rpx; + + +.handle-photo { + margin: 20rpx 0 0; } -.qualified label:last-child{ - margin-right: 0; + +.handle-title { + color: #000000; + display: flex; + flex-direction: row; + justify-content: flex-start; + align-items: center; + padding: 5px 0px 0px 5px; } -.satisfied{ - margin-top: 15rpx; - background: #f2f1f6; - padding: 15rpx; + +.form-head-line { + height: 15px; + width: 6px; + background-color: #4985f8; + margin-right: 5px; } -.satisfied-title{ - font-size: 36rpx; + +radio { + transform: scale(.8); } -.satisfied-box label{ - display: block; - margin-top: 15rpx; + +.handle-title text { + color: red; } -.choose-photo{ - margin-top: 15rpx; + +.handle { + background-color: #FFFFFF; } -.choose-photo .img-box{ - width: 32%; - height: 140rpx; - margin-right: 2%; - margin-bottom: 10rpx; - position: relative; - display: inline-block; + +.check-box { + padding: 20rpx; + background: #fff; + border-radius: 10rpx; + margin-top: 15rpx; } -.img-box image{ - width: 100%; - height: 100%; + +.check-content { + background: #f2f1f6; + margin-bottom: 20rpx; } -.img-box .delete-btn{ - position: absolute; - top: -10rpx; - right: -10rpx; - width: 40rpx; - height: 40rpx; + +.check-content textarea { + width: 100%; + height: 300rpx; + padding: 15rpx; + box-sizing: border-box; } -.choose-photo .img-box:nth-child(3n){ - margin-right: 0; + +.qualified { + display: flex; + justify-content: space-between; + font-size: 14px; + padding: 5px 0px; } -.photo-main{ - background: none; - padding: 0; + +.qualified label { + margin-right: 20rpx; } -.add{ - display: inline-block; - width: 32%; - height: 140rpx; - background: #f1f1f6; - position: relative; + +.qualified label:last-child { + margin-right: 0; } -.add image{ - position: absolute; - top: 50%; - left: 50%; - transform: translate(-50%, -50%); - width: 60rpx; - height: 60rpx; + +.satisfied { + padding: 5px 0px; + font-size: 14px; } -.submit{ - width: 710rpx; - height: 100rpx; - background: #008cff; - line-height: 100rpx; - text-align: center; - color: #fff; - border-radius: 10rpx; - margin: 15rpx auto; + +.satisfied-title { + font-size: 14px; } -.check-container{ - margin-top: 15rpx; + +.satisfied-box label { + display: block; + margin-top: 15rpx; +} + +.choose-photo { + margin-top: 15rpx; +} + +.choose-photo .img-box { + width: 32%; + height: 140rpx; + margin-right: 2%; + margin-bottom: 10rpx; + position: relative; + display: inline-block; +} + +.img-box image { + width: 100%; + height: 100%; +} + +.img-box .delete-btn { + position: absolute; + top: -10rpx; + right: -10rpx; + width: 40rpx; + height: 40rpx; +} + +.choose-photo .img-box:nth-child(3n) { + margin-right: 0; +} + +.photo-main { + background: none; + padding: 0; +} + +.add { + display: inline-block; + width: 32%; + height: 140rpx; + background: #f1f1f6; + position: relative; +} + +.add image { + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + width: 60rpx; + height: 60rpx; +} + +.submit { + width: 710rpx; + height: 100rpx; + background: #008cff; + line-height: 100rpx; + text-align: center; + color: #fff; + border-radius: 10rpx; + margin: 15rpx auto; +} + +.check-container { + margin-top: 15rpx; + background-color: #FFFFFF; +} + +.title-box { + display: flex; + flex-direction: row; + background-color: #4583fe; + height: 100px; + align-items: center; + padding-left: 10px; +} + +.title-box image { + width: 32px; + height: 32px; } \ No newline at end of file diff --git a/pages/caseDetail/caseDetail.js b/pages/caseDetail/caseDetail.js index 4d5932e..28833c8 100644 --- a/pages/caseDetail/caseDetail.js +++ b/pages/caseDetail/caseDetail.js @@ -4,120 +4,76 @@ var bmap = require('../../lib/bmap-wx.js'); // pages/caseDetail/caseDetail.js Page({ - /** - * 页面的初始数据 - */ - data: { - requestUrl: app.requestUrl, - token: '', - caseId: '', - caseDetail: {}, - longitude: '', - latitude: '', - markers: [], - imageList: [] - }, - // 获取详情 - getDetail: function () { - var self = this - app.restAjax.get(app.restAjax.path('{reqesutUrl}app/reportcase/getreportcase/' + self.data.caseId, [app.requestUrl]), {}, { - headers: { - token: self.data.token - } - }, function (code, data) { - var imgArr - imgArr = data.casePhotos.split(',') - var arr = [{longitude: data.caseLongitude,latitude: data.caseLatitude,iconPath:'../../images/marker_red.png',width:'25px',height: '30px'}] - // varwxMarkerData = arr; - self.setData({ - markers: arr - }); - self.setData({ - caseDetail: data, - longitude: data.caseLongitude, - latitude: data.caseLatitude, - imageList: imgArr - }) - }); - }, - // 查看流程 - goProcess: function () { - var self = this - wx.navigateTo({ - url: '../process/process?id=' + self.data.caseId, - }) - }, - /** - * 生命周期函数--监听页面加载 - */ - onLoad: function (options) { - var self = this - this.setData({ - caseId: options.id - }) - wx.getStorage({ - key: 'token', - success: function (res) { - self.setData({ - token: res.data - }) - self.getDetail() - } - }) - - var BMap = new bmap.BMapWX({ - ak: 'Zk732rbyjd327q7Zj9EOtRjUn2ED1GWK' - }); - + /** + * 页面的初始数据 + */ + data: { + requestUrl: app.requestUrl, + token: '', + caseId: '', + caseDetail: {}, + longitude: '', + latitude: '', + markers: [], + imageList: [], + scrollHeight: 0, + }, + // 获取详情 + getDetail: function () { + var self = this + app.restAjax.get(app.restAjax.path('{reqesutUrl}app/reportcase/getreportcase/' + self.data.caseId, [app.requestUrl]), {}, { + headers: { + token: self.data.token + } + }, function (code, data) { + var imgArr, handleArr + imgArr = data.casePhotos.split(',') + handleArr = data.handlePhotos.split(',') + var arr = [{ longitude: data.caseLongitude, latitude: data.caseLatitude, iconPath: '../../images/marker_red.png', width: '25px', height: '30px', id: 0 }] + self.setData({ + markers: arr + }); + self.setData({ + caseDetail: data, + longitude: data.caseLongitude, + latitude: data.caseLatitude, + imageList: imgArr, + handleList: handleArr + }) + }); + }, + // 查看流程 + goProcess: function () { + var self = this + wx.navigateTo({ + url: '../process/process?id=' + self.data.caseId, + }) + }, + /** + * 生命周期函数--监听页面加载 + */ + onLoad: function (options) { + var self = this + this.setData({ + caseId: options.id + }) + wx.getStorage({ + key: 'token', + success: function (res) { + self.setData({ + token: res.data + }) + self.getDetail() + } + }) - }, + var BMap = new bmap.BMapWX({ + ak: 'Zk732rbyjd327q7Zj9EOtRjUn2ED1GWK' + }); + let screenHeight = wx.getSystemInfoSync().windowHeight; + this.setData({ + scrollHeight: screenHeight - 75 + }) - /** - * 生命周期函数--监听页面初次渲染完成 - */ - onReady: function () { - - }, - - /** - * 生命周期函数--监听页面显示 - */ - onShow: function () { - - }, - - /** - * 生命周期函数--监听页面隐藏 - */ - onHide: function () { - - }, - - /** - * 生命周期函数--监听页面卸载 - */ - onUnload: function () { - - }, - - /** - * 页面相关事件处理函数--监听用户下拉动作 - */ - onPullDownRefresh: function () { - - }, - - /** - * 页面上拉触底事件的处理函数 - */ - onReachBottom: function () { - - }, - - /** - * 用户点击右上角分享 - */ - onShareAppMessage: function () { - - } + }, }) \ No newline at end of file diff --git a/pages/caseDetail/caseDetail.json b/pages/caseDetail/caseDetail.json index 8835af0..08854de 100644 --- a/pages/caseDetail/caseDetail.json +++ b/pages/caseDetail/caseDetail.json @@ -1,3 +1,4 @@ { - "usingComponents": {} + "usingComponents": {}, + "navigationBarTitleText": "案件详情" } \ No newline at end of file diff --git a/pages/caseDetail/caseDetail.wxml b/pages/caseDetail/caseDetail.wxml index 3e577e8..cc82ac6 100644 --- a/pages/caseDetail/caseDetail.wxml +++ b/pages/caseDetail/caseDetail.wxml @@ -1,31 +1,48 @@ - - - - {{caseDetail.communityName}} - 待处理 - 待立案 - 待下派 - 待处理 - 待检查 - 待结案 - 已归档 - 案件异常 - - - {{caseDetail.caseContent}} - 上报时间:{{caseDetail.reportDate}} - 上报类型:{{caseDetail.caseTypeName}} - 上报人员:{{caseDetail.caseReporter}} - - - - - - {{caseDetail.casePosition}} - - - - - 查看流程 - - \ No newline at end of file + + + + {{tools.status(caseDetail.caseStatus)}} + 流程日志 + + + + + + {{caseDetail.communityName}} + {{caseDetail.reportDate}} + + + {{caseDetail.caseContent}} + 上报类型:{{caseDetail.caseTypeName}} + 上报人员:{{caseDetail.caseReporter}} + + + + + + + + + + + {{caseDetail.casePosition}} + + + + + + + 案件处理详情 + + + 处理人员:{{caseDetail.handleUserName}} + 处理时间:{{caseDetail.handleCreateTime}} + {{caseDetail.handleOpinion}} + + + + + + + + \ No newline at end of file diff --git a/pages/caseDetail/caseDetail.wxss b/pages/caseDetail/caseDetail.wxss index 62ad6a8..556859a 100644 --- a/pages/caseDetail/caseDetail.wxss +++ b/pages/caseDetail/caseDetail.wxss @@ -1,81 +1,306 @@ -page{ - background: #f2f1f6; +page { + background: #f2f1f6; } -.case{ - width: 710rpx; - margin: 20rpx auto; - padding: 20rpx; - box-sizing: border-box; - background: #fff; - border-radius: 10rpx; + +.check { + padding: 20rpx; + position: fixed; + top: 70px; + width: 95%; + border-radius: 20px; } -.case-info{ - margin-bottom: 15rpx; + +.case-info { + background: #fff; + border-radius: 10rpx; + padding: 20rpx; + margin-bottom: 15rpx; } -.title-status{ - display: flex; - justify-content: space-between; - margin-bottom: 10rpx; + +.title-status { + display: flex; + justify-content: space-between; + margin-bottom: 10rpx; } -.title{ - font-size: 36rpx; - line-height: 60rpx; - display: inline-block; - max-width: 65%; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; - color: #06a3f6; + +.radio-btns { + display: flex; + flex-direction: column; + justify-content: flex-start; + align-items: center; } -.status{ - line-height: 60rpx; - display: inline-block; - padding: 0 30rpx; - background: #fff7ec; - color: #fdc36e; - border-radius: 30rpx; + +.radio-btns radio { + width: 100%; + margin-left: -25px; } -.status.green{ - color: #2dfe2e; - background: rgba(45,254,46,0.1) + +.title { + font-size: 36rpx; + line-height: 60rpx; + display: inline-block; + max-width: 65%; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + color: #000000; } -.status.red{ - color: red; - background: rgba(255,0,0,0.1) + +.status { + line-height: 60rpx; + display: inline-block; + padding: 0 30rpx; + color: #FFFFFF; } -.row{ - border-bottom: 1px dashed #EEE; - font-size: 32rpx; - color: #888; - line-height: 60rpx; + +.status.green { + color: #2dfe2e; + background: rgba(45, 254, 46, 0.1) } -.photo{ - margin: 50rpx 0; + +.status.red { + color: red; + background: rgba(255, 0, 0, 0.1) } -.photo image{ - width: 140rpx; - height: 140rpx; - margin-right: 10rpx; - margin-bottom: 10rpx; + +.row { + font-size: 14px; + color: #101010; + line-height: 60rpx; } -.position{ - font-size: 36rpx; - color: #06a3f6; - margin-bottom: 10rpx; + +.row-desc { + color: #9A9A9A; } -.map-box map{ - width: 100%; - height: 400rpx; + +.title-date { + font-size: 12px; + color: #101010; } -.process{ - width: 100%; - height: 80rpx; - display: flex; - justify-content: center; - align-items: center; - border-radius: 10rpx; - background: #06a3f6; - color: #fff; - font-size: 30rpx; - margin-top: 15rpx; + +.photo { + margin: 50rpx 0; +} + +.photo image { + width: 140rpx; + height: 140rpx; + margin-right: 10rpx; + margin-bottom: 10rpx; +} + +.position { + font-size: 14px; +} + +.position-box { + position: absolute; + bottom: 0; + width: 100%; + padding: 5px 2px; + color: #FFFFFF; + background-color: rgba(0, 0, 0, .65); + display: flex; + flex-direction: row; + align-items: center; + justify-content: flex-start; +} + +.position-box image { + width: 20px; + height: 20px; +} + +.map-box map { + width: 100%; + height: 400rpx; +} + +.map { + width: 100%; + height: 400rpx; + position: relative; +} + +.handle-info { + border-radius: 10rpx; + background: #fff; + margin-top: 15rpx; + padding: 20rpx 20rpx 10rpx; +} + + +.handle-photo { + margin: 20rpx 0 0; +} + +.handle-title { + color: #000000; + display: flex; + flex-direction: row; + justify-content: flex-start; + align-items: center; + padding: 5px 0px 0px 5px; +} + +.form-head-line { + height: 15px; + width: 6px; + background-color: #4985f8; + margin-right: 5px; +} + +radio { + transform: scale(.8); +} + +.handle-title text { + color: red; +} + +.handle { + background-color: #FFFFFF; +} + +.check-box { + padding: 20rpx; + background: #fff; + border-radius: 10rpx; + margin-top: 15rpx; +} + +.check-content { + background: #f2f1f6; + margin-bottom: 20rpx; +} + +.check-content textarea { + width: 100%; + height: 300rpx; + padding: 15rpx; + box-sizing: border-box; +} + +.qualified { + display: flex; + justify-content: space-between; + font-size: 14px; + padding: 5px 0px; +} + +.qualified label { + margin-right: 20rpx; +} + +.qualified label:last-child { + margin-right: 0; +} + +.satisfied { + padding: 5px 0px; + font-size: 14px; +} + +.satisfied-title { + font-size: 14px; +} + +.satisfied-box label { + display: block; + margin-top: 15rpx; +} + +.choose-photo { + margin-top: 15rpx; +} + +.choose-photo .img-box { + width: 32%; + height: 140rpx; + margin-right: 2%; + margin-bottom: 10rpx; + position: relative; + display: inline-block; +} + +.img-box image { + width: 100%; + height: 100%; +} + +.img-box .delete-btn { + position: absolute; + top: -10rpx; + right: -10rpx; + width: 40rpx; + height: 40rpx; +} + +.choose-photo .img-box:nth-child(3n) { + margin-right: 0; +} + +.photo-main { + background: none; + padding: 0; +} + +.add { + display: inline-block; + width: 32%; + height: 140rpx; + background: #f1f1f6; + position: relative; +} + +.add image { + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + width: 60rpx; + height: 60rpx; +} + +.submit { + width: 710rpx; + height: 100rpx; + background: #008cff; + line-height: 100rpx; + text-align: center; + color: #fff; + border-radius: 10rpx; + margin: 15rpx auto; +} + +.check-container { + margin-top: 15rpx; + background-color: #FFFFFF; +} + +.title-box { + display: flex; + flex-direction: row; + background-color: #4583fe; + height: 100px; + align-items: center; + padding-left: 10px; +} + +.title-box image { + width: 32px; + height: 32px; +} + +.progress-btn { + position: absolute; + right: 20px; + color: #000000; + border-radius: 5px; + background-color: #FCCA00; + padding: 2px 10px; + font-size: 14px; +} +.progress-btn:active{ + transform: scale(.8); } \ No newline at end of file diff --git a/pages/caseHistory/caseHistory.js b/pages/caseHistory/caseHistory.js new file mode 100644 index 0000000..e349cbe --- /dev/null +++ b/pages/caseHistory/caseHistory.js @@ -0,0 +1,135 @@ +// pages/caseHistory/caseHistory.js +const app = getApp(); +Page({ + + /** + * 页面的初始数据 + */ + data: { + token: '', + list: [], + triggered: false, + page: { + page: 1, + rows: 10 + }, + scrollHeight: 400, + totalNum: 0, + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad(options) { + var _self = this; + wx.getStorage({ + key: 'token', + success: function (res) { + _self.setData({ + token: res.data + }) + _self.getCaseList(); + } + }) + let screenHeight = wx.getSystemInfoSync().windowHeight; + this.setData({ + scrollHeight: screenHeight + }) + }, + + + //获取列表 + getCaseList() { + var _self = this; + wx.showLoading({ + title: '加载中...', + }) + app.restAjax.get(app.restAjax.path('{reqesutUrl}app/reportcase/listreportcaseofmine', [app.requestUrl]), _self.data.page, { + headers: { + token: _self.data.token + } + }, function (code, data) { + wx.hideLoading(); + console.log(data); + _self.setData({ + totalNum: data.total + }) + if (data.rows.length == 0) { + if (_self.data.page.page == 1) { + _self.setData({ + list: [] + }) + } else { + _self.setData({ + [`page.page`]: _self.data.page.page - 1 + }) + wx.showToast({ + title: '暂无更多数据', + icon: 'none' + }) + return false; + } + } + if (_self.data.page.page == 1) { + _self.setData({ + list: data.rows + }) + } else { + _self.setData({ + list: _self.data.list.concat(data.rows) + }) + } + }); + }, + onScrollRefresh() { + console.log('加载中...') + var _self = this; + _self.setData({ + list: [], + ['page.page']: 1, + triggered: false, + totalNum: 0 + + }) + _self.getCaseList() + }, + //加载更多 + onLoadMore() { + console.log(this.data.list.length + "==" + this.data.totalNum) + var self = this + if (self.data.totalNum === self.data.list.length) { + wx.showToast({ + title: '暂无更多数据', + icon: 'none' + }) + } else { + var pageNum = 'page.page' + self.setData({ + [pageNum]: self.data.page.page + 1 + }) + this.getCaseList() + } + }, + //详情 + goDetail(e) { + var _self = this; + var id = e.currentTarget.dataset.id; + var status = e.currentTarget.dataset.status; + if ('4' == status) { + //待检查 + wx.navigateTo({ + url: '/pages/caseCheck/caseCheck?id=' + id, + events: { + doNeedRefresh(data) { + _self.onScrollRefresh(); + } + } + }) + } else { + //详情 + wx.navigateTo({ + url: '/pages/caseDetail/caseDetail?id=' + id, + }) + } + } +}) \ No newline at end of file diff --git a/pages/caseHistory/caseHistory.json b/pages/caseHistory/caseHistory.json new file mode 100644 index 0000000..18ebbe9 --- /dev/null +++ b/pages/caseHistory/caseHistory.json @@ -0,0 +1,8 @@ +{ + "usingComponents": { + "t-empty": "/miniprogram_npm/tdesign-miniprogram/empty/empty" + }, + "navigationBarTitleText": "上报历史", + "navigationBarBackgroundColor": "#FFFFFF", + "navigationBarTextStyle": "black" +} \ No newline at end of file diff --git a/pages/caseHistory/caseHistory.wxml b/pages/caseHistory/caseHistory.wxml new file mode 100644 index 0000000..cc83e8e --- /dev/null +++ b/pages/caseHistory/caseHistory.wxml @@ -0,0 +1,21 @@ + + + + + + + + {{tools.status(listItem.caseStatus)}} + {{listItem.caseTypeName}} + + {{listItem.handleUserDepartmentName}} + {{listItem.caseContent}} + + + {{listItem.reportDate}} + + + + + + \ No newline at end of file diff --git a/pages/caseHistory/caseHistory.wxss b/pages/caseHistory/caseHistory.wxss new file mode 100644 index 0000000..b2eecb9 --- /dev/null +++ b/pages/caseHistory/caseHistory.wxss @@ -0,0 +1,113 @@ +/* pages/census/census.wxss */ +.page-container { + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + background-color: #f5f5f5; + width: 100%; + height: 100%; +} + +.btn-submit { + width: 100%; + position: fixed; + bottom: 0; + height: 48px; + background-color: #4985f8; + display: flex; + justify-content: center; + align-items: center; + align-self: center; + color: #FFFFFF; + z-index: 23; +} + +.scroll-content { + + border-radius: 10px; + padding: 5px; + width: 97%; + margin-top: 10px; +} + +.item-container { + display: flex; + flex-direction: column; + align-items: flex-start; + justify-content: center; + padding: 10px; + background-color: #ffffff; + margin-top: 10px; + border-radius: 10px; +} + +.item-title { + font-size: 16px; + color: #000000; + margin-left: 3px; +} + +.item-title-box { + display: flex; + flex-direction: row; + justify-content: flex-start; + align-items: center; +} + +.title-status { + border-top-right-radius: 10px; + font-size: 12px; + padding: 2px 10px; + color: #FFFFFF; + margin-left: -10px; + border-bottom-right-radius: 10px; + background-color: #4985f8; +} + +.item-desc { + font-size: 12px; + color: #101010; + width: 100%; + text-overflow: ellipsis; + overflow: hidden; + word-break: break-all; + white-space: nowrap; + margin-top: 3px; +} + +.item-position { + margin-top: 5px; + display: flex; + flex-direction: row; + justify-content: flex-start; + align-items: center; + font-size: 12px; + color: #101010; +} + +.item-position image { + width: 14px; + height: 14px; + margin-right: 5px; +} + +.line { + margin-top: 5px; + margin-bottom: 5px; + border: 1px dashed #ebe9e9; + width: 100%; +} + + +.t-empty_image { + width: 48px !important; + height: 48px !important; +} + +.empty-cls { + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; +} \ No newline at end of file diff --git a/pages/index/index.js b/pages/index/index.js index 865efb3..3d2ba03 100644 --- a/pages/index/index.js +++ b/pages/index/index.js @@ -129,9 +129,13 @@ Page({ }) }, doCheck() { - + wx.navigateTo({ + url: '/pages/waitCheck/waitCheck', + }) }, doCaseHistory() { - + wx.navigateTo({ + url: '/pages/caseHistory/caseHistory', + }) } }) \ No newline at end of file diff --git a/pages/process/process.json b/pages/process/process.json index 8835af0..232a354 100644 --- a/pages/process/process.json +++ b/pages/process/process.json @@ -1,3 +1,4 @@ { - "usingComponents": {} + "usingComponents": {}, + "navigationBarTitleText": "流程日志" } \ No newline at end of file diff --git a/pages/waitCheck/waitCheck.js b/pages/waitCheck/waitCheck.js index c03bb6e..8290294 100644 --- a/pages/waitCheck/waitCheck.js +++ b/pages/waitCheck/waitCheck.js @@ -1,141 +1,126 @@ -const app = getApp() +// pages/caseHistory/caseHistory.js +const app = getApp(); Page({ - /** - * 页面的初始数据 - */ - data: { - token: '', - areaList: [], - requestUrl: app.requestUrl, - page: { - page: 1, - rows: 20, - totalPage: 1 - }, - }, - // 查看详情 - goDetail: function (e) { - if (e.currentTarget.dataset.status == '4') { - wx.navigateTo({ - url: '../caseCheck/caseCheck?id=' + e.currentTarget.dataset.id, - }) - } else { - wx.navigateTo({ - url: '../caseDetail/caseDetail?id=' + e.currentTarget.dataset.id, - }) - } - - }, - // 获取待检查列表 - getCheckList: function () { - var self = this - wx.showToast({ - title: '加载中', - icon: 'loading' - }) - app.restAjax.get(app.restAjax.path('{reqesutUrl}app/reportcase/listpagereportcaseinspectofmine', [app.requestUrl]), self.data.page, { - headers: { - token: self.data.token - } - }, function (code, data) { - if(data.rows.length == 0) { - if (self.data.page.page == 1) { - self.setData({ - areaList: [] - }) - } else { - self.setData({ - [`page.page`] : self.data.page.page - 1 - }) - app.dialog.msg('暂无更多') - return false; - } - } - if (self.data.page.page == 1) { - self.setData({ - areaList: data.rows - }) - } else { - self.setData({ - areaList: self.data.areaList.concat(data.rows) - }) - } - wx.hideToast() - }); - }, - /** - * 生命周期函数--监听页面加载 - */ - onLoad: function (options) { - var self = this - wx.getStorage({ - key: 'token', - success: function (res) { - self.setData({ - token: res.data - }) - self.getCheckList() - } - }) - - }, + /** + * 页面的初始数据 + */ + data: { + token: '', + list: [], + triggered: false, + page: { + page: 1, + rows: 10 + }, + scrollHeight: 400, + totalNum: 0, + }, - /** - * 生命周期函数--监听页面初次渲染完成 - */ - onReady: function () { - - }, + /** + * 生命周期函数--监听页面加载 + */ + onLoad(options) { + var _self = this; + wx.getStorage({ + key: 'token', + success: function (res) { + _self.setData({ + token: res.data + }) + _self.getCaseList(); + } + }) + let screenHeight = wx.getSystemInfoSync().windowHeight; + this.setData({ + scrollHeight: screenHeight + }) + }, - /** - * 生命周期函数--监听页面显示 - */ - onShow: function () { - - }, - /** - * 生命周期函数--监听页面隐藏 - */ - onHide: function () { - - }, + //获取列表 + getCaseList() { + var _self = this; + wx.showLoading({ + title: '加载中...', + }) + app.restAjax.get(app.restAjax.path('{reqesutUrl}app/reportcase/listpagetotalreportcasehandleofmine', [app.requestUrl]), _self.data.page, { + headers: { + token: _self.data.token + } + }, function (code, data) { + wx.hideLoading(); + console.log(data); + _self.setData({ + totalNum: data.total + }) + if (data.rows.length == 0) { + if (_self.data.page.page == 1) { + _self.setData({ + list: [] + }) + } else { + _self.setData({ + [`page.page`]: _self.data.page.page - 1 + }) + wx.showToast({ + title: '暂无更多数据', + icon: 'none' + }) + return false; + } + } + if (_self.data.page.page == 1) { + _self.setData({ + list: data.rows + }) + } else { + _self.setData({ + list: _self.data.list.concat(data.rows) + }) + } + }); + }, + onScrollRefresh() { + console.log('加载中...') + var _self = this; + _self.setData({ + list: [], + ['page.page']: 1, + triggered: false, + totalNum: 0 - /** - * 生命周期函数--监听页面卸载 - */ - onUnload: function () { - - }, - - /** - * 页面相关事件处理函数--监听用户下拉动作 - */ - onPullDownRefresh: function () { - var self = this - this.setData({ - ['page.page']: 1 - }) - this.getCheckList() - }, - - /** - * 页面上拉触底事件的处理函数 - */ - onReachBottom: function () { - var self = this - var pageNum = 'page.page' - self.setData({ - [pageNum]: self.data.page.page + 1 - }) - this.getCheckList() - }, - - /** - * 用户点击右上角分享 - */ - onShareAppMessage: function () { - - } + }) + _self.getCaseList() + }, + //加载更多 + onLoadMore() { + console.log(this.data.list.length + "==" + this.data.totalNum) + var self = this + if (self.data.totalNum === self.data.list.length) { + wx.showToast({ + title: '暂无更多数据', + icon: 'none' + }) + } else { + var pageNum = 'page.page' + self.setData({ + [pageNum]: self.data.page.page + 1 + }) + this.getCaseList() + } + }, + //详情 + goDetail(e) { + var _self = this; + var id = e.currentTarget.dataset.id; + wx.navigateTo({ + url: '/pages/caseCheck/caseCheck?id=' + id, + events: { + doNeedRefresh(data) { + _self.onScrollRefresh(); + } + } + }) + } }) \ No newline at end of file diff --git a/pages/waitCheck/waitCheck.json b/pages/waitCheck/waitCheck.json index 8835af0..71b1d79 100644 --- a/pages/waitCheck/waitCheck.json +++ b/pages/waitCheck/waitCheck.json @@ -1,3 +1,8 @@ { - "usingComponents": {} + "usingComponents": { + "t-empty": "/miniprogram_npm/tdesign-miniprogram/empty/empty" + }, + "navigationBarTitleText": "待检查", + "navigationBarBackgroundColor": "#FFFFFF", + "navigationBarTextStyle": "black" } \ No newline at end of file diff --git a/pages/waitCheck/waitCheck.wxml b/pages/waitCheck/waitCheck.wxml index 52a1738..29ce9c6 100644 --- a/pages/waitCheck/waitCheck.wxml +++ b/pages/waitCheck/waitCheck.wxml @@ -1,30 +1,21 @@ - - - - - - - - - {{item.communityName}} - 待受理 - 待立案 - 待下派 - 待处理 - 待检查 - 待结案 - 已归档 - 案件异常 - - - {{item.caseContent}} - - - - - {{item.casePosition}} - - - - - \ No newline at end of file + + + + + + + + {{tools.status(listItem.caseStatus)}} + {{listItem.caseTypeName}} + + {{listItem.handleUserDepartmentName}} + {{listItem.caseContent}} + + + {{listItem.reportDate}} + + + + + + \ No newline at end of file diff --git a/pages/waitCheck/waitCheck.wxss b/pages/waitCheck/waitCheck.wxss index 9520546..b2eecb9 100644 --- a/pages/waitCheck/waitCheck.wxss +++ b/pages/waitCheck/waitCheck.wxss @@ -1,110 +1,113 @@ -page{ - background: #f2f1f6; +/* pages/census/census.wxss */ +.page-container { + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + background-color: #f5f5f5; + width: 100%; + height: 100%; } -/* .tab-box{ - position: fixed; - top: 0; - left: 0; - right: 0; - height: 100rpx; - display: flex; - background: #fff; - overflow-x: auto; + +.btn-submit { + width: 100%; + position: fixed; + bottom: 0; + height: 48px; + background-color: #4985f8; + display: flex; + justify-content: center; + align-items: center; + align-self: center; + color: #FFFFFF; + z-index: 23; } -.tab{ - display: flex; - flex: 1; - flex-shrink: 0; - justify-content: center; - align-items: center; - font-size: 30rpx; - box-sizing: border-box; + +.scroll-content { + + border-radius: 10px; + padding: 5px; + width: 97%; + margin-top: 10px; } -.tab.active{ - font-size: 36rpx; - color: #226cd9; - border-bottom: 3px solid #226cd9; -} */ -.list{ - /* margin-top: 100rpx; */ - padding: 20rpx 20rpx 0; + +.item-container { + display: flex; + flex-direction: column; + align-items: flex-start; + justify-content: center; + padding: 10px; + background-color: #ffffff; + margin-top: 10px; + border-radius: 10px; } -.list-box{ - padding: 20rpx; - background: #fff; - border-radius: 10rpx; - margin-bottom: 20rpx; - display: flex; - justify-content: space-between; + +.item-title { + font-size: 16px; + color: #000000; + margin-left: 3px; } -.avatar, .avatar image{ - width: 150rpx; - height: 150rpx; + +.item-title-box { + display: flex; + flex-direction: row; + justify-content: flex-start; + align-items: center; } -.case{ - width: 500rpx; + +.title-status { + border-top-right-radius: 10px; + font-size: 12px; + padding: 2px 10px; + color: #FFFFFF; + margin-left: -10px; + border-bottom-right-radius: 10px; + background-color: #4985f8; } -.case-info{ - border-bottom: 1px dashed #EEE; + +.item-desc { + font-size: 12px; + color: #101010; + width: 100%; + text-overflow: ellipsis; + overflow: hidden; + word-break: break-all; + white-space: nowrap; + margin-top: 3px; } -.case-title{ - display: flex; - justify-content: space-between; - margin-bottom: 10rpx; + +.item-position { + margin-top: 5px; + display: flex; + flex-direction: row; + justify-content: flex-start; + align-items: center; + font-size: 12px; + color: #101010; } -.title{ - font-size: 36rpx; - line-height: 60rpx; - display: inline-block; - max-width: 65%; - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; + +.item-position image { + width: 14px; + height: 14px; + margin-right: 5px; } -.status{ - line-height: 60rpx; - display: inline-block; - padding: 0 30rpx; - background: #fff7ec; - color: #fdc36e; - border-radius: 30rpx; + +.line { + margin-top: 5px; + margin-bottom: 5px; + border: 1px dashed #ebe9e9; + width: 100%; } -.status.green{ - color: #2dfe2e; - background: rgba(45,254,46,0.1) + + +.t-empty_image { + width: 48px !important; + height: 48px !important; } -.status.red{ - color: red; - background: rgba(255,0,0,0.1) -} -.case-desc{ - font-size: 28rpx; - color: #888; - margin-bottom: 10rpx; - line-height: 60rpx; -} -.case-postion{ - white-space: nowrap; - overflow: hidden; - text-overflow: ellipsis; - font-size: 28rpx; - color: #108aff; - margin-top: 10rpx; -} -.case-postion image{ - width: 30rpx; - height: 28rpx; -} -.new-case{ - position: fixed; - bottom: 40rpx; - right: 40rpx; - width: 120rpx; - height: 120rpx; - background: #108aff; - color: #fff; - border-radius: 50%; - padding: 20rpx; - box-sizing: border-box; - text-align: center; + +.empty-cls { + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; } \ No newline at end of file diff --git a/utils/checkutils.wxs b/utils/checkutils.wxs index 5378d18..a7c5cd9 100644 --- a/utils/checkutils.wxs +++ b/utils/checkutils.wxs @@ -4,4 +4,32 @@ var check = function (s) { } return s; } -module.exports.check = check; \ No newline at end of file +var getStatus = function (s) { + var status = ''; + switch (s) { + case '0': + status = '待受理'; + break; + case '1': + status = '待立案'; + break; + case '2': + status = '待下派'; + break; + case '3': + status = '待处理'; + break; + case '4': + status = '待检查'; + break; + case '5': + status = '待结案'; + break; + case '6': + status = '已归档'; + break; + } + return status; +} +module.exports.check = check; +module.exports.status = getStatus; \ No newline at end of file