From 27b547a82f578e47edda5d72def761ba8af6abca Mon Sep 17 00:00:00 2001 From: zhouyanli <593579392@qq.com> Date: Mon, 3 Aug 2026 10:42:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pageSubPack/api/useImageUpload.js | 4 +-- .../pageSubPack/my/addCar.vue | 33 +++++++++++------- .../pageSubPack/my/addHouse.vue | 9 +++++ .../pageSubPack/my/addParkingSpace.vue | 34 ++++++++++--------- .../pageSubPack/my/carDetail.vue | 9 ++--- .../pageSubPack/my/houseDetail.vue | 9 ++--- .../pageSubPack/my/myCarIndex.vue | 2 +- .../pageSubPack/my/myHouseIndex.vue | 6 ++-- .../pageSubPack/my/myParkingSpaceIndex.vue | 4 +-- .../pageSubPack/my/parkingSpaceDetail.vue | 11 +++--- property-uniapp-project/pages/index/index.vue | 2 +- 11 files changed, 73 insertions(+), 50 deletions(-) diff --git a/property-uniapp-project/pageSubPack/api/useImageUpload.js b/property-uniapp-project/pageSubPack/api/useImageUpload.js index f41aec7..ffe75b0 100644 --- a/property-uniapp-project/pageSubPack/api/useImageUpload.js +++ b/property-uniapp-project/pageSubPack/api/useImageUpload.js @@ -1,6 +1,6 @@ // 服务器地址(与 request.js 保持一致) -// const baseUrl = 'https://wuyeapi.ckdzkj.com'; -const baseUrl = "http://192.168.1.222:8080" +const baseUrl = 'https://wuyeapi.ckdzkj.com'; +// const baseUrl = "http://192.168.1.222:8080" /** * 图片上传 Hook diff --git a/property-uniapp-project/pageSubPack/my/addCar.vue b/property-uniapp-project/pageSubPack/my/addCar.vue index e8ef7e8..1e4e15d 100644 --- a/property-uniapp-project/pageSubPack/my/addCar.vue +++ b/property-uniapp-project/pageSubPack/my/addCar.vue @@ -76,6 +76,11 @@ } from '/pageSubPack/api/useImageUpload.js' const statusBarHeight = ref(20) + + const goBack = () => { + uni.navigateBack() + } + const id = ref(undefined) const type = ref('') const formData = ref({ @@ -253,7 +258,14 @@ icon: 'success' }) setTimeout(() => { - goBack() + uni.removeStorageSync("carNum") + uni.removeStorageSync("carBrand") + uni.removeStorageSync("carModel") + uni.removeStorageSync("carColor") + uni.removeStorageSync("carImageUrl") + uni.removeStorageSync("carBrandId") + uni.removeStorageSync("checkType") + uni.redirectTo({ url: "/pageSubPack/my/myCarIndex" }) }, 1500) } else { uni.showToast({ @@ -271,7 +283,14 @@ icon: 'success' }) setTimeout(() => { - goBack() + uni.removeStorageSync("carNum") + uni.removeStorageSync("carBrand") + uni.removeStorageSync("carModel") + uni.removeStorageSync("carColor") + uni.removeStorageSync("carImageUrl") + uni.removeStorageSync("carBrandId") + uni.removeStorageSync("checkType") + uni.redirectTo({ url: "/pageSubPack/my/myCarIndex" }) }, 1500) } else { uni.showToast({ @@ -293,16 +312,6 @@ } } - const goBack = () => { - uni.removeStorageSync("carNum") - uni.removeStorageSync("carBrand") - uni.removeStorageSync("carModel") - uni.removeStorageSync("carColor") - uni.removeStorageSync("carImageUrl") - uni.removeStorageSync("carBrandId") - uni.removeStorageSync("checkType") - uni.navigateBack() - }