Parcourir la source

反馈页面提交

tangning il y a 1 an
Parent
commit
d3578d9f8d

+ 2 - 0
src/i18n/lang/en-us.ts

@@ -20,6 +20,8 @@ export const lang: langType = {
   feedback: {
     upload: 'Upload',
     uploadsuccess: 'Upload Success',
+    submitSuccess: 'Submitted successfully',
+    submitText: 'Thank you for your feedback. We attach great importance to your opinions and will deal with them as soon as possible after receiving them. Looking forward to providing you with an excellent product experience!',
     title: 'Feedback',
     title1: 'Problem Description',
     title2: 'Expected Solution',

+ 3 - 0
src/i18n/lang/lang-base.ts

@@ -18,6 +18,9 @@ export type langType = {
   feedback: {
     title: string;
     upload: string;
+    uploadsuccess: string;
+    submitSuccess: string;
+    submitText: string;
     title1: string;
     title2: string;
     title3: string;

+ 2 - 0
src/i18n/lang/zh-cn.ts

@@ -20,6 +20,8 @@ export const lang: langType = {
   feedback: {
     upload: '上传',
     uploadsuccess: '上传成功',
+    submitSuccess: '提交成功',
+    submitText: '感谢反馈,我们非常重视您的意见,并将在收到反馈后第一时间处理。期待为您提供出色的产品体验!',
     title: '用户反馈',
     title1: '问题描述',
     title2: '期望解决方案',

+ 7 - 3
src/views/feedback/success.vue

@@ -2,13 +2,17 @@
   <div class="success">
     <div class="centent">
       <van-icon color="#50C418" size="60" name="checked" />
-      <p>提交成功</p>
-      <div>感谢反馈,我们非常重视您的意见,并将在收到反馈后第一时间处理。期待为您提供出色的产品体验!</div>
+      <p>{{t('feedback.submitSuccess')}}</p>
+      <div>{{ t('feedback.submitText') }}</div>
     </div>
   </div>
 </template>
 
-<script lang="ts" setup></script>
+<script lang="ts" setup>
+  import { useI18n } from 'vue-i18n';
+  const { t } = useI18n();
+</script>
+
 
 <style lang="scss" scoped>
   .success {