Init project
This commit is contained in:
+72
@@ -0,0 +1,72 @@
|
||||
import request from "@/utils/request";
|
||||
|
||||
/**
|
||||
* NIGHT V4 API
|
||||
*/
|
||||
|
||||
// 店铺列表
|
||||
export function fetchShop(merchantName) {
|
||||
return request.post("/merchant/products", {
|
||||
merchantName
|
||||
}, {
|
||||
login: false
|
||||
})
|
||||
}
|
||||
|
||||
// 店铺内商品列表
|
||||
export function fetchGoods(merId, orderBy) {
|
||||
return request.post("/merchant/productList", {
|
||||
merId,
|
||||
orderBy
|
||||
}, {
|
||||
login: false
|
||||
})
|
||||
}
|
||||
|
||||
// 特产列表
|
||||
export function fetchSpecialty(page, cityName) {
|
||||
return request.get("/products/normal", {
|
||||
isGood: 1,
|
||||
page,
|
||||
cityName,
|
||||
limit: 20
|
||||
}, {
|
||||
login: true
|
||||
})
|
||||
}
|
||||
|
||||
// 获取特产商品城市列表
|
||||
export function fetchCity() {
|
||||
return request.post("/yxStoreProductGoods/list", {}, {
|
||||
login: true
|
||||
})
|
||||
}
|
||||
|
||||
// 招商信息
|
||||
export function getAttract() {
|
||||
return request.get("/api/businessApply/index", {}, {
|
||||
login: false
|
||||
})
|
||||
}
|
||||
|
||||
// 提交招商信息
|
||||
export function saveAttract(data) {
|
||||
return request.post("/api/businessApply/apply", data, {
|
||||
login: true
|
||||
})
|
||||
}
|
||||
|
||||
// 招商项目入口页
|
||||
export function investment() {
|
||||
return request.get("/investment/index", {}, {login: true})
|
||||
}
|
||||
|
||||
// 招商项目列表
|
||||
export function investmentList(page, keyword) {
|
||||
return request.get("/investment/list", {page, keyword}, {login: true})
|
||||
}
|
||||
|
||||
// 招商项目详情
|
||||
export function investmentInfo(id) {
|
||||
return request.get("/investment/info/" + id, {}, {login: true})
|
||||
}
|
||||
Reference in New Issue
Block a user