diff --git a/src/api/myAxios.ts b/src/api/myAxios.ts index 1a8817f..a70960b 100644 --- a/src/api/myAxios.ts +++ b/src/api/myAxios.ts @@ -6,11 +6,11 @@ import router from "../router"; const myAxios = axios.create({ withCredentials: true, - //baseURL:'http://localhost:9091' + baseURL:'http://localhost:9091' // baseURL:'http://1.94.237.210:3457' //baseURL:'http://1.94.237.210:8088' //baseURL:'http://27.30.77.229:9091/' - baseURL:'http://27.30.77.229:9092/' + //baseURL:'http://27.30.77.229:9092/' }); diff --git a/src/layout/manage/ManageSidebar.vue b/src/layout/manage/ManageSidebar.vue index de2dba0..51c8063 100644 --- a/src/layout/manage/ManageSidebar.vue +++ b/src/layout/manage/ManageSidebar.vue @@ -40,8 +40,7 @@ 课程管理 - 本地课程 - 链接课程 + 课程管理 diff --git a/src/router/routes.ts b/src/router/routes.ts index d429624..10b5b14 100644 --- a/src/router/routes.ts +++ b/src/router/routes.ts @@ -22,16 +22,6 @@ export const routes = [ name: '首页', component: () => import("../view/Index.vue"), }, - { - path: '/localCurriculum', - name: '本地课程', - component: () => import("../view/course/localCurriculum.vue"), - }, - { - path: '/linkedCourse', - name: '链接课程', - component: () => import("../view/course/linkedCourse.vue"), - }, { path: '/workList', name: '工作列表', @@ -106,7 +96,27 @@ export const routes = [ path: '/withdrawalApplicationRecord', name: '提现申请记录', component: () => import("../view/settlement/withdrawalApplicationRecord.vue"), - } + }, + { + path: '/courseManagement', + name: '课程管理', + component: () => import("../view/course/courseManagement.vue"), + }, + { + path: '/addcourse', + name: '新增课程', + component: () => import("../view/course/addCourse.vue"), + }, + { + path:'/courseDetail', + name:'课程详情', + component: ()=> import("../view/course/courseDetail.vue") + }, + { + path:'/chapterDetail', + name:'章节详情', + component: ()=> import("../view/course/chapterDetail.vue") + }, ] }, ] \ No newline at end of file diff --git a/src/view/course/addCourse.vue b/src/view/course/addCourse.vue new file mode 100644 index 0000000..3fc7e72 --- /dev/null +++ b/src/view/course/addCourse.vue @@ -0,0 +1,745 @@ + + + 新建课程 + + + + + + + + + + + + + + + {{ formData.name }} + + + ¥{{ formData.originPrice }} + ¥{{ formData.discountPrice }} + + + + + + + + 课程详情 + + + + + + 推广码说明 + + + + + + + + + + + + + + + 课程名称 + + + + + + + 课程类型 + + + 请选择类型 + 自媒体 + 考公考研 + 财经 + + ▼ + + + + + + + 课程图片 + + + + 点击上传图片 + 已选择:{{ fileName }} + + + + + + + + + 原价(元) + + + + + + + 折扣价(元) + + + + + + + + + 一级佣金比例(%) + + + + + + + 二级佣金比例(%) + + + + + + + + + + + 课程详情 + formData.detail = html" + /> + + + + 推广码说明 + formData.promoCodeDesc = html" + /> + + + + + + 立即创建 + + + + + + + + \ No newline at end of file diff --git a/src/view/course/linkedCourse.vue b/src/view/course/chapterDetail.vue similarity index 77% rename from src/view/course/linkedCourse.vue rename to src/view/course/chapterDetail.vue index 4463840..7179f7b 100644 --- a/src/view/course/linkedCourse.vue +++ b/src/view/course/chapterDetail.vue @@ -3,7 +3,7 @@ -链接课程 +章节详情 \ No newline at end of file diff --git a/src/view/course/courseManagement.vue b/src/view/course/courseManagement.vue new file mode 100644 index 0000000..c38742f --- /dev/null +++ b/src/view/course/courseManagement.vue @@ -0,0 +1,535 @@ + + + + + + + + + 新增课程 + 重置搜索 + + 批量删除 + + + + + + + + + + + + + + {{record.originPrice }}¥ + + + {{record.discountPrice}}¥ + + + {{record.orderCount}}人 + + + {{record.firstLevelRate }}% + + + {{record.secondLevelRate }}% + + + + + + + 删除 + + + 详情 + + + 章节 + + + + + + + + + + \ No newline at end of file diff --git a/src/view/course/localCurriculum.vue b/src/view/course/localCurriculum.vue deleted file mode 100644 index ba9924f..0000000 --- a/src/view/course/localCurriculum.vue +++ /dev/null @@ -1,11 +0,0 @@ - - - -本地课程 - - - \ No newline at end of file