| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247 |
- import {http} from './service.js'
- //文件上传
- const uploadFile =(p)=> http.upload('blade-resource/oss/endpoint/put-file', {name:'file',filePath:p})
- //微信api
- const wxApp={
- getOpenId:p => http.get('/wx-app/getOpenId', {params:p}),
- createWxaQrCode: p => http.get('/wx-app/createWxaQrCode', {
- params: p
- }),
- }
- //字典
- const dict={
- getTagSelect:p => http.get("blade-system/dict-biz/list",{params:p}),
- list:p => http.get('/blade-system/dict-biz/dictionary', {params:p}),
- parentList:p => http.get('/blade-system/dict-biz/parent-list', {params:p}),
- dictionaryTree:p => http.get('/blade-system/dict-biz/dictionary-tree', {params:p}),
- dictionaryPage:p => http.get('/blade-system/dict-biz/dictionaryPage', {params:p}),
- }
- //手机验证码
- const sms={
- send:p => http.post('/sms/sendSms'+p)
- }
- const mall={
- //获取商场列表
- list:p => http.get('ldt_mall/mall/list',{params:p}),
- //商场详情
- detail:p => http.get('ldt_mall/mall/detail',{params:p}),
- }
- //商户管理
- const shop={
- myShop:p => http.get('shop/myShop',{params:p}),
- submitAudit:p => http.post('/shop/submitAudit',p),
- list:p => http.get('ldt_shop/shop/list',{params:p}),
- detail:p => http.get('ldt_shop/shop/detail',{params:p}),
- submit:p => http.post('ldt_shop/shop/submit',p),
- scanPay: p => http.post('/shopTrade/initOrderByCode',p),
- statistic:p => http.get('shop/indexInfo',{params:p}),
- memberInfo:p => http.get('shop/memberInfo',{params:p}),
- shopBillsInfo:p => http.get('shop/shopBillsInfo',{params:p}),
- feedback: p => http.post('ldt_feedback/feedback/submit', p),
- queryProductInfo: p => http.get('shop/yeepay/product/fee/query',{params:p}),
- }
- const loginUser={
- list:p => http.get('ldt_user/loginuser/list', {params:p}),
- }
- //审核状态
- const audit={
- list:p => http.get('ldt_shop/audit/list',{params:p}),
- detail:p => http.get('ldt_shop/audit/detail',{params:p}),
- }
- //账号
- const accout={
- register:p => http.post('/common/account/register',p),
- login:p => http.post('/common/account/login',p),
- phoneLogin:p => http.post('/common/account/phoneLogin',p),
- forgetPsw :p=> http.post('/common/account/forgetPsw',p),
- }
- //用户银行
- const userBank={
- detail:p => http.get('ldt_user/userbank/detail',{params:p}),
- list:p => http.get('ldt_user/userbank/list',{params:p}),
- appList:p => http.get('common/userbank/list',{params:p}),
- submit:p => http.post('ldt_user/userbank/submit', p),
- remove:p => http.post('ldt_user/userbank/remove?ids='+p),
- }
- //会员中心
- const member={
- list:p => http.get('ldt_user/member/list',{params:p}),
- detail:p => http.get('ldt_user/member/detail',{params:p}),
- }
- //余额明细
- const bills={
- list:p => http.get('common/bills/list',{params:p}),
- detail:p => http.get('common/bills/detail',{params:p}),
- }
- //应收明细
- const pointBills={
- list:p => http.get('ldt_bills/pointbills/list',{params:p}),
- }
- const flow={
- //获取流程自定义主键
- getProcessDefinitionId:p => http.get('blade-flow/work/start-list',{params:p}),
- //获取任务id
- getTaskId:p => http.get('blade-flow/work/todo-list', {params:p}),
- //获取流程历史记录
- historyFlowList:p => http.get('blade-flow/process/history-flow-list', {params:p}),
- //提交审核流程
- flowAuditSubmit:p => http.post("blade-flow/work/complete-task", p),
- }
- const activity={
- //发起活动
- publish:(p)=> http.post('/common/activity/publish',p),
- //已发起的活动
- list:p => http.get("/common/activity/list", {params:p}),
- //可参加的活动
- getCanJoinActivity:p => http.get("/common/activity/getCanJoinActivity", {params:p}),
- //活动详情
- detail:p => http.get("ldt_activity/activity/detail", {params:p}),
- //结束活动
- stop:(p)=> http.post('ldt_activity/activity/submit',p),
- }
- const joinRecord={
- //活动详情查看该活动的参加者
- list:p => http.get("ldt_activity/joinrecord/list", {params:p}),
- //活动清单中查看自己参加的活动
- joined:p => http.get("common/joinrecord/list", {params:p}),
- //退出活动
- remove:p => http.post("ldt_activity/joinrecord/remove?ids="+p),
- //参加活动
- submit:(p)=> http.post('ldt_activity/joinrecord/submit',p),
- }
- const statistics={
- getBillStatistics:p => http.get('/common/bills/getBillStatistics',{params:p}),
- getPointsBillStatistics:p => http.get('common/pointbills/getPointBillStatistics',{params:p})
- }
- const withdraw={
- userPointWithdraw:p => http.post('shop/userPointWithdraw',p),
- userBalanceWithdraw:p => http.post('shop/userBalanceWithdraw',p),
- pointPayOrder:p => http.get('withdraw/YEE_PAY_WITHDRAW/POINT_WITHDRAW',{params:p}),
- balancePayOrder:p => http.get('withdraw/YEE_PAY_WITHDRAW/BALANCE_WITHDRAW',{params:p}),
- list:p => http.get("ldt_bills/withdrawrec/list", {params:p}),
- detail:p => http.get("ldt_bills/withdrawrec/detail", {params:p}),
- }
- const ocr={
- bizilicense:(p)=> http.upload('ocr/bizilicense', {name:'image',filePath:p}),
- idcard:(p)=> http.upload('ocr/idcard', {name:'image',filePath:p}),
- bank:(p)=> http.upload('ocr/bank', {name:'image',filePath:p}),
- }
- const yeepay={
- queryBalance:p => http.get("yeepay/queryBalance", {params:p}),
- //绑卡
- withdrawCardBind:p => http.post('yeepay/withdrawCardBind',p),
- //查卡
- withdrawCardQuery:p => http.get("yeepay/withdrawCardQuery", {params:p}),
- }
- const goods={
- list:p => http.get('goods/getGoodsList', {params: p}),
- remove:p => http.post("ldt_goods/goods/remove?ids="+p),
- submit: p => http.post('ldt_goods/goods/submit', p),
- reload: p => http.get('goods/reload', {params: p}),
- }
- const goodsCategory={
- list:p => http.get('ldt_goods/goodscategory/list', {params: p}),
- submit: p => http.post('ldt_goods/goodscategory/submit', p),
- remove:p => http.post("ldt_goods/goodscategory/remove?ids="+p),
- }
- const goodsProperty={
- list:p => http.get('ldt_goods/goodsproperty/list', {params: p}),
- submit: p => http.post('ldt_goods/goodsproperty/submit', p),
- saveBatch: p => http.post('ldt_goods/goodsproperty/saveBatch', p),
- updateBatch: p => http.post('ldt_goods/goodsproperty/updateBatch', p),
- submitBatch: p => http.post('ldt_goods/goodsproperty/submitBatch', p),
- remove:p => http.post("ldt_goods/goodsproperty/remove?ids="+p),
- }
- const goodsbills = {
- list: p => http.get("goodsbills/listShop", {
- params: p
- }),
- detail: p => http.get("goodsbills/detail", {
- params: p
- }),
- submit: p => http.post('ldt_bills/goodsbills/submit', p),
- }
- const area={
- province: p => http.get('blade-system/region/lazy-tree?parentCode=00', {params: p}),
- list:p => http.get('blade-system/region/lazy-tree', {params: p}),
- }
- const shopTrade={
- balanceQuery: p => http.get('shopTrade/balanceQuery', {params: p}),
- }
- const shopConfig={
- list:p => http.get('ldt_goods/shopconfig/list', {params: p}),
- submit: p => http.post('ldt_goods/shopconfig/submit', p),
- }
- const notice={
- submitNotice: p => http.post('shop/submitNotice',p),
- list:p => http.get('shop/getPublishNoticeList', {params: p}),
- detail:p => http.get("ldt_notice/noticecontent/detail", {params:p}),
- }
- export const api={
- uploadFile,
- wxApp,
- dict,
- sms,
- mall,
- shop,
- loginUser,
- audit,
- accout,
- userBank,
- member,
- bills,
- pointBills,
- flow,
- activity,
- joinRecord,
- statistics,
- withdraw,
- ocr,
- yeepay,
- goods,
- goodsCategory,
- goodsProperty,
- goodsbills,
- area,
- shopTrade,
- shopConfig,
- notice
- }
|