123456789101112131415161718192021222324252627282930313233343536373839404142 |
- /**
- * 交♂易相关API
- */
- import { http, Method } from "@/utils/request.js";
- import { encodeURL } from "@/api/common";
- import api from "../config/api";
- /**
- * 获取购物车列表
- * @param show_type 要显示的类型 all:全部 checked:已选中的
- */
- export function getStations(params) {
- let path = "/mp/v1/geo/geoStationList";
- const url = encodeURL(path, params);
- return http.request({
- url: url,
- method: "get",
- });
- }
- /**
- * 获取充电站详情
- * @param stationId 充电站id
- */
- export function getStation(stationId) {
- return http.request({
- url: '/mp/v1/station/' + stationId,
- method: Method.GET,
- });
- }
- /**
- * 获取充电接口详情
- * @param connectorId 充电接口id
- */
- export function getConnector(params) {
- return http.request({
- url: '/mp/v1/charge/order/prepareOrderInfo',
- method: Method.GET,
- params: params,
- });
- }
|