mirror of
https://gitee.com/java110/WechatOwnerService.git
synced 2026-06-12 10:00:57 +08:00
投诉
This commit is contained in:
parent
ded9e42228
commit
9ed82c09c3
@ -25,7 +25,7 @@ const queryOwnerMembers = baseUrl + 'app/owner.queryOwnerMembers';
|
|||||||
//投诉建议列表
|
//投诉建议列表
|
||||||
const listComplaints = baseUrl + 'app/complaint.listComplaints';
|
const listComplaints = baseUrl + 'app/complaint.listComplaints';
|
||||||
//添加投诉建议
|
//添加投诉建议
|
||||||
const saveComplaint = baseUrl + 'app/complaint.saveComplaint';
|
const saveComplaint = baseUrl + 'app/complaint';
|
||||||
//查询业主房间
|
//查询业主房间
|
||||||
const queryRoomsByOwner = baseUrl + 'app/room.queryRoomsByOwner';
|
const queryRoomsByOwner = baseUrl + 'app/room.queryRoomsByOwner';
|
||||||
|
|
||||||
|
|||||||
@ -198,6 +198,7 @@ const getRooms = function() {
|
|||||||
},
|
},
|
||||||
success: function(res) {
|
success: function(res) {
|
||||||
if (res.statusCode == 200) {
|
if (res.statusCode == 200) {
|
||||||
|
//将业主信息和房屋信息一起返回
|
||||||
res.data['owner'] = _owner;
|
res.data['owner'] = _owner;
|
||||||
resolve(res);
|
resolve(res);
|
||||||
}
|
}
|
||||||
|
|||||||
@ -25,6 +25,7 @@ Page({
|
|||||||
userId: '',
|
userId: '',
|
||||||
storeId: '',
|
storeId: '',
|
||||||
photos: [],
|
photos: [],
|
||||||
|
communityId:""
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -33,7 +34,6 @@ Page({
|
|||||||
onLoad: function(options) {
|
onLoad: function(options) {
|
||||||
let that = this;
|
let that = this;
|
||||||
context.getRooms().then(res=>{
|
context.getRooms().then(res=>{
|
||||||
console.log(res)
|
|
||||||
let arr = res.data.rooms;
|
let arr = res.data.rooms;
|
||||||
let roomCloums = [];
|
let roomCloums = [];
|
||||||
let roomIdArr = [];
|
let roomIdArr = [];
|
||||||
@ -44,7 +44,8 @@ Page({
|
|||||||
that.setData({
|
that.setData({
|
||||||
roomCloums: roomCloums,
|
roomCloums: roomCloums,
|
||||||
roomIdArr: roomIdArr,
|
roomIdArr: roomIdArr,
|
||||||
userId: res.data.owner.appUserId
|
userId: res.data.owner.appUserId,
|
||||||
|
communityId: res.data.owner.communityId
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@ -126,7 +127,7 @@ Page({
|
|||||||
"photos": [],
|
"photos": [],
|
||||||
"context": this.data.context,
|
"context": this.data.context,
|
||||||
"userId": this.data.userId,
|
"userId": this.data.userId,
|
||||||
"storeId": this.data.storeId
|
"communityId": this.data.communityId
|
||||||
}
|
}
|
||||||
|
|
||||||
let _photos = this.data.photos;
|
let _photos = this.data.photos;
|
||||||
|
|||||||
@ -49,35 +49,62 @@ Page({
|
|||||||
onShow: function () {
|
onShow: function () {
|
||||||
let that = this;
|
let that = this;
|
||||||
},
|
},
|
||||||
getTable: function (page, override) {
|
getTable:function(){
|
||||||
console.log(888888888);
|
context.getRooms().then(res=>{
|
||||||
let that = this;
|
console.log(res,898989);
|
||||||
this.setData({
|
context.request({
|
||||||
loading: true
|
url: constant.url.listComplaints,
|
||||||
})
|
header: context.getHeaders(),
|
||||||
return this.request({
|
method: "GET",
|
||||||
storeTypeCd: '800900000003',
|
// data: data,
|
||||||
storeId: '402019032924930007',
|
data: {
|
||||||
userName: 'wuxw',
|
// state: 10001,
|
||||||
userId: '30518940136629616640',
|
roomId: res.data.rooms[0].roomId,
|
||||||
complaintId: '111',
|
page: 1,
|
||||||
typeCd: '809002',
|
row: 10,
|
||||||
complaintName: '111',
|
communityId: res.data.owner.communityId
|
||||||
page: '1',
|
},
|
||||||
row: '10',
|
success: function (res) {
|
||||||
communityId: '7020181217000001'
|
if (res.statusCode == 200) {
|
||||||
// "page": page,
|
console.log(res, 88888888888);
|
||||||
// "row": 10
|
}
|
||||||
}).then(res => {
|
},
|
||||||
console.log(res,9999999999999)
|
fail: function (req) {
|
||||||
that.setData({
|
console.log(constant.url.listComplaints, req);
|
||||||
tableData: override ? res.data.complaints : this.data.tableData.concat(res.data.complaints),
|
}
|
||||||
totalPage: res.data.records,
|
|
||||||
page: page,
|
|
||||||
loading: false
|
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
},
|
},
|
||||||
|
// getTable: function (page, override) {
|
||||||
|
// console.log(888888888);
|
||||||
|
// let that = this;
|
||||||
|
// this.setData({
|
||||||
|
// loading: true
|
||||||
|
// })
|
||||||
|
// return this.request({
|
||||||
|
// storeTypeCd: '800900000003',
|
||||||
|
// storeId: '402019032924930007',
|
||||||
|
// userName: 'wuxw',
|
||||||
|
// userId: '30518940136629616640',
|
||||||
|
// complaintId: '111',
|
||||||
|
// typeCd: '809002',
|
||||||
|
// complaintName: '111',
|
||||||
|
// page: '1',
|
||||||
|
// row: '10',
|
||||||
|
// communityId: '7020181217000001'
|
||||||
|
// // "page": page,
|
||||||
|
// // "row": 10
|
||||||
|
// }).then(res => {
|
||||||
|
// console.log(res,9999999999999)
|
||||||
|
// that.setData({
|
||||||
|
// tableData: override ? res.data.complaints : this.data.tableData.concat(res.data.complaints),
|
||||||
|
// totalPage: res.data.records,
|
||||||
|
// page: page,
|
||||||
|
// loading: false
|
||||||
|
// })
|
||||||
|
// })
|
||||||
|
// },
|
||||||
goAdd: function (e) {
|
goAdd: function (e) {
|
||||||
wx.navigateTo({
|
wx.navigateTo({
|
||||||
url: "/pages/complaint/complaint"
|
url: "/pages/complaint/complaint"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user