阿拉蕾 1 年之前
父节点
当前提交
7f73ce4e36
共有 2 个文件被更改,包括 5 次插入1 次删除
  1. 3 1
      src/components/Material/index.vue
  2. 2 0
      src/views/store/components/productOrder.vue

+ 3 - 1
src/components/Material/index.vue

@@ -342,11 +342,13 @@ export default {
       })
     },
     beforeUpload(file) {
+      console.log(file.type)
       const isPic =
         file.type === 'image/jpeg' ||
         file.type === 'image/png' ||
         file.type === 'image/gif' ||
-        file.type === 'image/jpg'
+        file.type === 'image/jpg' ||
+        file.type === 'audio/mpeg'
       const isLt2M = file.size / 1024 / 1024 < 2
       if (!isPic) {
         this.$message.error('上传图片只能是 JPG、JPEG、PNG、GIF 格式!')

+ 2 - 0
src/views/store/components/productOrder.vue

@@ -477,6 +477,7 @@ export default {
         open:false,
       },
       certificateForm:{
+        orderCode:null,
         certificates:null,
       },
       certificateRules:{
@@ -624,6 +625,7 @@ export default {
     },
     handleConfirm(){
       this.certificateForm.id = this.orderId;
+      this.certificateForm.orderCode = this.order.orderCode;
       this.certificateForm.certificates = this.photoArr;
       uploadCredentials(this.certificateForm).then(response => {
               if (response.code === 200) {