diff --git a/api/mine/information.js b/api/mine/information.js
new file mode 100644
index 0000000..d93a71b
--- /dev/null
+++ b/api/mine/information.js
@@ -0,0 +1,63 @@
+import request from '@/utils/request'
+
+
+/**
+ * @param {Object} data获取个人地址列表
+ */
+export function queryCustAddrApi(data) {
+ return request({
+ url: '/smart-canteen/custaddr/queryCustAddrForApp',
+ method: 'post',
+ headers: {
+ "openid": uni.getStorageSync('openId'),
+ "sourceType": "7",
+ },
+ data
+ })
+}
+
+/**
+ * @param {Object} data获取单个地址
+ */
+export function queryChildPlaceByIdApi(data) {
+ return request({
+ url: '/smart-canteen/custaddr/queryChildPlaceById',
+ method: 'post',
+ headers: {
+ "openid": uni.getStorageSync('openId'),
+ "sourceType": "7",
+ },
+ data
+ })
+}
+
+/**
+ * @param {Object} data 新增个人地址
+ */
+export function updateCustAddrApi(data) {
+ return request({
+ url: '/smart-canteen/custaddr/updateCustAddrForApp',
+ method: 'post',
+ headers: {
+ "openid": uni.getStorageSync('openId'),
+ "sourceType": "7",
+ },
+ data
+ })
+}
+
+/**
+ * @param {Object} data设置默认地址
+ */
+export function updateDefaultAddrApi(data) {
+ return request({
+ url: '/smart-canteen/custaddr/updateDefaultAddrForApp',
+ method: 'post',
+ headers: {
+ "openid": uni.getStorageSync('openId'),
+ "sourceType": "7",
+ },
+ data
+ })
+}
+
diff --git a/pages.json b/pages.json
index 1bb4804..b2800d8 100644
--- a/pages.json
+++ b/pages.json
@@ -241,6 +241,12 @@
"navigationStyle": "custom"
}
},
+ {
+ "path": "pages/mine/me/upAddress",
+ "style": {
+ "navigationStyle": "custom"
+ }
+ },
{
"path": "pages/feedback/index",
"style": {
diff --git a/pages/mine/me/myAddress.vue b/pages/mine/me/myAddress.vue
index c393d31..927241d 100644
--- a/pages/mine/me/myAddress.vue
+++ b/pages/mine/me/myAddress.vue
@@ -5,7 +5,7 @@
v-for="(item, index) in addressList"
:key="index"
class="address-item"
- @click="handleEdit(index)"
+ @click="handleEdit(item)"
>
{{ item.address }}
@@ -14,42 +14,83 @@
{{ item.phone }}
+ {{item.ifDefault=="1"?"默认":""}}
diff --git a/pages/mine/me/upAddress.vue b/pages/mine/me/upAddress.vue
new file mode 100644
index 0000000..37441bc
--- /dev/null
+++ b/pages/mine/me/upAddress.vue
@@ -0,0 +1,171 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 是
+ 否
+
+
+
+
+
+
+
+
+
+