Merge branch 'master' of http://192.168.0.105:10010/r/zhba_app
| | |
| | | var that = this; |
| | | that.senId = WxStorage.get("ids"); |
| | | uni.request({ |
| | | url:"http://223.82.109.183:2082/api/chat-records/getSingleMessagePage", |
| | | url:"http://223.82.109.183:2080/api/chat-records/getSingleMessagePage", |
| | | method:"get", |
| | | data:{ |
| | | senderId: that.senId, |
| | |
| | | } |
| | | |
| | | uni.request({ |
| | | url:"http://223.82.109.183:2082/api/chat-records/insertSingleChat", |
| | | url:"http://223.82.109.183:2080/api/chat-records/insertSingleChat", |
| | | method:"post", |
| | | data:{ |
| | | senderId: that.senId, |
| | |
| | | var that = this; |
| | | if(this.current == 0){ |
| | | uni.request({ |
| | | url:"http://223.82.109.183:2082/api/chat-records/getChatListPage", |
| | | url:"http://223.82.109.183:2080/api/chat-records/getChatListPage", |
| | | method:"get", |
| | | data:{ |
| | | senderId: WxStorage.get("ids") |
| | |
| | | }); |
| | | }else if(this.current == 1){ |
| | | uni.request({ |
| | | url:"http://223.82.109.183:2082/api/chatgroup/selectList", |
| | | url:"http://223.82.109.183:2080/api/chatgroup/selectList", |
| | | method:"POST", |
| | | data:{ |
| | | senderId: WxStorage.get("ids") |
| | |
| | | }) |
| | | }else if(this.current == 2){ |
| | | uni.request({ |
| | | url:"http://223.82.109.183:2082/api/blade-user/pages?current=1&size=9999", |
| | | url:"http://223.82.109.183:2080/api/blade-user/pages?current=1&size=9999", |
| | | method:"get", |
| | | data:{ |
| | | senderId: WxStorage.get("ids") |
| | |
| | | </view> |
| | | <!-- 新闻模块 end --> |
| | | </view> |
| | | <u-button class="ccbut" type="primary" @click="openVideo('Mains')">测试点视频通话:主播</u-button> |
| | | <u-button class="ccbut" type="primary" @click="openVideo('Receiver')">测试点视频通话:第二个</u-button> |
| | | <!-- <u-button class="ccbut" type="primary" @click="openVideo('Mains')">测试点视频通话:主播</u-button> |
| | | <u-button class="ccbut" type="primary" @click="openVideo('Receiver')">测试点视频通话:第二个</u-button> --> |
| | | </view> |
| | | </template> |
| | | |
| | |
| | | }, |
| | | logPath: '', |
| | | // piAPI: 'http://223.82.109.183:2080/api', |
| | | piAPI: 'http://223.82.109.183:2082/api', |
| | | api: 'http://192.168.0.111:83', |
| | | piAPI: 'http://223.82.109.183:2080/api', |
| | | api: 'http://223.82.109.183:2080/api', |
| | | // piAPI: 'http://localhost:82/', |
| | | // piAPI: 'http://192.168.0.108:81', |
| | | puserName: '', |
| | |
| | | console.log('登入数据传输成功 开始进入连接') |
| | | |
| | | uni.connectSocket({ |
| | | url: 'ws://192.168.0.111:9034/websocket' |
| | | url: 'ws://http://223.82.109.183:2086/websocket' |
| | | }); |
| | | var socketOpen = false; |
| | | uni.onSocketOpen(function(res) { |