From c7bf891a8ed652ef14ec3280cdef0280d3caf472 Mon Sep 17 00:00:00 2001
From: guoshilong <123456>
Date: Fri, 30 Sep 2022 15:27:36 +0800
Subject: [PATCH] 删除过时的上传方法
---
pages/eventgm/eventsReported.vue | 15 +--------------
1 files changed, 1 insertions(+), 14 deletions(-)
diff --git a/pages/eventgm/eventsReported.vue b/pages/eventgm/eventsReported.vue
index 4f7899e..94a78b8 100644
--- a/pages/eventgm/eventsReported.vue
+++ b/pages/eventgm/eventsReported.vue
@@ -40,7 +40,6 @@
</u-action-sheet> -->
<u-form-item label-position="top" label-width="25%" label="图片上传:">
- <!-- <u-upload ref="uUpload" :header="header" :action="uploadApi" max-count="5" ></u-upload> -->
<evan-upload ref="evanUpload" :imgLimit="4" :options="uploadOption" @on-upload="onUpload"></evan-upload>
</u-form-item>
@@ -93,8 +92,6 @@
},
//换用其他写法
- uploadApi:"http://localhost/blade-resource/oss/endpoint/put-file-attach",
- header:{},
uploadOption:{
url:"http://localhost/blade-resource/oss/endpoint/put-file-attach",
header:{},
@@ -143,6 +140,7 @@
isHighAccuracy:true,
geocode:true,
success: res=> {
+ console.log(res)
console.log('当前位置的经度:' + res.longitude);
console.log('当前位置的纬度:' + res.latitude);
this.form.longitude = res.longitude
@@ -192,17 +190,6 @@
submit(){
this.$refs.uForm.validate(valid => {
if (valid) {
- // let lists = this.$refs.uUpload.lists
- // if(lists.length>0){
- // lists.forEach(e=>{
- // this.form.picUrls.push({
- // label:e.response.data.name,
- // value:e.response.data.link
- // })
- // })
- // }else{
- // this.form.picUrls = null
- // }
if(this.uploadList.length>0){
this.uploadList.forEach(e=>{
var res = JSON.parse(e.url)
--
Gitblit v1.9.3