From 8ca7e4aff6670faa03633b91848b26639c92279a Mon Sep 17 00:00:00 2001
From: sen <sen@qq.com>
Date: 星期四, 18 十二月 2025 09:40:21 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/yagwly_fa_master' into yagwly_fa_master
---
ui/car_wx_app/pages/examine/index.vue | 18 ++++++++++++++----
1 files changed, 14 insertions(+), 4 deletions(-)
diff --git a/ui/car_wx_app/pages/examine/index.vue b/ui/car_wx_app/pages/examine/index.vue
index 22e4ea1..bf2ece5 100644
--- a/ui/car_wx_app/pages/examine/index.vue
+++ b/ui/car_wx_app/pages/examine/index.vue
@@ -432,7 +432,7 @@
},
mapList: {},
activeActive: {},
-
+ isHk:false,
};
},
@@ -447,6 +447,7 @@
this.amapPlugin = new amap.AMapWX({
key: this.mapApiKey
});
+
// 鑾峰彇 URL 鍙傛暟
if (options.id) {
//this.getList();
@@ -455,6 +456,8 @@
this.form.tripTime = this.getCurrentDateTime();
}
+
+ this.getLocation();
},
created() {
// this.getList();
@@ -671,7 +674,14 @@
this.amapPlugin.getRegeo({
location:`${longitude},${latitude}`,
success: (data) => {
- this.form.address = data[0].name;
+ let datum = data[0];
+ if (datum.regeocodeData){
+ if (datum.regeocodeData.addressComponent){
+ let province = datum.regeocodeData.addressComponent.province;
+ this.isHk = province.indexOf("棣欐腐") != -1;
+ }
+ }
+ this.form.address = datum.name;
},
fail: (err) => {
console.error("SDK璋冪敤澶辫触:", err);
@@ -897,8 +907,8 @@
success: (res) => {
const tempFilePaths = res.tempFilePaths;
const imgUrl = tempFilePaths[0];
- uploadImage(imgUrl).then(res2=>{
- this.uploadAreas[index].imageUrl = res.url;
+ uploadImage(imgUrl,this.isHk).then(res2=>{
+ this.uploadAreas[index].imageUrl = res2.url;
// const tempFilePath = res.tempFilePaths[0];
// // 涓婁紶鍥剧墖鍒版湇鍔″櫒
// this.uploadAreaPic(tempFilePath, index);
--
Gitblit v1.8.0