diff --git a/epdc-resident-mp-yushan/app.json b/epdc-resident-mp-yushan/app.json index 7636663..4b6db3a 100644 --- a/epdc-resident-mp-yushan/app.json +++ b/epdc-resident-mp-yushan/app.json @@ -255,12 +255,6 @@ "iconPath": "images/home.png", "selectedIconPath": "images/home-active.png" }, - { - "pagePath": "pages/discussion/discussion", - "text": "有么说么", - "iconPath": "images/discuss.png", - "selectedIconPath": "images/discussion-active.png" - }, { "pagePath": "pages/association/association", "text": "左邻右舍", diff --git a/epdc-resident-mp-yushan/pages/discussion/discussion.json b/epdc-resident-mp-yushan/pages/discussion/discussion.json index 0495b99..c7d31a2 100644 --- a/epdc-resident-mp-yushan/pages/discussion/discussion.json +++ b/epdc-resident-mp-yushan/pages/discussion/discussion.json @@ -1,5 +1,5 @@ { - "navigationBarTitleText": "有么说么", + "navigationBarTitleText": "我有事要说", "usingComponents": { "issue-list": "./components/issueList/issueList", "project-list": "./components/projectList/projectList", diff --git a/epdc-resident-mp-yushan/pages/index/index.js b/epdc-resident-mp-yushan/pages/index/index.js index e43cbe0..d516022 100644 --- a/epdc-resident-mp-yushan/pages/index/index.js +++ b/epdc-resident-mp-yushan/pages/index/index.js @@ -389,8 +389,11 @@ Page({ return false } wx.navigateTo({ - url: '/subpages/discussion/pages/addIssue/addIssue' + url: '/pages/discussion/discussion' }) + // wx.navigateTo({ + // url: '/subpages/discussion/pages/addIssue/addIssue' + // }) }, navigateToWork() { if (app.globalData.infoCompleted == 0) { @@ -430,8 +433,21 @@ Page({ // 拨打便民服务电话 callPhone(e) { const { phone } = e.currentTarget.dataset - wx.makePhoneCall({ - phoneNumber: phone + wx.showModal({ + title: `拨打${phone}`, + content: '', + cancelColor: '#29B9A5', + confirmColor: '#29B9A5', + success: (res) => { + if (res.confirm) { + console.log('用户点击确定') + wx.makePhoneCall({ + phoneNumber: phone, + }) + } else if (res.cancel) { + console.log('用户点击取消') + } + }, }) }, changeTab(e) { diff --git a/epdc-resident-mp-yushan/pages/index/index.wxml b/epdc-resident-mp-yushan/pages/index/index.wxml index 06bab08..bd5b7ec 100644 --- a/epdc-resident-mp-yushan/pages/index/index.wxml +++ b/epdc-resident-mp-yushan/pages/index/index.wxml @@ -59,15 +59,21 @@ --> + + + + + 榆山12345 + - + 我有事要说 - + 我有事要办 @@ -139,7 +145,7 @@ - + \ No newline at end of file diff --git a/epdc-resident-mp-yushan/pages/toRegister/toRegister.js b/epdc-resident-mp-yushan/pages/toRegister/toRegister.js index be3aa5e..a168218 100644 --- a/epdc-resident-mp-yushan/pages/toRegister/toRegister.js +++ b/epdc-resident-mp-yushan/pages/toRegister/toRegister.js @@ -21,7 +21,7 @@ Page({ } }) let that = this - const versionNum = '1.2.17' + const versionNum = '1.2.18' api.getScanSwitch(versionNum).then(function (res) { console.log(res.data) let state = res.data ? res.data.scanFlag : '1' diff --git a/epdc-resident-mp-yushan/subpages/fingertipYushan/pages/index/index.js b/epdc-resident-mp-yushan/subpages/fingertipYushan/pages/index/index.js index d30b4ee..2ef612f 100644 --- a/epdc-resident-mp-yushan/subpages/fingertipYushan/pages/index/index.js +++ b/epdc-resident-mp-yushan/subpages/fingertipYushan/pages/index/index.js @@ -12,7 +12,8 @@ Page({ loadMoreVisible: false, isLoadMore: false, modulelist: [], - pid: '1438320938730868737' + pid: '1438320938730868737', + typeCode: 'ZJYS' }, /** @@ -38,7 +39,8 @@ Page({ let params = { pageIndex: this.data.pageIndex, pageSize: this.data.pageSize, - pid: this.data.pid + // pid: this.data.pid + typeCode: this.data.typeCode } api.getModuleList(params).then(res => { console.log(res.data) diff --git a/epdc-resident-mp-yushan/subpages/workTodo/pages/index/index.js b/epdc-resident-mp-yushan/subpages/workTodo/pages/index/index.js index 2d6c23f..2984794 100644 --- a/epdc-resident-mp-yushan/subpages/workTodo/pages/index/index.js +++ b/epdc-resident-mp-yushan/subpages/workTodo/pages/index/index.js @@ -9,6 +9,7 @@ Page({ isLoadMore: false, //是否显示load-more组件 modulelist: [], pid: '1438320849966813186', //主页获取一键服务pid + typeCode: 'YSYB' }, onLoad: function (options) { if (options.pid) { @@ -22,7 +23,8 @@ Page({ let params = { pageIndex: this.data.pageIndex, pageSize: this.data.pageSize, - pid: this.data.pid, + // pid: this.data.pid, + typeCode: this.data.typeCode } getModuleList(params) .then((res) => {