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.
96 lines
5.2 KiB
96 lines
5.2 KiB
/**
|
|
* Copyright © 2020-present LiuDanYang. All rights Reserved.
|
|
*/
|
|
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 getPopupInfo = () => mGet(`/recycle-service/popup/get/popup`, null, zconfig)
|
|
const getBannerList = (type) => mGet(`/recycle-service/banner/get/banner-list/${type}`, null, zconfig)
|
|
const getSuccessNotices = () => mPost(`/recycle-service/get/recently-order-success-list`, 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 = (params) => mGet(`/recycle-service/get/paper-mill-paper-category-price-list`, params, zconfig)
|
|
// /get/paper-mill-paper-category-price-details/{id} 获取纸厂品类价格信息详情
|
|
const getFactoryPriceDetail = (id) => mGet(`/recycle-service/get/paper-mill-paper-category-price-details/${id}`, 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)
|
|
const getIndexInfo = (id) => 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)
|
|
// /proxy-sell/get/his-car-info 客户查看历史车辆
|
|
const getVehicleList = () => mGet(`/recycle-service/proxy-sell/get/his-car-info`, null, zconfig)
|
|
// /proxy-sell/get/relation 查询客户业务人员绑定信息接口
|
|
const getRelation = () => mGet(`/recycle-service/proxy-sell/get/relation`, null, zconfig)
|
|
// /recycle-service/proxy-sell/bind/relation
|
|
const postRelation = (code) => mPost(`/recycle-service/proxy-sell/bind/relation?code=${code}`, null, zconfig)
|
|
// /proxy-sell/get/proxy-order/{orderId}客户查看订单详情
|
|
const getProxyOrderInfo = (id) => mGet(`/recycle-service/proxy-sell/get/proxy-order/${id}`, null, zconfig)
|
|
// recycle-service/proxy-sell/get/proxy-order-list
|
|
const getProxyOrderList = (params) => mGet(`/recycle-service/proxy-sell/get/proxy-order-list`, params, zconfig)
|
|
// recycle-service/proxy-sell/create/order
|
|
const createProxyOrder = (params) => mPost(`/recycle-service/proxy-sell/create/order`, params, zconfig)
|
|
const cancelProxyOrder = (id) => mPost(`/recycle-service/proxy-sell/cancel/order/${id}`, null, zconfig)
|
|
const cancelReservation = (id) => mPost(`/recycle-service/proxy-sell/cancel/reservation/${id}`, null, zconfig)
|
|
const cancelProxyOrderItem = (id) => mPost(`/recycle-service/proxy-sell/cancel/order-item/${id}`, null, zconfig)
|
|
const hasActivity = () => mGet(`/recycle-service/proxy-sell-activity/get/has-activity`, null, zconfig)
|
|
const getActivityList = (params) => mGet(`/recycle-service/proxy-sell-activity/list`, params, zconfig)
|
|
// /recycle-service/get/store-product-list
|
|
const paperCategoryList = (params) => mPost(`/recycle-service/paperCategoryList`, params, zconfig)
|
|
///proxy-sell/get/relevancy-agency-order-list/by-factory
|
|
const getAgencyOrderList = (params) => mGet(`/recycle-service/proxy-sell/get/relevancy-agency-order-list/by-factory`, params, zconfig)
|
|
//获取废品品类列表,不传params返回一级品类,传一级品类返回二级品类
|
|
const getLategoriesList = (params) => mGet(`/recycle-service/scrap-category/get/categories-list`, params, zconfig)
|
|
//提交用户信息
|
|
const updateUserInfo = (params) => mPost(`/recycle-service/user/update/user-info`, params, zconfig)
|
|
//提交用户信息
|
|
const updateUserInfoZtb = (params) => mPost(`/recycle-service/user/update/user-info`, params, zconfig)
|
|
//用户关注,取消关注纸厂
|
|
const userPushFollowMill = (params) => mPost(`/recycle-service/user/push/follow-mill`, params, zconfig)
|
|
//用户在情报中获取纸厂
|
|
const getPaperMillOfInformationList = (params) => mGet(`/recycle-service/get/paper-mill-of-information-list`, params, zconfig)
|
|
//反馈纸厂情报
|
|
const feedbackMillInformation = (params) => mPost(`/recycle-service/feedback/mill-information`, params, zconfig)
|
|
|
|
export {
|
|
zconfig,
|
|
getPopupInfo,
|
|
getBannerList,
|
|
getSuccessNotices,
|
|
getAllFactoryList,
|
|
getFactoryPrice,
|
|
getFactoryCity,
|
|
getIndexInfoId,
|
|
getIndexInfo,
|
|
getFactoryList,
|
|
getFactoryTodayList,
|
|
getVehicleList,
|
|
getFactoryPriceDetail,
|
|
getRelation,
|
|
postRelation,
|
|
getProxyOrderInfo,
|
|
getProxyOrderList,
|
|
createProxyOrder,
|
|
cancelProxyOrder,
|
|
cancelReservation,
|
|
cancelProxyOrderItem,
|
|
hasActivity,
|
|
getActivityList,
|
|
getAgencyOrderList,
|
|
paperCategoryList,
|
|
getLategoriesList,
|
|
updateUserInfo,
|
|
updateUserInfoZtb,
|
|
userPushFollowMill,
|
|
getPaperMillOfInformationList,
|
|
feedbackMillInformation
|
|
}
|