From a5a5534c36d57d20388eafeb1c3daaf32c893afb Mon Sep 17 00:00:00 2001 From: Sun_sun <469361609@qq.com> Date: Fri, 17 Oct 2025 17:21:11 +0800 Subject: [PATCH] =?UTF-8?q?2025-10-17=20=E6=94=B6=E8=B4=A7=E5=9C=B0?= =?UTF-8?q?=E5=9D=80=E6=B7=BB=E5=8A=A0=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/address.js | 16 +++ api/common.js | 4 +- manifest.json | 6 +- pages.json | 3 +- pages/home/index.vue | 43 ++++++-- pages/my/my.vue | 1 - pages/my/shippingAddress.vue | 184 ++++++++++++++++++++++++++++++----- static/my/must.png | Bin 0 -> 377 bytes 8 files changed, 217 insertions(+), 40 deletions(-) create mode 100644 api/address.js create mode 100644 static/my/must.png diff --git a/api/address.js b/api/address.js new file mode 100644 index 0000000..7a9efcc --- /dev/null +++ b/api/address.js @@ -0,0 +1,16 @@ +import { + http +} from "../util/api" + +// const baseURL = "http://192.168.0.12:3005/term" +const baseURL = "http://192.168.0.26:3000/api" + +// 项目相关API +export const addressAPI = { + // 列表 + getList: (params) => http.get(baseURL + '/addresses', params), +} + +export default { + addressAPI +} \ No newline at end of file diff --git a/api/common.js b/api/common.js index 8a8c32b..58cea4b 100644 --- a/api/common.js +++ b/api/common.js @@ -1,7 +1,9 @@ import { http } from "../util/api"; +const baseURL = "http://192.168.0.26:3000/api" + export const commonAPI = { - getRegion: () => http.get('/common/provinces'), + getRegion: () => http.get(baseURL + '/regions/provinces'), } export default { diff --git a/manifest.json b/manifest.json index 54c3a8f..7a16b5a 100644 --- a/manifest.json +++ b/manifest.json @@ -1,5 +1,5 @@ { - "name" : "jurong_circle_front_app", + "name" : "炬融圈", "appid" : "__UNI__11908F8", "description" : "", "versionName" : "1.0.0", @@ -18,9 +18,7 @@ }, /* 模块配置 */ "modules" : { - "Payment" : {}, - "Record" : {}, - "Camera" : {} + "Payment" : {} }, /* 应用发布信息 */ "distribute" : { diff --git a/pages.json b/pages.json index 2a6fcbf..ca5cfcc 100644 --- a/pages.json +++ b/pages.json @@ -4,7 +4,8 @@ "path": "pages/home/index", "style": { "navigationBarTitleText": "主页", - "navigationStyle": "custom" + "navigationStyle": "custom", + "enablePullDownRefresh": true } }, { diff --git a/pages/home/index.vue b/pages/home/index.vue index c28f8ab..2b68abd 100644 --- a/pages/home/index.vue +++ b/pages/home/index.vue @@ -1,6 +1,8 @@ - - + - - @@ -333,7 +356,7 @@ .box-div { - padding: 30rpx 0rpx; + padding: 60rpx 0rpx; } } \ No newline at end of file diff --git a/pages/my/my.vue b/pages/my/my.vue index b127847..2391346 100644 --- a/pages/my/my.vue +++ b/pages/my/my.vue @@ -155,7 +155,6 @@ onMounted(() => { user.value = uni.getStorageSync("user") - console.log(user.value); }) const loginOut = () => { diff --git a/pages/my/shippingAddress.vue b/pages/my/shippingAddress.vue index 3fff83e..f09294b 100644 --- a/pages/my/shippingAddress.vue +++ b/pages/my/shippingAddress.vue @@ -10,18 +10,18 @@ 删除 - + 新增地址 - + - {{item.province + item.city + item.district}} + {{item.province_name + " " + item.city_name + " " + item.district_name}} {{item.detailed_address}} @@ -44,18 +44,83 @@ - + + + + + + + + + + + + 详细地址与门牌号 + + + + + + + + 收货人名字 + + + + + + + + 手机号 + + + + + + + + 标签 + + + + 公司 + 学校 + + + + + 是否设置为默认 + + + + 确定 + + + + -