tangning 1 vuosi sitten
vanhempi
commit
f0ba4c3eac

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

@@ -34,7 +34,8 @@ export const lang: langType = {
     Submit: 'Submit',
     settext: 'Please enter ',
     setselcet: 'Please select ',
-    success: '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!',
+    success:
+      '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!',
     fileTips: 'Please upload images or videos, supporting JPG and PNG formats, not exceeding 5MB; MP4 should not exceed 50MB;',
-  }
+  },
 };

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

@@ -17,6 +17,22 @@ export type langType = {
   };
   feedback: {
     title: string;
+    upload: string;
     title1: string;
+    title2: string;
+    title3: string;
+    title4: string;
+    title5: string;
+    title6: string;
+    title61: string;
+    title7: string;
+    title71: string;
+    title8: string;
+    title9: string;
+    Submit: string;
+    settext: string;
+    setselcet: string;
+    success: string;
+    fileTips: string;
   };
 };

+ 1 - 1
src/i18n/lang/zh-cn.ts

@@ -36,5 +36,5 @@ export const lang: langType = {
     setselcet: '请选择',
     success: '感谢反馈,我们非常重视您的意见,并将在收到反馈后第一时间处理。期待为您提供出色的产品体验!',
     fileTips: '请上传图片或视频,支持jpg、png格式,不大于5MB;mp4不大于50MB;',
-  }
+  },
 };

+ 3 - 1
src/views/feedback/index.vue

@@ -22,7 +22,7 @@
   import axios from 'axios';
   // import useAxiosApi from '/@/utils/useAxiosApi';
   // import { Toast } from '@nutui/nutui';
-  import { getAllByTypeId, feedbackAdd } from '/@/api/feedback';
+  import { getAllByTypeId, feedbackAdd, getDefaultAddress } from '/@/api/feedback';
   // import { setLang } from '/@/i18n';
   import { useI18n } from 'vue-i18n';
   const emit = defineEmits(['setActive']);
@@ -74,6 +74,8 @@
     setObjId.industryOptionId = '';
   }
   onMounted(async () => {
+    let address = await getDefaultAddress();
+    console.log('getDefaultAddress', address);
     let industryRes = await getAllByTypeId(1);
     columns.industryOptionId = industryRes.data.map((ele) => {
       return {

+ 1 - 1
src/views/feedback/pcSubmit.vue

@@ -170,7 +170,7 @@
     hardwareOptionId: [{ required: true, message: t('feedback.setselcet') + t('feedback.title4'), trigger: 'change' }],
   };
   const countryOption = countryList.map((ele) => {
-    return { value: ele.chinese, label: locale.value == 'en-us' ? ele.english : ele.chinese };
+    return { value: ele.chinese, label: locale.value == 'en-us' ? ele.english : ele.chinese, english: locale.value == 'en-us' ? ele.chinese : ele.english };
   });
   function filterOption(inputValue, option) {
     return (