| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- import {http} from './service.js'
- //文件上传
- const uploadFile =(p)=> http.upload('blade-resource/oss/endpoint/put-file', {name:'file',filePath:p})
- //手机验证码
- const sms={
- send:p => http.post('huawei/sms/sendSms'+p),
- validCode:(p)=> http.post('huawei/sms/validCode'+p)
- }
- //商场管理
- const mall={
- login:p => http.post('/shop/account/login',p),
- detail:p => http.get("cyzh-ldt/mall/detail", {params:p}),
- getListByPhone:p => http.get("/ldt_mall/mall/list", {params:p}),
- getShopLabelByMallId:p => http.get("cyzh-ldt/app/mall/getShopLabelByMallId?mallId="+p),
- getMallAreaByMallId:p => http.get("cyzh-ldt/app/mall/getMallAreaByMallId?mallId="+p),
- getShopList:p => http.get("cyzh-ldt/app/mall/getShopList",{params:p}),
- statistic:p => http.get("cyzh-ldt/app/mall/statistic?mallId="+p),
- getTagManageList:p => http.get("cyzh-ldt/mallshoplabel/list",{params:p}),
- getTagSelect:p => http.get("cyzh-ldt/gxlabel/list",{params:p}),
- getSetTag:p => http.post("cyzh-ldt/mallshoplabel/mall/setLabels",p),
- getTagRemove:p => http.post("cyzh-ldt/mallshoplabel/remove?ids="+p)
- }
- const appaccount={
- login:p => http.post('/common/account/login',p),
- setPassword:p => http.post('/cyzh-ldt/appaccount/setPassword',p),
- forgetPassword:p => http.post('/cyzh-ldt/appaccount/forgetPassword',p),
- }
- const memberCenter={
- list:p => http.get('cyzh-ldt/app/mall/getMembersByMallId',{params:p}),
- create:(p)=> http.post('cyzh-ldt/app/mall/createMemberCenter',p),
- update:(p)=> http.post('cyzh-ldt/app/mall/updateMemberCenter',p),
- }
- const shop={
- update:p => http.post('cyzh-ldt/shop/update',p),
- submit:p => http.post('cyzh-ldt/shop/submit',p),
- detail:p => http.get("cyzh-ldt/shop/detail", {params:p}),
- }
- const activity={
- publish:(p)=> http.post('/cyzh-ldt/activity/submit',p),
- list:p => http.get("cyzh-ldt/app/mall/getActivity", {params:p}),
- //结束活动
- stop:(p)=> http.post('/cyzh-ldt/activity/updateBatch',p),
- //退出活动
- exit:(p)=> http.post('cyzh-ldt/activityjoinrecord/exitBatch',p),
- //参加活动
- join:(p)=> http.post('cyzh-ldt/activityjoinrecord/submit',p),
- //活动详情
- detail:p => http.get("/cyzh-ldt/activity/detail", {params:p}),
- //修改活动状态
- submit:p => http.post("/cyzh-ldt/activity/submit", p),
- //活动审核列表
- auditList:p => http.get('cyzh-ldt/activity/list', {params:p}),
- }
- export const api={
- uploadFile,
- sms,
- mall,
- appaccount,
- memberCenter,
- shop,
- activity
- }
|