mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-13 03:52:50 +00:00
feat:会议分享添加姓名验证
This commit is contained in:
parent
1a3c4640ec
commit
aa03c00dd5
@ -84,7 +84,7 @@ class Meeting extends AbstractModel
|
||||
public static function getTouristInfo($touristId)
|
||||
{
|
||||
if(Cache::has(Meeting::CACHE_KEY.'_'.$touristId)){
|
||||
return Base::retSuccess('success', Cache::get(Meeting::CACHE_KEY.'_'.$touristId) );
|
||||
return Cache::get(Meeting::CACHE_KEY.'_'.$touristId);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@ -334,23 +334,43 @@ export default {
|
||||
switch (act) {
|
||||
// 获取用户信息
|
||||
case "getInfo":
|
||||
this.$store.dispatch("call", {
|
||||
url: 'users/basic',
|
||||
data: {
|
||||
userid: [ (uuid+"").substring(5) ]
|
||||
}
|
||||
}).then(({data}) => {
|
||||
$A.eeuiAppSendMessage({
|
||||
action: 'updateMeetingInfo',
|
||||
infos: {
|
||||
uuid: uuid,
|
||||
avatar: data[0]?.userimg,
|
||||
username: data[0]?.nickname,
|
||||
if( (uuid+'').indexOf('88888') !== -1 ){
|
||||
this.$store.dispatch("call", {
|
||||
url: 'users/meeting/tourist',
|
||||
data: {
|
||||
tourist_id: uuid
|
||||
}
|
||||
}).then(({data}) => {
|
||||
$A.eeuiAppSendMessage({
|
||||
action: 'updateMeetingInfo',
|
||||
infos: {
|
||||
uuid: uuid,
|
||||
avatar: data?.userimg,
|
||||
username: data?.nickname,
|
||||
}
|
||||
});
|
||||
}).catch(({msg}) => {
|
||||
$A.modalError(msg);
|
||||
});
|
||||
}).catch(({msg}) => {
|
||||
$A.modalError(msg);
|
||||
});
|
||||
}else{
|
||||
this.$store.dispatch("call", {
|
||||
url: 'users/basic',
|
||||
data: {
|
||||
userid: [ (uuid+"").substring(5) ]
|
||||
}
|
||||
}).then(({data}) => {
|
||||
$A.eeuiAppSendMessage({
|
||||
action: 'updateMeetingInfo',
|
||||
infos: {
|
||||
uuid: uuid,
|
||||
avatar: data[0]?.userimg,
|
||||
username: data[0]?.nickname,
|
||||
}
|
||||
});
|
||||
}).catch(({msg}) => {
|
||||
$A.modalError(msg);
|
||||
});
|
||||
}
|
||||
break;
|
||||
//加入成功
|
||||
case "success":
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
:title="$L(addData.type === 'join' ? '加入会议' : '新会议')"
|
||||
:mask-closable="false"
|
||||
:closable="!addData.sharekey">
|
||||
<Form ref="addForm" :model="addData" label-width="auto" @submit.native.prevent>
|
||||
<Form ref="addForm" :model="addData" :rules="addRule" label-width="auto" @submit.native.prevent>
|
||||
<template v-if="addData.type === 'join'">
|
||||
<!-- 加入会议 -->
|
||||
<FormItem v-if="addData.name" prop="userids" :label="$L('会议主题')">
|
||||
@ -148,6 +148,11 @@ export default {
|
||||
userids: [],
|
||||
tracks: ['audio']
|
||||
},
|
||||
addRule: {
|
||||
username: [
|
||||
{ required: true, message: this.$L('请输入你的姓名!'), trigger: 'change' },
|
||||
]
|
||||
},
|
||||
|
||||
invitationShow: false,
|
||||
invitationLoad: false,
|
||||
|
||||
@ -126,7 +126,7 @@ export default {
|
||||
tourist_id: this.player.uid
|
||||
}
|
||||
}).then(({data}) => {
|
||||
this.tourist = data.data;
|
||||
this.tourist = data;
|
||||
}).catch(({msg}) => {
|
||||
$A.modalError(msg);
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user