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; +};