18 lines
620 B
JavaScript
18 lines
620 B
JavaScript
//请求工具参考https://ext.dcloud.net.cn/plugin?id=392
|
|
const { http } = uni.$u
|
|
import request from "@/utils/request.js";
|
|
// 查询商品spu列表
|
|
export const productSpuPage = params => http.get('product/spu/page', { params })
|
|
|
|
// 查询商品
|
|
export const getSpuDetail = id => request.get('front/product/detail/' + id, { })
|
|
|
|
// 查询商品列表
|
|
export const productPage = params => request.get('front/products', { params })
|
|
|
|
// 获取Banner图
|
|
export const getBanner = params => request.post('market/banner/list', { params })
|
|
|
|
// 获取租户
|
|
export const getTenant = id => request.get('tenant/get/' , {id:id })
|