mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-16 14:12:51 +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)
|
public static function getTouristInfo($touristId)
|
||||||
{
|
{
|
||||||
if(Cache::has(Meeting::CACHE_KEY.'_'.$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;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -334,23 +334,43 @@ export default {
|
|||||||
switch (act) {
|
switch (act) {
|
||||||
// 获取用户信息
|
// 获取用户信息
|
||||||
case "getInfo":
|
case "getInfo":
|
||||||
this.$store.dispatch("call", {
|
if( (uuid+'').indexOf('88888') !== -1 ){
|
||||||
url: 'users/basic',
|
this.$store.dispatch("call", {
|
||||||
data: {
|
url: 'users/meeting/tourist',
|
||||||
userid: [ (uuid+"").substring(5) ]
|
data: {
|
||||||
}
|
tourist_id: uuid
|
||||||
}).then(({data}) => {
|
|
||||||
$A.eeuiAppSendMessage({
|
|
||||||
action: 'updateMeetingInfo',
|
|
||||||
infos: {
|
|
||||||
uuid: uuid,
|
|
||||||
avatar: data[0]?.userimg,
|
|
||||||
username: data[0]?.nickname,
|
|
||||||
}
|
}
|
||||||
|
}).then(({data}) => {
|
||||||
|
$A.eeuiAppSendMessage({
|
||||||
|
action: 'updateMeetingInfo',
|
||||||
|
infos: {
|
||||||
|
uuid: uuid,
|
||||||
|
avatar: data?.userimg,
|
||||||
|
username: data?.nickname,
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}).catch(({msg}) => {
|
||||||
|
$A.modalError(msg);
|
||||||
});
|
});
|
||||||
}).catch(({msg}) => {
|
}else{
|
||||||
$A.modalError(msg);
|
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;
|
break;
|
||||||
//加入成功
|
//加入成功
|
||||||
case "success":
|
case "success":
|
||||||
|
|||||||
@ -6,7 +6,7 @@
|
|||||||
:title="$L(addData.type === 'join' ? '加入会议' : '新会议')"
|
:title="$L(addData.type === 'join' ? '加入会议' : '新会议')"
|
||||||
:mask-closable="false"
|
:mask-closable="false"
|
||||||
:closable="!addData.sharekey">
|
: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'">
|
<template v-if="addData.type === 'join'">
|
||||||
<!-- 加入会议 -->
|
<!-- 加入会议 -->
|
||||||
<FormItem v-if="addData.name" prop="userids" :label="$L('会议主题')">
|
<FormItem v-if="addData.name" prop="userids" :label="$L('会议主题')">
|
||||||
@ -148,6 +148,11 @@ export default {
|
|||||||
userids: [],
|
userids: [],
|
||||||
tracks: ['audio']
|
tracks: ['audio']
|
||||||
},
|
},
|
||||||
|
addRule: {
|
||||||
|
username: [
|
||||||
|
{ required: true, message: this.$L('请输入你的姓名!'), trigger: 'change' },
|
||||||
|
]
|
||||||
|
},
|
||||||
|
|
||||||
invitationShow: false,
|
invitationShow: false,
|
||||||
invitationLoad: false,
|
invitationLoad: false,
|
||||||
|
|||||||
@ -126,7 +126,7 @@ export default {
|
|||||||
tourist_id: this.player.uid
|
tourist_id: this.player.uid
|
||||||
}
|
}
|
||||||
}).then(({data}) => {
|
}).then(({data}) => {
|
||||||
this.tourist = data.data;
|
this.tourist = data;
|
||||||
}).catch(({msg}) => {
|
}).catch(({msg}) => {
|
||||||
$A.modalError(msg);
|
$A.modalError(msg);
|
||||||
});
|
});
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user