mirror of
https://github.com/yangjian102621/geekai.git
synced 2026-04-30 15:04:30 +08:00
优化充值产品定价逻辑,确保手机端和PC端显示的价格一致
This commit is contained in:
@@ -1,29 +1,12 @@
|
||||
<template>
|
||||
<div class="audio-chat-page">
|
||||
<el-button style="margin: 20px" type="primary" size="large" @click="connect()">开始语音对话</el-button>
|
||||
|
||||
<el-dialog v-model="showDialog" title="语音通话" :before-close="close">
|
||||
<realtime-conversation @close="showDialog = false" ref="conversationRef" :height="dialogHeight+'px'" />
|
||||
</el-dialog>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import {nextTick, ref} from 'vue';
|
||||
import RealtimeConversation from "@/components/RealtimeConversation.vue";
|
||||
|
||||
const showDialog = ref(false);
|
||||
const dialogHeight = ref(window.innerHeight - 75);
|
||||
const conversationRef = ref(null);
|
||||
const connect = () => {
|
||||
showDialog.value = true;
|
||||
nextTick(() => {
|
||||
conversationRef.value.connect()
|
||||
})
|
||||
}
|
||||
const close = () => {
|
||||
showDialog.value = false;
|
||||
conversationRef.value.hangUp()
|
||||
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user