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

38 lines
1.8 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)
// /get/index-info-id 首页获取公告id接口
const getIndexInfoId = () => mGet(`/recycle-service/get/index-info-id`, null, zconfig)
// /get/paper-mill-list 获取纸厂列表
const getFactoryList = () => mGet(`/recycle-service/get/paper-mill-list`, null, zconfig)
// /get/paper-mill-received-weight-list/on-today 获取纸厂今日收货量(排队)列表
const getFactoryTodayList = (params) => mGet(`/recycle-service/get/paper-mill-received-weight-list/on-today`, params, zconfig)
export {
zconfig,
loginToken,
getBaseInfo,
getAllFactoryList,
getFactoryPrice,
getFactoryCity,
getIndexInfoId,
getFactoryList,
getFactoryTodayList
}