| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338 |
- 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),
- getGenerateScheme: p => http.get('/wx-app/getGenerateScheme', {
- params: p
- }),
- createWxaQrCode: p => http.get('/wx-app/createWxaQrCode', {
- params: p
- }),
- getCode: p => http.get('/wx-app/getCode', {params: p}),
-
- appParams: p => http.get('blade-system/param/detail', {params: p}),
- }
- //字典
- const dict = {
- list: p => http.get('/blade-system/dict-biz/dictionary', {
- params: p
- }),
- dictionaryPage: p => http.get('/blade-system/dict-biz/dictionaryPage', {
- params: p
- }),
- }
- //文件上传
- const uploadFile = (p) => http.upload('blade-resource/oss/endpoint/put-file', {
- name: 'file',
- filePath: p
- })
- //活动管理
- const activity = {
- //音乐之声活动
- yyzs_list: p => http.get('yyzs/cyzh-activity/activity/selectPageWithTag', {
- params: p,
- custom: {
- yyzs: true
- }
- }),
- //商户活动
- list: p => http.get("/common/activity/list", {
- params: p
- }),
- //活动详情
- detail: p => http.get("ldt_activity/activity/detail", {
- params: p
- }),
- //获取地址信息
- getLocation: p => http.get("/common/activity/getLocation", {
- params: p
- }),
- }
- //用户管理
- const loginUser = {
- detail: p => http.get('ldt_user/loginuser/detail', {
- params: p
- }),
- submit: p => http.post('ldt_user/loginuser/submit', p),
- login: p => http.post('client/user/login', p),
- payBefore: p => http.post('cyzh-ldt/loginuser/payBeforeNew', p),
- payBeforeForNormal: p => http.post('cyzh-ldt/loginuser/payBeforeForNormal', p),
- getBillrecordFromRedis: p => http.get('cyzh-ldt/loginuser/getBillrecordFromRedis', {
- params: p
- }),
- clearBillRecordCache: p => http.get('cyzh-ldt/loginuser/clearBillRecordCache', {
- params: p
- }),
- }
- //商户管理
- const shop = {
- list: p => http.get('shop/list', {
- params: p
- }),
- detail: p => http.get('ldt_shop/shop/detail', {
- params: p
- }),
- indexInfo: p => http.get("shop/indexInfo", {
- params: p
- }),
- getBccH5SignAuthentication: p => http.get("client/user/getBccH5SignAuthentication", {
- params: p
- }),
- }
- //审核管理
- const audit = {
- list: p => http.get("ldt_shop/audit/list", {
- params: p
- }),
- submit: p => http.post('ldt_shop/audit/submit', p),
- detail: p => http.get("ldt_shop/audit/detail", {
- params: p
- }),
- }
- //商场管理
- const mall = {
- //获取商场列表
- list: p => http.get('mall/list', {params: p}),
- }
- //代理商
- const agenter = {
- agentLevelList: p => http.get('ldt_agent/agent/list', {params: p}),
- addAgentOrder: p => http.post('/app/agent/addAgentOrder', p),
-
- list: p => http.get('ldt_agent/agentrecord/list', {
- params: p
- }),
- submit: p => http.post('ldt_agent/agentrecord/submit', p),
- statistics: p => http.get('app/agent/agenterInfo', {
- params: p
- }),
- earningsDetail: p => http.get('app/agent/earningsDetail', {
- params: p
- }),
- }
- //代理类型
- const agenterType = {
- detail: p => http.get('ldt_platform/platformsetting/detail', {
- params: 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 pay = {
- //获取wx支付所需参数
- getPayOrderPamams: p => http.post('client/trade/scanPay', p),
- //h5获取wx支付所需参数
- getPayOrderPamamsForH5: p => http.post('client/trade/scanPayByWeChat', p),
- //wx支付
- payOrder: p => http.get('payment/payOrder/YEE_PAY/MINI_PROGRAM', {
- params: p
- }),
- //扫码支付
- payOrderOfscanCode: p => http.get('payment/payOrder/YEE_PAY/SCAN_CODE', {
- params: p
- }),
- //支付策略
- getPointPayType: p => http.post('cyzh-ldt/loginuser/getPointPayType', p),
- //取消支付
- cancelTrade:p => http.post('client/trade/cancelTrade', p),
-
- }
- const billRecord = {
- submit: p => http.post('ldt_bills/bills/submit', p),
- detail: p => http.get('ldt_bills/bills/detail', {
- params: p
- }),
- }
- const balanceBills = {
- list: p => http.get('common/balancebills/list', {
- params: p
- }),
- }
- const pointbills = {
- list: p => http.get('common/pointbills/list', {params: p}),
- channelList: p => http.get('common/pointbills/channelList', {params: p}),
- }
- const goodsbills = {
- list: p => http.get('goodsbills/list', {
- params: p
- }),
- submit: p => http.post('ldt_bills/goodsbills/submit', p)
- }
- const bills = {
- list: p => http.get('/common/bills/myBills', {
- params: p
- }),
- }
- const setting = {
- feedback: p => http.post('ldt_feedback/feedback/submit', p)
- }
- //账号
- const account = {
- pointList: p => http.get('cyzh-ldt/loginuser/channeluserpoint/list', {
- params: p
- }),
- remainList: p => http.get('cyzh-ldt/loginuser/remaining/list', {
- params: p
- }),
-
-
- }
- //webSocket
- const webSocket = {
- sendInfo: p => http.post('webSocket/sendInfo', p),
- }
- const joinRecord = {
- //活动详情查看该活动的参加者
- list: p => http.get("ldt_activity/joinrecord/list", {
- params: p
- }),
- }
- const statistics = {
- getBillStatistics: p => http.get('/common/bills/getBillStatistics', {
- params: p
- })
- }
- const withdraw = {
- submit: p => http.post('common/withdrawrec/withdraw', p),
- payOrder: p => http.get('payment/payOrder/YEE_PAY/USER_WITHDRAW', {
- params: p
- }),
- list: p => http.get("ldt_bills/withdrawrec/list", {
- params: p
- }),
- }
- const goods = {
- menu: p => http.get("goods/getGoodsMenuList", {
- params: p
- }),
- order: p => http.post('goodsbills/order', p),
- }
- const address = {
- list: p => http.get("client/useraddress/list", {
- params: p
- }),
- detail: p => http.get("ldt_user_address/useraddress/detail", {
- params: p
- }),
- submit: p => http.post('client/useraddress/submit', p),
- }
- const userChannelPoint = {
- list: p => http.get('common/userchannelpoint/list', {
- params: p
- }),
- }
- const order = {
- list: p => http.get("ldt_bills/goodsbills/list", {
- params: p
- }),
- detail: p => http.get("goodsbills/detail", {
- params: 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 shopConfig={
- list: p => http.get("ldt_goods/shopconfig/list", {
- params: p
- }),
- }
- const notice={
- notReadIdList:p => http.get('app/notice/notReadIdList', {params: p}),
- list:p => http.get('app/notice/list', {params: p}),
- detail:p => http.get('ldt_notice/notice/detail', {params: p}),
- isRead: p => http.post('app/notice/isRead', p),
- }
- const test={
- submit: p => http.post('/common/account/decrypt/test', p),
- remove: p => http.post('ldt_bills/bills/remove?ids=' + p),
- }
- export const api = {
- wxApp,
- dict,
- uploadFile,
- activity,
- loginUser,
- shop,
- audit,
- mall,
- agenter,
- agenterType,
- userBank,
- pay,
- billRecord,
- balanceBills,
- pointbills,
- goodsbills,
- bills,
- setting,
- account,
- webSocket,
- joinRecord,
- statistics,
- withdraw,
- goods,
- address,
- userChannelPoint,
- order,
- area,
- shopConfig,
- notice,
- test
- }
|