Merge remote-tracking branch 'origin/master'
# Conflicts:
# pages/alarm_list/alarm_list.vue
| | |
| | | export default{ |
| | | data(){ |
| | | return{ |
| | | // pathUrl:"http://localhost:89", |
| | | pathUrl:"http://s16s652780.51mypc.cn/api", |
| | | pathUrl:"http://localhost:82", |
| | | // pathUrl:"http://s16s652780.51mypc.cn/api/blade-jfpts", |
| | | totalColor:"#51A2FE", |
| | | loadColor:"#000000", |
| | | loadBeforeColor:"#000000", |
| | |
| | | if(this.$store.state.puserID){ |
| | | //获取全部的数据 |
| | | uni.request({ |
| | | url:this.pathUrl + "/alarm/alarm/APP-getAlarmListPage", |
| | | url:this.$store.state.piAPI + "alarm/alarm/APP-getAlarmListPage", |
| | | method:"GET", |
| | | data:{ |
| | | securityId:this.$store.state.puserID, |
| | |
| | | }, |
| | | //接收任务 |
| | | receives() { |
| | | var url = this.$store.state.piAPI + "/alarm/alarm/APP-setAlarm", |
| | | var url = this.$store.state.piAPI + "alarm/alarm/APP-setAlarm", |
| | | Pid = this.itemData.id, |
| | | id = this.$store.state.puserID, //警察id |
| | | name = this.$store.state.puserName, //警察id |
| | |
| | | alarmPeople: name |
| | | }, |
| | | that = this; |
| | | console.log(data); |
| | | uni.request({ |
| | | url: url, |
| | | data: data, |
| | |
| | | } |
| | | this.$store.commit('getUse', data) |
| | | wx.reLaunch({ |
| | | url: '/pages/workbench/workbench?login=' + data.userName |
| | | url: '/pages/alarm_list/alarm_list?login=' + data.userName |
| | | }) |
| | | } |
| | | }, |
| | |
| | | this.passwords = '******'; |
| | | uni.hideNavigationBarLoading(); |
| | | uni.reLaunch({ |
| | | url: '../workbench/workbench' |
| | | url: '../alarm_list/alarm_list' |
| | | }) |
| | | return '成功登入' |
| | | } else { |
| | |
| | | imgs: [], |
| | | videos: [], |
| | | // pathUrl:'http://s16s652780.51mypc.cn/api/blade-jfpts', |
| | | pathUrl:'http://localhost:89', |
| | | pathUrl:'http://localhost:82', |
| | | } |
| | | }, |
| | | methods: { |
| | |
| | | // console.log(i[k].src) |
| | | dataList.tpaddress += i[k].src + ',' |
| | | } |
| | | dataList.tpaddress = dataList.tpaddress.substring(0,dataList.tpaddress.length-1); |
| | | } |
| | | if (this.videos.length > 0) { |
| | | var i = this.videos; |
| | |
| | | // console.log(i[k].src) |
| | | dataList.spaddress += i[k].src + ',' |
| | | } |
| | | dataList.spaddress = dataList.spaddress.substring(0,dataList.spaddress.length-1); |
| | | } |
| | | // console.log(dataList) |
| | | uni.showLoading({ |
| | |
| | | mask: true |
| | | }) |
| | | uni.request({ |
| | | url: this.pathUrl + '/feedback/feedback/saves', |
| | | url: this.$store.state.piAPI + 'feedback/feedback/saves', |
| | | data: dataList, |
| | | method: 'POST', |
| | | header: { |
| | |
| | | useName: '过客 ', |
| | | }, |
| | | logPath: '', |
| | | piAPI: 'http://s16s652780.51mypc.cn/api/', |
| | | // piAPI: 'http://s16s652780.51mypc.cn/api/', |
| | | piAPI: 'http://localhost:82/', |
| | | puserName: '', |
| | | puserID: '', |
| | | puserIphone:'', |