提交 9f629012 authored 作者: 王鹏飞's avatar 王鹏飞

fix: 课程类型展示内容修改

上级 705f0337
......@@ -30,7 +30,7 @@ const getCourseList = (isMy, param, callback) => {
for(let i = 0; i < res.data.length; i++) {
let cur = res.data[i], _cur = res.data[i].curriculum
/* 课程类型 curriculum_elective_type 类型 改为 course_type 吴锚要求 */
let _type = cur.course_type, str1 = _type == 1 ? '必修课' : (_type == 2 ? '选修课' : (_type == 3 ? '重修课' : ''))
let _type = cur.course_type, str1 = _type == 1 ? '先导课' : (_type == 2 ? '核心课' : (_type == 3 ? '选修课' : ''))
json.push({
id: cur.course_id,
......@@ -55,7 +55,7 @@ const getCourseDetail = (id, sid, callback) => {
callback: function (res) {
let cur = res.data, _cur = cur.curriculum
/* 课程类型 curriculum_elective_type 类型 改为 course_type 吴锚要求 */
let _type = cur.course_type, str1 = _type == 1 ? '必修课' : (_type == 2 ? '选修课' : (_type == 3 ? '重修课' : ''))
let _type = cur.course_type, str1 = _type == 1 ? '先导课' : (_type == 2 ? '核心课' : (_type == 3 ? '选修课' : ''))
let json = {
headerInfo: {
isStart: !!cur.selected, // 是否为开始学习按钮 或者 选课按钮
......
......@@ -3,13 +3,13 @@ const env = 'production'
if (env === 'production') {
module.exports = {
appVersion: 'prp_v3.3.2',
appVersion: 'prp_v3.3.3',
apiBaseURL: 'https://wechat-api.ezijing.com', // 接口请求地址
tenant: 'prp'
}
} else {
module.exports = {
appVersion: 'prp_v3.3.2',
appVersion: 'prp_v3.3.3',
apiBaseURL: 'https://wechat-api2.ezijing.com', // 接口请求地址
tenant: 'prp'
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论