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.
22 lines
351 B
22 lines
351 B
const http = require('./http.js') |
|
|
|
/* |
|
* 商品分类 |
|
* */ |
|
export function getCategory() { |
|
return http.$http('get','category'); |
|
} |
|
|
|
/* |
|
* 商品列表 |
|
* */ |
|
export function getProducts(q) { |
|
return http.$http('get','products',q) |
|
} |
|
/* |
|
* 商品详情 |
|
* */ |
|
export function getProductDetail(id) { |
|
return http.$http('get',"/product/detail/" + id) |
|
} |
|
|
|
|