{{item.day}}
{{item.minute}}
@@ -84,7 +84,7 @@ export default { studentInfo: '', courseList: [],//课程记录 baseList: [],//基地记录 - signCheckCountInfo:'',//打卡和课程天数信息 + signCheckCountInfo: '',//打卡和课程天数信息 active: 0 } }, @@ -109,60 +109,103 @@ export default { methods: { // 获取课程记录 getCourseList () { - - this.yxAxios.post(`${this.yanxueUrl}/api/StudiesWap/CourseCheckDetail/List`, { - "userId": this.studentInfo?.travelerNum, - "pageIndex": 1, - "pageSize": 999 - }).then((res) => { - this.$toast.clear() - console.log('课程记录:', res.data) - if (res.data.status == 1) { - let courseList = res.data.data.data - for(let i in courseList){ - courseList[i].day = this.Moment(new Date(courseList[i].time)).format('MM-DD') - courseList[i].minute = this.Moment(new Date(courseList[i].time)).format('HH:mm') + this.mgop({ + api: 'mgop.sz.hswsy.CourseCheckDetail', // 必须 + host: 'https://mapi.zjzwfw.gov.cn/', + dataType: 'JSON', + type: 'POST', + appKey: 'fuxgnukl+2001895516+edccpx', // 必须 + headers: { + // 'isTestUrl': '1' + }, + data: { + "userId": this.studentInfo?.travelerNum, + "pageIndex": 1, + "pageSize": 999 + }, + onSuccess: res => { + this.$toast.clear() + console.log('课程记录:', res.data) + if (res.data.status == 1) { + let courseList = res.data.data.data + for (let i in courseList) { + courseList[i].day = this.Moment(new Date(courseList[i].time)).format('MM-DD') + courseList[i].minute = this.Moment(new Date(courseList[i].time)).format('HH:mm') + } + this.courseList = courseList + console.log(this.courseList) + } else { + this.$toast.fail(res.data.message) } - this.courseList = courseList - console.log(this.courseList) - } else { - this.$toast.fail(res.data.message) + }, + onFail: err => { + console.log('err', err) } - }) + }); }, // 获取基地记录 getBaseList () { - this.yxAxios.post(`${this.yanxueUrl}/api/StudiesWap/SignDetail/List`, { - "userId": this.studentInfo?.travelerNum, - "pageIndex": 1, - "pageSize": 999 - }).then((res) => { - this.$toast.clear() - console.log('基地记录:', res.data) - if (res.data.status == 1) { - let baseList = res.data.data.data - for(let i in baseList){ - baseList[i].day = this.Moment(new Date(baseList[i].time)).format('MM-DD') - baseList[i].minute = this.Moment(new Date(baseList[i].time)).format('HH:mm') + this.mgop({ + api: 'mgop.sz.hswsy.SignDetail', // 必须 + host: 'https://mapi.zjzwfw.gov.cn/', + dataType: 'JSON', + type: 'POST', + appKey: 'fuxgnukl+2001895516+edccpx', // 必须 + headers: { + // 'isTestUrl': '1' + }, + data: { + "userId": this.studentInfo?.travelerNum, + "pageIndex": 1, + "pageSize": 999 + }, + onSuccess: res => { + this.$toast.clear() + console.log('基地记录:', res.data) + if (res.data.status == 1) { + let baseList = res.data.data.data + for (let i in baseList) { + baseList[i].day = this.Moment(new Date(baseList[i].time)).format('MM-DD') + baseList[i].minute = this.Moment(new Date(baseList[i].time)).format('HH:mm') + } + console.log(baseList) + this.baseList = baseList + } else { + this.$toast.fail(res.data.message) } - console.log(baseList) - this.baseList = baseList - } else { - this.$toast.fail(res.data.message) + }, + onFail: err => { + console.log('err', err) } - }) + }); }, // 根据用户编号获取打卡和课程天数信息 getSignCheckCountInfo () { - this.yxAxios.get(`${this.yanxueUrl}/api/StudiesWap/SignCheckCountInfo/ByUserId?userId=${this.studentInfo?.travelerNum}`).then((res) => { - this.$toast.clear() - console.log('天数:', res.data) - if (res.data.status == 1) { - this.signCheckCountInfo = res.data.data - } else { - this.$toast.fail(res.data.message) + this.mgop({ + api: 'mgop.sz.hswsy.SignCheckCountInfoByUserId', // 必须 + host: 'https://mapi.zjzwfw.gov.cn/', + dataType: 'JSON', + type: 'GET', + appKey: 'fuxgnukl+2001895516+edccpx', // 必须 + headers: { + // 'isTestUrl': '1' + }, + data: { + "userId": this.studentInfo?.travelerNum, + }, + onSuccess: res => { + this.$toast.clear() + console.log('天数:', res.data) + if (res.data.status == 1) { + this.signCheckCountInfo = res.data.data + } else { + this.$toast.fail(res.data.message) + } + }, + onFail: err => { + console.log('err', err) } - }) + }); }, // 研学码 handleYanxue () { @@ -175,23 +218,23 @@ export default { // } }, // 基地评价 - evaluateBase(item){ - this.$router.push({ name: 'evaluateBase',query:{baseId:item.baseId,signId:item.signId}}) + evaluateBase (item) { + this.$router.push({ name: 'evaluateBase', query: { baseId: item.baseId, signId: item.signId } }) }, // 课程评价 - evaluateCourse(item){ + evaluateCourse (item) { let courseInfo = item; courseInfo.id = courseInfo.orderId window.sessionStorage.setItem('courseInfo', JSON.stringify(courseInfo)) - this.$router.push({ name: 'evaluateCourse'}) + this.$router.push({ name: 'evaluateCourse' }) }, // 基地评价详情 - evaluateBaseDetail(item){ - this.$router.push({ name: 'evaluateDetail',query:{evaluationId:item.evaluationId,baseId:item.baseId}}) + evaluateBaseDetail (item) { + this.$router.push({ name: 'evaluateDetail', query: { evaluationId: item.evaluationId, baseId: item.baseId } }) }, // 课程评价详情 - evaluateCourseDetail(item){ - this.$router.push({ name: 'evaluateDetail',query:{evaluationId:item.evaluationId}}) + evaluateCourseDetail (item) { + this.$router.push({ name: 'evaluateDetail', query: { evaluationId: item.evaluationId } }) } }, components: { @@ -236,14 +279,14 @@ export default { font-size: 34px; font-weight: bold; width: 100%; - span{ + span { display: inline-block; padding: 0 14px; margin-left: 14px; line-height: 34px; border-radius: 17px; font-size: 22px; - background: #2D90D2; + background: #2d90d2; vertical-align: middle; } } @@ -325,10 +368,9 @@ export default { padding-right: 30px; text-align: right; font-size: 34px; - .day{ - + .day { } - .minute{ + .minute { font-size: 30px; color: #999; } diff --git a/src/views/PublicHome/component/AddChildPopupGroup.vue b/src/views/PublicHome/component/AddChildPopupGroup.vue index fa856af..516b07e 100644 --- a/src/views/PublicHome/component/AddChildPopupGroup.vue +++ b/src/views/PublicHome/component/AddChildPopupGroup.vue @@ -27,7 +27,7 @@姓名{{item.travelerName}}
-阶段{{item.travelerType==1?'小学':item.travelerType==1?'初中':'高中'}}
+阶段{{item.travelerType==1?'小学':item.travelerType==2?'初中':'高中'}}
所在地区{{item.province+item.city+item.area}}
学校{{item.schoolName}}
入学年份{{item.enrollYear}}
@@ -138,7 +138,7 @@ export default { let publicName = sessionStorage.getItem('publicName') this.publicName = publicName let userInfo = sessionStorage.getItem('userInfo') - this.userInfo = userInfo ? JSON.parse(userInfo) : userInfo; + this.userInfo = JSON.parse(userInfo); this.initYearArr() this.GetSysAreaList() }, @@ -198,14 +198,11 @@ export default { duration: 0, forbidClick: true }) - const userInfo = JSON.parse(sessionStorage.getItem('userInfo')) - let openId = sessionStorage.getItem('openId' + this.publicName) || 'oHHbojtmLCNmOKwYBett8dXxhMlg'; this.yxAxios.post(`${this.proxyUrl}/prod/user/info/checkPhoneAndCode`, { "code": this.code, - "openId": openId, "phone": this.phone, - "unionId": userInfo.unionId + "unionId": sessionStorage.getItem('centerNo') }).then((res) => { this.$toast.clear() if (res.data.code == 200) { @@ -388,7 +385,7 @@ export default { schoolName: this.school,//学校名称 enrollYear: this.year,//入学年份 travelerType: this.userTypeVal,//1-小学 2-初中 3-高中 - + loginMobile: this.userInfo?.phone } this.$toast.loading({ message: '加载中', diff --git a/src/views/PublicHome/component/HomeChildList.vue b/src/views/PublicHome/component/HomeChildList.vue index 5b91684..794511e 100644 --- a/src/views/PublicHome/component/HomeChildList.vue +++ b/src/views/PublicHome/component/HomeChildList.vue @@ -74,10 +74,10 @@ export default { data: { "userNum": sessionStorage.getItem('centerNo') }, - onSuccess: data => { - console.log('getUserInfo', data) + onSuccess: res => { + console.log('getUserInfo', res) this.$toast.clear() - if (data.data.code == 200) { + if (res.data.code == 200) { this.childList = res.data.data.userInfo.subUsers } }, diff --git a/src/views/PublicService/evaluateBase.vue b/src/views/PublicService/evaluateBase.vue index d1e454e..ed5ebbe 100644 --- a/src/views/PublicService/evaluateBase.vue +++ b/src/views/PublicService/evaluateBase.vue @@ -42,12 +42,12 @@ import { imgCut } from 'vue-imgcut' export default { data () { return { - baseId:'', - signId:'', - baseInfo:'', + baseId: '', + signId: '', + baseInfo: '', starsBaseNum: 0, userInfo: '', - studentInfo:'', + studentInfo: '', courseInfo: '', content: '', imgsrc: [], @@ -86,39 +86,70 @@ export default { this.$toast.loading({ message: '请求中...', }); - this.yxAxios.post(`${this.yanxueUrl}/api/StudiesWap/AddEvaluation`, - { - baseId: this.baseId, - signId:this.signId, - evaluation: this.content, - userId: this.studentInfo.travelerNum, - imgList: this.imgsrc, - baseScore: this.starsBaseNum - } - ).then((res) => { - this.$toast.clear(); - if (res.data.status == 1) { - this.$toast.success('发布成功'); - setTimeout(() => { - this.$router.back() - }, 1000) + this.mgop({ + api: 'mgop.sz.hswsy.AddEvaluation', // 必须 + host: 'https://mapi.zjzwfw.gov.cn/', + dataType: 'JSON', + type: 'POST', + appKey: 'fuxgnukl+2001895516+edccpx', // 必须 + headers: { + // 'isTestUrl': '1' + }, + data: { + "baseId": this.baseId, + "signId": this.signId, + "evaluation": this.content, + "userId": this.studentInfo.travelerNum, + "imgList": this.imgsrc, + "baseScore": this.starsBaseNum + }, + onSuccess: res => { + this.$toast.clear(); + if (res.data.status == 1) { + this.$toast.success('发布成功'); + setTimeout(() => { + this.$router.back() + }, 1000) + } + }, + onFail: err => { + console.log('err', err) } - }) + }); }, // 获取基地信息 GetStudyBaseDetail () { this.$toast.loading({ message: '请求中...', }); - this.yxAxios.get(`${this.yanxueUrl}/api/StudiesWap/GetStudyBaseDetail?userId=0&cs=绍兴市&id=${this.baseId}`).then((res) => { - console.log(res.data) - if (res.data.data) { - this.$toast.clear(); - this.baseInfo = res.data.data; - } else { - this.$toast.fail(res.data.message) + this.mgop({ + api: 'mgop.sz.hswsy.GetStudyBaseDetail', // 必须 + host: 'https://mapi.zjzwfw.gov.cn/', + dataType: 'JSON', + type: 'GET', + appKey: 'fuxgnukl+2001895516+edccpx', // 必须 + headers: { + // 'isTestUrl': '1' + }, + data: { + "userId": 0, + "cs": '绍兴市', + "id": this.baseId + }, + onSuccess: res => { + this.$toast.clear() + console.log('基地信息:', res.data) + if (res.data.data) { + this.$toast.clear(); + this.baseInfo = res.data.data; + } else { + this.$toast.fail(res.data.message) + } + }, + onFail: err => { + console.log('err', err) } - }) + }); }, callback (img) { this.imgsrc.push({ @@ -185,9 +216,9 @@ export default { font-size: 30px; text-align: center; box-shadow: 0 0 30px #7ab1f8; - &.disabled{ - opacity: 0.4; - } + &.disabled { + opacity: 0.4; + } } .cont { .van-cell { diff --git a/src/views/PublicService/evaluateCourse.vue b/src/views/PublicService/evaluateCourse.vue index be244b2..0fd9efb 100644 --- a/src/views/PublicService/evaluateCourse.vue +++ b/src/views/PublicService/evaluateCourse.vue @@ -93,28 +93,40 @@ export default { this.$toast.loading({ message: '请求中...', }); - this.yxAxios.post(`${this.yanxueUrl}/api/StudiesWap/AddEvaluation`, - { - baseId: this.courseInfo.baseId, - title: this.courseInfo.courseName, - evaluation: this.content, - courseId: this.courseInfo.courseId, - orderId: this.courseInfo.id, - userId: this.userInfo.centerNo, - imgList: this.imgsrc, - courseScore: this.starsCourseNum, - baseScore: this.starsBaseNum + this.mgop({ + api: 'mgop.sz.hswsy.AddEvaluation', // 必须 + host: 'https://mapi.zjzwfw.gov.cn/', + dataType: 'JSON', + type: 'POST', + appKey: 'fuxgnukl+2001895516+edccpx', // 必须 + headers: { + // 'isTestUrl': '1' + }, + data: { + "baseId": this.courseInfo.baseId, + "title": this.courseInfo.courseName, + "evaluation": this.content, + "courseId": this.courseInfo.courseId, + "orderId": this.courseInfo.id, + "userId": this.userInfo.centerNo, + "imgList": this.imgsrc, + "courseScore": this.starsCourseNum, + "baseScore": this.starsBaseNum + }, + onSuccess: res => { + this.$toast.clear(); + if (res.data.status == 1) { + this.$toast.success('发布成功'); + setTimeout(() => { + // this.$router.push({ name: 'ServiceOrderXST' }) + this.$router.back() + }, 1000) + } + }, + onFail: err => { + console.log('err', err) } - ).then((res) => { - this.$toast.clear(); - if (res.data.status == 1) { - this.$toast.success('发布成功'); - setTimeout(() => { - // this.$router.push({ name: 'ServiceOrderXST' }) - this.$router.back() - }, 1000) - } - }) + }); }, callback (img) { this.imgsrc.push({ @@ -181,9 +193,9 @@ export default { font-size: 30px; text-align: center; box-shadow: 0 0 30px #7ab1f8; - &.disabled{ - opacity: 0.4; - } + &.disabled { + opacity: 0.4; + } } .cont { .van-cell { diff --git a/src/views/PublicService/evaluateDetail.vue b/src/views/PublicService/evaluateDetail.vue index 9ae2039..0fd50fe 100644 --- a/src/views/PublicService/evaluateDetail.vue +++ b/src/views/PublicService/evaluateDetail.vue @@ -39,7 +39,7 @@评价于 {{evaluationData.intime}}
+评价于 {{evaluationData.intime}}