Selaa lähdekoodia

反馈页面提交

tangning 1 vuosi sitten
vanhempi
commit
1fdce56a46

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

@@ -21,7 +21,7 @@ export const lang: langType = {
     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!',
+    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',
     title1: 'Problem Description',
     title2: 'Expected Solution',

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

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

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

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

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

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