mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-07-13 10:35:07 +08:00
product:优化管理后台相关的接口
area:增加地区列表界面
This commit is contained in:
@ -26,18 +26,10 @@ export function deleteSpu(id) {
|
||||
})
|
||||
}
|
||||
|
||||
// 获得商品spu
|
||||
export function getSpu(id) {
|
||||
return request({
|
||||
url: '/product/spu/get?id=' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得商品 SPU 详情
|
||||
export function getSpuDetail(id) {
|
||||
return request({
|
||||
url: '/product/spu/get/detail?id=' + id,
|
||||
url: '/product/spu/get-detail?id=' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
17
yudao-ui-admin/src/api/system/area.js
Normal file
17
yudao-ui-admin/src/api/system/area.js
Normal file
@ -0,0 +1,17 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
// 获得地区树
|
||||
export function getAreaTree() {
|
||||
return request({
|
||||
url: '/system/area/tree',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 获得 IP 对应的地区名
|
||||
export function getAreaByIp(ip) {
|
||||
return request({
|
||||
url: '/system/area/get-by-ip?ip=' + ip,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
Reference in New Issue
Block a user