This commit is contained in:
PQZ 2024-10-31 17:14:15 +08:00
parent ac52561951
commit 6294138abe
4 changed files with 18 additions and 3 deletions

View File

@ -161,6 +161,7 @@
console.log("发出提示音", res);
// this.getbottom();
this.dianyidain()
this.$emit('socketSuccess')
})
}

View File

@ -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: {

View File

@ -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({

View File

@ -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,