纸通宝小程序
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.
 

29 lines
1.3 KiB

/**
* 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
}