| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- import {http} from './service.js'
- //文件上传
- const uploadFile =(p)=> http.upload('blade-resource/oss/endpoint/put-file', {name:'file',filePath:p})
- const platform = {
- getPlatformParams: p => http.get('/app/platformsetting/getPlatformValueByList', {params:p}),
- }
- const activity = {
- getWorksList: p => http.get('/app/active/product/sortList', {params:p}),
- searchWork: p => http.get('/app/active/product/search', {params:{keyword: p}}),
- getWorksDetail: id => http.get('/sing_active/activeproductrecord/detail', {params:{id}}),
- }
- //微信api
- const wxApp={
- getOpenId:p => http.get('/wx-app/getOpenId', {params:p}),
- getOpenData:p => http.post('/wx-app/getOpenData',p),
- }
- //字典
- const dict={
- 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}),
- }
- const loginUser={
- list:p => http.get('ldt_user/loginuser/list', {params:p}),
- submit:p => http.post('sing_user/loginuser/submit', p),
- login:p => http.post('sing_user/loginuser/login', p),
- detail:p => http.get('sing_user/loginuser/detail', {params:p}),
- }
- const points={
- list:p => http.get('sing_point/pointrecord/list', {params:p}),
- }
- const help={
- list:p => http.get('sing_active/activehelprecord/list', {params:p}),
- }
- export const api={
- uploadFile,
- dict,
- wxApp,
- loginUser,
- activity,
- platform,
- points,
- help
- }
|