173 lines
5.5 KiB
JavaScript
173 lines
5.5 KiB
JavaScript
// uni.api.notice = type => uni.api.fetch('notice', {type}, true)
|
|
// uni.api.banner = () => uni.api.get('banner')
|
|
// uni.api.get_sms_code = data => uni.api.get('get_sms_code', data)
|
|
export default {
|
|
userlogin(data) { //
|
|
return uni.api.post("/user/login", data);
|
|
},
|
|
orderlist(data) { //订单列表
|
|
return uni.api.post("/order/list", data,false);
|
|
},
|
|
orderreselist(data) { //预约列表
|
|
return uni.api.post("/order/reselist", data);
|
|
},
|
|
orderorderrefund(data) { //取消订单
|
|
return uni.api.post("/order/orderrefund", data);
|
|
},
|
|
orderstartsercive(data) { //开始服务
|
|
return uni.api.post("/order/startsercive", data);
|
|
},
|
|
orderorderdetail(data) { //订单详情
|
|
return uni.api.post("/order/orderdetail", data);
|
|
},
|
|
orderorderrefunddetail(data) { //退款详情
|
|
return uni.api.post("/order/orderrefunddetail", data);
|
|
},
|
|
userlogout(data) { //退出登录
|
|
return uni.api.post("/user/logout", data);
|
|
},
|
|
serviceitemclass(data) { //项目分类
|
|
return uni.api.post("/service/itemclass", data);
|
|
},
|
|
servicecreateitemclass(data) { //创建项目分类
|
|
return uni.api.post("/service/createitemclass", data);
|
|
},
|
|
servicecreateitem(data) { //创建项目
|
|
return uni.api.post("/service/createitem", data);
|
|
},
|
|
servicedetail(data) { //项目详情
|
|
return uni.api.post("/service/detail", data);
|
|
},
|
|
servicelist(data) { //项目列表
|
|
return uni.api.post("/service/list", data,false);
|
|
},
|
|
servicedelservice(data) { //删除项目
|
|
return uni.api.post("/service/delservice", data);
|
|
},
|
|
userstoredetail(data) { //门店详情
|
|
return uni.api.post("/user/storedetail", data);
|
|
},
|
|
userstoreset(data) { //门店设置
|
|
return uni.api.post("/user/storeset", data);
|
|
},
|
|
servicecreatevipbalabce(data) { //创建/修改充值卡
|
|
return uni.api.post("/service/createvipbalabce", data);
|
|
},
|
|
servicebalabceinfo(data) { //充值卡详情
|
|
return uni.api.post("/service/balabceinfo", data);
|
|
},
|
|
useruploadalbum(data) { //上传相册
|
|
return uni.api.post("/user/uploadalbum", data);
|
|
},
|
|
useralbumview(data) { //相册回显
|
|
return uni.api.post("/user/albumview", data);
|
|
},
|
|
useruserpolicy(data) { //
|
|
return uni.api.post("/user/userpolicy", data);
|
|
},
|
|
usercreateminicode(data) { //生成小程序码
|
|
return uni.api.post("/user/createminicode", data);
|
|
},
|
|
reservationmakenow(data) { //可预约时间
|
|
return uni.api.post("/reservation/makenow", data);
|
|
},
|
|
stafflist(data) { //员工列表
|
|
return uni.api.post("/staff/list", data,false);
|
|
},
|
|
staffstaffreturn(data) { //员工信息回显
|
|
return uni.api.post("/staff/staffreturn",data);
|
|
},
|
|
staffcreatestaff(data) { //创建员工
|
|
return uni.api.post("/staff/createstaff",data);
|
|
},
|
|
staffsavestaff(data) { //修改员工信息
|
|
return uni.api.post("/staff/savestaff",data);
|
|
},
|
|
servicecreateseccard(data) { //创建/修改次卡
|
|
return uni.api.post("/service/createseccard",data);
|
|
},
|
|
serviceseccardlist(data) { //次卡列表
|
|
return uni.api.post("/service/seccardlist",data);
|
|
},
|
|
serviceseccarddesc(data) { //次卡详情
|
|
return uni.api.post("/service/seccarddesc",data);
|
|
},
|
|
staffbhoures(data) { //营业时间
|
|
return uni.api.post("/staff/bhoures",data);
|
|
},
|
|
staffsavestaffhours(data) { //休息时间
|
|
return uni.api.post("/staff/savestaffhours",data);
|
|
},
|
|
orderokprebook(data) { //确认预约
|
|
return uni.api.post("/order/okprebook",data);
|
|
},
|
|
orderrefuseprebook(data) { //拒绝预约
|
|
return uni.api.post("/order/refuseprebook",data);
|
|
},
|
|
staffdeletestaff(data) { //删除员工
|
|
return uni.api.post("/staff/deletestaff",data);
|
|
},
|
|
staffgetvipduratio(data) { //会员卡有效期
|
|
return uni.api.post("/staff/getvipduratio",data);
|
|
},
|
|
userautollogin(data) { //自动登录
|
|
return uni.api.post("/user/autollogin",data);
|
|
},
|
|
useraccountlist(data) { //账号列表
|
|
return uni.api.post("/user/accountlist",data);
|
|
},
|
|
shoppinglist(data) { //订单列表
|
|
return uni.api.post("/shopping/list",data);
|
|
},
|
|
shoppingorderdetailt(data) { //订单详情
|
|
return uni.api.post("/shopping/orderdetail",data);
|
|
},
|
|
shoppingorderrefund(data) { //取消订单并退款
|
|
return uni.api.post("/shopping/orderrefund",data);
|
|
},
|
|
shoppingorsuboutgoods(data) { //发货提交
|
|
return uni.api.post("/shopping/suboutgoods",data);
|
|
},
|
|
shoppinggoodslist(data) { //商品列表
|
|
return uni.api.post("/shopping/goodslist",data);
|
|
},
|
|
shoppingcreategoods(data) { //创建/编辑商品
|
|
return uni.api.post("/shopping/creategoods",data);
|
|
},
|
|
shoppingcreategoodstype(data) { //创建/修改商品分类
|
|
return uni.api.post("/shopping/creategoodstype",data);
|
|
},
|
|
shoppinggooodstype(data) { //商品分类
|
|
return uni.api.post("/shopping/gooodstype",data);
|
|
},
|
|
shoppingdeletegoodstype(data) { //删除分类
|
|
return uni.api.post("/shopping/deletegoodstype",data);
|
|
},
|
|
shoppinggoodsdetail(data) { //商品详情
|
|
return uni.api.post("/shopping/goodsdetail",data);
|
|
},
|
|
shoppingdeletegoods(data) { //商品详情
|
|
return uni.api.post("/shopping/deletegoods",data);
|
|
},
|
|
staffemployee(data) { //员工分类
|
|
return uni.api.post("/staff/employee",data);
|
|
},
|
|
staffemployeeadd(data) { //员工分类添加/编辑
|
|
return uni.api.post("/staff/employeeadd",data);
|
|
},
|
|
staffemployeedel(data) { //删除员工分类
|
|
return uni.api.post("/staff/employeedel",data);
|
|
},
|
|
servicedelservice(data) { //删除项目
|
|
return uni.api.post("/service/delservice",data);
|
|
},
|
|
servicedeleteitem(data) { //删除项目分类
|
|
return uni.api.post("/service/deleteitem",data);
|
|
},
|
|
serviceitemclass(data) { //项目分类
|
|
return uni.api.post("/service/itemclass",data);
|
|
},
|
|
usergetopenid(data) { //openid
|
|
return uni.api.post("/user/getopenid",data);
|
|
},
|
|
} |