Browse Source

返回统一放大,诉求摸排bug

jw-featrue-zhanlibiao
mk 2 years ago
parent
commit
d8d851a348
  1. 2
      subpages/addResi/pages/addResi/addResi.wxml
  2. 2
      subpages/addhouse/pages/addhouse/addhouse.wxml
  3. 12
      subpages/communitySelfInsp/pages/followUpDetail/followUpDetail.js
  4. 2
      subpages/communitySelfInsp/pages/followUpDetail/followUpDetail.wxml
  5. 2
      subpages/communitySelfInsp/pages/followUpDetail/followUpDetail.wxss
  6. 2
      subpages/communitySelfInsp/pages/historyQuery/historyQuery.wxml
  7. 2
      subpages/communitySelfInsp/pages/historyQuery/historyQuery.wxss
  8. 2
      subpages/communitySelfInsp/pages/synthesis/synthesis.wxml
  9. 2
      subpages/communitySelfInsp/pages/synthesis/synthesis.wxss
  10. 40
      subpages/demandCheck/pages/dissatisfied/demandCheck/demandCheck.js
  11. 2
      subpages/demandCheck/pages/dissatisfied/searchResi/searchResi.js
  12. 2
      subpages/searchResult/pages/searchRecords/searchRecords.wxml
  13. 2
      subpages/searchResult/pages/searchRecords/searchRecords.wxss
  14. 2
      subpages/searchResult/pages/searchResult/searchResult.wxml
  15. 2
      subpages/searchResult/pages/searchResult/searchResult.wxss
  16. 7
      utils/api.js

2
subpages/addResi/pages/addResi/addResi.wxml

@ -1,6 +1,6 @@
<!--subpages/addResi/pages/addResi/addResi.wxml--> <!--subpages/addResi/pages/addResi/addResi.wxml-->
<view class="header"> <view class="header">
<image src="../../../../images/back.png" class="back" style=" top: {{statusHeight}}px;width: 30rpx;height: 30rpx;" bindtap="back" mode=""/> <image src="../../../../images/back.png" class="back" style=" top: {{statusHeight}}px;width: 50rpx;height: 50rpx;" bindtap="back" mode=""/>
<image class="header-bg" src="../images/header.png" mode="widthFix" /> <image class="header-bg" src="../images/header.png" mode="widthFix" />
<view class="navigation" style="height: {{navigationHeight}}px; top: {{statusHeight}}px;"> <view class="navigation" style="height: {{navigationHeight}}px; top: {{statusHeight}}px;">
{{formType == 'edit'?'修改居民信息':'新增居民信息'}} {{formType == 'edit'?'修改居民信息':'新增居民信息'}}

2
subpages/addhouse/pages/addhouse/addhouse.wxml

@ -1,6 +1,6 @@
<!--subpages/addhouse/pages/addhouse/addhouse.wxml--> <!--subpages/addhouse/pages/addhouse/addhouse.wxml-->
<view class="header"> <view class="header">
<image src="../../../../images/back.png" class="back" style=" top: {{statusHeight}}px;width: 30rpx;height: 30rpx;" bindtap="back" mode=""/> <image src="../../../../images/back.png" class="back" style=" top: {{statusHeight}}px;width: 50rpx;height: 50rpx;" bindtap="back" mode=""/>
<image class="header-bg" src="../images/header.png" mode="widthFix" /> <image class="header-bg" src="../images/header.png" mode="widthFix" />
<view class="navigation" style="height: {{navigationHeight}}px; top: {{statusHeight}}px;"> <view class="navigation" style="height: {{navigationHeight}}px; top: {{statusHeight}}px;">
{{formType == 'edit'?'修改房屋信息':'新增房屋信息'}} {{formType == 'edit'?'修改房屋信息':'新增房屋信息'}}

12
subpages/communitySelfInsp/pages/followUpDetail/followUpDetail.js

@ -40,6 +40,7 @@ Page({
navigationHeight: app.globalData.deviceInfo.navigationHeight, navigationHeight: app.globalData.deviceInfo.navigationHeight,
formType:options.type formType:options.type
}) })
this.getFollowUpDetail(temp.id)
if(options.type == 'add'){ if(options.type == 'add'){
this.setData({ this.setData({
resiInfo:temp, resiInfo:temp,
@ -58,7 +59,16 @@ Page({
} }
}, },
getFollowUpDetail(id){
api.getFollowUpDetail(id).then(res=>{
console.log(res);
this.setData({
'resiInfo.reasons':res.data.categoryAndReasons
})
}).catch(err=>{
console.log(err);
})
},
/** /**
* 生命周期函数--监听页面初次渲染完成 * 生命周期函数--监听页面初次渲染完成
*/ */

2
subpages/communitySelfInsp/pages/followUpDetail/followUpDetail.wxml

@ -1,5 +1,5 @@
<view class="header"> <view class="header">
<image src="../../../../images/back.png" class="back" style=" top: {{statusHeight}}px;width: 30rpx;height: 30rpx;" bindtap="back" mode="" /> <image src="../../../../images/back.png" class="back" style=" top: {{statusHeight}}px;width: 50rpx;height: 50rpx;" bindtap="back" mode="" />
<view class="navigation" style="height: {{navigationHeight}}px; top: {{statusHeight}}px;"> <view class="navigation" style="height: {{navigationHeight}}px; top: {{statusHeight}}px;">
{{title}} {{title}}
</view> </view>

2
subpages/communitySelfInsp/pages/followUpDetail/followUpDetail.wxss

@ -48,7 +48,7 @@ page {
height: 30rpx; height: 30rpx;
margin-left: 20rpx; margin-left: 20rpx;
position: absolute; position: absolute;
margin-top: 25rpx; margin-top: 20rpx;
border-radius: 0rpx; border-radius: 0rpx;
z-index: 2; z-index: 2;
} }

2
subpages/communitySelfInsp/pages/historyQuery/historyQuery.wxml

@ -1,5 +1,5 @@
<view class="header"> <view class="header">
<image src="../../../../images/back.png" class="back" style=" top: {{statusHeight}}px;width: 30rpx;height: 30rpx;" bindtap="back" mode="" /> <image src="../../../../images/back.png" class="back" style=" top: {{statusHeight}}px;width: 50rpx;height: 50rpx;" bindtap="back" mode="" />
<view class="navigation" style="height: {{navigationHeight}}px; top: {{statusHeight}}px;"> <view class="navigation" style="height: {{navigationHeight}}px; top: {{statusHeight}}px;">
{{title}} {{title}}
</view> </view>

2
subpages/communitySelfInsp/pages/historyQuery/historyQuery.wxss

@ -36,7 +36,7 @@ page {
height: 30rpx; height: 30rpx;
margin-left: 20rpx; margin-left: 20rpx;
position: absolute; position: absolute;
margin-top: 25rpx; margin-top: 20rpx;
border-radius: 0rpx; border-radius: 0rpx;
z-index: 2; z-index: 2;
} }

2
subpages/communitySelfInsp/pages/synthesis/synthesis.wxml

@ -1,6 +1,6 @@
<view class="header"> <view class="header">
<image class="header-bg" src="../../../../images/work/bg.png" mode="widthFix" /> <image class="header-bg" src="../../../../images/work/bg.png" mode="widthFix" />
<image src="../../../../images/back.png" class="back" bind:tap="back" style=" top: {{statusHeight}}px;width: 30rpx;height: 30rpx;" bindtap="back" mode=""/> <image src="../../../../images/back.png" class="back" bind:tap="back" style=" top: {{statusHeight}}px;width: 50rpx;height: 50rpx;" bindtap="back" mode=""/>
<view class="navigation" style="height: {{navigationHeight}}px; top: {{statusHeight}}px;"> <view class="navigation" style="height: {{navigationHeight}}px; top: {{statusHeight}}px;">
社区满意度自查 社区满意度自查
</view> </view>

2
subpages/communitySelfInsp/pages/synthesis/synthesis.wxss

@ -42,7 +42,7 @@ page {
height: 30rpx; height: 30rpx;
margin-left: 20rpx; margin-left: 20rpx;
position: absolute; position: absolute;
margin-top: 25rpx; margin-top: 20rpx;
border-radius: 0rpx; border-radius: 0rpx;
z-index: 101; z-index: 101;
} }

40
subpages/demandCheck/pages/dissatisfied/demandCheck/demandCheck.js

@ -13,7 +13,6 @@ Page({
*/ */
data: { data: {
fmData: { fmData: {
time: '',
gridId: '', gridId: '',
attachmentList:[],//图片 attachmentList:[],//图片
voiceList:[], voiceList:[],
@ -23,8 +22,6 @@ Page({
happenTime:"", happenTime:"",
content:"",//内容 content:"",//内容
address:"",//地址 address:"",//地址
wantServiceTime:"",
reportType:''
}, },
minDate: '2018-01-01 00:00:00', minDate: '2018-01-01 00:00:00',
@ -90,7 +87,6 @@ Page({
this.reverseLocation() this.reverseLocation()
this.setData({ this.setData({
'fmData.time': Date.now(),
angencyId:app.globalData.user.agencyId, angencyId:app.globalData.user.agencyId,
reportUserName:app.globalData.user.realName, reportUserName:app.globalData.user.realName,
reportUserMobile:app.globalData.user.phone, reportUserMobile:app.globalData.user.phone,
@ -154,6 +150,7 @@ Page({
longitude: res.longitude, longitude: res.longitude,
latitude: res.latitude latitude: res.latitude
}, },
addressContent:res.address
}); });
console.log(this.data.fmData); console.log(this.data.fmData);
} }
@ -295,12 +292,11 @@ Page({
const para = this.data.fmData const para = this.data.fmData
console.log(para,'事件'); console.log(para,'事件');
api.addEvent(para).then(res => { api.addEvent(para).then(res => {
wx.hideLoading()
console.log(res); console.log(res);
if (res.code === 0) { if (res.code === 0) {
wx.showModal({ wx.showModal({
title: '提示', title: '提示',
content: `您的诉求我们已经查收,正在快马加鞭办理,请您耐心等待`, content: `提交成功`,
confirmText: '确认', confirmText: '确认',
showCancel: false, showCancel: false,
success: res => { success: res => {
@ -315,7 +311,6 @@ Page({
showTime:'', showTime:'',
resiName:'', resiName:'',
resiMobile:'', resiMobile:'',
'fmData.time':'',
'fmData.gridId':'', 'fmData.gridId':'',
'fmData.attachmentList':[],//图片 'fmData.attachmentList':[],//图片
'fmData.voiceList':[], 'fmData.voiceList':[],
@ -324,14 +319,17 @@ Page({
'fmData.resiId':"", 'fmData.resiId':"",
'fmData.happenTime':"", 'fmData.happenTime':"",
'fmData.content':"",//内容 'fmData.content':"",//内容
'fmData.address':"",//地址
'fmData.wantServiceTime':"", 'fmData.wantServiceTime':"",
'fmData.reportType':'' 'fmData.reportType':''
}) })
wx.switchTab({
url: '/pages/work/work',
})
} }
}) })
wx.removeStorageSync('resiDetail') wx.removeStorageSync('resiDetail')
} else { } else {
console.log('提交失败');
wx.showToast({ wx.showToast({
title: "提交失败,请重试~", title: "提交失败,请重试~",
icon: "none", icon: "none",
@ -343,11 +341,18 @@ Page({
} }
}).catch(err => { }).catch(err => {
console.log(err) console.log(err)
wx.hideLoading() wx.showToast({
title: "提交失败,请重试~",
icon: "none",
duration: 1500
})
this.setData({ this.setData({
submitDisabled: false submitDisabled: false
}) })
}) })
setTimeout(function(){
wx.hideLoading()
},1000)
}, },
// 个性服务提交 // 个性服务提交
submitMeasure(){ submitMeasure(){
@ -375,12 +380,11 @@ Page({
} }
console.log(para,'服务'); console.log(para,'服务');
api.addMeasure(para).then(res => { api.addMeasure(para).then(res => {
wx.hideLoading()
console.log(res); console.log(res);
if (res.data) { if (res.data) {
wx.showModal({ wx.showModal({
title: '提示', title: '提示',
content: `您的需求我们已经查收,正在快马加鞭办理,请您耐心等待`, content: `提交成功`,
confirmText: '确认', confirmText: '确认',
showCancel: false, showCancel: false,
success: res => { success: res => {
@ -398,7 +402,6 @@ Page({
categoryName:'', categoryName:'',
reportTypeName:'', reportTypeName:'',
showWantServiceTimeTime:'', showWantServiceTimeTime:'',
'fmData.time':'',
'fmData.gridId':'', 'fmData.gridId':'',
'fmData.attachmentList':[],//图片 'fmData.attachmentList':[],//图片
'fmData.voiceList':[], 'fmData.voiceList':[],
@ -407,10 +410,12 @@ Page({
'fmData.resiId':"", 'fmData.resiId':"",
'fmData.happenTime':"", 'fmData.happenTime':"",
'fmData.content':"",//内容 'fmData.content':"",//内容
'fmData.address':"",//地址
'fmData.wantServiceTime':"", 'fmData.wantServiceTime':"",
'fmData.reportType':'' 'fmData.reportType':''
}) })
wx.switchTab({
url: '/pages/work/work',
})
} }
}) })
wx.removeStorageSync('resiDetail') wx.removeStorageSync('resiDetail')
@ -426,11 +431,18 @@ Page({
} }
}).catch(err => { }).catch(err => {
console.log(err) console.log(err)
wx.hideLoading() wx.showToast({
title: "提交失败,请重试~",
icon: "none",
duration: 1500
})
this.setData({ this.setData({
submitDisabled: false submitDisabled: false
}) })
}) })
setTimeout(function(){
wx.hideLoading()
},1000)
}, },
// 双向绑定 内容输入框 // 双向绑定 内容输入框
bindTextareaInput(e) { bindTextareaInput(e) {

2
subpages/demandCheck/pages/dissatisfied/searchResi/searchResi.js

@ -37,7 +37,7 @@ Page({
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad(options) { onLoad(options) {
this.getTable() // this.getTable()
this.getQuartersOptions() this.getQuartersOptions()
}, },

2
subpages/searchResult/pages/searchRecords/searchRecords.wxml

@ -1,5 +1,5 @@
<view class="header"> <view class="header">
<image src="../../../../images/back.png" class="back" style=" top: {{statusHeight}}px;width: 30rpx;height: 30rpx;" bindtap="back" mode=""/> <image src="../../../../images/back.png" class="back" style=" top: {{statusHeight}}px;width: 50rpx;height: 50rpx;" bindtap="back" mode=""/>
<view class="navigation" style="height: {{navigationHeight}}px; top: {{statusHeight}}px;"> <view class="navigation" style="height: {{navigationHeight}}px; top: {{statusHeight}}px;">
搜索历史 搜索历史
</view> </view>

2
subpages/searchResult/pages/searchRecords/searchRecords.wxss

@ -75,7 +75,7 @@ page {
height: 30rpx; height: 30rpx;
margin-left: 20rpx; margin-left: 20rpx;
position: absolute; position: absolute;
margin-top: 25rpx; margin-top: 20rpx;
border-radius: 0rpx; border-radius: 0rpx;
z-index: 2; z-index: 2;
} }

2
subpages/searchResult/pages/searchResult/searchResult.wxml

@ -1,6 +1,6 @@
<!--subpages/searchResult/pages/searchResult/searchResult.wxml--> <!--subpages/searchResult/pages/searchResult/searchResult.wxml-->
<view class="header"> <view class="header">
<image src="../../../../images/back.png" class="back" style=" top: {{statusHeight}}px;width: 30rpx;height: 30rpx;" bindtap="back" mode=""/> <image src="../../../../images/back.png" class="back" style=" top: {{statusHeight}}px;width: 50rpx;height: 50rpx;" bindtap="back" mode=""/>
<view class="navigation" style="height: {{navigationHeight}}px; top: {{statusHeight}}px;"> <view class="navigation" style="height: {{navigationHeight}}px; top: {{statusHeight}}px;">
{{title}} {{title}}
</view> </view>

2
subpages/searchResult/pages/searchResult/searchResult.wxss

@ -37,7 +37,7 @@ page {
height: 30rpx; height: 30rpx;
margin-left: 20rpx; margin-left: 20rpx;
position: absolute; position: absolute;
margin-top: 25rpx; margin-top: 20rpx;
border-radius: 0rpx; border-radius: 0rpx;
z-index: 2; z-index: 2;
} }

7
utils/api.js

@ -39,7 +39,8 @@ module.exports = {
addEvent, addEvent,
getResidentBaseInfoPage, getResidentBaseInfoPage,
getDemandoption, getDemandoption,
addMeasure addMeasure,
getFollowUpDetail
} }
// 消息列表 // 消息列表
function getIntelligentMessage(param){ function getIntelligentMessage(param){
@ -202,3 +203,7 @@ function getDemandoption (parm) {
function addMeasure(parm) { function addMeasure(parm) {
return fly.post(`governance/userdemand/add`,parm) return fly.post(`governance/userdemand/add`,parm)
} }
// 获取不满意原因
function getFollowUpDetail(id) {
return fly.get(`governance/satisfaction/communitySelfInsp/followUp/detail/${id}`)
}

Loading…
Cancel
Save