diff --git a/README.md b/README.md index 487c0eb..f65b22e 100644 --- a/README.md +++ b/README.md @@ -4,10 +4,6 @@ "iconPath": "images/home/information.png", "selectedIconPath": "images/home/informationSelected.png" }, - - wx.navigateTo({ - url: `/subpages/home/pages/webview/webview?url=${global.WEBROOT()}&token=${token}&deptName=${this.data.street}&gridId=${this.data.departmentId}` - }) 2a43afb52996723c6517edb048de6c79 小程序密钥 15554200534 diff --git a/app.js b/app.js index d68ced8..9830a9e 100644 --- a/app.js +++ b/app.js @@ -20,6 +20,7 @@ App({ this.globalData.deviceInfo.navigationHeight = menuButtonInfo.height + (menuButtonInfo.top - res.statusBarHeight) * 2 } }) + wx.hideTabBar() }, globalData: { userInfo: null, diff --git a/app.json b/app.json index 1a4aee7..b431063 100644 --- a/app.json +++ b/app.json @@ -44,7 +44,11 @@ "root": "subpages/communitySelfInsp", "name": "communitySelfInsp", "pages": [ - "pages/historyQuery/historyQuery" + "pages/historyQuery/historyQuery", + "pages/synthesis/synthesis", + "pages/dissatisfactionDetails/dissatisfactionDetails", + "pages/followUpList/followUpList", + "pages/followUpDetail/followUpDetail" ] }, { diff --git a/components/custom-tab-bar/index.js b/components/custom-tab-bar/index.js new file mode 100644 index 0000000..9a1cc36 --- /dev/null +++ b/components/custom-tab-bar/index.js @@ -0,0 +1,50 @@ +const app = getApp() +Component({ + data: { + selected: 0, + color: "#999", + selectedColor: "#3A80E7", + "list": [ + { + "pagePath": "/pages/index/index", + "text": "消息", + "iconPath": "/images/home/message.png", + "selectedIconPath": "/images/home/messageSelected.png" + }, + { + "pagePath": "/pages/work/work", + "text": "工作", + "iconPath": "/images/home/work.png", + "selectedIconPath": "/images/home/workSelected.png" + }, + { + "pagePath": "/pages/statistics/statistics", + "text": "统计", + "iconPath": "/images/home/information.png", + "selectedIconPath": "/images/home/informationSelected.png" + }, + { + "pagePath": "/pages/mine/mine", + "text": "我的", + "iconPath": "/images/home/mine.png", + "selectedIconPath": "/images/home/mineSelected.png" + } + ] + }, + attached() { + }, + ready: function() { + this.setData({ + selected: app.globalData.selected + }) + }, + methods: { + switchTab(e) { + console.log(e); + const data = e.currentTarget.dataset; + const url = data.path; + app.globalData.selected = data.index; + wx.switchTab({url}) + } + } +}) \ No newline at end of file diff --git a/components/custom-tab-bar/index.json b/components/custom-tab-bar/index.json new file mode 100644 index 0000000..7e37c03 --- /dev/null +++ b/components/custom-tab-bar/index.json @@ -0,0 +1,4 @@ +{ + "component": true, + "usingComponents": {} +} \ No newline at end of file diff --git a/components/custom-tab-bar/index.wxml b/components/custom-tab-bar/index.wxml new file mode 100644 index 0000000..560dfa5 --- /dev/null +++ b/components/custom-tab-bar/index.wxml @@ -0,0 +1,17 @@ + + + + + + + + + {{item.text}} + + + + \ No newline at end of file diff --git a/components/custom-tab-bar/index.wxss b/components/custom-tab-bar/index.wxss new file mode 100644 index 0000000..387a5c8 --- /dev/null +++ b/components/custom-tab-bar/index.wxss @@ -0,0 +1,38 @@ +.tab-bar { + position: fixed; + bottom: 0; + left: 0; + right: 0; + height: auto; + background: white; + display: flex; + box-shadow: 0px 6rpx 18rpx 0px rgba(216,216,216,0.66); + } + .isIPhoneXRegexBottom { + padding-bottom: constant(safe-area-inset-bottom); /*兼容 IOS<11.2*/ + padding-bottom: env(safe-area-inset-bottom); /*兼容 IOS>11.2*/ + } + + .tab-bar-item { + flex: 1; + text-align: center; + display: flex; + justify-content: center; + align-items: center; + flex-direction: column; + padding-top: 10rpx; + } + + .tab-bar-item image { + width: 54rpx; + height: 54rpx; + } + /* .tab-bar-item image.bigicon{ + width: 70rpx; + height: 70rpx; + } */ + .tab-bar-item view { + font-size: 22rpx; + color:#999999 + } + \ No newline at end of file diff --git a/images/home/message.png b/images/home/message.png index 2992d37..57a93ad 100644 Binary files a/images/home/message.png and b/images/home/message.png differ diff --git a/images/work/bg.png b/images/work/bg.png new file mode 100644 index 0000000..9d8a642 Binary files /dev/null and b/images/work/bg.png differ diff --git a/images/work/messageBg.png b/images/work/messageBg.png new file mode 100644 index 0000000..1ab5b4d Binary files /dev/null and b/images/work/messageBg.png differ diff --git a/images/work/rightCri.png b/images/work/rightCri.png new file mode 100644 index 0000000..98ae819 Binary files /dev/null and b/images/work/rightCri.png differ diff --git a/pages/index/index.json b/pages/index/index.json index bd4e225..9e077c1 100644 --- a/pages/index/index.json +++ b/pages/index/index.json @@ -2,6 +2,7 @@ "navigationStyle": "custom", "usingComponents": { "load-more": "../../components/loadMore/loadMore", - "no-data": "../../components/noData/nodata" + "no-data": "../../components/noData/nodata", + "custom-tab-bar":"../../components/custom-tab-bar" } } \ No newline at end of file diff --git a/pages/index/index.wxml b/pages/index/index.wxml index 483a76f..665af4f 100644 --- a/pages/index/index.wxml +++ b/pages/index/index.wxml @@ -36,5 +36,5 @@ - - \ No newline at end of file + + \ No newline at end of file diff --git a/pages/mine/mine.js b/pages/mine/mine.js index d1b86f7..a4cde51 100644 --- a/pages/mine/mine.js +++ b/pages/mine/mine.js @@ -81,5 +81,10 @@ Page({ wx.navigateTo({ url: '/subpages/gatherInformation/pages/gatherInformation/gatherInformation', }) + }, + toFollowUpList(){ + wx.navigateTo({ + url: '/subpages/communitySelfInsp/pages/followUpList/followUpList', + }) } }) \ No newline at end of file diff --git a/pages/mine/mine.json b/pages/mine/mine.json index 7af8b0a..c9cb9bb 100644 --- a/pages/mine/mine.json +++ b/pages/mine/mine.json @@ -1,4 +1,6 @@ { - "usingComponents": {}, + "usingComponents": { + "custom-tab-bar":"../../components/custom-tab-bar" + }, "navigationStyle": "custom" } \ No newline at end of file diff --git a/pages/mine/mine.wxml b/pages/mine/mine.wxml index b5ff901..509ccb7 100644 --- a/pages/mine/mine.wxml +++ b/pages/mine/mine.wxml @@ -23,7 +23,7 @@ - + 我的回访记录 @@ -46,3 +46,4 @@ + diff --git a/pages/statistics/statistics.json b/pages/statistics/statistics.json index 6fe2293..5368563 100644 --- a/pages/statistics/statistics.json +++ b/pages/statistics/statistics.json @@ -7,5 +7,6 @@ "HotlineComplaints": "./modules/HotlineComplaints/HotlineComplaints", "EventPrediction": "./modules/EventPrediction/EventPrediction", "CrowdPortrait": "./modules/CrowdPortrait/CrowdPortrait" - } + "custom-tab-bar":"../../components/custom-tab-bar" + } } \ No newline at end of file diff --git a/pages/statistics/statistics.wxml b/pages/statistics/statistics.wxml index 7ed2778..3bb7258 100644 --- a/pages/statistics/statistics.wxml +++ b/pages/statistics/statistics.wxml @@ -1,4 +1,5 @@ + 不满意事项趋势分析 diff --git a/pages/webView/webView.js b/pages/webView/webView.js index 698bb35..8d37869 100644 --- a/pages/webView/webView.js +++ b/pages/webView/webView.js @@ -11,8 +11,8 @@ Page({ console.log('url',this.data.url) } else { this.setData({ - // url: options.url - url:`${options.url}?deptName=${options.deptName}&gridId=${options.gridId}` + url: options.url + // url:`${options.url}?deptName=${options.deptName}&gridId=${options.gridId}` }) } } diff --git a/pages/work/work.js b/pages/work/work.js index 84010de..f1b8ea0 100644 --- a/pages/work/work.js +++ b/pages/work/work.js @@ -2,7 +2,6 @@ const app = getApp() import {getSituation,getInspRecord} from '../../utils/api' Page({ - /** * 页面的初始数据 */ @@ -49,49 +48,21 @@ Page({ }) }, getInspRecord(){ - // let parm ={ - // pageSize:20, - // pageNo:1 - // } - // getInspRecord(parm).then(res=>{ - // console.log(res); - // }).catch(err=>{ - // wx.hideLoading() - // console.log(err); - // }) - let data = [ - { - monthName:'9', - agencyName:'海伦路社区', - status:2, - personQty:20, - synthesisScore:100, - qrCodeImgUrl:'erweimaurl', - questionnaireUrl:'tupianlianjie' - }, - { - monthName:'8', - agencyName:'海伦路社区', - status:2, - personQty:20, - synthesisScore:100, - qrCodeImgUrl:'erweimaurl', - questionnaireUrl:'tupianlianjie' - }, - { - monthName:'7', - agencyName:'海伦路社区', - status:2, - personQty:20, - synthesisScore:100, - qrCodeImgUrl:'erweimaurl', - questionnaireUrl:'tupianlianjie' - } - ] - this.setData({ - communitySelfInspTop:data.splice(0,1)[0], - communitySelfInspList:data.splice(0,2), + let parm ={ + pageSize:20, + pageNo:1 + } + getInspRecord(parm).then(res=>{ + this.setData({ + communitySelfInspTop:res.data.list.splice(0,1)[0], + communitySelfInspList:res.data.list.splice(0,2), + }) + }).catch(err=>{ + wx.hideLoading() + console.log(err); }) + + }, /** * 生命周期函数--监听页面初次渲染完成 @@ -203,4 +174,26 @@ Page({ url: '/subpages/communitySelfInsp/pages/historyQuery/historyQuery', }) }, + toSynthesis(){ + wx.navigateTo({ + url: '/subpages/communitySelfInsp/pages/synthesis/synthesis', + }) + }, + toWebView(){ + wx.navigateTo({ + url: `/pages/webView/webView?url=${this.data.communitySelfInspTop.questionnaireUrl}`, + }) + }, + handelClickCopy() { + wx.setClipboardData({ + data: this.data.communitySelfInspTop.questionnaireUrl, + success: function(res) { + wx.showToast({ + title: '已将链接复制至剪切板', + duration: 2000, + icon:'none' + }); + } + }); + } }) \ No newline at end of file diff --git a/pages/work/work.json b/pages/work/work.json index d7019f3..384c87d 100644 --- a/pages/work/work.json +++ b/pages/work/work.json @@ -1,3 +1,6 @@ { - "navigationStyle": "custom" + "navigationStyle": "custom", + "usingComponents": { + "custom-tab-bar":"../../components/custom-tab-bar" + } } \ No newline at end of file diff --git a/pages/work/work.wxml b/pages/work/work.wxml index 9c19cfb..0d43250 100644 --- a/pages/work/work.wxml +++ b/pages/work/work.wxml @@ -60,14 +60,14 @@ 满意度自查 - 历史自查> + 历史自查 > - {{communitySelfInspTop.agencyName}}{{communitySelfInspTop.monthName}}月份满意度自查 + {{communitySelfInspTop.agencyName}}{{communitySelfInspTop.monthName}}月份满意度自查 已提交 {{communitySelfInspTop.personQty}} - 一键分享 查看统计 + 一键分享 查看统计 @@ -88,4 +88,5 @@ - \ No newline at end of file + + \ No newline at end of file diff --git a/pages/work/work.wxss b/pages/work/work.wxss index be1a47b..93ceba7 100644 --- a/pages/work/work.wxss +++ b/pages/work/work.wxss @@ -197,13 +197,11 @@ page { text-align: left; } .body{ - height: auto; - padding: 0 20rpx; + padding: 0 20rpx 20rpx; position: relative; top: -20rpx; box-sizing: border-box; overflow: hidden; - } .body .top{ width: 100%; @@ -325,12 +323,13 @@ page { } .body .bto{ width: 100%; - height: 695rpx; + max-height: 695rpx; background: #FFFFFF; border-radius: 20rpx; box-sizing: border-box; margin-top:20rpx ; - padding: 0 30rpx; + margin-bottom: 100rpx; + padding: 0 30rpx 20rpx; } .body .bto .content{ border-radius: 20rpx; diff --git a/project.private.config.json b/project.private.config.json index e5a2a4e..2ef10ce 100644 --- a/project.private.config.json +++ b/project.private.config.json @@ -9,12 +9,40 @@ "miniprogram": { "list": [ { - "name": "社区满意度自查", + "name": "回访记录详情", + "pathName": "subpages/communitySelfInsp/pages/followUpDetail/followUpDetail", + "query": "resiInfo={\"periodStart\":\"2023-09-01\",\"createdTime\":\"2023-09-11\",\"reporterName\":\"老王5\",\"reporterMobile\":\"18500000005\",\"followUpWay\":\"0\",\"followUpStatus\":1,\"evaCulturalFacility\":\"veryGood\",\"evaSportsFacility\":\"veryGood\",\"evaEcologicalEnv\":\"bad\",\"evaSocialSecurity\":\"bad\",\"evaSocialAssistance\":\"good\",\"evaOldPeopleProvide\":\"good\",\"evaBasicEducation\":\"veryGood\",\"evaMedical\":\"veryGood\",\"reason\":\"aa\",\"id\":\"1701199625473716226\",\"status\":1,\"addressDetail\":null}&type=add", + "launchMode": "default", + "scene": null + }, + { + "name": "回访记录", + "pathName": "subpages/communitySelfInsp/pages/followUpList/followUpList", + "query": "", + "launchMode": "default", + "scene": null + }, + { + "name": "不满意结果明细", + "pathName": "subpages/communitySelfInsp/pages/dissatisfactionDetails/dissatisfactionDetails", + "query": "category=ecologicalEnv&inspRecordId=1701186272096722946", + "launchMode": "default", + "scene": null + }, + { + "name": "社区满意度(历史自查)", "pathName": "subpages/communitySelfInsp/pages/historyQuery/historyQuery", "query": "", "launchMode": "default", "scene": null }, + { + "name": "社区满意度自查(统计)", + "pathName": "subpages/communitySelfInsp/pages/synthesis/synthesis", + "query": "", + "launchMode": "default", + "scene": null + }, { "name": "登录", "pathName": "pages/login/login", @@ -81,5 +109,5 @@ ] } }, - "libVersion": "2.27.3" + "libVersion": "2.28.1" } \ No newline at end of file diff --git a/subpages/communitySelfInsp/pages/dissatisfactionDetails/dissatisfactionDetails.js b/subpages/communitySelfInsp/pages/dissatisfactionDetails/dissatisfactionDetails.js new file mode 100644 index 0000000..914e890 --- /dev/null +++ b/subpages/communitySelfInsp/pages/dissatisfactionDetails/dissatisfactionDetails.js @@ -0,0 +1,129 @@ +// subpages/communitySelfInsp/pages/dissatisfactionDetails/dissatisfactionDetails.js +import {getInspResult} from "../../../../utils/api" +Page({ + + /** + * 页面的初始数据 + */ + data: { + tableData:[], + pageNo:1, + pageSize:20, + lowerThreshold:'10', + loadMoreVisible:false, + loadMoreType: "none", + nodata:false + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad(options) { + console.log(options); + this.setData({ + satisfactionCategory:options.category, + inspRecordId:options.inspRecordId + }) + this.getInspResult() + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady() { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow() { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide() { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload() { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh() { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom() { + + }, + onScrollToLower(e){ + if (this.data.loadMoreType === 'more') { + this.setData({ + loadMoreVisible: true, + }) + this.data.pageNo += 1 + this.getInspResult() + } + }, + getInspResult(){ + this.setData({ + loadMoreVisible: true, + nodata: false, + loadMoreType: "more", + }) + let parm = { + inspRecordId:this.data.inspRecordId, + satisfactionCategory:this.data.satisfactionCategory, + satisfactionLevel:'bad', + pageNo:this.data.pageNo, + pageSize:this.data.pageSize + } + if(!parm.type) delete parm.type + getInspResult(parm).then(res=>{ + this.setData({ + loadMoreType: res.data.list.length === this.data.pageSize ? 'more' : 'none', + tableData: this.data.tableData.concat(res.data.list), + }) + if (this.data.tableData.length == 0) { + this.setData({ + loadMoreVisible: false, + nodata: true + }) + } + }).catch(err=>{ + console.log(err); + this.setData({ + loadMoreVisible: false, + nodata: true, + }) + }) + }, + handleClickPhone(e){ + wx.makePhoneCall({ + phoneNumber: e.currentTarget.dataset.mobile, + }) + }, + toFollowUpDetails(e){ + wx.navigateTo({ + url: `/subpages/communitySelfInsp/pages/followUpDetail/followUpDetail?resiInfo=${JSON.stringify(e.currentTarget.dataset.item)}&type=add`, + }) + }, + /** + * 用户点击右上角分享 + */ + onShareAppMessage() { + + } +}) \ No newline at end of file diff --git a/subpages/communitySelfInsp/pages/dissatisfactionDetails/dissatisfactionDetails.json b/subpages/communitySelfInsp/pages/dissatisfactionDetails/dissatisfactionDetails.json new file mode 100644 index 0000000..96212af --- /dev/null +++ b/subpages/communitySelfInsp/pages/dissatisfactionDetails/dissatisfactionDetails.json @@ -0,0 +1,7 @@ +{ + "usingComponents": { + "load-more": "../../../../components/loadMore/loadMore", + "no-data": "../../../../components/noData/nodata" + }, + "navigationBarTitleText": "不满意结果明细" +} \ No newline at end of file diff --git a/subpages/communitySelfInsp/pages/dissatisfactionDetails/dissatisfactionDetails.wxml b/subpages/communitySelfInsp/pages/dissatisfactionDetails/dissatisfactionDetails.wxml new file mode 100644 index 0000000..7703ec0 --- /dev/null +++ b/subpages/communitySelfInsp/pages/dissatisfactionDetails/dissatisfactionDetails.wxml @@ -0,0 +1,19 @@ + + + + + + {{item.reporterName}} {{item.reporterMobile}} + 打电话 回访记录 + + {{ item.followUpStatus!= null?item.followUpStatus == -1 ?'不接受回访':item.followUpStatus == 1 ?'已回访':'接受回访/未回访':'--' }} + + + 不满意原因:{{item.reason}} + + + + + + + \ No newline at end of file diff --git a/subpages/communitySelfInsp/pages/dissatisfactionDetails/dissatisfactionDetails.wxss b/subpages/communitySelfInsp/pages/dissatisfactionDetails/dissatisfactionDetails.wxss new file mode 100644 index 0000000..26d4805 --- /dev/null +++ b/subpages/communitySelfInsp/pages/dissatisfactionDetails/dissatisfactionDetails.wxss @@ -0,0 +1,80 @@ +/* subpages/communitySelfInsp/pages/dissatisfactionDetails/dissatisfactionDetails.wxss */ +page { + width: 100%; + min-height: 100vh; + overflow-y: scroll; + background-color: #f7f7f7; + } + .red, + .blue{ + font-size: 28rpx; + color: #fff; + padding: 8rpx 20rpx ; + border-radius: 40rpx; + box-sizing: border-box; + margin-right: 16rpx; + } + .red{ + background-color: #ff783c; + } + .blue{ + background-color: #4f94ff; + } + .blue_small, + .red_small{ + font-size: 26rpx; + width: fit-content; + padding: 8rpx 16rpx; + border-radius: 40rpx; + box-sizing: border-box; + height: 40rpx; + line-height: 20rpx; + margin: 24rpx 0 ; + + } + .blue_small{ + background-color: #eef4fd; + color: #5693EE; + } + .red_small{ + background-color: #fff1eb; + color: #FF783C; + } +.content{ + width: 100%; + padding:0 20rpx ; + box-sizing: border-box; + margin-top: 20rpx; +} +.content .scroll { + height: calc(100vh - 50rpx); + overflow-y: scroll; +} +.content .card{ + width: 100%; + background-color: #fff; + display: flex; + height: 236rpx; + flex-direction: column; + border-radius: 20rpx; + padding: 30rpx 30rpx; + box-sizing: border-box; + overflow: hidden; + color: #333; + +} +.content .card .title{ + display: flex; + justify-content: space-between; +} +/* */ +.content .card .bottom{ + border-bottom: 2rpx #EAEAEA solid; + padding-bottom: 20rpx; + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-line-clamp: 2; + width: 100%; /* 根据实际情况调整 */ + max-height: 100rpx; /* 根据字体大小和行高调整 */ + min-height:50rpx ; +} \ No newline at end of file diff --git a/subpages/communitySelfInsp/pages/followUpDetail/followUpDetail.js b/subpages/communitySelfInsp/pages/followUpDetail/followUpDetail.js new file mode 100644 index 0000000..819c751 --- /dev/null +++ b/subpages/communitySelfInsp/pages/followUpDetail/followUpDetail.js @@ -0,0 +1,185 @@ +const app = getApp() +import api from "../../../../utils/api"; +Page({ + + /** + * 页面的初始数据 + */ + data: { + resiInfo:{}, + followUpWayName:"", + title:'回访记录', + formType:'add', + followUpWayList:[ + { + label:'电话回访', + value:'1' + }, + { + label:'上门回访', + value:'2' + } + ], + inspResultId:'', + form:{ + riskFlag:null,//风险标识 0无风险 1有风险 + description:'',//回访记录详情 + followUpWay:'',//1电话回访 2上门回访 + }, + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad(options) { + console.log(options); + let temp = JSON.parse(options.resiInfo); + console.log(temp); + this.setData({ + statusHeight: app.globalData.deviceInfo.statusHeight, + navigationHeight: app.globalData.deviceInfo.navigationHeight, + formType:options.type + }) + if(options.type == 'add'){ + this.setData({ + resiInfo:temp, + inspResultId:temp.id, + }) + }else{ + this.setData({ + resiInfo:temp, + 'resiInfo.reason':temp.reason, + inspResultId:temp.inspResultId, + "form.followUpWay":temp.followUpWay, + "form.description":temp.description, + "form.riskFlag":temp.riskFlag, + followUpWayName:temp.followUpWayName + }) + + } + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady() { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow() { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide() { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload() { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh() { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom() { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage() { + + }, + bindPickerChangefollowUpWay(e){ + const selectedIndex = e.detail.value; + const selectedVillage = this.data.followUpWayList[selectedIndex]; + this.setData({ + 'form.followUpWay': selectedVillage.value, + followUpWayName:selectedVillage.label + }); + }, + handleBlurDescription(e){ + this.setData({ + 'form.description': e.detail.value + }) + }, + handleChangeRisk(e){ + console.log(e); + this.setData({ + 'form.riskFlag': Number(e.detail.value) + }) + }, + + submit(){ + let parm ={ + ...this.data.form, + inspResultId:this.data.inspResultId, + id:this.data.formType == 'add'?'':this.data.resiInfo.id + } + console.log(parm); + wx.showLoading({ + title: '加载中', + }) + api.followUpSave(parm).then(res=>{ + console.log(res); + if(res.code == 0){ + wx.hideLoading() + wx.showToast({ + title: this.data.formType == 'add'?'新增成功':'修改成功', + duration:3000, + success:function(){ + setTimeout(()=>{ + wx.navigateBack({ + delta: 1 + }) + },3000) + } + }) + } + }).catch(err=>{ + console.log(err); + }) + }, + del(){ + api.followUpDelete(this.data.resiInfo.id).then(res=>{ + if(res.code == 0){ + wx.hideLoading() + wx.showToast({ + title: '删除成功', + duration:3000, + success:function(){ + setTimeout(()=>{ + wx.navigateBack({ + delta: 1 + }) + },3000) + } + }) + } + }).catch(err=>{ + console.log(err); + }) + }, + back(){ + wx.navigateBack({ + delta: 1 + }) + } +}) \ No newline at end of file diff --git a/subpages/communitySelfInsp/pages/followUpDetail/followUpDetail.json b/subpages/communitySelfInsp/pages/followUpDetail/followUpDetail.json new file mode 100644 index 0000000..cf3facb --- /dev/null +++ b/subpages/communitySelfInsp/pages/followUpDetail/followUpDetail.json @@ -0,0 +1,4 @@ +{ + "navigationStyle": "custom", + "usingComponents": {} +} \ No newline at end of file diff --git a/subpages/communitySelfInsp/pages/followUpDetail/followUpDetail.wxml b/subpages/communitySelfInsp/pages/followUpDetail/followUpDetail.wxml new file mode 100644 index 0000000..8726891 --- /dev/null +++ b/subpages/communitySelfInsp/pages/followUpDetail/followUpDetail.wxml @@ -0,0 +1,51 @@ + + + + {{title}} + + + + + + {{resiInfo.reporterName}} {{resiInfo.reporterMobile}} + {{resiInfo.addressDetail?resiInfo.addressDetail:'--'}} + + + 不满意原因:{{resiInfo.reason}} + + + + 填写回访记录 + + + 回访方式 + + + + + {{followUpWayName?followUpWayName:'请选择'}} + + + + + + + 回访情况记录 + +