111
This commit is contained in:
parent
ac52561951
commit
6294138abe
@ -161,6 +161,7 @@
|
||||
console.log("发出提示音", res);
|
||||
// this.getbottom();
|
||||
this.dianyidain()
|
||||
this.$emit('socketSuccess')
|
||||
})
|
||||
}
|
||||
|
||||
|
@ -2,12 +2,12 @@
|
||||
module.exports = {
|
||||
// baseUrl: 'https://www.nuoyunr.com',
|
||||
// baseUrl: 'http://124.222.105.7:48080',
|
||||
baseUrl: 'http://192.168.1.17:48080',
|
||||
baseUrl: 'http://192.168.1.4:48080',
|
||||
// baseUrl: "http://localhost:48080",
|
||||
imagesUrl: 'http://shequ.0315e.com/static/images/pages/',
|
||||
baseImageUrl: 'https://www.nuoyunr.com/minio/',
|
||||
shareUrl: 'https://www.lighting-it.cn/share?inviteId=',
|
||||
wsUrl: 'ws://192.168.1.17:48080',
|
||||
wsUrl: 'ws://192.168.1.4:48080',
|
||||
//com.carService.qx
|
||||
// 应用信息
|
||||
appInfo: {
|
||||
|
@ -104,7 +104,7 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<tabBarVue msg="1"></tabBarVue>
|
||||
<tabBarVue msg="1" @socketSuccess="socketSuccess"></tabBarVue>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@ -217,6 +217,13 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
socketSuccess(){
|
||||
this.getNoReadNum()
|
||||
this.onRefresherrefresh()
|
||||
console.log('通知并刷新成功')
|
||||
},
|
||||
|
||||
gotoMsg(){
|
||||
//去消息中心
|
||||
uni.navigateTo({
|
||||
|
@ -53,6 +53,9 @@ import {
|
||||
removeTenantId,
|
||||
removeToken,removeUserInfo,removeJSONData,removeStrData
|
||||
} from '@/utils/auth'
|
||||
import {
|
||||
closeMsgSocket,
|
||||
} from '@/utils/tebBarSocket'
|
||||
const UQRCode = require('uqrcodejs');
|
||||
export default {
|
||||
components: {
|
||||
@ -124,6 +127,10 @@ export default {
|
||||
uni.navigateTo({
|
||||
url: '/pages/login/login'
|
||||
})
|
||||
if(this.$msgSocket){
|
||||
closeMsgSocket(this.$msgSocket)
|
||||
}
|
||||
|
||||
}else{
|
||||
uni.showToast({
|
||||
title: res.msg,
|
||||
|
Loading…
Reference in New Issue
Block a user