cyywl_server/yudao-ui-app/api/product.js

21 lines
737 B
JavaScript
Raw Normal View History

//请求工具参考https://ext.dcloud.net.cn/plugin?id=392
const { http } = uni.$u
2023-05-23 17:37:49 +08:00
import request from "@/utils/request.js";
// 查询商品spu列表
2022-07-27 16:04:53 +08:00
export const productSpuPage = params => http.get('product/spu/page', { params })
// 查询商品
2023-05-23 17:37:49 +08:00
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 })
2023-05-25 15:45:57 +08:00
// 获取头部信息
export const getHeader = params => request.get('api/order/member/memberHeadInfo' , {params })