Commit 10f91afd authored by 罗超's avatar 罗超

1

parent 15fc5cd6
import request from '../utils/request.js'
let JHdata = uni.getStorageSync("userInfo");
import request from '../utils/requestActivity.js'
/**
* 获取活动类型列表
* @param {JSON参数} data
......@@ -8,17 +8,7 @@ export function getActivityTypeList(data) {
return request({
url: '/AppletEducation/GetActivityTypeList',
method: 'post',
data: {
msg: data,
MallBaseId: JHdata.JHMallBaseId,
UserId: JHdata.JHMallUserId,
TenantId: JHdata.JHTenantId,
StudentId: JHdata.Id,
OpenId: JHdata.JHMallUserOpenId,
SmallShopsId: 0,
MiniAppId: "wx38e054ee42b054f4",
token: JHdata.MallToken
}
data
})
}
......@@ -30,16 +20,6 @@ export function getActivityList(data) {
return request({
url: '/AppletEducation/GetActivityPageJXH',
method: 'post',
data: {
msg: data,
MallBaseId: JHdata.JHMallBaseId,
UserId: JHdata.JHMallUserId,
TenantId: JHdata.JHTenantId,
StudentId: JHdata.Id,
OpenId: JHdata.JHMallUserOpenId,
SmallShopsId: 0,
MiniAppId: "wx38e054ee42b054f4",
token: JHdata.MallToken
}
data
})
}
\ No newline at end of file
......@@ -8,7 +8,7 @@ export function getPaperList(data) {
return request({
url: '/AppletIndex/GetGuestExaminationPublishPage',
method: 'post',
data: { msg: data }
data
})
}
......@@ -20,7 +20,7 @@ export function getPaperDetail(data) {
return request({
url: '/appletindex/GetPaperDetails',
method: 'post',
data: { msg: data }
data
})
}
......@@ -32,6 +32,6 @@ export function submitPaper(data) {
return request({
url: '/AppletIndex/StuSubmitExamPaper',
method: 'post',
data: { msg: data }
data
})
}
\ No newline at end of file
......@@ -8,7 +8,7 @@ export function login(data) {
return request({
url: '/AppletLogin/Login',
method: 'post',
data: { msg: data }
data
})
}
......@@ -20,7 +20,7 @@ export function getIndexInfo(data) {
return request({
url: '/AppletIndex/GetIndexInfo',
method: 'post',
data: { msg: data }
data
})
}
......@@ -32,7 +32,7 @@ export function getStundentPlanStatistical(data) {
return request({
url: '/AppletIndex/GetStundentPlanStatistical',
method: 'post',
data: { msg: data }
data
})
}
......@@ -44,7 +44,7 @@ export function getCourse(data) {
return request({
url: '/AppletIndex/GetChapterTree',
method: 'post',
data: { msg: data }
data
})
}
......@@ -56,7 +56,7 @@ export function getContract(data) {
return request({
url: '/AppletIndex/GetContractList',
method: 'post',
data: { msg: data }
data
})
}
......@@ -68,7 +68,7 @@ export function getProgress(data) {
return request({
url: '/AppletIndex/GetStundentScheduleList',
method: 'post',
data: { msg: data }
data
})
}
......@@ -80,7 +80,7 @@ export function getStundentSurplus(data) {
return request({
url: '/AppletIndex/GetStundentSurplus',
method: 'post',
data: { msg: data }
data
})
}
......@@ -92,7 +92,7 @@ export function setStudentLeave(data) {
return request({
url: '/LeaveStudent/SetStudentLeave',
method: 'post',
data: { msg: data }
data
})
}
......@@ -104,7 +104,7 @@ export function getStudentLeaveList(data) {
return request({
url: '/AppletIndex/GetEducationReceiptPage',
method: 'post',
data: { msg: data }
data
})
}
/**
......@@ -115,7 +115,7 @@ export function invalidReceiptInfo(data) {
return request({
url: '/AppletIndex/InvalidReceipt',
method: 'post',
data: { msg: data }
data
})
}
/**
......@@ -126,6 +126,6 @@ export function getEduReceiptInfo(data) {
return request({
url: "/AppletIndex/GetEduReceiptInfo",
method: 'post',
data: { msg: data }
data
})
}
\ No newline at end of file
let host = 'http://192.168.20.17:8017/api'
if (process.env.NODE_ENV === "development") {
// host = 'http://192.168.20.17:8017/api'
host = 'http://192.168.20.24:8300/api'
host = 'http://192.168.20.17:8017/api'
// host = 'http://192.168.20.24:8300/api'
} else {
host = 'https://eduapi.oytour.com/api'
}
......@@ -18,7 +18,7 @@ let request = (param) => {
'token': token || ""
},
data: {
...param.data,
msg: param.data,
},
success: res => {
if (res.data.Code === 1) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment