/** * Copyright © 2020-present LiuDanYang. All rights Reserved. */ import { mGet, mPost } from "./request" const app = getApp() const zconfig = { baseUrl: app.release ? `https://api-client-ztb.qniao.cn` : `https://api-client-ztb-dev.qniao.cn` } // *******************************************************************账户业务*********************************************************** // /authorize/get/product-line-token/by/login-token通过登录token获取产品线token const loginToken = (params) => mPost(`/recycle-user-center/authorize/get/product-line-token/by/login-token`, params, zconfig) ///user/get/base-info基本信息 const getBaseInfo = () => mGet(`/recycle-service/user/get/base-info`, null, zconfig) // /get/all-paper-mill 获取全部纸厂列表 const getAllFactoryList = () => mGet(`/recycle-service/get/all-paper-mill`, null, zconfig) // /get/paper-mill-paper-category-price-list 获取纸厂品类价格信息列表 const getFactoryPrice = () => mGet(`/recycle-service/get/paper-mill-paper-category-price-list`, null, zconfig) // /get/paper-mill-city 获取纸厂所有地区列表 const getFactoryCity = () => mGet(`/recycle-service/get/paper-mill-city`, null, zconfig) export { zconfig, loginToken, getBaseInfo, getAllFactoryList, getFactoryPrice, getFactoryCity }