拼团模块新增完善对接接口等

This commit is contained in:
2022-08-24 16:47:25 +08:00
parent aa5c4a2c61
commit bb04fd3439
37 changed files with 11551 additions and 5425 deletions

View File

@@ -9,8 +9,8 @@ import router from '../router'
// 基础配置
const config = {
apiUrl : 'https://api.gongli.vip/api/', // 正式环境
// apiUrl: 'http://api.gl.shangkelian.cn/api/', // 测试
// apiUrl : 'https://api.gongli.vip/api/', // 正式环境
apiUrl: 'http://api.gl.shangkelian.cn/api/', // 测试
timeout: 60000
}
@@ -45,7 +45,8 @@ const request = (parameter, hideLoding = true) => {
header: config.header || {},
data: parameter.data || {},
method: parameter.method || 'GET',
success: res => {
success: res => {
console.log(res);
if (res.header.Authorization) {
updateToken('token', res.header.Authorization)
}

View File

@@ -17,6 +17,24 @@ const pinList = (data) => {
})
}
export {
pinList
// 我的拼团列表
const myPinList = (data) => {
return request({
url: 'mall/collages',
data:data
})
}
// 根据拼团 id 获取拼团详情
const myPinDetail = (id) => {
return request({
url: 'mall/collages/'+id,
})
}
export {
pinList,
myPinList,
myPinDetail
}