فهرست منبع

提现修改和流水号的添加

panhui 7 سال پیش
والد
کامیت
55c22e2804
1فایلهای تغییر یافته به همراه5 افزوده شده و 4 حذف شده
  1. 5 4
      src/main/vue/src/pagesPre/OrderUpload.vue

+ 5 - 4
src/main/vue/src/pagesPre/OrderUpload.vue

@@ -229,7 +229,8 @@ export default {
         },
         handleOn(file, fileList) {
             // console.log(fileList)
-            const isJPG = (file.type === 'image/jpeg' || file.type === 'image/png');
+            console.log(file.type)
+            const isJPG = (file.type === 'image/jpeg' || file.type === 'image/JPEG' || file.type === 'image/png' || file.type === 'image/PNG' || file.type === 'image/cr2' || file.type === 'image/CR2');
             if (!isJPG) {
                 // this.$message.error('上传头像图片只能是 JPG 格式!');
             }
@@ -320,12 +321,12 @@ export default {
                         }
                     }).then(res => {
                         if (res.success) {
-                             this.$http.post({
+                            this.$http.post({
                                 url: '/userOrder/msg',
                                 data: {
                                     orderId: this.orderInfo.id,
-                                    typeFlag:1,
-                                    message:'上传原片'
+                                    typeFlag: 1,
+                                    message: '上传原片'
                                 }
                             })
                             this.$http.post({