diff --git a/app.json b/app.json index 53e6835..d19bbc2 100644 --- a/app.json +++ b/app.json @@ -43,6 +43,13 @@ "pages/securityCheck" ] }, + { + "root": "subpages/HotlineCompletion", + "name": "HotlineCompletion", + "pages": [ + "pages/HotlineCompletion" + ] + }, { "root": "subpages/morenews", diff --git a/app.wxss b/app.wxss index 4d49b2e..6a2d1bd 100644 --- a/app.wxss +++ b/app.wxss @@ -22,4 +22,4 @@ page { @font-face { font-family: "PingFangSC-Regular"; src: url(/images/pingfangheiti.ttf) format('truetype'); -} \ No newline at end of file +} diff --git a/images/work2/Hotline.png b/images/work2/Hotline.png new file mode 100644 index 0000000..2afbbd7 Binary files /dev/null and b/images/work2/Hotline.png differ diff --git a/pages/work2/work2.js b/pages/work2/work2.js index 45f1d34..e3431d4 100644 --- a/pages/work2/work2.js +++ b/pages/work2/work2.js @@ -119,7 +119,14 @@ Page({ wx.navigateTo({ url: '/subpages/securityCheck/pages/securityCheck' }) + }, + onHotlineCompletion(){ + let token=wx.getStorageSync('token') + wx.navigateTo({ + url: '/pages/webView/webView?url=' + 'https://epmet-test.elinkservice.cn/epmet-work-h5/#/?worktoken='+token, + }) } + // onAddHouse(){ // wx.navigateTo({ // url: '../../subpages/addhouse/pages/addhouse/addhouse', diff --git a/pages/work2/work2.wxml b/pages/work2/work2.wxml index cac23cc..f45be48 100644 --- a/pages/work2/work2.wxml +++ b/pages/work2/work2.wxml @@ -58,7 +58,7 @@ - + + + + 安检管理 + + + + + 安检巡查 + + + + 热线接办 + + + diff --git a/subpages/HotlineCompletion/pages/HotlineCompletion.js b/subpages/HotlineCompletion/pages/HotlineCompletion.js new file mode 100644 index 0000000..034b20f --- /dev/null +++ b/subpages/HotlineCompletion/pages/HotlineCompletion.js @@ -0,0 +1,141 @@ +// subpages/HotlineCompletion/pages/HotlineCompletion.js +import { + showRecord,icEventList +} from "../../../utils/api" +Page({ + + /** + * 页面的初始数据 + */ + data: { + pageSize:10, + pageNo:1, + eventList:[], + workOrderNum:"", + status:false, + columns:[], + statusType:"", + handleList: [ + { + value: "8", + label: "未联系当事人", + }, + { + value: "9", + label: "已联系当事人", + }, + { + value: "10", + label: "办理中", + }, + { + value: "11", + label: "已办结待审核", + }, + { + value: "12", + label: "已审核归档", + }, + ], + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad(options) { + this.showRecordData() + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady() { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow() { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide() { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload() { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh() { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom() { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage() { + + }, + async showRecordData() { + console.log("sd as"); + let parm = { + pageSize:this.data.pageSize, + pageNo:this.data.pageNo + + } + await icEventList(parm).then(res => { + this.setData({ + eventList:res.data.list + }) + console.log(this.data.eventList); + }) + }, + handelShow(){ + this.setData({ + status:true, + columns: this.data.handleList.map(item => item.label) // 映射出显示的选项 + }) + }, + onChange(event) { + const { value } = event.detail; // 获取选中的值 + this.setData({ + statusType: value // 更新选中的值 + }); + }, + // 控制 picker 显示或隐藏 + togglePicker() { + this.setData({ + status: !this.data.status + }); + }, + onCancel() { + console.log("54354"); + this.setData({ + status: false // 关闭 picker + }); + }, + onConfirm() { + this.setData({ + status: false // 关闭 picker + }); + console.log('确认按钮点击'); + }, +}) \ No newline at end of file diff --git a/subpages/HotlineCompletion/pages/HotlineCompletion.json b/subpages/HotlineCompletion/pages/HotlineCompletion.json new file mode 100644 index 0000000..8393b4f --- /dev/null +++ b/subpages/HotlineCompletion/pages/HotlineCompletion.json @@ -0,0 +1,8 @@ +{ + "usingComponents": { + "van-search": "@vant/weapp/search/index", + "van-button": "@vant/weapp/button/index", + "van-picker": "@vant/weapp/picker/index" + }, + "navigationBarTitleText": "热线接办" +} \ No newline at end of file diff --git a/subpages/HotlineCompletion/pages/HotlineCompletion.wxml b/subpages/HotlineCompletion/pages/HotlineCompletion.wxml new file mode 100644 index 0000000..00f98f3 --- /dev/null +++ b/subpages/HotlineCompletion/pages/HotlineCompletion.wxml @@ -0,0 +1,42 @@ + + + + + + + 办理状态 + {{statusType}} + + + 筛选 + + + + + + + 工单号:{{item.workOrderNum}} + + {{item.operationType}} + + + + {{item.eventContent}} + + + 来电人:{{item.name}} {{item.mobile}} + 办理 + + + + + + + \ No newline at end of file diff --git a/subpages/HotlineCompletion/pages/HotlineCompletion.wxss b/subpages/HotlineCompletion/pages/HotlineCompletion.wxss new file mode 100644 index 0000000..28285cc --- /dev/null +++ b/subpages/HotlineCompletion/pages/HotlineCompletion.wxss @@ -0,0 +1,160 @@ +page { + width: 100%; + overflow-y: auto; + background-color: #f7f7f7; +} +.search{ + height: 110rpx; + width: 100%; + padding:0 22rpx; + box-sizing: border-box; + background-color: #fff; + display: flex; + flex-direction: row; + align-items: center; + justify-content: space-between; + padding-top: 20rpx; + box-sizing: border-box; + +} +.btn { + width: 120rpx; + height: 66rpx; + line-height: 66rpx; + background: #3A80E7; + border-radius: 33rpx; + color: #fff; + text-align: center; +} +.btn1 { + width: 120rpx; + height:50rpx; + background: #3A80E7; + border-radius: 33rpx; + color: #fff; + text-align: center; + line-height: 50rpx; +} + +.section_5 { + display: flex; + flex-direction: column; + overflow: hidden; + padding: 20rpx; +} +.list_1 { + width: 700rpx; + /* height: 603rpx; */ + /* display: flex; */ + /* flex-direction: column; */ + /* justify-content: space-between; */ + display: flex; + /* width: 100%; */ + margin-bottom: 20rpx; +} +.section_1-0 { + background-color: rgba(255,255,255,1.000000); + border-radius: 20rpx; + width: 710rpx; + display: flex; + flex-direction: column; + padding:0rpx 30rpx 0 30rpx; +} +.workorder{ + font-family: PingFang SC; + font-weight: 500; + font-size: 30rpx; + color: #999999; +} +.status-red{ +font-family: PingFang SC; +font-weight: 500; +font-size: 26rpx; +color: #FF3C3C; +} +.status-blue{ + font-family: PingFang SC; + font-weight: 500; + font-size: 26rpx; + color: #04B8AD; + } + .status-cycn{ + font-family: PingFang SC; + font-weight: 500; + font-size: 26rpx; + color: #3974F6; + } + + .status-orange{ + font-family: PingFang SC; + font-weight: 500; + font-size: 26rpx; + color: #FF850D; + } + .status-grey{ + font-family: PingFang SC; + font-weight: 500; + font-size: 26rpx; + color: #999999; + } +.custom-search{ + width: 20rpx; +} +.input{ + padding: 0 20rpx; + width: 120rpx; + height: 57rpx; + background: rgba(193,193,193,0.16); + border-radius: 28rpx; + border: 1px solid #DBDBDB; + align-items: center; +} +.flex-x{ + display: flex; + justify-content: space-between; + align-items: center; + flex-direction: row; + padding:15rpx 0 15rpx 0; +} +.flex-x1{ + display: flex; + justify-content: space-between; + align-items: center; + flex-direction: row; + padding:0 0 15rpx 0; +} +.context{ + display: -webkit-box; + -webkit-box-orient: vertical; + -webkit-line-clamp: 2; + overflow: hidden; + text-overflow: ellipsis; +font-family: PingFang SC; +font-weight: 500; +font-size: 32rpx; +color: #333333; +} +.phonenName{ + font-family: PingFang SC; +font-weight: 500; +font-size: 28rpx; +color: #666666; +line-height: 40rpx; +} +.filter{ + padding: 0 20rpx; + width: 120rpx; + height: 57rpx; + background: rgba(193,193,193,0.16); + border-radius: 28rpx; + border: 1px solid #DBDBDB; + align-items: center; + line-height: 57rpx; +} +.picker-bottom { + position: fixed; /* 固定在页面底部 */ + bottom: 0; + left: 0; + right: 0; + z-index: 1000; /* 确保在最上层显示 */ +} \ No newline at end of file diff --git a/subpages/communitySelfInsp/pages/followUpList/followUpList.wxml b/subpages/communitySelfInsp/pages/followUpList/followUpList.wxml index 8d91277..d267104 100644 --- a/subpages/communitySelfInsp/pages/followUpList/followUpList.wxml +++ b/subpages/communitySelfInsp/pages/followUpList/followUpList.wxml @@ -1,7 +1,7 @@ - {{typeVal =='resi'?'居民信息采集':typeVal=='house'?'房屋信息采集':'全部信息'}} + {{typeVal =='resi'?'居民信息采集':typeVal=='house'?'房屋信息采集':'全部信息'}} diff --git a/utils/api.js b/utils/api.js index b13f60d..ae4d6d2 100644 --- a/utils/api.js +++ b/utils/api.js @@ -1,5 +1,6 @@ var fly = require('./request.js') module.exports = { + icEventList, getIntelligentMessage, userLoginlog: userLoginlog, getToken: getToken, @@ -435,4 +436,7 @@ function inspectionStaff(parm){ function isUpdater(id){ return fly.post(`actual/base/residentCategoryUpdateInfo/isUpdater/${id}`) } - +//热线接办列表 +function icEventList(){ + return fly.post(`governance/icEvent/list`) +}