| | |
| | | var jurisdictionId = this.GetQueryString('id') |
| | | this.userId = this.GetQueryString('userid') |
| | | |
| | | axios.get('http://223.82.109.183:2080/api/blade-user/page?size=99999&jurisdiction=' + jurisdictionId).then((res) => { |
| | | axios.get(this.$store.state.piAPI + '/blade-user/page?size=99999&jurisdiction=' + jurisdictionId).then((res) => { |
| | | |
| | | if (res.data.data.records.length > 0) { |
| | | res.data.data.records.forEach(item => { |
| | |
| | | }, |
| | | onLoad() { |
| | | this.createData = this.$store.state.UserData |
| | | // http://223.82.109.183:2080/api |
| | | |
| | | }, |
| | | onReachBottom() { |
| | |
| | | var that = this; |
| | | that.senId = WxStorage.get("ids"); |
| | | uni.request({ |
| | | url:"http://223.82.109.183:2080/api/chat-records/getSingleMessagePage", |
| | | url:this.$store.state.piAPI + "/chat-records/getSingleMessagePage", |
| | | method:"get", |
| | | data:{ |
| | | senderId: that.senId, |
| | |
| | | } |
| | | |
| | | uni.request({ |
| | | url:"http://223.82.109.183:2080/api/chat-records/insertSingleChat", |
| | | url:this.$store.state.piAPI + "/chat-records/insertSingleChat", |
| | | method:"post", |
| | | data:{ |
| | | senderId: that.senId, |
| | |
| | | this.$nextTick(() => { |
| | | let len = this.msgs.length -1 |
| | | this.scrollToView = 'msg' + this.msgs[len].tip |
| | | }) |
| | | }) |
| | | }, |
| | | // 地图定位 |
| | | covers(e) { |
| | |
| | | var that = this; |
| | | if (this.current == 0) { |
| | | uni.request({ |
| | | url: "http://223.82.109.183:2080/api/chat-records/getChatListPage", |
| | | url: this.$store.state.piAPI + "/chat-records/getChatListPage", |
| | | method: "get", |
| | | data: { |
| | | senderId: WxStorage.get("ids") |
| | |
| | | }); |
| | | } else if (this.current == 1) { |
| | | uni.request({ |
| | | url: "http://223.82.109.183:2080/api/blade-user/page?current=1&size=9999", |
| | | url: this.$store.state.piAPI + "/blade-user/page?current=1&size=9999", |
| | | method: "get", |
| | | data: { |
| | | senderId: WxStorage.get("ids") |
| | |
| | | } else if (this.current == 2) { |
| | | |
| | | uni.request({ |
| | | url: "http://223.82.109.183:2080/api/chatgroup/selectList", |
| | | url: this.$store.state.piAPI + "/chatgroup/selectList", |
| | | method: "POST", |
| | | data: { |
| | | senderId: WxStorage.get("ids") |
| | |
| | | // var img = res.tempFiles; |
| | | // console.log('img', img) |
| | | // // imgToBase64(res) |
| | | // var url = that.$store.state.piAPI + 'blade-user/faceCompare', |
| | | // var url = that.$store.state.piAPI + '/blade-user/faceCompare', |
| | | // // var url = 'http://192.168.0.114:82/' + 'blade-user/faceCompare', |
| | | // data = { |
| | | // "name": that.form.name, |
| | |
| | | // that.tenantName = this.$store.state.UserData.tenantName |
| | | |
| | | } |
| | | // uni.request({ |
| | | // url:'http://223.82.109.183:2080/api/blade-user/details?id='+this.$store.state.puserID, |
| | | // method:'POST', |
| | | // success(resdata) { |
| | | // that.name = resdata.data.data.realName; |
| | | // that.id = resdata.data.data.id; |
| | | // that.tenantName = resdata.data.data.tenantName; |
| | | // } |
| | | // }) |
| | | }, |
| | | }, |
| | | mounted() { |
| | |
| | | var addr = position.addr; //详细地址 |
| | | |
| | | wx.request({ |
| | | url: "http://223.82.109.183:2080/api/liveLocation/saveLiveLocationAndLocus", |
| | | url: this.$store.state.piAPI + "/liveLocation/saveLiveLocationAndLocus", |
| | | method: "post", |
| | | data: { |
| | | type: 1, |
| | |
| | | }, |
| | | ], |
| | | pasw = md5(data.pass), |
| | | // url = 'http://223.82.109.183:2080/api/blade-auth/oauth/token?tenantId=000000&username=' + data.name + |
| | | // url = this.$store.state.piAPI + '/blade-auth/oauth/token?tenantId=000000&username=' + data.name + |
| | | url = store.state.piAPI + '/blade-auth/oauth/token?tenantId=000000&username=' + data.name + |
| | | ' &password=' + pasw + '&grant_type=password&scope=all&type=account'; |
| | | // url ='http://192.168.0.109:82/blade-auth/oauth/token'; |
| | |
| | | 30000) |
| | | |
| | | uni.request({ |
| | | url: "http://223.82.109.183:2080/api/blade-system/dept/detail?id=" + res |
| | | url: this.$store.state.piAPI + "/blade-system/dept/detail?id=" + res |
| | | .data.dept_id, |
| | | method: "get", |
| | | data: { |
| | |
| | | }, |
| | | ], |
| | | pasw = md5(data.pass), |
| | | // url = 'http://223.82.109.183:2080/api/blade-auth/oauth/token?tenantId=000000&username=' + data.name + |
| | | url = store.state.piAPI + '/blade-auth/oauth/token?tenantId=000000&username=' + data.name + |
| | | ' &password=' + pasw + '&grant_type=password&scope=all&type=account'; |
| | | // url ='http://192.168.0.109:82/blade-auth/oauth/token'; |
| | |
| | | }) |
| | | |
| | | uni.request({ |
| | | url: "http://223.82.109.183:2080/api/blade-system/dept/detail?id=" + res |
| | | url: this.$store.state.piAPI + "/blade-system/dept/detail?id=" + res |
| | | .data.dept_id, |
| | | method: "get", |
| | | data: { |
| | |
| | | //url解码 |
| | | var policeId = this.GetQueryString('id'); |
| | | var that = this; |
| | | axios.get('http://223.82.109.183:2080/api/blade-user/page?size=99999&jurisdiction=' + policeId).then((res) => { |
| | | axios.get(this.$store.state.piAPI + '/blade-user/page?size=99999&jurisdiction=' + policeId).then((res) => { |
| | | res.data.data.records.forEach(item => { |
| | | if (item.longitude && item.latitude) { |
| | | data.push(item) |
| | |
| | | //url解码 |
| | | var policeId = this.GetQueryString('id'); |
| | | console.log(policeId, 4654645) |
| | | axios.get('http://223.82.109.183:2080/api/blade-user/page?size=99999').then((res) => { |
| | | axios.get(this.$store.state.piAPI + '/blade-user/page?size=99999').then((res) => { |
| | | console.log(res, 4848) |
| | | res.data.data.records.forEach(item => { |
| | | if (item.longitude && item.latitude) { |