|
|
@@ -4,7 +4,7 @@
|
|
|
反馈
|
|
|
</span>
|
|
|
<br /> -->
|
|
|
- <el-tooltip class="item" effect="dark" content="反馈建议" placement="top">
|
|
|
+ <el-tooltip class="item" effect="dark" :content="lang.ssFeedbackSuggest" placement="top">
|
|
|
<img
|
|
|
class="fankui_icon"
|
|
|
src="@/assets/icon/fankui2.jpg"
|
|
|
@@ -30,7 +30,7 @@
|
|
|
<ChatRound />
|
|
|
</el-icon>
|
|
|
<br />
|
|
|
- AI助手
|
|
|
+ {{ lang.ssAiAssistant }}
|
|
|
</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -42,19 +42,19 @@
|
|
|
<el-icon>
|
|
|
<ChatRound />
|
|
|
</el-icon>
|
|
|
- <span class="warning_text" style="margin-left: 8px;">其他问题</span>
|
|
|
+ <span class="warning_text" style="margin-left: 8px;">{{ lang.ssOtherIssue }}</span>
|
|
|
</div>
|
|
|
</template>
|
|
|
- <el-input v-model="textarea1" style="" type="textarea" placeholder="请描述你使用过程遇到的问题,我们会持续修改优化"
|
|
|
+ <el-input v-model="textarea1" style="" type="textarea" :placeholder="lang.ssFeedbackPlaceholder"
|
|
|
:autosize="{ minRows: 4, maxRows: 4 }">
|
|
|
|
|
|
</el-input>
|
|
|
<template #footer>
|
|
|
<div class="dialog-footer">
|
|
|
<el-button type="primary" @click="updateReduction()">
|
|
|
- 确认
|
|
|
+ {{ lang.ssConfirm }}
|
|
|
</el-button>
|
|
|
- <el-button @click="dialogVisible = false">取消</el-button>
|
|
|
+ <el-button @click="dialogVisible = false">{{ lang.ssCancel }}</el-button>
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-dialog>
|
|
|
@@ -69,21 +69,26 @@
|
|
|
<div style="height: calc(100% - 32px);">
|
|
|
<iframe width="100%" height="100%"
|
|
|
allow="camera *; microphone *;display-capture;midi;encrypted-media;"
|
|
|
- src="https://aichat.cocorobo.cn/#/?id=335951a7-65ec-40e9-ae91-2971464ade4e&type=agent" frameborder="0"
|
|
|
+ :src="aiChatUrl" frameborder="0"
|
|
|
scrolling="no"></iframe>
|
|
|
</div>
|
|
|
</el-drawer>
|
|
|
</template>
|
|
|
<script setup>
|
|
|
-import { ref, onMounted } from 'vue';
|
|
|
+import { ref, onMounted, inject, computed } from 'vue';
|
|
|
import { ChatRound, Close } from '@element-plus/icons-vue'
|
|
|
import { ElMessage } from 'element-plus'
|
|
|
import FullScreen from '@/assets/icon/fullScreen.png'
|
|
|
import noFullScreen from '@/assets/icon/nofullScreen.png'
|
|
|
+const lang = inject('lang')
|
|
|
const dialogVisible = ref(false)
|
|
|
const textarea1 = ref("")
|
|
|
const dialogVisible2 = ref(false)
|
|
|
const Full_Screen = ref(false)
|
|
|
+const aiChatUrl = computed(() => {
|
|
|
+ const suffix = lang.lang == 'hk' ? 'hk' : lang.lang == 'en' ? 'com' : 'cn'
|
|
|
+ return `https://aichat.cocorobo.${suffix}/#/?id=335951a7-65ec-40e9-ae91-2971464ade4e&type=agent`
|
|
|
+})
|
|
|
const vDraggable = {
|
|
|
mounted(el, binding) {
|
|
|
let isDragging = false;
|
|
|
@@ -214,12 +219,12 @@ const updateReduction = () => {
|
|
|
if (textarea1.value != "") {
|
|
|
dialogVisible.value = false
|
|
|
ElMessage({
|
|
|
- message: '反馈问题提交成功',
|
|
|
+ message: lang.ssFeedbackSuccess,
|
|
|
type: 'success',
|
|
|
})
|
|
|
} else {
|
|
|
ElMessage({
|
|
|
- message: '请输入您要反馈的意见',
|
|
|
+ message: lang.ssFeedbackEmptyTip,
|
|
|
type: 'warning',
|
|
|
})
|
|
|
}
|