添加地址功能:手机号需要添加正则验证

This commit is contained in:
cbb
2025-12-25 17:50:11 +08:00
parent 334c0800fa
commit 1aab94bbc3
91 changed files with 13903 additions and 24 deletions

View File

@@ -25,3 +25,20 @@ export const getUserData = () => {
method: 'get'
})
}
/** 获取用户地址列表 */
export const getUserAddress = () => {
return http({
url: '/api/service/userAddress/list',
method: 'get'
})
}
/** 添加地址 */
export const addUserAddress = data => {
return http({
url: '/api/service/userAddress',
method: 'post',
data
})
}

View File

@@ -16,3 +16,11 @@ export const getProductList = data => {
data
})
}
/** 商品详情 */
export const getProductDetail = productId => {
return http({
url: `/api/service/product/${productId}`,
method: 'get'
})
}