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 d7b20c5..74cf028 100644 --- a/pages.json +++ b/pages.json @@ -235,6 +235,12 @@ "navigationStyle": "custom" } }, + { + "path": "pages/mine/me/upAddress", + "style": { + "navigationStyle": "custom" + } + }, { "path": "pages/feedback/index", "style": { diff --git a/pages/advanceOrder/stopperSelection/index.vue b/pages/advanceOrder/stopperSelection/index.vue index a12abc3..c526d05 100644 --- a/pages/advanceOrder/stopperSelection/index.vue +++ b/pages/advanceOrder/stopperSelection/index.vue @@ -31,7 +31,8 @@ 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 @@ + + + + +