From e3aa75fc78f6561e3315f4a11789a4f09fdaea57 Mon Sep 17 00:00:00 2001
From: zhangback <zhangback@163.com>
Date: 星期三, 17 十二月 2025 20:21:12 +0800
Subject: [PATCH] 提交

---
 ui/car_wx_app/pages/examine/index.vue |   13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/ui/car_wx_app/pages/examine/index.vue b/ui/car_wx_app/pages/examine/index.vue
index a885ba6..22e4ea1 100644
--- a/ui/car_wx_app/pages/examine/index.vue
+++ b/ui/car_wx_app/pages/examine/index.vue
@@ -352,6 +352,8 @@
 </template>
 
 <script>
+import {uploadImage} from "@/common/upload";
+
 function groupBy(array, key){
   return array.reduce((acc, item) => {
     const groupKey = String(item[key]);
@@ -893,10 +895,15 @@
         sizeType: ['original', 'compressed'],
         sourceType: ['album', 'camera'],
         success: (res) => {
+          const tempFilePaths = res.tempFilePaths;
+          const imgUrl = tempFilePaths[0];
+          uploadImage(imgUrl).then(res2=>{
+            this.uploadAreas[index].imageUrl = res.url;
+            // const tempFilePath = res.tempFilePaths[0];
+            // // 涓婁紶鍥剧墖鍒版湇鍔″櫒
+            // this.uploadAreaPic(tempFilePath, index);
+          })
 
-          const tempFilePath = res.tempFilePaths[0];
-          // 涓婁紶鍥剧墖鍒版湇鍔″櫒
-          this.uploadAreaPic(tempFilePath, index);
         }
       });
     },

--
Gitblit v1.8.0