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.
yanzong_qianduan/api/tutorial.js

56 lines
1.2 KiB

5 months ago
import request from '@/utils/request'
// api地址
const api = {
courseType: 'course/getCourseType',
4 months ago
list: 'course/getCourseList',
retailList: 'retail/retailPayList',
describe: 'retail/describe',
4 months ago
submit: 'retail/submit',
4 months ago
getSoftAgreement: 'retail/getSoftAgreement',
tradeQuery: 'cashier/tradeQuery',
unify: 'goods/unify',
5 months ago
}
// 分类
export const courseType = (param) => {
return request.get(api.courseType, param)
}
// 列表
export const courseList = (param) => {
return request.get(api.list, param)
4 months ago
}
// 会员列表
export const retailList = (param) => {
return request.post(api.retailList, param)
}
// 会员全益
export const describe = (param) => {
return request.get(api.describe, param)
}
// 会员余额支付
export const submit = (param) => {
return request.post(api.submit, param)
}
4 months ago
// 协议
export const getSoftAgreement = (param) => {
return request.get(api.getSoftAgreement, param)
}
4 months ago
/**
* 交易查询
* 查询第三方支付订单是否付款成功
* @param {Object} param
*/
export function tradeQuery(param) {
return request.get(api.tradeQuery, param)
}
/**
* 查询第三方支付信息
* @param {Object} param
*/
export function unify(param) {
return request.get(api.unify, param)
}