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

1

parent 15fc5cd6
import request from '../utils/request.js' import request from '../utils/requestActivity.js'
let JHdata = uni.getStorageSync("userInfo");
/** /**
* 获取活动类型列表 * 获取活动类型列表
* @param {JSON参数} data * @param {JSON参数} data
...@@ -8,17 +8,7 @@ export function getActivityTypeList(data) { ...@@ -8,17 +8,7 @@ export function getActivityTypeList(data) {
return request({ return request({
url: '/AppletEducation/GetActivityTypeList', url: '/AppletEducation/GetActivityTypeList',
method: 'post', method: 'post',
data: { 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
}
}) })
} }
...@@ -30,16 +20,6 @@ export function getActivityList(data) { ...@@ -30,16 +20,6 @@ export function getActivityList(data) {
return request({ return request({
url: '/AppletEducation/GetActivityPageJXH', url: '/AppletEducation/GetActivityPageJXH',
method: 'post', method: 'post',
data: { 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
}
}) })
} }
\ No newline at end of file
...@@ -8,7 +8,7 @@ export function getPaperList(data) { ...@@ -8,7 +8,7 @@ export function getPaperList(data) {
return request({ return request({
url: '/AppletIndex/GetGuestExaminationPublishPage', url: '/AppletIndex/GetGuestExaminationPublishPage',
method: 'post', method: 'post',
data: { msg: data } data
}) })
} }
...@@ -20,7 +20,7 @@ export function getPaperDetail(data) { ...@@ -20,7 +20,7 @@ export function getPaperDetail(data) {
return request({ return request({
url: '/appletindex/GetPaperDetails', url: '/appletindex/GetPaperDetails',
method: 'post', method: 'post',
data: { msg: data } data
}) })
} }
...@@ -32,6 +32,6 @@ export function submitPaper(data) { ...@@ -32,6 +32,6 @@ export function submitPaper(data) {
return request({ return request({
url: '/AppletIndex/StuSubmitExamPaper', url: '/AppletIndex/StuSubmitExamPaper',
method: 'post', method: 'post',
data: { msg: data } data
}) })
} }
\ No newline at end of file
...@@ -8,7 +8,7 @@ export function login(data) { ...@@ -8,7 +8,7 @@ export function login(data) {
return request({ return request({
url: '/AppletLogin/Login', url: '/AppletLogin/Login',
method: 'post', method: 'post',
data: { msg: data } data
}) })
} }
...@@ -20,7 +20,7 @@ export function getIndexInfo(data) { ...@@ -20,7 +20,7 @@ export function getIndexInfo(data) {
return request({ return request({
url: '/AppletIndex/GetIndexInfo', url: '/AppletIndex/GetIndexInfo',
method: 'post', method: 'post',
data: { msg: data } data
}) })
} }
...@@ -32,7 +32,7 @@ export function getStundentPlanStatistical(data) { ...@@ -32,7 +32,7 @@ export function getStundentPlanStatistical(data) {
return request({ return request({
url: '/AppletIndex/GetStundentPlanStatistical', url: '/AppletIndex/GetStundentPlanStatistical',
method: 'post', method: 'post',
data: { msg: data } data
}) })
} }
...@@ -44,7 +44,7 @@ export function getCourse(data) { ...@@ -44,7 +44,7 @@ export function getCourse(data) {
return request({ return request({
url: '/AppletIndex/GetChapterTree', url: '/AppletIndex/GetChapterTree',
method: 'post', method: 'post',
data: { msg: data } data
}) })
} }
...@@ -56,7 +56,7 @@ export function getContract(data) { ...@@ -56,7 +56,7 @@ export function getContract(data) {
return request({ return request({
url: '/AppletIndex/GetContractList', url: '/AppletIndex/GetContractList',
method: 'post', method: 'post',
data: { msg: data } data
}) })
} }
...@@ -68,7 +68,7 @@ export function getProgress(data) { ...@@ -68,7 +68,7 @@ export function getProgress(data) {
return request({ return request({
url: '/AppletIndex/GetStundentScheduleList', url: '/AppletIndex/GetStundentScheduleList',
method: 'post', method: 'post',
data: { msg: data } data
}) })
} }
...@@ -80,7 +80,7 @@ export function getStundentSurplus(data) { ...@@ -80,7 +80,7 @@ export function getStundentSurplus(data) {
return request({ return request({
url: '/AppletIndex/GetStundentSurplus', url: '/AppletIndex/GetStundentSurplus',
method: 'post', method: 'post',
data: { msg: data } data
}) })
} }
...@@ -92,7 +92,7 @@ export function setStudentLeave(data) { ...@@ -92,7 +92,7 @@ export function setStudentLeave(data) {
return request({ return request({
url: '/LeaveStudent/SetStudentLeave', url: '/LeaveStudent/SetStudentLeave',
method: 'post', method: 'post',
data: { msg: data } data
}) })
} }
...@@ -104,7 +104,7 @@ export function getStudentLeaveList(data) { ...@@ -104,7 +104,7 @@ export function getStudentLeaveList(data) {
return request({ return request({
url: '/AppletIndex/GetEducationReceiptPage', url: '/AppletIndex/GetEducationReceiptPage',
method: 'post', method: 'post',
data: { msg: data } data
}) })
} }
/** /**
...@@ -115,7 +115,7 @@ export function invalidReceiptInfo(data) { ...@@ -115,7 +115,7 @@ export function invalidReceiptInfo(data) {
return request({ return request({
url: '/AppletIndex/InvalidReceipt', url: '/AppletIndex/InvalidReceipt',
method: 'post', method: 'post',
data: { msg: data } data
}) })
} }
/** /**
...@@ -126,6 +126,6 @@ export function getEduReceiptInfo(data) { ...@@ -126,6 +126,6 @@ export function getEduReceiptInfo(data) {
return request({ return request({
url: "/AppletIndex/GetEduReceiptInfo", url: "/AppletIndex/GetEduReceiptInfo",
method: 'post', method: 'post',
data: { msg: data } data
}) })
} }
\ No newline at end of file
let host = 'http://192.168.20.17:8017/api' let host = 'http://192.168.20.17:8017/api'
if (process.env.NODE_ENV === "development") { if (process.env.NODE_ENV === "development") {
// host = 'http://192.168.20.17:8017/api' host = 'http://192.168.20.17:8017/api'
host = 'http://192.168.20.24:8300/api' // host = 'http://192.168.20.24:8300/api'
} else { } else {
host = 'https://eduapi.oytour.com/api' host = 'https://eduapi.oytour.com/api'
} }
...@@ -18,7 +18,7 @@ let request = (param) => { ...@@ -18,7 +18,7 @@ let request = (param) => {
'token': token || "" 'token': token || ""
}, },
data: { data: {
...param.data, msg: param.data,
}, },
success: res => { success: res => {
if (res.data.Code === 1) { 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