# Conflicts:
#	config.js
This commit is contained in:
Vinjor 2024-10-31 19:06:36 +08:00
commit 10588ddf4f
4 changed files with 17 additions and 2 deletions

View File

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

View File

@ -104,7 +104,7 @@
</view> </view>
</view> </view>
</view> </view>
<tabBarVue msg="1"></tabBarVue> <tabBarVue msg="1" @socketSuccess="socketSuccess"></tabBarVue>
</view> </view>
</template> </template>
@ -217,6 +217,13 @@ export default {
} }
}, },
methods: { methods: {
socketSuccess(){
this.getNoReadNum()
this.onRefresherrefresh()
console.log('通知并刷新成功')
},
gotoMsg(){ gotoMsg(){
// //
uni.navigateTo({ uni.navigateTo({

View File

@ -53,6 +53,9 @@ import {
removeTenantId, removeTenantId,
removeToken,removeUserInfo,removeJSONData,removeStrData removeToken,removeUserInfo,removeJSONData,removeStrData
} from '@/utils/auth' } from '@/utils/auth'
import {
closeMsgSocket,
} from '@/utils/tebBarSocket'
const UQRCode = require('uqrcodejs'); const UQRCode = require('uqrcodejs');
export default { export default {
components: { components: {
@ -124,6 +127,10 @@ export default {
uni.navigateTo({ uni.navigateTo({
url: '/pages/login/login' url: '/pages/login/login'
}) })
if(this.$msgSocket){
closeMsgSocket(this.$msgSocket)
}
}else{ }else{
uni.showToast({ uni.showToast({
title: res.msg, title: res.msg,

View File

@ -88,7 +88,7 @@ export default {
}, },
methods: { methods: {
submit() { submit() {
if (this.project.name == null || this.project.code == null || this.project.cost == null || this.project.price == null || this.project.spec == null || this.project.unit == null || this.project.manHour == null){ if (this.project.name == null||this.project.name == ''){
uni.showToast({ uni.showToast({
title: '请完善信息', title: '请完善信息',
icon: 'none' icon: 'none'