| | |
| | | // import { httpJson } from "@/service/http"; |
| | | // import request from "@/service/request"; |
| | | |
| | | import { httpJson } from "@/service/http"; |
| | | import request from "@/service/request"; |
| | | import request from './request' |
| | | |
| | | //获取 支付方式配置 列表 |
| | | const ctcPaymentMethodConfig = (params) => { |
| | | return httpJson({ |
| | |
| | | //获取 用户支付方式列表(需匹配承兑商广告支付方式) |
| | | const ctcPaymentMethodUserPay = (params) => { |
| | | return httpJson({ |
| | | url: "/api/c2cPaymentMethod!getUserPaymentsByAd.action", |
| | | url: "/api/paymentMethod/myList", |
| | | method: "get", |
| | | isLoading: false |
| | | }, params) |
| | |
| | | //获取 订单 详情 |
| | | const ctcOrderGetDetail = (params) => { |
| | | return httpJson({ |
| | | url: "/api/c2cOrder/apply", |
| | | url: "/api/c2cOrder/get", |
| | | method: "get", |
| | | isLoading: false |
| | | }, params) |
| | |
| | | |
| | | //取消订单 |
| | | const ctcOrderCancel = (params) => { |
| | | return httpJson({ |
| | | return request({ |
| | | url: "/api/c2cOrder/orderCancel", |
| | | method: "get", |
| | | isLoading: false |
| | | }, params) |
| | | method: "POST", |
| | | loading: false, |
| | | params |
| | | }) |
| | | }; |
| | | |
| | | |
| | |
| | | export const getSessionToken = params => { |
| | | return httpJson({ |
| | | url: "/api/c2cOrder/orderOpen", |
| | | method: "get", |
| | | method: "post", |
| | | }, params) |
| | | } |
| | | |
| | |
| | | ); |
| | | }; |
| | | |
| | | //支付完成 |
| | | const ctcOrderPayFinish = (params) => { |
| | | return httpJson({ |
| | | url: "/api/c2cOrder!pay_finish.action", |
| | | method: "get", |
| | | isLoading: false |
| | | }, params) |
| | | }; |
| | | |
| | | |
| | | const otcApi = { |
| | | ctcPaymentMethodConfig, |
| | |
| | | paymentMethodConfigDetail, getUserName, |
| | | c2cGetPayCurrencyList, |
| | | c2cAppeal, |
| | | c2cgetBestPrice |
| | | c2cgetBestPrice, ctcOrderPayFinish |
| | | } |
| | | |
| | | export default otcApi |