聊天室
This commit is contained in:
parent
7c702cd4c3
commit
ee6e827232
|
@ -10,7 +10,7 @@
|
|||
// const ROOTPATH = "http://1.92.152.160/sqx_fast";
|
||||
// const ROOTPATH1 = "http://1.92.152.160/sqx_fast";
|
||||
|
||||
const ROOTPATH3 = "wss://sausers.blxinchuang.com/wss/websocket/";
|
||||
const ROOTPATH3 = "wss://sausers.blxinchuang.com/wss/chatSocket/";
|
||||
const ROOTPATH = "https://sausers.blxinchuang.com/sqx_fast";
|
||||
const ROOTPATH1 = "https://sausers.blxinchuang.com/sqx_fast";
|
||||
|
||||
|
|
18
pages.json
18
pages.json
|
@ -278,20 +278,32 @@
|
|||
{
|
||||
"path": "pages/msg/index",
|
||||
"style": {
|
||||
"navigationBarTitleText": "消息"
|
||||
"navigationBarTitleText": "消息",
|
||||
"app-plus": {
|
||||
"bounce": "none",
|
||||
"titleNView": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/msg/im",
|
||||
"style": {
|
||||
"navigationBarTitleText": "消息"
|
||||
"navigationBarTitleText": "消息",
|
||||
"app-plus": {
|
||||
"bounce": "none",
|
||||
"titleNView": false
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/msg/message",
|
||||
"style": {
|
||||
"navigationBarTitleText": "系统消息",
|
||||
"enablePullDownRefresh": true
|
||||
"enablePullDownRefresh": true,
|
||||
"app-plus": {
|
||||
"bounce": "none",
|
||||
"titleNView": false
|
||||
}
|
||||
}
|
||||
},
|
||||
// #ifdef H5
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<template>
|
||||
<view>
|
||||
<view style="width: 100%;padding-bottom: 140rpx;">
|
||||
<view style="width: 100%;padding-bottom: 140rpx;padding-top: 40rpx;">
|
||||
<view style="display: flex;flex-direction: column;" v-for="(item,index) in ListItem" :key='index' >
|
||||
<view style="margin-top: 15rpx;width: 100%;text-align: center;font-size: 26rpx;color: #999999;">
|
||||
{{item.createTime}}</view>
|
||||
|
@ -197,18 +197,13 @@
|
|||
uni.showLoading({
|
||||
title: '连接中...'
|
||||
})
|
||||
// console.log(userId,'*******************',websocketUtils.getWsBaseUrl())
|
||||
uni.connectSocket({
|
||||
// url: 'ws://192.168.1.17:8881/gameTeamChat/' + userId + '_' + this.teamId,
|
||||
// url: 'wss://game.shengqianxiong.com.cn/wss/gameTeamChat/' + userId + '_' + this.teamId,
|
||||
// url: 'ws://192.168.1.17:8180/sqx_fast/chatSocket/' + userId,
|
||||
url: 'wss://sausers.blxinchuang.com/wss/websocket/' + userId,
|
||||
url: websocketUtils.getWsBaseUrl() + userId,
|
||||
data() {
|
||||
return {
|
||||
msg: 'Hello'
|
||||
}
|
||||
},
|
||||
// protocols: ['protocol1'],
|
||||
header: {
|
||||
'content-type': 'application/json'
|
||||
},
|
||||
|
|
|
@ -587,7 +587,7 @@ export function uploadFileUrl(){
|
|||
}
|
||||
|
||||
export function getWsBaseUrl(){
|
||||
return config('APIHOST');
|
||||
return config('WSHOST1');
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue