| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- import {http} from './service.js'
- //微信api
- const wxApp={
- getOpenId:p => http.get('/wx-app/getOpenId', {params:p}),
- getOpenData:p => http.post('/wx-app/getOpenData',p),
- }
- //字典
- const dict=p => http.get('/blade-system/dict-biz/dictionary', {params:p})
- //文件上传
- let uploadFileUrl='/upload/putfile'
- const uploadFile={
- submit:p => http.upload(uploadFileUrl, {name:'file',filePath:p}),
- }
- //活动管理
- const activity = {
- list:p => http.get('yyzs/cyzh-activity/activity/selectPageWithTag', {params:p,custom: {yyzs: true}}),
- }
- //用户管理
- const loginUser={
- detail:p => http.get('cyzh-ldt/loginuser/detail', {params:p}),
- submit:p => http.post('cyzh-ldt/loginuser/submit', p),
- login:p => http.post('cyzh-ldt/loginuser/login', p),
- }
- //商户管理
- const shop={
- list:p => http.get('cyzh-ldt/shop/list', {params:p}),
- }
- //商场管理
- const mall={
- //获取商场列表
- list:p => http.get('cyzh-ldt/mall/list',{params:p}),
- }
- //代理商
- const agenter={
- list:p => http.get('cyzh-ldt/agenter/list',{params:p}),
- submit:p => http.post('cyzh-ldt/agenter/submit', p),
- }
- //代理类型
- const agenterType={
- detail:p => http.get('cyzh-ldt/agentertype/detail',{params:p}),
- }
- //用户银行
- const userBank={
- detail:p => http.get('cyzh-ldt/userbank/detail',{params:p}),
- list:p => http.get('cyzh-ldt/userbank/list',{params:p}),
- appList:p => http.get('cyzh-ldt/userbank/appList',{params:p}),
- submit:p => http.post('cyzh-ldt/userbank/submit', p),
- remove:p => http.post('cyzh-ldt/userbank/remove?ids='+p),
- }
- //支付
- const pay={
- payOrder:p => http.get('payment/payOrder/YEE_PAY/SCAN_CODE',{params:p}),
- }
- const billRecord={
- submit:p => http.post('cyzh-ldt/billrecord/submit', p),
- }
- export const api={
- wxApp,
- dict,
- uploadFile,
- activity,
- loginUser,
- shop,
- mall,
- agenter,
- agenterType,
- userBank,
- pay,
- billRecord
- }
|