From 46179c5d3f46e9bc08a2f727172a9c99b903b21e Mon Sep 17 00:00:00 2001 From: ISFP_T <68358856@qq.com> Date: Wed, 15 Oct 2025 01:35:23 +0800 Subject: [PATCH] =?UTF-8?q?style:=E6=A0=B9=E6=8D=AEUI=E8=AE=BE=E8=AE=A1?= =?UTF-8?q?=E5=9B=BE=E8=B7=B3=E8=BD=AC=E9=A1=B5=E9=9D=A2=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 +- components/LocationListSheet.vue | 234 ++ components/MapComponent.vue | 384 ++- components/OrderItemCard.vue | 364 +++ config/user.js | 27 + pages.json | 28 +- pages/device/detail.vue | 503 ++-- pages/expressReturn/addExpressReturn.vue | 195 +- pages/expressReturn/index.vue | 266 ++- pages/help/index.vue | 20 +- pages/index/index.vue | 2743 ++++++++++++---------- pages/my/index.vue | 696 +++--- pages/order/detail.vue | 1026 ++++++++ pages/order/index.vue | 127 +- pages/search/index.vue | 391 +++ pages/setting/index.vue | 80 + static/customer-service.png | Bin 4854 -> 8815 bytes static/express_return.png | Bin 0 -> 3457 bytes static/index_swiper.png | Bin 0 -> 66784 bytes static/location.png | Bin 4857 -> 10191 bytes static/orderList.png | Bin 0 -> 5802 bytes static/other_device.png | Bin 0 -> 10108 bytes static/peopleInWork.png | Bin 0 -> 7069 bytes static/setting.png | Bin 0 -> 9655 bytes static/suggess.png | Bin 0 -> 5883 bytes static/use_help.png | Bin 0 -> 8513 bytes static/user-active.png | Bin 12135 -> 0 bytes static/user.png | Bin 11317 -> 6751 bytes static/userCenter_swiper.png | Bin 0 -> 114740 bytes utils/orderMonitor.js | 4 +- 30 files changed, 4632 insertions(+), 2459 deletions(-) create mode 100644 components/LocationListSheet.vue create mode 100644 components/OrderItemCard.vue create mode 100644 pages/order/detail.vue create mode 100644 pages/search/index.vue create mode 100644 pages/setting/index.vue create mode 100644 static/express_return.png create mode 100644 static/index_swiper.png create mode 100644 static/orderList.png create mode 100644 static/other_device.png create mode 100644 static/peopleInWork.png create mode 100644 static/setting.png create mode 100644 static/suggess.png create mode 100644 static/use_help.png delete mode 100644 static/user-active.png create mode 100644 static/userCenter_swiper.png diff --git a/.gitignore b/.gitignore index 62d68fe..6828190 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,5 @@ /dist package-lock.json /unpackage -/unpackage/dist \ No newline at end of file +/unpackage/dist +/doc \ No newline at end of file diff --git a/components/LocationListSheet.vue b/components/LocationListSheet.vue new file mode 100644 index 0000000..8160253 --- /dev/null +++ b/components/LocationListSheet.vue @@ -0,0 +1,234 @@ + + + + + + diff --git a/components/MapComponent.vue b/components/MapComponent.vue index 063a973..f588f3b 100644 --- a/components/MapComponent.vue +++ b/components/MapComponent.vue @@ -3,11 +3,13 @@ - + @markertap="onMapMarkerTap" @callouttap="onCalloutTap" @updated="onMapUpdated" @error="onMapError"> + + + @@ -22,11 +24,9 @@ - + - - @@ -39,15 +39,15 @@ + + + + diff --git a/config/user.js b/config/user.js index 10ff5e3..ff513ff 100644 --- a/config/user.js +++ b/config/user.js @@ -249,6 +249,33 @@ export const uploadOssResource = (filePath) => { }) } +// 上传并更新用户头像(后端接口) +export const uploadUserAvatar = (filePath) => { + return new Promise((resolve, reject) => { + uni.uploadFile({ + url: URL + '/app/user/uploadAvatar', + filePath, + name: 'file', + header: { + 'appid': appid, + 'Authorization': 'Bearer ' + uni.getStorageSync('token'), + 'Clientid': uni.getStorageSync('client_id') + }, + success: (res) => { + try { + const parsed = typeof res.data === 'string' ? JSON.parse(res.data) : res.data + resolve(parsed) + } catch (e) { + reject(e) + } + }, + fail: (err) => { + reject(err) + } + }) + }) +} + // 获取系统配置(预留接口) // 期望后端返回形如:{ code: 200, data: { expressReturnCountdownSeconds: number } } export const getSystemConfig = () => { diff --git a/pages.json b/pages.json index a8291fa..306a6d0 100644 --- a/pages.json +++ b/pages.json @@ -43,9 +43,19 @@ { "path": "pages/my/index", "style": { - "navigationBarTitleText": "个人中心" + "navigationBarTitleText": "个人中心", + "navigationBarBackgroundColor": "#D1FFE1", + "navigationBarTextStyle": "black" } }, + { + "path": "pages/setting/index", + "style": { + "navigationBarTitleText": "设置", + "navigationBarBackgroundColor": "#ffffff", + "navigationBarTextStyle": "black" + } + }, { "path": "pages/deposit/index", "style": { @@ -125,6 +135,14 @@ "navigationBarTextStyle": "black" } }, + { + "path": "pages/order/detail", + "style": { + "navigationBarTitleText": "订单详情", + "navigationBarBackgroundColor": "#ffffff", + "navigationBarTextStyle": "black" + } + }, { "path": "pages/expressReturn/index", "style": { @@ -140,6 +158,14 @@ "navigationBarTextStyle": "black" } }, + { + "path": "pages/search/index", + "style": { + "navigationBarTitleText": "查找设备", + "navigationBarBackgroundColor": "#ffffff", + "navigationBarTextStyle": "black" + } + }, { "path": "pages/waiting/index", "style": { diff --git a/pages/device/detail.vue b/pages/device/detail.vue index 5070336..e67e2a5 100644 --- a/pages/device/detail.vue +++ b/pages/device/detail.vue @@ -1,44 +1,19 @@