You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
import request from "@/utils/request.js";
|
|
|
|
import {host} from "@/config/host.js";
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 公寓列表
|
|
|
|
* @param {Object} data
|
|
|
|
*/
|
|
|
|
export function roomList(data) {
|
|
|
|
|
|
|
|
return request({
|
|
|
|
url: `${host}/market/houselist`,
|
|
|
|
method: "get",
|
|
|
|
data
|
|
|
|
});
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* 公寓列表
|
|
|
|
* @param {Object} data
|
|
|
|
*/
|
|
|
|
export function streetList(data) {
|
|
|
|
|
|
|
|
return request({
|
|
|
|
url: `${host}/common/streetall-list`,
|
|
|
|
method: "post",
|
|
|
|
data
|
|
|
|
});
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* 商品列表
|
|
|
|
* @param {Object} data
|
|
|
|
*/
|
|
|
|
export function goodsList(data) {
|
|
|
|
|
|
|
|
return request({
|
|
|
|
url: `${host}/market/goodslist`,
|
|
|
|
method: "post",
|
|
|
|
data
|
|
|
|
});
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* 公寓详情
|
|
|
|
* @param {Object} data
|
|
|
|
*/
|
|
|
|
export function roomDetail(data) {
|
|
|
|
|
|
|
|
return request({
|
|
|
|
url: `${host}/market/houseinfo`,
|
|
|
|
method: "get",
|
|
|
|
data
|
|
|
|
});
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
*
|
|
|
|
* @param {Object} data
|
|
|
|
*/
|
|
|
|
export function goodsType(data) {
|
|
|
|
|
|
|
|
return request({
|
|
|
|
url: `${host}/other/goods-type`,
|
|
|
|
method: "get",
|
|
|
|
data
|
|
|
|
});
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* 商品详情
|
|
|
|
* @param {Object} data
|
|
|
|
*/
|
|
|
|
export function goodsDetail(data) {
|
|
|
|
|
|
|
|
return request({
|
|
|
|
url: `${host}/market/goodsinfo`,
|
|
|
|
method: "post",
|
|
|
|
data
|
|
|
|
});
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* 商品规格
|
|
|
|
* @param {Object} data
|
|
|
|
*/
|
|
|
|
export function goodsSpec(data) {
|
|
|
|
|
|
|
|
return request({
|
|
|
|
url: `${host}/market/goods-spec`,
|
|
|
|
method: "post",
|
|
|
|
data
|
|
|
|
});
|
|
|
|
}
|