From fce9d1998a471e2718d4b3a06dcc5ae1cea8260e Mon Sep 17 00:00:00 2001 From: icssoa <615206459@qq.com> Date: Wed, 27 Aug 2025 19:03:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E2=80=9C=E6=94=B6=E8=B4=A7?= =?UTF-8?q?=E5=9C=B0=E5=9D=80=E2=80=9D=E6=A8=A1=E6=9D=BF=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 13 ++ pages/index/template.uvue | 4 + pages/template/shop/address-edit.uvue | 198 +++++++++++++++++++++++ pages/template/shop/address.uvue | 216 ++++++++++++++++++++++++++ pages/template/types/index.ts | 10 ++ 5 files changed, 441 insertions(+) create mode 100644 pages/template/shop/address-edit.uvue create mode 100644 pages/template/shop/address.uvue create mode 100644 pages/template/types/index.ts diff --git a/pages.json b/pages.json index dc06776..8e99252 100644 --- a/pages.json +++ b/pages.json @@ -446,6 +446,19 @@ "style": { "navigationStyle": "custom" } + }, + { + "path": "shop/address", + "style": { + "navigationBarTitleText": "收货地址", + "enablePullDownRefresh": true + } + }, + { + "path": "shop/address-edit", + "style": { + "navigationBarTitleText": "编辑地址" + } } ] } diff --git a/pages/index/template.uvue b/pages/index/template.uvue index 35d87c1..7139dbd 100644 --- a/pages/index/template.uvue +++ b/pages/index/template.uvue @@ -60,6 +60,10 @@ const list = computed(() => [ }, { label: t("订单列表、详情") + }, + { + label: t("收货地址"), + path: "/pages/template/shop/address" } ] }, diff --git a/pages/template/shop/address-edit.uvue b/pages/template/shop/address-edit.uvue new file mode 100644 index 0000000..163dde4 --- /dev/null +++ b/pages/template/shop/address-edit.uvue @@ -0,0 +1,198 @@ + + + diff --git a/pages/template/shop/address.uvue b/pages/template/shop/address.uvue new file mode 100644 index 0000000..cfa8e5b --- /dev/null +++ b/pages/template/shop/address.uvue @@ -0,0 +1,216 @@ + + + diff --git a/pages/template/types/index.ts b/pages/template/types/index.ts new file mode 100644 index 0000000..6112d33 --- /dev/null +++ b/pages/template/types/index.ts @@ -0,0 +1,10 @@ +export type UserAddress = { + id?: number; + contact: string; + phone: string; + province: string; + city: string; + district: string; + address: string; + isDefault: boolean; +};