|
@@ -82,7 +82,7 @@ export class ProfileComponent implements OnInit {
|
|
|
color:'#a1a1a1',
|
|
|
},
|
|
|
"CONNECTING":{
|
|
|
- val:'忙碌',
|
|
|
+ val:'忙线',
|
|
|
color:'#cf1b24',
|
|
|
},
|
|
|
"":{
|
|
@@ -243,6 +243,15 @@ export class ProfileComponent implements OnInit {
|
|
|
}
|
|
|
async toLiveContact() {
|
|
|
this.userStatus = await this.connectTask.getState(this.uid,this.uid)
|
|
|
+ if(this.userStatus !== 'ONLINE'){
|
|
|
+ const toast = await this.toastController.create({
|
|
|
+ message: '对方不在线或忙线中',
|
|
|
+ color: 'warning',
|
|
|
+ duration: 1500,
|
|
|
+ });
|
|
|
+ toast.present();
|
|
|
+ return
|
|
|
+ }
|
|
|
console.log(this.userStatus);
|
|
|
const alert = await this.alertController.create({
|
|
|
cssClass: 'my-custom-class',
|