mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-08 02:16:46 +08:00
提交修改
This commit is contained in:
@@ -474,25 +474,25 @@ export default {
|
||||
var regPos = /^\d+(\.\d+)?$/; //非负浮点数
|
||||
if(regPos.test(name)){
|
||||
apiUser.getByLoginName(name).then(rs=>{
|
||||
if(rs.status==200){
|
||||
//因为根据工号查询,只会是一个人,所有会有null情况,而json会返回空字符串
|
||||
if(rs.result!=''){
|
||||
this.shareInfo.users=[rs.result];
|
||||
}else{
|
||||
uni.showToast({
|
||||
title: '查无此用户',
|
||||
icon: 'none'
|
||||
});
|
||||
// this.$refs.interactToast.show({message:"查无此用户",type:'warning'});
|
||||
}
|
||||
}else{
|
||||
uni.showToast({
|
||||
title: rs.message,
|
||||
icon: 'none'
|
||||
});
|
||||
// this.$refs.interactToast.show({message:rs.message,type:'warning'});
|
||||
}
|
||||
})
|
||||
if(rs.status==200){
|
||||
//因为根据工号查询,只会是一个人,所有会有null情况,而json会返回空字符串
|
||||
if(rs.result!=''){
|
||||
this.shareInfo.users=[rs.result];
|
||||
}else{
|
||||
uni.showToast({
|
||||
title: '查无此用户',
|
||||
icon: 'none'
|
||||
});
|
||||
// this.$refs.interactToast.show({message:"查无此用户",type:'warning'});
|
||||
}
|
||||
}else{
|
||||
uni.showToast({
|
||||
title: rs.message,
|
||||
icon: 'none'
|
||||
});
|
||||
// this.$refs.interactToast.show({message:rs.message,type:'warning'});
|
||||
}
|
||||
})
|
||||
}else{
|
||||
apiUser.findByName(name).then(rs=>{
|
||||
if(rs.status==200){
|
||||
|
||||
Reference in New Issue
Block a user