| | |
| | | _initEvent: function () { |
| | | vc.on("addComplaintStep", "notify", function (_info) { |
| | | vc.component.addComplaintStepInfo.infos[vc.component.addComplaintStepInfo.index] = _info; |
| | | if(vc.component.addComplaintStepInfo.index == 0){ |
| | | vc.emit('searchRoom','listenerFloorInfo',_info); |
| | | } |
| | | }); |
| | | |
| | | }, |
| | |
| | | |
| | | vc.emit('viewFloorInfo', 'onIndex', vc.component.addComplaintStepInfo.index); |
| | | vc.emit('sellRoomSelectRoom', 'onIndex', vc.component.addComplaintStepInfo.index); |
| | | vc.emit('addComplain', 'onIndex', vc.component.addComplaintStepInfo.index); |
| | | vc.emit('addComplainView', 'onIndex', vc.component.addComplaintStepInfo.index); |
| | | |
| | | }, |
| | | _nextStep: function () { |
| | |
| | | |
| | | vc.emit('viewFloorInfo', 'onIndex', vc.component.addComplaintStepInfo.index); |
| | | vc.emit('sellRoomSelectRoom', 'onIndex', vc.component.addComplaintStepInfo.index); |
| | | vc.emit('addComplain', 'onIndex', vc.component.addComplaintStepInfo.index); |
| | | vc.emit('addComplainView', 'onIndex', vc.component.addComplaintStepInfo.index); |
| | | |
| | | }, |
| | | _finishStep: function () { |
| | |
| | | return; |
| | | } |
| | | |
| | | var param = { |
| | | /*var param = { |
| | | data: vc.component.addComplaintStepInfo.infos |
| | | } |
| | | }*/ |
| | | vc.component.addComplaintStepInfo.infos[2].roomId = vc.component.addComplaintStepInfo.infos[1].roomId; |
| | | |
| | | vc.http.post( |
| | | 'addComplaintStepBinding', |
| | | 'binding', |
| | | JSON.stringify(param), |
| | | JSON.stringify(vc.component.addComplaintStepInfo.infos[2]), |
| | | { |
| | | emulateJSON: true |
| | | }, |