From e46d6374cdcf4733cc37545d08661ce8344030d8 Mon Sep 17 00:00:00 2001
From: guoshilong <123456>
Date: Tue, 11 Oct 2022 17:19:37 +0800
Subject: [PATCH] 修改文件上传地址的写法

---
 pages/eventgm/eventsReported.vue |   13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/pages/eventgm/eventsReported.vue b/pages/eventgm/eventsReported.vue
index c2173f4..2024148 100644
--- a/pages/eventgm/eventsReported.vue
+++ b/pages/eventgm/eventsReported.vue
@@ -53,7 +53,7 @@
 				></evan-upload>
 			</u-form-item>
 			
-			<video v-if="videoShow" :src="videoUrl"></video>
+			<!-- <video  :src="videoUrl"></video> -->
 			
 			<u-form-item label-position="top" label="备注:">
 				<u-input v-model="form.remark" type="textarea" />
@@ -73,6 +73,7 @@
 import {add} from "@/api/eventgm/eventgm.js"
 import {getDicList} from "@/api/dict/dict.js"
 import evanUpload from "@/components/evan-upload/evan-upload.vue";
+import {devUrl} from '@/common/setting'
 export default {
 	components: {'evan-upload' :evanUpload },
 	data() {
@@ -110,11 +111,12 @@
 				}]
 				
 			},
-			//换用其他写法
 			uploadOption:{
-				url:"http://localhost/blade-resource/oss/endpoint/put-file-attach",
+				// url:"http://localhost/blade-resource/oss/endpoint/put-file-attach",
+				url:devUrl+"/blade-resource/oss/endpoint/put-file-attach",
 				header:{},
 			},
+			fileSuffix: 'fileType',
 			uploadList:[],
 			videoUrl:"",
 			videoShow:false,
@@ -261,6 +263,11 @@
 			// console.log(video)
 			// this.videoShow = true
 			this.videoUrl = video.url
+			// uni.previewMedia({
+			// 	sources:[{
+			// 		url:video.url
+			// 	}]
+			// })
 		},
 	}
 };

--
Gitblit v1.9.3