From 0912e5a240c43fac3637eee41d158501d19d8a7c Mon Sep 17 00:00:00 2001
From: tangyi <275503107@qq.com>
Date: Fri, 4 Mar 2022 20:25:37 +0800
Subject: [PATCH] =?UTF-8?q?=E5=BF=97=E6=84=BF=E6=B5=8B=E8=AF=84?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
package-lock.json | 59 ++
package.json | 9 +-
src/main.js | 6 +-
src/router/index.js | 11 +-
src/views/home/evaluation/question.vue | 33 +-
src/views/user/feedback/index.vue | 137 ++--
src/views/user/info/index.vue | 150 ++--
src/views/user/report/index.vue | 1047 +++++++++++++++---------
src/views/user/ucenter/index.vue | 150 ++--
9 files changed, 988 insertions(+), 614 deletions(-)
diff --git a/package-lock.json b/package-lock.json
index 62dfb1b..d002cf1 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -10,6 +10,7 @@
"dependencies": {
"axios": "^0.26.0",
"core-js": "^3.6.5",
+ "echarts": "^5.3.0",
"vue": "^2.6.11",
"vue-axios": "^3.4.1",
"vue-router": "^3.2.0"
@@ -5588,6 +5589,20 @@
"safer-buffer": "^2.1.0"
}
},
+ "node_modules/echarts": {
+ "version": "5.3.0",
+ "resolved": "https://registry.npmmirror.com/echarts/-/echarts-5.3.0.tgz",
+ "integrity": "sha512-zENufmwFE6WjM+24tW3xQq4ICqQtI0CGj4bDVDNd3BK3LtaA/5wBp+64ykIyKy3QElz0cieKqSYP4FX9Lv9MwQ==",
+ "dependencies": {
+ "tslib": "2.3.0",
+ "zrender": "5.3.0"
+ }
+ },
+ "node_modules/echarts/node_modules/tslib": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmmirror.com/tslib/-/tslib-2.3.0.tgz",
+ "integrity": "sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg=="
+ },
"node_modules/ee-first": {
"version": "1.1.1",
"resolved": "https://registry.npmmirror.com/ee-first/-/ee-first-1.1.1.tgz",
@@ -14918,6 +14933,19 @@
"resolved": "https://registry.npmmirror.com/yallist/-/yallist-2.1.2.tgz",
"integrity": "sha512-ncTzHV7NvsQZkYe1DW7cbDLm0YpzHmZF5r/iyP3ZnQtMiJ+pjzisCiMNI+Sj+xQF5pXhSHxSB3uDbsBTzY/c2A==",
"dev": true
+ },
+ "node_modules/zrender": {
+ "version": "5.3.0",
+ "resolved": "https://registry.npmmirror.com/zrender/-/zrender-5.3.0.tgz",
+ "integrity": "sha512-Ln2QB5uqI1ftNYMtCRxd+XDq6MOttLgam2tmhKAVA+j0ko47UT+VNlDvKTkqe4K2sJhBvB0EhYNLebqlCTjatQ==",
+ "dependencies": {
+ "tslib": "2.3.0"
+ }
+ },
+ "node_modules/zrender/node_modules/tslib": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmmirror.com/tslib/-/tslib-2.3.0.tgz",
+ "integrity": "sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg=="
}
},
"dependencies": {
@@ -19387,6 +19415,22 @@
"safer-buffer": "^2.1.0"
}
},
+ "echarts": {
+ "version": "5.3.0",
+ "resolved": "https://registry.npmmirror.com/echarts/-/echarts-5.3.0.tgz",
+ "integrity": "sha512-zENufmwFE6WjM+24tW3xQq4ICqQtI0CGj4bDVDNd3BK3LtaA/5wBp+64ykIyKy3QElz0cieKqSYP4FX9Lv9MwQ==",
+ "requires": {
+ "tslib": "2.3.0",
+ "zrender": "5.3.0"
+ },
+ "dependencies": {
+ "tslib": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmmirror.com/tslib/-/tslib-2.3.0.tgz",
+ "integrity": "sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg=="
+ }
+ }
+ },
"ee-first": {
"version": "1.1.1",
"resolved": "https://registry.npmmirror.com/ee-first/-/ee-first-1.1.1.tgz",
@@ -27130,6 +27174,21 @@
"dev": true
}
}
+ },
+ "zrender": {
+ "version": "5.3.0",
+ "resolved": "https://registry.npmmirror.com/zrender/-/zrender-5.3.0.tgz",
+ "integrity": "sha512-Ln2QB5uqI1ftNYMtCRxd+XDq6MOttLgam2tmhKAVA+j0ko47UT+VNlDvKTkqe4K2sJhBvB0EhYNLebqlCTjatQ==",
+ "requires": {
+ "tslib": "2.3.0"
+ },
+ "dependencies": {
+ "tslib": {
+ "version": "2.3.0",
+ "resolved": "https://registry.npmmirror.com/tslib/-/tslib-2.3.0.tgz",
+ "integrity": "sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg=="
+ }
+ }
}
}
}
diff --git a/package.json b/package.json
index 9c4bbc5..9703a3f 100644
--- a/package.json
+++ b/package.json
@@ -10,6 +10,7 @@
"dependencies": {
"axios": "^0.26.0",
"core-js": "^3.6.5",
+ "echarts": "^5.3.0",
"vue": "^2.6.11",
"vue-axios": "^3.4.1",
"vue-router": "^3.2.0"
@@ -37,10 +38,10 @@
"parser": "babel-eslint"
},
"rules": {
- "no-console": "off",
- "no-debugger": "off",
- "no-mixed-spaces-and-tabs": "off"
- }
+ "no-console": "off",
+ "no-debugger": "off",
+ "no-mixed-spaces-and-tabs": "off"
+ }
},
"browserslist": [
"> 1%",
diff --git a/src/main.js b/src/main.js
index 437957d..e3b6a70 100644
--- a/src/main.js
+++ b/src/main.js
@@ -3,6 +3,7 @@ import axios from 'axios'
import VueAxios from 'vue-axios'
import App from './App.vue'
import router from './router'
+
// Vue.config.productionTip = false
Vue.prototype.host = 'https://ypzy.emingren.com'
Vue.prototype.HOME = '/api'
@@ -12,9 +13,8 @@ axios.interceptors.request.use(config => {
if (config.url!="/api/api/user/login-by-Phone"&&config.url!="/api/api/common/send-sms-captcha") {
if (!localStorage.userData) {
- window.alert("请登陆")
- router.replace('/');
- return config
+ router.replace('/login');
+ return config
}else{
config.headers.Authorization = "Bearer "+JSON.parse(localStorage.userData).token
}
diff --git a/src/router/index.js b/src/router/index.js
index 2736e66..6c6dbc1 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -33,6 +33,11 @@ Vue.use(VueRouter)
const routes = [
{
path: '/',
+ name: 'start',
+ component: start
+ },
+ {
+ path: '/login',
name: 'login',
component: login
},
@@ -46,11 +51,7 @@ const routes = [
name: 'verification',
component: verification
},
- {
- path: '/start',
- name: 'start',
- component: start
- },
+
{
path: '/expert',
name: 'expert',
diff --git a/src/views/home/evaluation/question.vue b/src/views/home/evaluation/question.vue
index 968bb6e..e6b6bbe 100644
--- a/src/views/home/evaluation/question.vue
+++ b/src/views/home/evaluation/question.vue
@@ -39,6 +39,7 @@ export default {
return {
isScrollTop: false,
lastquestions: [],
+ stateBtn: true,
num: 0,
optionsData: [],
};
@@ -92,20 +93,24 @@ export default {
},
setQuestionEV(key) {
let that = this;
- this.axios
- .post(this.HOME + "/api/evaluation/answer-question", {
- id: this.lastquestions.list[this.num].id,
- option_key: key,
- })
- .then(function () {
- that.num++;
- if (that.num >= 117) {
- console.log(that.num)
- that.$router.push({
- path: "/ucenter",
- });
- }
- });
+ if (this.stateBtn) {
+ this.stateBtn = false;
+ this.axios
+ .post(this.HOME + "/api/evaluation/answer-question", {
+ id: this.lastquestions.list[this.num].id,
+ option_key: key,
+ })
+ .then(function () {
+ that.num++;
+ that.stateBtn = true;
+ if (that.num >= 117) {
+ console.log(that.num);
+ that.$router.push({
+ path: "/ucenter",
+ });
+ }
+ });
+ }
},
destroyed() {
window.removeEventListener("scroll", this.eventScrollTop);
diff --git a/src/views/user/feedback/index.vue b/src/views/user/feedback/index.vue
index add103e..4af4240 100644
--- a/src/views/user/feedback/index.vue
+++ b/src/views/user/feedback/index.vue
@@ -1,69 +1,84 @@
-
+
+
+ {{item.A.factor_name}} {{item.B.factor_name}}
-
-
+
+
-
-
- (10)
-
+
+
+
+ (10)
+
-
-
- (10)
-
-
-
- (10)
-
-
-
- (10)
-
+
+ (10)
+
-
-
- (10)
-
-
-
- (10)
-
-
-
- (10)
-
+
+ (10)
+
-
-
- (10)
-
-
-
- (10)
-
-
-
{{userData.nick_name}}
+{{ userData.nick_name }}
未填写个人信息
手机号{{userData.mobile}}
++ 手机号{{ userData.mobile }} +
手机号{{userData.mobile}}
++ 手机号{{ userData.mobile }} +
职业与专业定位整合测试(融合版)
- 2022-05-12 13:28 -职业与专业定位整合测试(融合版)
- 2022-05-12 13:28 -霍兰德职业兴趣测评(完整版)
- 2022-05-12 13:28 -DISC性格测评
- 2022-05-12 13:28 -职业与专业定位整合测试(融合版)
- 2022-05-12 13:28 -职业与专业定位整合测试(融合版)
- 2022-05-12 13:28 -霍兰德职业兴趣测评(完整版)
- 2022-05-12 13:28 -DISC性格测评
- 2022-05-12 13:28 +{{item.title}}
+ {{item.done_at}}