Commit ed96ba59 authored by 罗超's avatar 罗超

1

parent e293ba30
import request from '../utils/request.js' import request from '../utils/request.js'
let JHdata = uni.getStorageSync("userInfo");
/** /**
* 获取活动类型列表 * 获取活动类型列表
* @param {JSON参数} data * @param {JSON参数} data
...@@ -8,7 +8,17 @@ export function getActivityTypeList(data) { ...@@ -8,7 +8,17 @@ 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
}
}) })
} }
...@@ -20,6 +30,16 @@ export function getActivityList(data) { ...@@ -20,6 +30,16 @@ 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 data: { msg: 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 data: { msg: 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 data: { msg: 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 data: { msg: 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 data: { msg: 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 data: { msg: 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 data: { msg: 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 data: { msg: 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 data: { msg: 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 data: { msg: 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 data: { msg: 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 data: { msg: 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 data: { msg: 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 data: { msg: data }
}) })
} }
\ No newline at end of file
...@@ -183,7 +183,7 @@ ...@@ -183,7 +183,7 @@
</view> </view>
<view v-show="current == 2" style="height: calc(100vh - 50px)"> <view v-show="current == 2" style="height: calc(100vh - 50px)">
<signUp ref="children"></signUp> <SignUp ref="children"></SignUp>
</view> </view>
<auth <auth
...@@ -191,7 +191,13 @@ ...@@ -191,7 +191,13 @@
@changeuserinfo="reloadUserinfo" @changeuserinfo="reloadUserinfo"
@gbAuth="gbAuth" @gbAuth="gbAuth"
></auth> ></auth>
<van-popup :show="show" closeable position="bottom" @close="show = false"> <van-popup
:show="show"
closeable
round
position="bottom"
@close="show = false"
>
<view class="pubox"> <view class="pubox">
<view class="pubox-top"> <view class="pubox-top">
<text>选择活动类型</text> <text>选择活动类型</text>
...@@ -236,13 +242,16 @@ import { ...@@ -236,13 +242,16 @@ import {
onMounted, onMounted,
} from "vue"; } from "vue";
import Loadmore from "../../components/loadmore.vue"; import Loadmore from "../../components/loadmore.vue";
import SignUp from "../../components/signUp.vue";
import { getActivityTypeList, getActivityList } from "../../api/activity"; import { getActivityTypeList, getActivityList } from "../../api/activity";
export default { export default {
components: { components: {
Loadmore, Loadmore,
SignUp,
}, },
setup() { setup() {
let JHdata = uni.getStorageSync("userInfo"); let i = getCurrentInstance();
console.log(252, i);
let data = reactive({ let data = reactive({
show: false, show: false,
pageState: "more", pageState: "more",
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
</view> </view>
<van-empty description="暂无数据" v-if="data.length === 0" /> <van-empty description="暂无数据" v-if="data.length === 0" />
<view v-for="(item, index) in data" :key="index" v-if="data.length > 0"> <view v-for="(item, index) in data" :key="index" v-if="data.length > 0">
<view class="chapter" @click="openLayer"> <view class="chapter">
<view class="flex flex_between_center"> <view class="flex flex_between_center">
<view class="flex flex_between_center"> <view class="flex flex_between_center">
<view class="dot"></view> <view class="dot"></view>
...@@ -65,7 +65,6 @@ import { getIndexInfo } from "../../api/index"; ...@@ -65,7 +65,6 @@ import { getIndexInfo } from "../../api/index";
export default { export default {
setup() { setup() {
let data = reactive({ let data = reactive({
showLayer: false,
msg: { msg: {
ClassId: 0, ClassId: 0,
}, },
...@@ -73,16 +72,9 @@ export default { ...@@ -73,16 +72,9 @@ export default {
CourseName: "", CourseName: "",
}); });
let methods = { let methods = {
openLayer() {
data.showLayer = true;
},
closeLayer() {
data.showLayer = false;
},
async getData() { async getData() {
let res = await getProgress(data.msg); let res = await getProgress(data.msg);
data.data = res.Data; data.data = res.Data;
console.log(113, data);
}, },
async getIndexdata() { async getIndexdata() {
let res = await getIndexInfo(); let res = await getIndexInfo();
......
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,8 +18,7 @@ let request = (param) => { ...@@ -18,8 +18,7 @@ let request = (param) => {
'token': token || "" 'token': token || ""
}, },
data: { data: {
msg: param.data, ...param.data,
// ...param.data.activityMsg
}, },
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