From f3abd92d23ef3663a5542da88b40ac8b302f8c44 Mon Sep 17 00:00:00 2001
From: Pengxiansen <2422914688@qq.com>
Date: Fri, 14 Feb 2025 16:01:48 +0800
Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.hbuilderx/launch.json | 16 ++
api/modules/growth.js | 16 ++
config/index.js | 4 +-
manifest.json | 25 ++-
pages.json | 1 +
pages/login/login.vue | 4 +-
pages/my/growth.vue | 325 ++++++++++++++++++++++++++++++++
pages/my/index.vue | 10 +
static/images/center/growth.jpg | Bin 0 -> 1123 bytes
static/images/icon/qiehuan.jpg | Bin 0 -> 528 bytes
static/images/jindu.jpg | Bin 0 -> 2967 bytes
static/images/shuoming.jpg | Bin 0 -> 2979 bytes
utils/growthXajax.js | 167 ++++++++++++++++
13 files changed, 559 insertions(+), 9 deletions(-)
create mode 100644 .hbuilderx/launch.json
create mode 100644 api/modules/growth.js
create mode 100644 pages/my/growth.vue
create mode 100644 static/images/center/growth.jpg
create mode 100644 static/images/icon/qiehuan.jpg
create mode 100644 static/images/jindu.jpg
create mode 100644 static/images/shuoming.jpg
create mode 100644 utils/growthXajax.js
diff --git a/.hbuilderx/launch.json b/.hbuilderx/launch.json
new file mode 100644
index 0000000..07c1d5f
--- /dev/null
+++ b/.hbuilderx/launch.json
@@ -0,0 +1,16 @@
+{ // launch.json 配置了启动调试时相关设置,configurations下节点名称可为 app-plus/h5/mp-weixin/mp-baidu/mp-alipay/mp-qq/mp-toutiao/mp-360/
+ // launchtype项可配置值为local或remote, local代表前端连本地云函数,remote代表前端连云端云函数
+ "version": "0.0",
+ "configurations": [{
+ "default" :
+ {
+ "launchtype" : "local"
+ },
+ "h5" :
+ {
+ "launchtype" : "local"
+ },
+ "type" : "uniCloud"
+ }
+ ]
+}
diff --git a/api/modules/growth.js b/api/modules/growth.js
new file mode 100644
index 0000000..158b66b
--- /dev/null
+++ b/api/modules/growth.js
@@ -0,0 +1,16 @@
+/**
+ * 课程的操作,课程的添加,修改,列表查询,课程的审核发布等操作。
+ * 针对于管理员,教师的功能
+ *
+ **/
+import ajax from '@/utils/growthXajax.js'
+
+/*
+专业力必修课程
+ */
+
+const baseUrl = '/growth';
+// const baseUrl = ''
+export const studentGrowthList = function (data) {
+ return ajax.get(baseUrl + '/professional/student/studentGrowthList', data);
+}
diff --git a/config/index.js b/config/index.js
index 5b2e61f..a91759e 100644
--- a/config/index.js
+++ b/config/index.js
@@ -1,5 +1,6 @@
/**系统的一些全局配置变量*/
let apiBaseUrl = '';
+let growthBaseUrl="https://u-pre.boe.com";
let oldApiBaseUrl ='/uboeApi';
let manageApiBaseUrl ='/manageApi';
let statApiBaseUrl='/statApi';
@@ -78,5 +79,6 @@ export default {
loginPathLogin:loginPathLogin,
fileUrl:fileUrl,
version:version,
- scormPlayer:scormPlayer
+ scormPlayer:scormPlayer,
+ growthBaseUrl:growthBaseUrl
}
\ No newline at end of file
diff --git a/manifest.json b/manifest.json
index 4fadfc2..c5e2e84 100644
--- a/manifest.json
+++ b/manifest.json
@@ -73,15 +73,24 @@
"devServer" : {
"https" : false,
"proxy" : {
+ "/growth" : {
+ // "target" : "https://u.boe.com",
+ "target" : " https://u-pre.boe.com",
+ "changeOrigin" : true,
+ "secure" : false,
+ "pathRewrite" : {}
+ },
"/systemapi" : {
- "target" : "https://u.boe.com",
+ // "target" : "https://u.boe.com",
+ "target" : " https://u-pre.boe.com",
"changeOrigin" : true,
"secure" : false,
"pathRewrite" : {}
},
// "^/systemapi" : ""
"/userbasic" : {
- "target" : "https://u.boe.com",
+ // "target" : "https://u.boe.com",
+ "target" : " https://u-pre.boe.com",
"changeOrigin" : true,
"secure" : false,
"pathRewrite" : {
@@ -89,7 +98,8 @@
}
},
"/manageApi" : {
- "target" : "https://u.boe.com",
+ // "target" : "https://u.boe.com",
+ "target" : " https://u-pre.boe.com",
"changeOrigin" : true,
"secure" : false,
"pathRewrite" : {
@@ -97,7 +107,8 @@
}
},
"/uboeApi" : {
- "target" : "https://u.boe.com",
+ // "target" : "https://u.boe.com",
+ "target" : " https://u-pre.boe.com",
"changeOrigin" : true,
"secure" : false,
"pathRewrite" : {
@@ -106,7 +117,8 @@
},
"/statApi" : {
// 目标代理服务器地址
- "target" : "https://u.boe.com",
+ // "target" : "https://u.boe.com",
+ "target" : " https://u-pre.boe.com",
"changeOrigin" : true,
"logLevel" : "debug",
"secure" : false,
@@ -115,7 +127,8 @@
// "^/statApi" : ""
"/socialApi" : {
// 目标代理服务器地址
- "target" : "https://u.boe.com",
+ // "target" : "https://u.boe.com",
+ "target" : " https://u-pre.boe.com",
"changeOrigin" : true,
"logLevel" : "debug",
"secure" : false,
diff --git a/pages.json b/pages.json
index 1fa8f9a..eb9c630 100644
--- a/pages.json
+++ b/pages.json
@@ -32,6 +32,7 @@
{"path" : "pages/news/index","style" : {"navigationBarTitleText": "消息","enablePullDownRefresh": false}},
{"path" : "pages/my/index","style" : {"navigationBarTitleText": "我的","enablePullDownRefresh": false}},
{"path" : "pages/my/myub","style" : {"navigationBarTitleText": "我的u币","enablePullDownRefresh": false}},
+ {"path" : "pages/my/growth","style" : {"navigationBarTitleText": "专业力必修","enablePullDownRefresh": false}},
{"path" : "pages/my/myubrules","style" : {"navigationBarTitleText": "u币规则","enablePullDownRefresh": false}},
{"path" : "pages/my/message","style" : {"navigationBarTitleText": "消息列表","enablePullDownRefresh": false}},
{"path" : "pages/my/myAnswers","style" : {"navigationBarTitleText": "我回答的","enablePullDownRefresh": false}},
diff --git a/pages/login/login.vue b/pages/login/login.vue
index c70138c..6735dd8 100644
--- a/pages/login/login.vue
+++ b/pages/login/login.vue
@@ -51,8 +51,8 @@
mounted() {
//对cookies进行操作,这里是写
//document.cookie = "mytest=qweqwe131231; path=/; max-age=" + 30*24*60*60;
- //console.log('process.env.NODE_ENV',process.env.NODE_ENV);
- //console.log('process.env.ENV_TYPE',process.env.ENV_TYPE);
+ console.log('process.env.NODE_ENV',process.env.NODE_ENV);
+ console.log('process.env.ENV_TYPE',process.env.ENV_TYPE);
},
methods: {
submitLogin(){
diff --git a/pages/my/growth.vue b/pages/my/growth.vue
new file mode 100644
index 0000000..502e074
--- /dev/null
+++ b/pages/my/growth.vue
@@ -0,0 +1,325 @@
+
+
+ 专业力必修
+
+
+ 专业力必修
+
+
+
+
+ 切换
+
+
+
+
+
+ {{ selectData.growthName }}
+
+ 学习状态:
+ {{
+ selectData.learningState === 0
+ ? "未开始"
+ : selectData.learningState === 1
+ ? "已完成"
+ : "进行中"
+ }}
+
+
+
+
+ 说明
+
+
+ {{ selectData.description || "暂无说明" }}
+
+
+
+
+
+ 学习进度
+
+
+ 总任务:{{ selectData.totalTaskNum }}个
+
+ 必修进度
+
+
+
+ {{ requiredTaskCompletionRate }}%
+
+
+ 选修进度
+
+
+
+ {{ electiveTaskCompletionRate }}%
+
+
+ 总进度
+
+
+
+ {{ totalTaskCompletionRate }}%
+
+
+
+
+ 学习
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/pages/my/index.vue b/pages/my/index.vue
index dfe4979..fff9466 100644
--- a/pages/my/index.vue
+++ b/pages/my/index.vue
@@ -276,6 +276,16 @@
+
+
+
+
+
+
+ 专业力必修
+
+
+