You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
938 B
18 lines
938 B
import { mGet, mPost } from "./request"
|
|
const app = getApp()
|
|
const urls = ['https://api-client-ztb-dev.qniao.cn', 'https://api-client-ztb-test.qniao.cn', 'https://api-client-ztb.qniao.cn']
|
|
|
|
const zconfig = { baseUrl: urls[app.evn] }
|
|
// ***************************************************************账户业务***********************************************************
|
|
const loginToken = (params) => mPost(`/ztb-user-enterprise-service/authorize/get/product-line-token/by/login-token`, params, zconfig)
|
|
const getStationList = (params) => mGet(`/ztb-user-enterprise-service/get/recently-distance/packing-factory-list`, params, zconfig)
|
|
const getStationInfo = (params) => mGet(`/ztb-user-enterprise-service/get/packing-factory-detail`, params, zconfig)
|
|
const getPaperList = (params) => mGet(`/recycle-service/get/all-paper-category`, params, zconfig)
|
|
|
|
export {
|
|
zconfig,
|
|
loginToken,
|
|
getStationList,
|
|
getStationInfo,
|
|
getPaperList
|
|
}
|