mall: 订单中心->运费模板(第一版 性能有问题)

(cherry picked from commit 4e69f15128)
This commit is contained in:
jason
2023-05-21 23:41:36 +08:00
committed by shizhong
parent c254222b5f
commit 90ccc11006
6 changed files with 515 additions and 13 deletions

View File

@ -1,15 +1,11 @@
import request from '@/config/axios/request'
import request from '@/config/axios'
// 获得地区树
export const getAreaTree = async (content?: any) => {
return await request.get({
url: '/system/area/tree',
params: content
})
export const getAreaTree = async (id: number) => {
return await request.get({ url: '/system/area/tree?id=' + id })
}
// 获得 IP 对应的地区名
export const getAreaByIp = async (ip) => {
return await request.get({
url: '/system/area/get-by-ip?ip=' + ip
})
export const getAreaByIp = async (ip: string) => {
return await request.get({ url: '/system/area/get-by-ip?ip=' + ip })
}