|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<div class="page_container">
|
|
|
<NavBar :title="isGroup ? $t('groupVerificationDesc') : $t('friendVerification')">
|
|
|
- <van-button :disabled="!reqMessage" :loading="loading" class="!px-2" type="primary" :text="$t('buttons.send')"
|
|
|
+ <van-button :loading="loading" class="!px-2" type="primary" :text="$t('buttons.send')"
|
|
|
size="mini" @click="sendApplication" />
|
|
|
</NavBar>
|
|
|
|
|
@@ -18,6 +18,7 @@ import useConversationToggle from '@/hooks/useConversationToggle';
|
|
|
import { feedbackToast } from '@/utils/common';
|
|
|
import { IMSDK } from '@/utils/imCommon';
|
|
|
import { GroupJoinSource, SessionType } from '@openim/wasm-client-sdk';
|
|
|
+import {showToast} from "vant";
|
|
|
|
|
|
type SendApplicationProps = {
|
|
|
isGroup: Boolean;
|
|
@@ -37,6 +38,9 @@ const reqMessage = ref('')
|
|
|
const loading = ref(false)
|
|
|
|
|
|
const sendApplication = () => {
|
|
|
+ if(!reqMessage.value){
|
|
|
+ return showToast('请输入发送申请的内容')
|
|
|
+ }
|
|
|
loading.value = true;
|
|
|
let func
|
|
|
if (props.isGroup) {
|
|
@@ -70,4 +74,4 @@ const sendApplication = () => {
|
|
|
|
|
|
</script>
|
|
|
|
|
|
-<style lang='scss' scoped></style>
|
|
|
+<style lang='scss' scoped></style>
|