From 571ed08c7b636b495762cb75edfb77dd310ae779 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=91=A8=E6=98=9F=E5=AE=87?= <290269163@qq.com>
Date: Fri, 19 Aug 2022 11:43:35 +0800
Subject: [PATCH] =?UTF-8?q?=E6=95=B4=E5=90=88?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Fronts/pages.json | 204 +++++++++--------
Fronts/pages/Course/components/Course.vue | 207 +++++++++++-------
Fronts/pages/Percenter/Sublayout/myList.vue | 2 +
.../pages/Questionnaires/Questionnaires.vue | 16 ++
Fronts/pages/Questionnaires/Record.vue | 16 ++
.../pages/Questionnaires/components/Body.vue | 47 ++++
.../pages/Questionnaires/components/Head.vue | 67 ++++++
Fronts/pages/index/TedentSon/Menu.vue | 2 +-
Fronts/pages/index/index.vue | 66 ++++++
Fronts/pages/results/components/Grades.vue | 60 +++--
Fronts/pages/results/components/Teaching.vue | 3 +
Fronts/static/index/kcb.jpg | Bin 0 -> 37681 bytes
Fronts/unpackage/dist/dev/mp-weixin/app.js | 4 +-
Fronts/unpackage/dist/dev/mp-weixin/app.json | 4 +-
.../dist/dev/mp-weixin/pages/Course/Course.js | 2 +-
.../dev/mp-weixin/pages/Course/Course.wxml | 2 +-
.../pages/Course/components/Course.js | 129 +++++++++--
.../pages/Course/components/Course.wxml | 2 +-
.../pages/Course/components/Course.wxss | 61 ++----
.../mp-weixin/pages/Percenter/Percenter.js | 2 +-
.../mp-weixin/pages/Percenter/Percenter.wxml | 2 +-
.../pages/Percenter/Sublayout/loginAva.js | 2 +-
.../Percenter/Sublayout/mallFunctions.js | 2 +-
.../pages/Percenter/Sublayout/myList.js | 4 +-
.../pages/Percenter/Sublayout/myList.wxml | 2 +-
.../pages/Percenter/Sublayout/myinfo.js | 16 +-
.../pages/Percenter/Sublayout/problem.js | 2 +-
.../pages/Percenter/Sublayout/room.js | 8 +-
.../dev/mp-weixin/pages/Percenter/contact.js | 2 +-
.../pages/Questionnaires/Questionnaires.js | 17 ++
.../pages/Questionnaires/Questionnaires.json | 6 +
.../pages/Questionnaires/Questionnaires.wxml | 1 +
.../pages/Questionnaires/Questionnaires.wxss | 0
.../mp-weixin/pages/Questionnaires/Record.js | 17 ++
.../pages/Questionnaires/Record.json | 6 +
.../pages/Questionnaires/Record.wxml | 1 +
.../pages/Questionnaires/Record.wxss | 0
.../pages/Questionnaires/components/Body.js | 43 ++++
.../pages/Questionnaires/components/Body.json | 4 +
.../pages/Questionnaires/components/Body.wxml | 1 +
.../pages/Questionnaires/components/Body.wxss | 9 +
.../pages/Questionnaires/components/Head.js | 56 +++++
.../pages/Questionnaires/components/Head.json | 6 +
.../pages/Questionnaires/components/Head.wxml | 1 +
.../pages/Questionnaires/components/Head.wxss | 20 ++
.../dist/dev/mp-weixin/pages/School.js | 2 +-
.../dev/mp-weixin/pages/TeLogin/AuLogin.js | 2 +-
.../dist/dev/mp-weixin/pages/TeLogin/Login.js | 2 +-
.../dist/dev/mp-weixin/pages/Teather.js | 8 +-
.../dist/dev/mp-weixin/pages/book.js | 8 +-
.../pages/index/TedentSon/College.js | 2 +-
.../pages/index/TedentSon/Headtitle.js | 2 +-
.../mp-weixin/pages/index/TedentSon/Menu.js | 2 +-
.../mp-weixin/pages/index/TedentSon/Menu.wxml | 2 +-
.../mp-weixin/pages/index/TedentSon/Round.js | 2 +-
.../mp-weixin/pages/index/TedentSon/Title.js | 2 +-
.../dist/dev/mp-weixin/pages/index/index.js | 71 +++++-
.../dist/dev/mp-weixin/pages/index/index.wxml | 2 +-
.../dist/dev/mp-weixin/pages/major.js | 4 +-
.../dist/dev/mp-weixin/pages/many.js | 2 +-
.../dev/mp-weixin/pages/register/Register.js | 2 +-
.../mp-weixin/pages/register/updatepass.js | 2 +-
.../pages/results/components/Grades.js | 67 ++++--
.../pages/results/components/Grades.wxml | 2 +-
.../pages/results/components/Grades.wxss | 7 +-
.../pages/results/components/Teaching.js | 2 +-
.../pages/results/components/Teaching.wxml | 2 +-
.../pages/results/components/Teaching.wxss | 3 +
.../dev/mp-weixin/pages/results/results.js | 2 +-
.../dev/mp-weixin/pages/results/results.wxml | 2 +-
.../dist/dev/mp-weixin/project.config.json | 24 +-
.../dist/dev/mp-weixin/static/index/kcb.jpg | Bin 0 -> 37681 bytes
.../uni-card/components/uni-card/uni-card.js | 2 +-
.../components/uni-icons/uni-icons.js | 2 +-
.../uni-search-bar/uni-search-bar.js | 2 +-
.../uni-search-bar/uni-search-bar.wxml | 2 +-
.../components/uni-table/uni-table.js | 2 +-
.../uni-table/components/uni-td/uni-td.js | 2 +-
.../uni-table/components/uni-th/uni-th.js | 2 +-
.../components/uni-tr/table-checkbox.js | 2 +-
.../uni-table/components/uni-tr/uni-tr.js | 2 +-
.../uni-table/components/uni-tr/uni-tr.wxml | 2 +-
82 files changed, 1030 insertions(+), 342 deletions(-)
create mode 100644 Fronts/pages/Questionnaires/Questionnaires.vue
create mode 100644 Fronts/pages/Questionnaires/Record.vue
create mode 100644 Fronts/pages/Questionnaires/components/Body.vue
create mode 100644 Fronts/pages/Questionnaires/components/Head.vue
create mode 100644 Fronts/static/index/kcb.jpg
create mode 100644 Fronts/unpackage/dist/dev/mp-weixin/pages/Questionnaires/Questionnaires.js
create mode 100644 Fronts/unpackage/dist/dev/mp-weixin/pages/Questionnaires/Questionnaires.json
create mode 100644 Fronts/unpackage/dist/dev/mp-weixin/pages/Questionnaires/Questionnaires.wxml
create mode 100644 Fronts/unpackage/dist/dev/mp-weixin/pages/Questionnaires/Questionnaires.wxss
create mode 100644 Fronts/unpackage/dist/dev/mp-weixin/pages/Questionnaires/Record.js
create mode 100644 Fronts/unpackage/dist/dev/mp-weixin/pages/Questionnaires/Record.json
create mode 100644 Fronts/unpackage/dist/dev/mp-weixin/pages/Questionnaires/Record.wxml
create mode 100644 Fronts/unpackage/dist/dev/mp-weixin/pages/Questionnaires/Record.wxss
create mode 100644 Fronts/unpackage/dist/dev/mp-weixin/pages/Questionnaires/components/Body.js
create mode 100644 Fronts/unpackage/dist/dev/mp-weixin/pages/Questionnaires/components/Body.json
create mode 100644 Fronts/unpackage/dist/dev/mp-weixin/pages/Questionnaires/components/Body.wxml
create mode 100644 Fronts/unpackage/dist/dev/mp-weixin/pages/Questionnaires/components/Body.wxss
create mode 100644 Fronts/unpackage/dist/dev/mp-weixin/pages/Questionnaires/components/Head.js
create mode 100644 Fronts/unpackage/dist/dev/mp-weixin/pages/Questionnaires/components/Head.json
create mode 100644 Fronts/unpackage/dist/dev/mp-weixin/pages/Questionnaires/components/Head.wxml
create mode 100644 Fronts/unpackage/dist/dev/mp-weixin/pages/Questionnaires/components/Head.wxss
create mode 100644 Fronts/unpackage/dist/dev/mp-weixin/static/index/kcb.jpg
diff --git a/Fronts/pages.json b/Fronts/pages.json
index 9dd7a52..505ed9f 100644
--- a/Fronts/pages.json
+++ b/Fronts/pages.json
@@ -1,103 +1,113 @@
{
"pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages
{
- "path": "pages/index/index",
- "style": {
- "navigationBarTitleText": "主页"
- }
- },
- {
- "path": "pages/Course/Course",
- "style": {
- "navigationBarTitleText": "课程信息"
- }
- },
- {
- "path": "pages/results/results",
- "style": {
- "navigationBarTitleText": "成绩信息"
- }
- },
- {
- "path": "pages/Percenter/Percenter",
- "style": {
- "navigationBarTitleText": "个人主页"
- }
- },
- {
- "path": "pages/TeLogin/Login",
- "style": {
- "navigationBarTitleText": "登录页面"
- }
- },
- {
- "path": "pages/TeLogin/AuLogin",
- "style": {
- "navigationBarTitleText": "授权登录页面"
- }
- },
- {
- "path":"pages/Percenter/Sublayout/problem",
- "style": {
- "navigationBarTitleText": "常见问题"
- }
- },{
- "path":"pages/Percenter/Sublayout/myinfo",
- "style": {
- "navigationBarTitleText": "个人信息"
- }
- },{
- "path":"pages/Percenter/Sublayout/room",
- "style": {
- "navigationBarTitleText": "寝室信息"
- }
- },{
- "path":"pages/Percenter/contact",
- "style": {
- "navigationBarTitleText": "联系我们"
- }
- },
- {
- "path":"pages/register/updatepass",
- "style": {
- "navigationBarTitleText": "修改密码"
- }
- },
- {
- "path":"pages/book",
- "style": {
- "navigationBarTitleText": "教材信息"
- }
- },
- {
- "path":"pages/many",
- "style": {
- "navigationBarTitleText": "更多"
- }
- },
- {
- "path":"pages/School",
- "style": {
- "navigationBarTitleText": "学校预览"
- }
- },
- {
- "path":"pages/major",
- "style": {
- "navigationBarTitleText": "专业信息"
- }
- },
- {
- "path":"pages/Teather",
- "style": {
- "navigationBarTitleText": "教师信息"
- }
- },{
- "path":"pages/register/Register",
- "style": {
- "navigationBarTitleText": "教师信息"
- }
- }
+ "path": "pages/index/index",
+ "style": {
+ "navigationBarTitleText": "主页"
+ }
+ },
+ {
+ "path": "pages/Course/Course",
+ "style": {
+ "navigationBarTitleText": "课程信息"
+ }
+ },
+ {
+ "path": "pages/results/results",
+ "style": {
+ "navigationBarTitleText": "成绩信息"
+ }
+ },
+ {
+ "path": "pages/Percenter/Percenter",
+ "style": {
+ "navigationBarTitleText": "个人主页"
+ }
+ },
+ {
+ "path": "pages/TeLogin/Login",
+ "style": {
+ "navigationBarTitleText": "登录页面"
+ }
+ },
+ {
+ "path": "pages/TeLogin/AuLogin",
+ "style": {
+ "navigationBarTitleText": "授权登录页面"
+ }
+ },
+ {
+ "path": "pages/Percenter/Sublayout/problem",
+ "style": {
+ "navigationBarTitleText": "常见问题"
+ }
+ }, {
+ "path": "pages/Percenter/Sublayout/myinfo",
+ "style": {
+ "navigationBarTitleText": "个人信息"
+ }
+ }, {
+ "path": "pages/Percenter/Sublayout/room",
+ "style": {
+ "navigationBarTitleText": "寝室信息"
+ }
+ }, {
+ "path": "pages/Percenter/contact",
+ "style": {
+ "navigationBarTitleText": "联系我们"
+ }
+ },
+ {
+ "path": "pages/register/updatepass",
+ "style": {
+ "navigationBarTitleText": "修改密码"
+ }
+ },
+ {
+ "path": "pages/book",
+ "style": {
+ "navigationBarTitleText": "教材信息"
+ }
+ },
+ {
+ "path": "pages/many",
+ "style": {
+ "navigationBarTitleText": "更多"
+ }
+ },
+ {
+ "path": "pages/School",
+ "style": {
+ "navigationBarTitleText": "学校预览"
+ }
+ },
+ {
+ "path": "pages/major",
+ "style": {
+ "navigationBarTitleText": "专业信息"
+ }
+ },
+ {
+ "path": "pages/Teather",
+ "style": {
+ "navigationBarTitleText": "教师信息"
+ }
+ }, {
+ "path": "pages/register/Register",
+ "style": {
+ "navigationBarTitleText": "教师信息"
+ }
+ }, {
+ "path": "pages/Questionnaires/Questionnaires",
+ "style": {
+ "navigationBarTitleText": "问卷调查"
+ }
+ }, {
+ "path": "pages/Questionnaires/Record",
+ "style": {
+ "navigationBarTitleText": "问卷调查"
+ }
+ }
],
"globalStyle": {
"navigationBarTextStyle": "black",
diff --git a/Fronts/pages/Course/components/Course.vue b/Fronts/pages/Course/components/Course.vue
index 0297500..6fa25cc 100644
--- a/Fronts/pages/Course/components/Course.vue
+++ b/Fronts/pages/Course/components/Course.vue
@@ -1,51 +1,129 @@
-
diff --git a/Fronts/pages/Questionnaires/Record.vue b/Fronts/pages/Questionnaires/Record.vue
new file mode 100644
index 0000000..f855b86
--- /dev/null
+++ b/Fronts/pages/Questionnaires/Record.vue
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
diff --git a/Fronts/pages/Questionnaires/components/Body.vue b/Fronts/pages/Questionnaires/components/Body.vue
new file mode 100644
index 0000000..1931a82
--- /dev/null
+++ b/Fronts/pages/Questionnaires/components/Body.vue
@@ -0,0 +1,47 @@
+
+
+
+ {{item.questionnaireQuestion}}
+
+
+
+
+
+
+
diff --git a/Fronts/pages/Questionnaires/components/Head.vue b/Fronts/pages/Questionnaires/components/Head.vue
new file mode 100644
index 0000000..81a7ca1
--- /dev/null
+++ b/Fronts/pages/Questionnaires/components/Head.vue
@@ -0,0 +1,67 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/Fronts/pages/index/TedentSon/Menu.vue b/Fronts/pages/index/TedentSon/Menu.vue
index 00c3587..3e82c13 100644
--- a/Fronts/pages/index/TedentSon/Menu.vue
+++ b/Fronts/pages/index/TedentSon/Menu.vue
@@ -3,7 +3,7 @@
-
+
diff --git a/Fronts/pages/index/index.vue b/Fronts/pages/index/index.vue
index 0350688..c691ddb 100644
--- a/Fronts/pages/index/index.vue
+++ b/Fronts/pages/index/index.vue
@@ -34,6 +34,72 @@
Menu,
Title,
College
+ },
+ data() {
+ return {
+ islogin: ''
+ }
+ },
+ onLoad() {
+ this.studentNum = wx.getStorageSync('studentnum');
+ this.studentClass = wx.getStorageSync('studentclass');
+ this.StudentName = wx.getStorageSync('myname');
+ this.token = wx.getStorageSync('token');
+ this.openid = wx.getStorageSync('openid');
+ if (this.token || this.openid) {
+ this.islogin = true
+ this.getClass()
+ this.getName()
+ } else {
+ this.islogin = false
+ }
+
+ },
+ methods:{
+ getClass() {
+ uni.request({
+ url: 'http://localhost:5003/student?keyword=' + this.studentNum,
+ method: 'GET',
+ data: {},
+ success: res => {
+ console.log(res)
+ this.Class = res.data.data;
+ console.log(this.Class);
+ this.Class.forEach((item) => {
+ this.classname = item.classInfo.className
+ })
+ console.log(this.classname);
+ uni.setStorage({
+ key: 'studentclass',
+ data: this.classname,
+ });
+ },
+ fail: () => {},
+ complete: () => {}
+ });
+ },
+ getName() {
+ uni.request({
+ url: 'http://localhost:5003/student?keyword=' + this.studentNum,
+ method: 'GET',
+ data: {},
+ success: res => {
+ console.log(res)
+ this.Name = res.data.data;
+ console.log(this.Name);
+ this.Name.forEach((item) => {
+ this.studentname = item.studentInfo.studentName
+ })
+ console.log(this.studentname);
+ uni.setStorage({
+ key: 'myname',
+ data: this.studentname,
+ });
+ },
+ fail: () => {},
+ complete: () => {}
+ });
+ },
}
}
diff --git a/Fronts/pages/results/components/Grades.vue b/Fronts/pages/results/components/Grades.vue
index c16da82..2d27e41 100644
--- a/Fronts/pages/results/components/Grades.vue
+++ b/Fronts/pages/results/components/Grades.vue
@@ -1,8 +1,9 @@
+
+
+
-
-
-
+
搜索内容
@@ -14,7 +15,7 @@
-
+
学科
@@ -22,14 +23,14 @@
学期
-
+
{{item.courseInfo.courseName}}
{{item.scoreInfo.score}}
{{item.termInfo.termName}}
-
+
{{item.courseInfo.courseName}}
{{item.scoreInfo.score}}
@@ -37,7 +38,15 @@
-
+
+
+
+ 学科
+ 成绩
+ 学期
+
+
+
@@ -53,11 +62,26 @@
searchResult: [],
array: ['第一学期', '第二学期', '第三学期', '第四学期', '第五学期', '第六学期'],
index: 0,
- num: "第一学期"
+ num: "第一学期",
+ studentNum: "",
+ Name: "",
+ studentname: "",
+ islogin: ''
+
+ }
+ },
+ onLoad() {
+ this.StudentName = wx.getStorageSync('myname');
+ this.token = wx.getStorageSync('token');
+ this.openid = wx.getStorageSync('openid');
+ if (this.token || this.openid) {
+ this.islogin = true
+ } else {
+ this.islogin = false
}
},
mounted() {
- this.getScoresAll(),
+ this.getScoresAll(),
this.searchAction()
},
methods: {
@@ -68,9 +92,12 @@
console.log(this.num)
},
+
+
getScoresAll() {
+ console.log(this.StudentName);
uni.request({
- url: 'http://localhost:5003/Score',
+ url: 'http://localhost:5003/Score?keyword=' + this.StudentName,
method: 'GET',
data: {},
success: res => {
@@ -85,7 +112,7 @@
searchAction(e) {
const inputValut = e;
this.searchResult = this.result.filter((item) => {
- if (item.subjects.includes(inputValut)) {
+ if (item.courseInfo.courseName.includes(inputValut)) {
return item;
}
})
@@ -95,15 +122,22 @@