增收赋能

This commit is contained in:
唐明明
2023-07-07 18:57:50 +08:00
parent 7bacaf7cc4
commit 5eedc7a019
7 changed files with 463 additions and 41 deletions

View File

@@ -10,8 +10,8 @@ import router from '../router'
// 基础配置
const config = {
apiUrl : 'https://douhuo.douhuofalv.com/api/',
// apiUrl : 'https://api.douhuotest.douhuofalv.com/api/', //测试环境
// apiUrl : 'https://douhuo.douhuofalv.com/api/',
apiUrl : 'https://api.douhuotest.douhuofalv.com/api/', //测试环境
timeout : 60000
}

View File

@@ -0,0 +1,48 @@
/**
* Web唐明明
* 匆匆数载恍如梦,岁月迢迢华发增。
* 碌碌无为枉半生,一朝惊醒万事空。
* moduleName: 增收赋能
*/
import { request } from '../index'
// 增收赋能列表
const lists = () =>{
return request({
url : "empower/index"
})
}
// 增收赋能详情
const info = id => {
return request({
url : "empower/" + id + "/show"
})
}
// 下单前置
const buyInit = id => {
return request({
url : "empower/" + id + "/buy/init",
method : "POST"
})
}
// 下单购买
const buy = data => {
return request({
url : "empower/buy/order",
method : "POST",
data
})
}
export {
lists,
info,
buyInit,
buy
}