tangning пре 1 година
родитељ
комит
1fdce56a46
4 измењених фајлова са 21 додато и 8 уклоњено
  1. 1 1
      src/i18n/lang/en-us.ts
  2. 1 1
      src/i18n/lang/zh-cn.ts
  3. 5 3
      src/views/feedback/mcSubmit.vue
  4. 14 3
      src/views/feedback/pcSubmit.vue

+ 1 - 1
src/i18n/lang/en-us.ts

@@ -21,7 +21,7 @@ export const lang: langType = {
     upload: 'Upload',
     upload: 'Upload',
     uploadsuccess: 'Upload Success',
     uploadsuccess: 'Upload Success',
     submitSuccess: 'Submitted successfully',
     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!',
+    submitText: 'Thank you for your feedback! We will seriously consider it and work hard to improve it, and look forward to providing you with a better product experience!',
     title: 'Feedback',
     title: 'Feedback',
     title1: 'Problem Description',
     title1: 'Problem Description',
     title2: 'Expected Solution',
     title2: 'Expected Solution',

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

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

+ 5 - 3
src/views/feedback/mcSubmit.vue

@@ -11,7 +11,7 @@
           label=""
           label=""
           rows="2"
           rows="2"
           autoSize
           autoSize
-          :max-count="5"
+          :max-count="6"
           type="textarea"
           type="textarea"
           maxlength="500"
           maxlength="500"
           show-word-limit
           show-word-limit
@@ -26,6 +26,7 @@
               <div>
               <div>
                 <van-uploader
                 <van-uploader
                   upload-icon="plus"
                   upload-icon="plus"
+                  :multiple="true"
                   :before-read="beforeRead"
                   :before-read="beforeRead"
                   :after-read="clzpAfterRead"
                   :after-read="clzpAfterRead"
                   accept=".jpg,.png,.mp4"
                   accept=".jpg,.png,.mp4"
@@ -58,6 +59,7 @@
               <div>
               <div>
                 <van-uploader
                 <van-uploader
                   upload-icon="plus"
                   upload-icon="plus"
+                  :multiple="true"
                   class="uploadercell"
                   class="uploadercell"
                   :before-read="beforeRead"
                   :before-read="beforeRead"
                   :after-read="clzpAfterRead"
                   :after-read="clzpAfterRead"
@@ -313,7 +315,7 @@
       showToast(t('feedback.fileTips'));
       showToast(t('feedback.fileTips'));
       return false;
       return false;
     }
     }
-    const isLt2M = file.size / 1024 / 1024 < 2;
+    const isLt2M = file.size / 1024 / 1024 < 5;
     const isLt50M = file.size / 1024 / 1024 < 50;
     const isLt50M = file.size / 1024 / 1024 < 50;
     if (!isLt2M && (file.type === 'image/jpeg' || file.type === 'image/png')) {
     if (!isLt2M && (file.type === 'image/jpeg' || file.type === 'image/png')) {
       showToast(t('feedback.fileTips'));
       showToast(t('feedback.fileTips'));
@@ -344,7 +346,7 @@
     // 调用append()方法添加数据
     // 调用append()方法添加数据
     formData.append('file', file.file);
     formData.append('file', file.file);
     axios({
     axios({
-      url: '/service/sale/upload/file',
+      url: '/service/manage/common/upload/files',
       method: 'POST',
       method: 'POST',
       data: formData,
       data: formData,
       headers: {
       headers: {

+ 14 - 3
src/views/feedback/pcSubmit.vue

@@ -15,8 +15,10 @@
         <a-upload
         <a-upload
           v-model:file-list="formData.problemDescImgs"
           v-model:file-list="formData.problemDescImgs"
           accept=".jpg,.png,.mp4"
           accept=".jpg,.png,.mp4"
-          action="/service/sale/upload/file"
+          action="/service/manage/common/upload/files"
           list-type="picture-card"
           list-type="picture-card"
+          :maxCount="6"
+          :multiple="true"
           :before-upload="beforeUpload"
           :before-upload="beforeUpload"
           @preview="handlePreview"
           @preview="handlePreview"
           @change="fileChange"
           @change="fileChange"
@@ -39,7 +41,16 @@
         />
         />
       </a-form-item>
       </a-form-item>
       <a-form-item name="problemFile" style="margin-top: 2px">
       <a-form-item name="problemFile" style="margin-top: 2px">
-        <a-upload v-model:file-list="formData.solutionImgs" action="/service/sale/upload/file" list-type="picture-card">
+        <a-upload
+          :maxCount="6"
+          v-model:file-list="formData.solutionImgs"
+          action="/service/manage/common/upload/files"
+          list-type="picture-card"
+          :multiple="true"
+          :before-upload="beforeUpload"
+          @preview="handlePreview"
+          @change="fileChange"
+        >
           <div>
           <div>
             <PlusOutlined style="color: #d9d9d9" color="#D9D9D9" />
             <PlusOutlined style="color: #d9d9d9" color="#D9D9D9" />
             <!-- <div style="margin-top: 8px">{{ t('feedback.upload') }}</div> -->
             <!-- <div style="margin-top: 8px">{{ t('feedback.upload') }}</div> -->
@@ -223,7 +234,7 @@
       message.error(t('feedback.fileTips'));
       message.error(t('feedback.fileTips'));
       return false;
       return false;
     }
     }
-    const isLt2M = file.size / 1024 / 1024 < 2;
+    const isLt2M = file.size / 1024 / 1024 < 5;
     const isLt50M = file.size / 1024 / 1024 < 50;
     const isLt50M = file.size / 1024 / 1024 < 50;
     if (!isLt2M && (file.type === 'image/jpeg' || file.type === 'image/png')) {
     if (!isLt2M && (file.type === 'image/jpeg' || file.type === 'image/png')) {
       message.error(t('feedback.fileTips'));
       message.error(t('feedback.fileTips'));