Huanyuyuehui/api/shop.js

22 lines
487 B
JavaScript

import request from "@/utils/request.js";
/**
* 公共接口 ,获取商家列表,定位信息
*
*/
/**
* 获取主页数据 无需授权
*
*/
export function shopInit(data)
{
return request.get("store/merchant/category",data,{ noAuth : true});
}
//获取附件商家
export function shopNearby(data){
return request.get('store/merchant/lst',data,{noAuth:true});
}
export function shopDetail(data){
return request.get('store/merchant/detail/'+data.id,{},{noAuth:true});
}