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