5 changed files with 101 additions and 71 deletions
Unified View
Diff Options
-
20pages/api/article.js
-
20pages/api/payment.js
-
20pages/api/recycle.js
-
15pages/api/user.js
-
97pages/login/index.js
@ -0,0 +1,20 @@ |
|||||
|
/** |
||||
|
* Copyright © 2020-present LiuDanYang. All rights Reserved. |
||||
|
*/ |
||||
|
import { mGet, mPost } from "./request" |
||||
|
const app = getApp() |
||||
|
|
||||
|
const aconfig = { |
||||
|
baseUrl: app.release ? `https://psc.qniao.cn` : `http://psc-dev.qniao.cn` |
||||
|
} |
||||
|
// *******************************************************************账户业务***********************************************************
|
||||
|
// /credit/get/self-enterprise-credit-by-enterprise-id查看个人的采购额度
|
||||
|
const getCreditInfo = (params) => mGet(`/payment-settlement-center/credit/get/self-enterprise-credit-by-enterprise-id`, params, aconfig) |
||||
|
|
||||
|
const paymentInfo = (params) => mPost(`/payment-settlement-center/pay`, params, aconfig) |
||||
|
|
||||
|
export { |
||||
|
aconfig, |
||||
|
getCreditInfo, |
||||
|
paymentInfo |
||||
|
} |
||||
@ -0,0 +1,20 @@ |
|||||
|
/** |
||||
|
* Copyright © 2020-present LiuDanYang. All rights Reserved. |
||||
|
*/ |
||||
|
import { mGet, mPost } from "./request" |
||||
|
const app = getApp() |
||||
|
|
||||
|
const pconfig = { |
||||
|
baseUrl: app.release ? `https://psc.qniao.cn` : `http://psc-dev.qniao.cn` |
||||
|
} |
||||
|
// *******************************************************************账户业务***********************************************************
|
||||
|
// /credit/get/self-enterprise-credit-by-enterprise-id查看个人的采购额度recycle
|
||||
|
const getCreditInfo = (params) => mGet(`/payment-settlement-center/credit/get/self-enterprise-credit-by-enterprise-id`, params, pconfig) |
||||
|
|
||||
|
const paymentInfo = (params) => mPost(`/payment-settlement-center/pay`, params, pconfig) |
||||
|
|
||||
|
export { |
||||
|
pconfig, |
||||
|
getCreditInfo, |
||||
|
paymentInfo |
||||
|
} |
||||
@ -0,0 +1,20 @@ |
|||||
|
/** |
||||
|
* Copyright © 2020-present LiuDanYang. All rights Reserved. |
||||
|
*/ |
||||
|
import { mGet, mPost } from "./request" |
||||
|
const app = getApp() |
||||
|
|
||||
|
const rconfig = { |
||||
|
baseUrl: app.release ? `https://psc.qniao.cn` : `http://psc-dev.qniao.cn` |
||||
|
} |
||||
|
// *******************************************************************账户业务***********************************************************
|
||||
|
// /credit/get/self-enterprise-credit-by-enterprise-id查看个人的采购额度
|
||||
|
const getCreditInfo = (params) => mGet(`/payment-settlement-center/credit/get/self-enterprise-credit-by-enterprise-id`, params, rconfig) |
||||
|
|
||||
|
const paymentInfo = (params) => mPost(`/payment-settlement-center/pay`, params, rconfig) |
||||
|
|
||||
|
export { |
||||
|
rconfig, |
||||
|
getCreditInfo, |
||||
|
paymentInfo |
||||
|
} |
||||
Write
Preview
Loading…
Cancel
Save