提交 9a8ac01c authored 作者: GOD_ZYX's avatar GOD_ZYX

重新发布 enterprise

上级 75ddcb68
......@@ -2,7 +2,7 @@
<div class="p-con">
<div class="hd">
<img src="./img/logo.png" alt="logo">
<div class="txt">在线学习系统</div>
<div class="txt">清控紫荆课堂</div>
</div>
<div class="bd">
<div class="top50 container">
......
<template>
<div class="row">
<div class="hidden-xs-only col-md-5 col-lg-6 col-xl-6">
<img src="../img/login-left-bg.png" alt="左侧-sofia logo">
<img src="../img/login-left-bg.png" alt="左侧-sofia logo" style="border: 1px solid #fff; border-radius: 50%;">
</div>
<div class="col-12 col-md-7 col-lg-5 col-xl-4">
<el-form ref="setAccountform" :model="setAccount" :rules="accountRules">
......
......@@ -7,19 +7,19 @@ export default class ChapterAPI extends BaseAPI {
* @param {[string]} cur_semester_id -> sid
* @param {[string]} cur_video_id -> vid
*/
getChapterList = (cid, sid, vid) => this.get(`/tenant/v2/education/courses/${sid}/${cid}`, {})
getChapterList = (cid, sid, vid) => this.get(`/ep/v2/education/courses/${sid}/${cid}`, {})
/**
* 获取对应某个章节的详细信息
* @param {[string]} vid
*/
getCurrentChapterDetail = (vid) => this.post('/tenant/v2/education/video-streaming', { vid })
getCurrentChapterDetail = (vid) => this.post('/ep/v2/education/video-streaming', { vid })
/**
* 获取进度信息
* @param {[string]} vid
* @param {[string]} did
* @param {[string]} sid
*/
getProgress = (vid, did, sid) => this.get(`/tenant/v2/education/video/${sid}/${vid}/device`, { device_id: did })
getProgress = (vid, did, sid) => this.get(`/ep/v2/education/video/${sid}/${vid}/device`, { device_id: did })
/**
* 提交进度信息
* @param {[object]} obj
......@@ -32,50 +32,50 @@ export default class ChapterAPI extends BaseAPI {
_m: obj.mpt, // 当前播放最大时间
_c: obj.cpt // 当前播放位置
*/
updateProgress = (obj = {}) => this.get('/tenant/v2/analytics/upload-video', obj)
updateProgress = (obj = {}) => this.get('/ep/v2/analytics/upload-video', obj)
/**
* 获取试题信息
* @param {[string]} eid
* @param {[string]} sid
*/
getExamDetail = (sid, eid) => this.get(`/tenant/v2/education/homeworks/${sid}/${eid}`, {})
getExamDetail = (sid, eid) => this.get(`/ep/v2/education/homeworks/${sid}/${eid}`, {})
/**
* 提交考试信息
* @param {[object]} param
*/
submitExamDetail = (param) => this.post(`/tenant/v2/education/homeworks`, param)
submitExamDetail = (param) => this.post(`/ep/v2/education/homeworks`, param)
/**
* 获取对应 作业或问题 回答
* @param {[string]} sid
* @param {[string]} id resource_id
*/
getHomework = (sid, id) => this.get(`/tenant/v2/education/homeworks/${sid}/${id}`, {})
getHomework = (sid, id) => this.get(`/ep/v2/education/homeworks/${sid}/${id}`, {})
/**
* 文件提交
* @param {[object]} obj
*/
uploadFile = (obj = {}) => this.post('/tenant/util/upload-file', obj, { headers: { 'Content-Type': 'multipart/form-data' } })
uploadFile = (obj = {}) => this.post('/ep/util/upload-file', obj, { headers: { 'Content-Type': 'multipart/form-data' } })
/**
* 提交课程 作业或问题
*/
updateHomework = (obj = {}) => this.post('/tenant/v2/education/homeworks', obj, { headers: { 'Content-Type': 'multipart/form-data' } })
updateHomework = (obj = {}) => this.post('/ep/v2/education/homeworks', obj, { headers: { 'Content-Type': 'multipart/form-data' } })
/**
* 获取对应 大作业 回答
* @param {[string]} sid
* @param {[string]} cid
*/
getCourseHomework = (sid, cid) => this.get(`/tenant/v2/education/courses/${sid}/${cid}/essay`, {})
getCourseHomework = (sid, cid) => this.get(`/ep/v2/education/courses/${sid}/${cid}/essay`, {})
/**
* 提交课程 大作业
* @param {[string]} sid
* @param {[string]} cid
*/
updateCourseHomework = (sid, cid, obj = {}) => this.post(`/tenant/v2/education/courses/${sid}/${cid}/essay`, obj, { headers: { 'Content-Type': 'multipart/form-data' } })
updateCourseHomework = (sid, cid, obj = {}) => this.post(`/ep/v2/education/courses/${sid}/${cid}/essay`, obj, { headers: { 'Content-Type': 'multipart/form-data' } })
/**
* 提交 课程考核
* @param {[string]} obj.sid
* @param {[string]} obj.cid
* @param {[string]} obj.raw (base64)
*/
updateSurveyAnswer = (obj) => this.post(`/tenant/v2/education/survey/answer`, obj)
updateSurveyAnswer = (obj) => this.post(`/ep/v2/education/survey/answer`, obj)
}
......@@ -4,35 +4,35 @@ export default class CourseAPI extends BaseAPI {
/**
* 获取学期分类信息
*/
getlearnFindList = () => this.get('/tenant/v2/education/semesters', {})
getlearnFindList = () => this.get('/ep/v2/education/semesters', {})
/**
* 获取所有课程列表 - 选课广场 和 我的课程 共用同一个,通过 isMy判断
* @param {[string]} isMy
* @param {[object]} param
*/
getCourseList = (isMy, param) => this.get('/tenant/v2/education/courses' + (isMy ? '/my' : ''), param)
getCourseList = (isMy, param) => this.get('/ep/v2/education/courses' + (isMy ? '/my' : ''), param)
/**
* 获取某个课程详细信息 - 课程考核 和 课程讨论单独获取
* @param {[string]} id
* @param {[string]} sid
*/
getCourseDetail = (id, sid) => this.get(`/tenant/v2/education/courses/${sid}/${id}`, {})
getCourseDetail = (id, sid) => this.get(`/ep/v2/education/courses/${sid}/${id}`, {})
/**
* 获取课程考核信息
* @param {[string]} cid
* @param {[string]} sid
*/
getCourseAssess = (cid, sid) => this.get(`/tenant/v2/analytics/courses/${sid}/${cid}/evaluation`, {})
getCourseAssess = (cid, sid) => this.get(`/ep/v2/analytics/courses/${sid}/${cid}/evaluation`, {})
/**
* 选课
* @param {[string]} cid
* @param {[string]} sid
*/
selectCourse = (cid, sid) => this.post(`/tenant/v2/education/courses/major`, { course_id: cid, semester_id: sid })
selectCourse = (cid, sid) => this.post(`/ep/v2/education/courses/major`, { course_id: cid, semester_id: sid })
/**
* 退课
* @param {[string]} cid
* @param {[string]} sid
*/
outSelectCourse = (cid, sid) => this.post(`/tenant/v2/education/courses/drop`, { course_id: cid, semester_id: sid })
outSelectCourse = (cid, sid) => this.post(`/ep/v2/education/courses/drop`, { course_id: cid, semester_id: sid })
}
......@@ -8,7 +8,7 @@ export default class DiscussAPI extends BaseAPI {
* @param {[string]} path
* @param {[object]} dataJson
*/
getDiscussList = (path, dataJson) => this.get('/tenant/v2/qa/questions' + path, dataJson)
getDiscussList = (path, dataJson) => this.get('/ep/v2/qa/questions' + path, dataJson)
/**
* 获取讨论题目列表,“课程的问题”信息
* dataJson.limit - 获取数量
......@@ -18,50 +18,50 @@ export default class DiscussAPI extends BaseAPI {
* @param {[string]} sid
* @param {[object]} dataJson
*/
getCourseDiscussList = (cid, sid, dataJson) => this.get(`/tenant/v2/qa/questions/course/${sid}/${cid}`, dataJson)
getCourseDiscussList = (cid, sid, dataJson) => this.get(`/ep/v2/qa/questions/course/${sid}/${cid}`, dataJson)
/**
* 获取问题详情
* @param {[string]} qid
*/
getDiscussDetail = (qid) => this.get(`/tenant/v2/qa/questions/${qid}`, {})
getDiscussDetail = (qid) => this.get(`/ep/v2/qa/questions/${qid}`, {})
/**
* 删除提问
* @param {[string]} qid
*/
deleteDiscuss = (qid) => this.delete(`/tenant/v2/qa/questions/${qid}`, {})
deleteDiscuss = (qid) => this.delete(`/ep/v2/qa/questions/${qid}`, {})
/**
* 提出问题
* @param {[object]} param
*/
publishQues = (param) => this.post(`/tenant/v2/qa/questions`, param)
publishQues = (param) => this.post(`/ep/v2/qa/questions`, param)
/**
* 回答问题
* @param {[object]} param
*/
answerQues = (param) => this.post(`/tenant/v2/qa/answers`, param)
answerQues = (param) => this.post(`/ep/v2/qa/answers`, param)
/**
* 删除回答
* @param {[string]} aid
*/
deleteAnswer = (aid) => this.delete(`/tenant/v2/qa/answers/${aid}`, {})
deleteAnswer = (aid) => this.delete(`/ep/v2/qa/answers/${aid}`, {})
/**
* 回复评论
* @param {[object]} param
*/
callbackComment = (param) => this.post(`/tenant/v2/qa/comments`, param)
callbackComment = (param) => this.post(`/ep/v2/qa/comments`, param)
/**
* 删除评论
* @param {[string]} cid
*/
deleteComment = (cid) => this.delete(`/tenant/v2/qa/comments/${cid}`, {})
deleteComment = (cid) => this.delete(`/ep/v2/qa/comments/${cid}`, {})
/**
* 点赞
* @param {[object]} param
*/
like = (param) => this.post(`/tenant/v2/qa/tags`, param)
like = (param) => this.post(`/ep/v2/qa/tags`, param)
/**
* 取消点赞
* @param {[string]} tagid
*/
unlike = (tagid) => this.delete(`/tenant/v2/qa/tags/${tagid}`, {})
unlike = (tagid) => this.delete(`/ep/v2/qa/tags/${tagid}`, {})
}
......@@ -8,7 +8,7 @@ export default class LoginAPI extends BaseAPI {
* @param {[string]} obj.password 密码 md5加密
* @param {[string]} obj.service 这里 一直是定值 web.ezijing.com
*/
userLogin = (obj = {}) => this.post('/tenant/user/login', _.assignIn(obj, { service: 'web.ezijing.com' }))
userLogin = (obj = {}) => this.post('/ep/user/login', _.assignIn(obj, { service: 'web.ezijing.com' }))
/**
* 调用退出登录
* @param {[string]} obj.service 这里 一直是定值 web.ezijing.com
......@@ -17,7 +17,7 @@ export default class LoginAPI extends BaseAPI {
/**
* 当前登录用户,检测是否该系统有权限
*/
getInfo = () => this.get('/tenant/user/getinfo', {})
getInfo = () => this.get('/ep/user/getinfo', {})
/**
* 发送验证码
* @param {[string]} obj.mobile 手机号
......@@ -30,7 +30,7 @@ export default class LoginAPI extends BaseAPI {
* @param {[string]} obj.code 验证码
* @param {[string]} obj.service 这里 一直是定值 web.ezijing.com
*/
codeLogin = (obj = {}) => this.post('/tenant/user/code-login', _.assignIn(obj, { service: 'web.ezijing.com' }))
codeLogin = (obj = {}) => this.post('/ep/user/code-login', _.assignIn(obj, { service: 'web.ezijing.com' }))
/**
* 发送重置密码验证码
* @param {[string]} obj.contact 手机号/邮箱
......
......@@ -4,5 +4,5 @@ export default class MsgAPI extends BaseAPI {
/**
* 获取我的消息信息
*/
getMyMsg = () => this.get('/tenant/v2/education/message/my', {})
getMyMsg = () => this.get('/ep/v2/education/message/my', {})
}
......@@ -4,11 +4,11 @@ export default class ScoreAPI extends BaseAPI {
/**
* 获取所有通过报告列表
*/
getReportList = () => this.get('/tenant/v2/education/symposium-report-all', {})
getReportList = () => this.get('/ep/v2/education/symposium-report-all', {})
/**
* 获取我的学术活动
*/
getReportActiveList = () => this.get('/tenant/v2/education/symposium/my', {})
getReportActiveList = () => this.get('/ep/v2/education/symposium/my', {})
/**
* 提交活动申请
* symposium_name 活动名称
......@@ -19,43 +19,43 @@ export default class ScoreAPI extends BaseAPI {
* symposium_address 活动地点
* 返回 {'flag' : true, 'errors' : []}
*/
submitReportActive = (obj = {}) => this.post('/tenant/v2/education/symposium', obj, { headers: { 'Content-Type': 'application/x-www-form-urlencoded' } })
submitReportActive = (obj = {}) => this.post('/ep/v2/education/symposium', obj, { headers: { 'Content-Type': 'application/x-www-form-urlencoded' } })
/**
* 获取学术活动详情
*/
getReportActive = (rid) => this.get(`/tenant/v2/education/symposium/${rid}`, {})
getReportActive = (rid) => this.get(`/ep/v2/education/symposium/${rid}`, {})
/**
* 修改活动申请
* 参数同上
*/
updateReportActive = (rid, obj = {}) => this.post(`/tenant/v2/education/symposium/${rid}`, obj)
updateReportActive = (rid, obj = {}) => this.post(`/ep/v2/education/symposium/${rid}`, obj)
/**
* 删除活动申请
* 参数同上
*/
deleteReportActive = rid => this.delete(`/tenant/v2/education/symposium/${rid}`, {})
deleteReportActive = rid => this.delete(`/ep/v2/education/symposium/${rid}`, {})
/**
* 获取活动相关的学术报告
*/
getReportListAll = (rid) => this.get(`/tenant/v2/education/symposium/${rid}/report`, {})
getReportListAll = (rid) => this.get(`/ep/v2/education/symposium/${rid}/report`, {})
/**
* 提交学术报告
* report_name 报告名称
* report_description 报告描述
* file_url 文章URL
*/
submitReport = (rid, obj = {}) => this.post(`/tenant/v2/education/symposium/${rid}/report`, obj)
submitReport = (rid, obj = {}) => this.post(`/ep/v2/education/symposium/${rid}/report`, obj)
/**
* 获取学术报告详情
*/
getSubmitReport = (rid, reid) => this.get(`/tenant/v2/education/symposium/report/${reid}`, {})
getSubmitReport = (rid, reid) => this.get(`/ep/v2/education/symposium/report/${reid}`, {})
/**
* 更新学术报告
*/
updateSubmitReport = (rid, reid, obj = {}) => this.post(`/tenant/v2/education/symposium/${rid}/report/${reid}`, obj)
updateSubmitReport = (rid, reid, obj = {}) => this.post(`/ep/v2/education/symposium/${rid}/report/${reid}`, obj)
/**
* 删除学术报告
* 参数同上
*/
deleteSubmitReport = (rid, reid) => this.delete(`/tenant/v2/education/symposium/report/${reid}`, {})
deleteSubmitReport = (rid, reid) => this.delete(`/ep/v2/education/symposium/report/${reid}`, {})
}
......@@ -4,9 +4,9 @@ export default class ScoreAPI extends BaseAPI {
/**
* 获取我的学分信息
*/
getMyScore = () => this.get('/tenant/v2/education/credits', {})
getMyScore = () => this.get('/ep/v2/education/credits', {})
/**
* 意见反馈
*/
feedbackcommit = (obj = {}) => this.post(`/tenant/v2/feedback/commit`, obj, { headers: { 'Content-Type': 'multipart/form-data' } })
feedbackcommit = (obj = {}) => this.post(`/ep/v2/feedback/commit`, obj, { headers: { 'Content-Type': 'multipart/form-data' } })
}
......@@ -50,13 +50,13 @@ export default class API {
// 'X-Real-Ip': req.get('x-real-ip'),
'cur-json': Base64.encode(JSON.stringify({
time: new Date().getTime(),
sys: 'elearning-node',
sys: 'elearning-enterprise',
auth: _uInfo.email || _uInfo.mobile || '未知', // 在header头中传入 当前用户账号信息
name: (_uInfo.student_info && _uInfo.student_info.personal_name) || _uInfo.username || '未知', // 在header头中传入 当前用户姓名
version: window.G.VERSION // 版本号 修改
})),
// 'token': ticket,
'tenant': 'sofia'
'tenant': 'classes'
}
if (/tenant\/user\/login/gi.test(_config.url)) {
headers.pmd5 = _config.data.pwd
......
<template>
<div class="survey-container">
<div class="header">
<div class="title">索菲亚MBA课程教学服务评估表</div>
<div class="title">清控紫荆课堂教学服务评估表</div>
<div class="sub-title">您好!为保证我们能够为您提供更优质的课程,提高教学质量及服务,请您对此次课程提出宝贵的意见和建议。感谢您对我们工作的支持!(请您选择星级,选中1颗星为1分,最高5颗星)。请用1(低)到5(高)为每一项打分,并加上任何您想写的评论。</div>
<!-- <img src="./logo-header.jpg" alt=""> -->
<div class="sub-left">课程名称:{{headerInfo.title}}
......@@ -70,7 +70,7 @@
</div>
</template>
</template>
<div class="bottom">如果您在紫荆MBA学位课程的收获比较大,我们会非常感谢您帮助我们推荐和您一样优秀的学员加入到MBA的大家庭,具体请联系您所在班的班主任。</div>
<div class="bottom">如果您在清控紫荆课堂的收获比较大,我们会非常感谢您帮助我们推荐和您一样优秀的学员加入到清控紫荆课堂的大家庭,具体请联系您所在班的班主任。</div>
<div :class="['btn', this.curPage > 1 ? '' : 'none']" @click="prevPage">上一页</div>
<template v-if="lastPage">
<div class="btn" @click="goSubmit">提交</div>
......
......@@ -2,7 +2,7 @@
<div class="menu">
<div class="nav-left">
<img class="logo" src="../../assets/img/logo-header.png" alt="logo" />
<div class="text-title" @click="setStatus">在线学习系统</div>
<div class="text-title" @click="setStatus">清控紫荆课堂</div>
</div>
<div class="notify" @click="goNotify()">通知
<div class="num" v-if="num">{{num}}</div>
......
......@@ -4,7 +4,7 @@
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta content="origin" name="referrer">
<title>紫荆教育MBA学习系统</title>
<title>清控紫荆课堂</title>
<meta name="viewport" id="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, shrink-to-fit=no">
<!-- Matomo -->
<script type="text/javascript">
......
......@@ -3,7 +3,7 @@
<div class="con-title">我的课程</div>
<div class="con-box">
<template v-for="(item, index) in find">
<ul v-bind:key="index" class="tabs-list">
<ul v-bind:key="index" class="tabs-list" v-if="index != 0">
<li class="tabs-hd">{{item.name}}</li>
<template v-for="(item1, index1) in item.arrItem">
<li v-bind:key="index1">
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论