acdr-ui/dist/build/mp-weixin/service/personalService.js

2 lines
580 B
JavaScript

"use strict";const e=require("../common/vendor.js"),r=require("../utils/http.js");exports.getNearbyServices=function(i,t,c={}){const s={latitude:i,longitude:t,serviceName:c.serviceName,minPrice:c.minPrice,maxPrice:c.maxPrice,priceOrder:c.priceOrder,distanceOrder:c.distanceOrder,current:c.current||1,size:c.size||10};return r.httpGet("/personal-service/referralServices",s).then((e=>200===e.code?e.records:Promise.reject(e.message||"获取服务列表失败"))).catch((r=>(e.index.showToast({icon:"none",title:"获取服务列表失败,请稍后重试"}),Promise.reject(r))))};