正在显示
30 个修改的文件
包含
4658 行增加
和
22 行删除
@@ -6,7 +6,6 @@ const path = require('path') | @@ -6,7 +6,6 @@ const path = require('path') | ||
6 | 6 | ||
7 | module.exports = { | 7 | module.exports = { |
8 | dev: { | 8 | dev: { |
9 | - | ||
10 | // Paths | 9 | // Paths |
11 | assetsSubDirectory: 'static', | 10 | assetsSubDirectory: 'static', |
12 | assetsPublicPath: '/', | 11 | assetsPublicPath: '/', |
@@ -26,8 +25,6 @@ module.exports = { | @@ -26,8 +25,6 @@ module.exports = { | ||
26 | errorOverlay: true, | 25 | errorOverlay: true, |
27 | notifyOnErrors: true, | 26 | notifyOnErrors: true, |
28 | poll: false, // https://webpack.js.org/configuration/dev-server/#devserver-watchoptions- | 27 | poll: false, // https://webpack.js.org/configuration/dev-server/#devserver-watchoptions- |
29 | - | ||
30 | - | ||
31 | /** | 28 | /** |
32 | * Source Maps | 29 | * Source Maps |
33 | */ | 30 | */ |
@@ -39,7 +36,6 @@ module.exports = { | @@ -39,7 +36,6 @@ module.exports = { | ||
39 | // set this to false - it *may* help | 36 | // set this to false - it *may* help |
40 | // https://vue-loader.vuejs.org/en/options.html#cachebusting | 37 | // https://vue-loader.vuejs.org/en/options.html#cachebusting |
41 | cacheBusting: true, | 38 | cacheBusting: true, |
42 | - | ||
43 | cssSourceMap: true | 39 | cssSourceMap: true |
44 | }, | 40 | }, |
45 | 41 |
@@ -475,6 +475,12 @@ input { | @@ -475,6 +475,12 @@ input { | ||
475 | .form_position .el-input__inner { | 475 | .form_position .el-input__inner { |
476 | padding-left: 45px; | 476 | padding-left: 45px; |
477 | } | 477 | } |
478 | +.el-select{ | ||
479 | + width:100%; | ||
480 | +} | ||
481 | +.form_position el-select { | ||
482 | + padding-left: 45px; | ||
483 | +} | ||
478 | .el-form-item { | 484 | .el-form-item { |
479 | margin-bottom: 36px !important; | 485 | margin-bottom: 36px !important; |
480 | } | 486 | } |
@@ -23,11 +23,12 @@ let LoadingInstance, | @@ -23,11 +23,12 @@ let LoadingInstance, | ||
23 | // 环境设置 | 23 | // 环境设置 |
24 | // 环境的切换 | 24 | // 环境的切换 |
25 | if (process.env.NODE_ENV == "development") { | 25 | if (process.env.NODE_ENV == "development") { |
26 | - axios.defaults.baseURL = "http://cp.zgcareer.com"; | 26 | + // axios.defaults.baseURL = "http://cp.zgcareer.com"; |
27 | + axios.defaults.baseURL = "http://test.zgcareer.com" | ||
27 | } else if (process.env.NODE_ENV == "debug") { | 28 | } else if (process.env.NODE_ENV == "debug") { |
28 | - axios.defaults.baseURL = "http://cp.zgcareer.com"; | 29 | + axios.defaults.baseURL = "http://test.zgcareer.com" |
29 | } else if (process.env.NODE_ENV == "production") { | 30 | } else if (process.env.NODE_ENV == "production") { |
30 | - axios.defaults.baseURL = "http://cp.zgcareer.com"; | 31 | + axios.defaults.baseURL = "http://test.zgcareer.com" |
31 | } | 32 | } |
32 | axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded'; | 33 | axios.defaults.headers.post['Content-Type'] = 'application/x-www-form-urlencoded'; |
33 | // axios.defaults.headers.common['token'] = localStorage.getItem("token"); | 34 | // axios.defaults.headers.common['token'] = localStorage.getItem("token"); |
@@ -206,7 +207,8 @@ export function uploadFile(Url, data) { | @@ -206,7 +207,8 @@ export function uploadFile(Url, data) { | ||
206 | return new Promise((resolve, reject) => { | 207 | return new Promise((resolve, reject) => { |
207 | let instance = axios.create({ | 208 | let instance = axios.create({ |
208 | // http://cp.zgcareer.com | 209 | // http://cp.zgcareer.com |
209 | - baseURL: "http://cp.zgcareer.com", | 210 | + // baseURL: "http://cp.zgcareer.com", |
211 | + baseURL: "http://test.zgcareer.com", | ||
210 | headers: { | 212 | headers: { |
211 | "Content-Type": "multipart/form-data" | 213 | "Content-Type": "multipart/form-data" |
212 | } | 214 | } |
@@ -21,6 +21,44 @@ | @@ -21,6 +21,44 @@ | ||
21 | <img src="@/assets/img/6.png" alt /> | 21 | <img src="@/assets/img/6.png" alt /> |
22 | </div> | 22 | </div> |
23 | </el-form-item> | 23 | </el-form-item> |
24 | + | ||
25 | + <el-form-item class="form_position"> | ||
26 | + <el-select v-model="value" placeholder="请选择学校" @change="selectschool(value)"> | ||
27 | + <el-option | ||
28 | + v-for="item in options" | ||
29 | + :key="item.value" | ||
30 | + :label="item.nickname" | ||
31 | + :value="item.username"> | ||
32 | + </el-option> | ||
33 | + </el-select> | ||
34 | + | ||
35 | + <!-- <el-input v-model="ruleForm.userName" placeholder="请输入手机/学号/邮箱" @change="focued"></el-input> --> | ||
36 | + <div class="input_tip" v-show="isName">请选择学校</div> | ||
37 | + <div class="img_box"> | ||
38 | + <img src="@/assets/img/6.png" alt /> | ||
39 | + </div> | ||
40 | + </el-form-item> | ||
41 | + | ||
42 | + | ||
43 | + <!-- <el-form class="ms-content"> | ||
44 | + <el-form-item class="form_position"> | ||
45 | + <el-select v-model="value" placeholder="请选择"> | ||
46 | + <el-option | ||
47 | + v-for="item in options" | ||
48 | + :key="item.value" | ||
49 | + :label="item.label" | ||
50 | + :value="item.value"> | ||
51 | + </el-option> | ||
52 | + </el-select> | ||
53 | + <div class="img_box"> | ||
54 | + <img src="@/assets/img/6.png" alt /> | ||
55 | + </div> | ||
56 | + </el-form-item> | ||
57 | + </el-form> | ||
58 | + --> | ||
59 | + | ||
60 | + | ||
61 | + | ||
24 | <el-form-item class="form_position"> | 62 | <el-form-item class="form_position"> |
25 | <el-input | 63 | <el-input |
26 | placeholder="请输入密码" | 64 | placeholder="请输入密码" |
@@ -52,6 +90,23 @@ | @@ -52,6 +90,23 @@ | ||
52 | <img src="@/assets/img/6.png" alt /> | 90 | <img src="@/assets/img/6.png" alt /> |
53 | </div> | 91 | </div> |
54 | </el-form-item> | 92 | </el-form-item> |
93 | + | ||
94 | + <el-form-item class="form_position"> | ||
95 | + <el-select v-model="value" placeholder="请选择学校" @change="selectschool(value)"> | ||
96 | + <el-option | ||
97 | + v-for="item in options" | ||
98 | + :key="item.value" | ||
99 | + :label="item.nickname" | ||
100 | + :value="item.username"> | ||
101 | + </el-option> | ||
102 | + </el-select> | ||
103 | + | ||
104 | + <!-- <el-input v-model="ruleForm.userName" placeholder="请输入手机/学号/邮箱" @change="focued"></el-input> --> | ||
105 | + <div class="input_tip" v-show="isName">请选择学校</div> | ||
106 | + <div class="img_box"> | ||
107 | + <img src="@/assets/img/6.png" alt /> | ||
108 | + </div> | ||
109 | + </el-form-item> | ||
55 | <el-form-item class="form_position"> | 110 | <el-form-item class="form_position"> |
56 | <el-input | 111 | <el-input |
57 | placeholder="请输入密码" | 112 | placeholder="请输入密码" |
@@ -84,6 +139,22 @@ | @@ -84,6 +139,22 @@ | ||
84 | </div> | 139 | </div> |
85 | </el-form-item> | 140 | </el-form-item> |
86 | <el-form-item class="form_position"> | 141 | <el-form-item class="form_position"> |
142 | + <el-select v-model="value" placeholder="请选择学校" @change="selectschool(value)"> | ||
143 | + <el-option | ||
144 | + v-for="item in options" | ||
145 | + :key="item.value" | ||
146 | + :label="item.nickname" | ||
147 | + :value="item.username"> | ||
148 | + </el-option> | ||
149 | + </el-select> | ||
150 | + | ||
151 | + <!-- <el-input v-model="ruleForm.userName" placeholder="请输入手机/学号/邮箱" @change="focued"></el-input> --> | ||
152 | + <div class="input_tip" v-show="isName">请选择学校</div> | ||
153 | + <div class="img_box"> | ||
154 | + <img src="@/assets/img/6.png" alt /> | ||
155 | + </div> | ||
156 | + </el-form-item> | ||
157 | + <el-form-item class="form_position"> | ||
87 | <el-input | 158 | <el-input |
88 | placeholder="请输入密码" | 159 | placeholder="请输入密码" |
89 | type="password" | 160 | type="password" |
@@ -149,6 +220,7 @@ export default { | @@ -149,6 +220,7 @@ export default { | ||
149 | message: "账号不能为空", | 220 | message: "账号不能为空", |
150 | trigger: "blur" | 221 | trigger: "blur" |
151 | } | 222 | } |
223 | + | ||
152 | ], | 224 | ], |
153 | password: [ | 225 | password: [ |
154 | { | 226 | { |
@@ -159,21 +231,75 @@ export default { | @@ -159,21 +231,75 @@ export default { | ||
159 | ] | 231 | ] |
160 | }, | 232 | }, |
161 | schoolId: "", | 233 | schoolId: "", |
162 | - pwdType: "" | 234 | + pwdType: "", |
235 | + options: [{ | ||
236 | + value: '选项1', | ||
237 | + label: '黄金糕' | ||
238 | + }, { | ||
239 | + value: '选项2', | ||
240 | + label: '双皮奶' | ||
241 | + }, { | ||
242 | + value: '选项3', | ||
243 | + label: '蚵仔煎' | ||
244 | + }, { | ||
245 | + value: '选项4', | ||
246 | + label: '龙须面' | ||
247 | + }, { | ||
248 | + value: '选项5', | ||
249 | + label: '北京烤鸭' | ||
250 | + }], | ||
251 | + value: '', | ||
252 | + school_count:'', | ||
253 | + school_names:'' | ||
254 | + | ||
163 | }; | 255 | }; |
164 | }, | 256 | }, |
165 | methods: { | 257 | methods: { |
166 | handleClick(tab, event) { | 258 | handleClick(tab, event) { |
167 | // console.log(tab, event); | 259 | // console.log(tab, event); |
168 | }, | 260 | }, |
261 | + // 获取登录账号对应的学校 | ||
262 | + getschoolcode(){ | ||
263 | + let type = ""; | ||
264 | + if (this.activeName == "first") { | ||
265 | + // 学生 | ||
266 | + type = 1; | ||
267 | + } else if (this.activeName == "second") { | ||
268 | + // 老师 | ||
269 | + type = 3; | ||
270 | + } else if (this.activeName == "third") { | ||
271 | + // 家长 | ||
272 | + type = 2; | ||
273 | + } | ||
274 | + let url = "/api/common/login_school"; | ||
275 | + let params = { | ||
276 | + account: this.ruleForm.userName, | ||
277 | + type:type | ||
278 | + }; | ||
279 | + post(url, params).then(res => { | ||
280 | + console.log(res,9999999) | ||
281 | + this.school_count=res.school_count; | ||
282 | + // if(res.school_count=1){ | ||
283 | + // this.value=res.school_names[0].username | ||
284 | + // } | ||
285 | + this.options=res.school_names | ||
286 | + }); | ||
287 | + }, | ||
169 | // 账号判断 | 288 | // 账号判断 |
170 | focued: function() { | 289 | focued: function() { |
290 | + | ||
171 | if (!this.ruleForm.userName) { | 291 | if (!this.ruleForm.userName) { |
172 | this.isName = true; | 292 | this.isName = true; |
293 | + this.getschoolcode(); | ||
173 | } else { | 294 | } else { |
295 | + this.getschoolcode() | ||
174 | this.isName = false; | 296 | this.isName = false; |
175 | } | 297 | } |
176 | }, | 298 | }, |
299 | + // 学校选择判断 | ||
300 | + selectschool(value){ | ||
301 | + console.log(8888,value) | ||
302 | + }, | ||
177 | // 密码 | 303 | // 密码 |
178 | focued2: function() { | 304 | focued2: function() { |
179 | if (!this.ruleForm.password) { | 305 | if (!this.ruleForm.password) { |
@@ -202,9 +328,11 @@ export default { | @@ -202,9 +328,11 @@ export default { | ||
202 | }, | 328 | }, |
203 | // 登录 | 329 | // 登录 |
204 | submitForm(formName) { | 330 | submitForm(formName) { |
331 | + // this.$router.replace({ path: "/Index",query:{active:0} }); | ||
205 | localStorage.removeItem("token"); | 332 | localStorage.removeItem("token"); |
206 | let that = this; | 333 | let that = this; |
207 | this.$refs[formName].validate(valid => { | 334 | this.$refs[formName].validate(valid => { |
335 | + console.log(valid) | ||
208 | if (valid) { | 336 | if (valid) { |
209 | let account = that.ruleForm.userName; | 337 | let account = that.ruleForm.userName; |
210 | let password = that.ruleForm.password; | 338 | let password = that.ruleForm.password; |
@@ -223,7 +351,7 @@ export default { | @@ -223,7 +351,7 @@ export default { | ||
223 | account: account, | 351 | account: account, |
224 | password: password, | 352 | password: password, |
225 | type: type, | 353 | type: type, |
226 | - schoolId: this.schoolId | 354 | + schoolId: this.value |
227 | }; | 355 | }; |
228 | let url = "/api/common/login"; | 356 | let url = "/api/common/login"; |
229 | post(url, params).then(res => { | 357 | post(url, params).then(res => { |
@@ -9,15 +9,15 @@ | @@ -9,15 +9,15 @@ | ||
9 | <!-- 导航栏 --> | 9 | <!-- 导航栏 --> |
10 | <div class="nav"> | 10 | <div class="nav"> |
11 | <ul class="nav_ul layout align_center justify" v-show="groupId == 1 || groupId == 2"> | 11 | <ul class="nav_ul layout align_center justify" v-show="groupId == 1 || groupId == 2"> |
12 | - <li class="nav_ul_li" :class="{nav_border:num == 0}" @click="change(0)">首页</li> | ||
13 | - <li class="nav_ul_li" :class="{nav_border:num == 1}" @click="change(1)">生涯测评</li> | ||
14 | - <li | 12 | + <li class="nav_ul_li" :class="{nav_border:num == 0}" @click="change(0)" v-if="oneshow">首页</li> |
13 | + <li class="nav_ul_li" :class="{nav_border:num == 1}" @click="change(1)" v-if="twoshow">生涯测评</li> | ||
14 | + <li v-if="threeshow" | ||
15 | class="nav_ul_li" | 15 | class="nav_ul_li" |
16 | :class="{nav_border:num == 2}" | 16 | :class="{nav_border:num == 2}" |
17 | @click="change(2)" | 17 | @click="change(2)" |
18 | v-show="groupNumber == 1||groupNumber == ''" | 18 | v-show="groupNumber == 1||groupNumber == ''" |
19 | >选课建议</li> | 19 | >选课建议</li> |
20 | - <li | 20 | + <li v-if="fourshow" |
21 | class="nav_ul_li" | 21 | class="nav_ul_li" |
22 | :class="{nav_border:num == 3}" | 22 | :class="{nav_border:num == 3}" |
23 | @click="change(3)" | 23 | @click="change(3)" |
@@ -36,6 +36,7 @@ | @@ -36,6 +36,7 @@ | ||
36 | </ol> | 36 | </ol> |
37 | </li> | 37 | </li> |
38 | <li | 38 | <li |
39 | + v-if="fiveshow" | ||
39 | class="nav_ul_li" | 40 | class="nav_ul_li" |
40 | :class="{nav_border:num == 4}" | 41 | :class="{nav_border:num == 4}" |
41 | @click="change(4)" | 42 | @click="change(4)" |
@@ -55,10 +56,10 @@ | @@ -55,10 +56,10 @@ | ||
55 | </li> | 56 | </li> |
56 | </ul> | 57 | </ul> |
57 | <ul class="nav_ul layout align_center justify" v-show="groupId == 3"> | 58 | <ul class="nav_ul layout align_center justify" v-show="groupId == 3"> |
58 | - <li class="nav_ul_li" :class="{nav_border:num == 0}" @click="change(0)">首页</li> | ||
59 | - <li class="nav_ul_li" :class="{nav_border:num == 1}" @click="change(1)">学生测评</li> | ||
60 | - <li class="nav_ul_li" :class="{nav_border:num == 2}" @click="change(2)">学生列表</li> | ||
61 | - <li | 59 | + <li class="nav_ul_li" :class="{nav_border:num == 0}" @click="change(0)" v-if="oneshow">首页</li> |
60 | + <li class="nav_ul_li" :class="{nav_border:num == 1}" @click="change(1)" v-if="twoshow">学生测评</li> | ||
61 | + <li class="nav_ul_li" :class="{nav_border:num == 2}" @click="change(2)" v-if="threeshow">学生列表</li> | ||
62 | + <li v-if="fourshow" | ||
62 | class="nav_ul_li" | 63 | class="nav_ul_li" |
63 | :class="{nav_border:num == 3}" | 64 | :class="{nav_border:num == 3}" |
64 | @click="change(3)" | 65 | @click="change(3)" |
@@ -76,7 +77,7 @@ | @@ -76,7 +77,7 @@ | ||
76 | >{{item}}</li> | 77 | >{{item}}</li> |
77 | </ol> | 78 | </ol> |
78 | </li> | 79 | </li> |
79 | - <li | 80 | + <li v-if="fiveshow" |
80 | class="nav_ul_li" | 81 | class="nav_ul_li" |
81 | :class="{nav_border:num == 4}" | 82 | :class="{nav_border:num == 4}" |
82 | @click="change(4)" | 83 | @click="change(4)" |
@@ -135,11 +136,49 @@ export default { | @@ -135,11 +136,49 @@ export default { | ||
135 | groupId: "", | 136 | groupId: "", |
136 | groupNumber: "", | 137 | groupNumber: "", |
137 | isWisdom: -1, | 138 | isWisdom: -1, |
138 | - isCareer: -1 | 139 | + isCareer: -1, |
140 | + rule_ids:[], | ||
141 | + oneshow:false, | ||
142 | + twoshow:false, | ||
143 | + threeshow:false, | ||
144 | + fourshow:false, | ||
145 | + fiveshow:false | ||
139 | }; | 146 | }; |
140 | }, | 147 | }, |
141 | methods: { | 148 | methods: { |
142 | // 跳转 改变颜色 | 149 | // 跳转 改变颜色 |
150 | + // 获取顶部菜单 | ||
151 | + getTopmenu(){ | ||
152 | + let that=this; | ||
153 | + let url = "/api/common/nav_rules/"; | ||
154 | + post(url).then(res => { | ||
155 | + console.log('顶部菜单',res) | ||
156 | + that.rule_ids=res.rule_ids; | ||
157 | + | ||
158 | + | ||
159 | + if(that.rule_ids.indexOf("1")!=-1){ | ||
160 | + this.oneshow=true; | ||
161 | + } | ||
162 | + | ||
163 | + if(that.rule_ids.indexOf("2")!=-1){ | ||
164 | + this.twoshow=true | ||
165 | + } | ||
166 | + if(that.rule_ids.indexOf("3")!=-1){ | ||
167 | + console.log(334) | ||
168 | + this.threeshow=true | ||
169 | + } | ||
170 | + | ||
171 | + if(that.rule_ids.indexOf("4")!=-1){ | ||
172 | + this.fourshow=true | ||
173 | + } | ||
174 | + | ||
175 | + if(that.rule_ids.indexOf("5")!=-1){ | ||
176 | + this.fiveshow=true; | ||
177 | + } | ||
178 | + | ||
179 | + | ||
180 | + }); | ||
181 | + }, | ||
143 | change: function(index) { | 182 | change: function(index) { |
144 | // localStorage.removeItem("wisdomIndex"); | 183 | // localStorage.removeItem("wisdomIndex"); |
145 | // localStorage.removeItem("careerIndex"); | 184 | // localStorage.removeItem("careerIndex"); |
@@ -248,6 +287,12 @@ export default { | @@ -248,6 +287,12 @@ export default { | ||
248 | this.num = this.active; | 287 | this.num = this.active; |
249 | } | 288 | } |
250 | this.groupId = localStorage.getItem("groupId"); | 289 | this.groupId = localStorage.getItem("groupId"); |
290 | + let token=localStorage.getItem("token"); | ||
291 | + | ||
292 | + if(token!=null){ | ||
293 | + this.getTopmenu() | ||
294 | + } | ||
295 | + | ||
251 | }, | 296 | }, |
252 | created() { | 297 | created() { |
253 | this.groupNumber = localStorage.getItem("groupNumber"); | 298 | this.groupNumber = localStorage.getItem("groupNumber"); |
1 | +<template> | ||
2 | + <!-- 语文部分具体问题 --> | ||
3 | + <div class="cn_right_box clearfix"> | ||
4 | + <!-- 标题及时间 --> | ||
5 | + <div class="cn_exam_title layout align_center justify"> | ||
6 | + <h2>第一部分</h2> | ||
7 | + <div> | ||
8 | + 剩余时间: | ||
9 | + <p class="cn_title_time">{{ansTime | seconds}}</p> | ||
10 | + </div> | ||
11 | + </div> | ||
12 | + <!-- 说明 --> | ||
13 | + <div class="cn_exam_exp cn_det_exp">(时间截止自动提交本部分作答,截止前未记录任何答案,禁止提前离开本页面。)</div> | ||
14 | + <!-- 具体问题 --> | ||
15 | + <div | ||
16 | + class="cn_det_quest clearfix" | ||
17 | + v-for="item in questionList" | ||
18 | + :key="item.index" | ||
19 | + :id="item.id" | ||
20 | + > | ||
21 | + <div class="det_quest_box layout flex_diection align_center"> | ||
22 | + <!-- 问题 --> | ||
23 | + <div class="det_box_question layout">{{item.id}}.{{item.title}}</div> | ||
24 | + <!-- 答案 --> | ||
25 | + <div class="det_box_answer"> | ||
26 | + <div | ||
27 | + class="det_answer_choice layout flex_row align_center" | ||
28 | + v-for="ansItems in item.answer" | ||
29 | + :key="ansItems.index" | ||
30 | + @click="choiced(ansItems,item.id)" | ||
31 | + > | ||
32 | + <div class="det_answer_circle"> | ||
33 | + <img :src="ansItems.choiced?src1:src2" alt class="det_ans_pic" /> | ||
34 | + </div> | ||
35 | + <div> | ||
36 | + <i class="order_num">{{ansItems.order}}</i> | ||
37 | + {{ansItems.ans}} | ||
38 | + </div> | ||
39 | + </div> | ||
40 | + </div> | ||
41 | + </div> | ||
42 | + </div> | ||
43 | + | ||
44 | + <!-- 阅读完毕开始答题 --> | ||
45 | + <div class="currency_btn" @click="nextPage">{{btnValue}}</div> | ||
46 | + <!-- 结束提示弹窗 --> | ||
47 | + <OverDialog :overVisible.sync="overVisible" v-if="overVisible" :typeId="typeId"></OverDialog> | ||
48 | + </div> | ||
49 | +</template> | ||
50 | +<script> | ||
51 | +import OverDialog from "../OverDialog"; | ||
52 | +import { post } from "@/api/http"; | ||
53 | +import { Notification } from "element-ui"; | ||
54 | +let answer1 = {}; | ||
55 | +let ansTimer = null; | ||
56 | +export default { | ||
57 | + data() { | ||
58 | + return { | ||
59 | + btnValue: "停!等候指示,才可以翻页再作答", | ||
60 | + typeId:'', | ||
61 | + overVisible: false, | ||
62 | + src1: require("@/assets/img/15.png"), | ||
63 | + src2: require("@/assets/img/9.png"), | ||
64 | + // 答题的时间 | ||
65 | + ansTime: 0, | ||
66 | + // 数据 | ||
67 | + questionList: [], | ||
68 | + // 共几页 | ||
69 | + pageNum: "", | ||
70 | + // 每页数量 | ||
71 | + pageSize: 10, | ||
72 | + // 默认显示第一页 | ||
73 | + currentPage: 1, | ||
74 | + // 当前显示的数据 | ||
75 | + // questionList: [] | ||
76 | + }; | ||
77 | + }, | ||
78 | + methods: { | ||
79 | + // 选择答案 | ||
80 | + choiced: function(item, num) { | ||
81 | + let that = this; | ||
82 | + for (let i in this.questionList) { | ||
83 | + for (let j in this.questionList[i].answer) { | ||
84 | + if (item.evaId == this.questionList[i].answer[j].evaId) { | ||
85 | + that.$set(that.questionList[i].answer[j], "choiced", false); | ||
86 | + if (item.index == this.questionList[i].answer[j].index) { | ||
87 | + that.$set(that.questionList[i].answer[j], "choiced", true); | ||
88 | + } | ||
89 | + } | ||
90 | + } | ||
91 | + this.$forceUpdate(); | ||
92 | + } | ||
93 | + answer1[num] = item.order; | ||
94 | + localStorage.setItem("cnAnswer", JSON.stringify(answer1)); | ||
95 | + }, | ||
96 | + // 测评题目 | ||
97 | + getTestPluralisticList() { | ||
98 | + clearInterval(ansTimer); | ||
99 | + let begin = (this.currentPage - 1) * this.pageSize; | ||
100 | + let end = this.currentPage * this.pageSize; | ||
101 | + let url = "/api/primary_pluralistic/getTestPluralisticList/"; | ||
102 | + let params = { | ||
103 | + id: localStorage.getItem("evaluteId"), | ||
104 | + type: localStorage.getItem("typeId") | ||
105 | + }; | ||
106 | + let that = this; | ||
107 | + post(url, params).then(res => { | ||
108 | + this.questionList = res.list; | ||
109 | + // 答案 | ||
110 | + for (var obj of this.questionList) { | ||
111 | + if (that.currentPage == 1) { | ||
112 | + answer1[obj.id] = ""; | ||
113 | + } | ||
114 | + | ||
115 | + let arr = []; | ||
116 | + arr.push( | ||
117 | + { | ||
118 | + evaId: obj.id, | ||
119 | + index: obj.id + "-1", | ||
120 | + order: "A", | ||
121 | + ans: obj.option_a, | ||
122 | + choiced: false | ||
123 | + }, | ||
124 | + { | ||
125 | + evaId: obj.id, | ||
126 | + index: obj.id + "-2", | ||
127 | + order: "B", | ||
128 | + ans: obj.option_b, | ||
129 | + choiced: false | ||
130 | + }, | ||
131 | + { | ||
132 | + evaId: obj.id, | ||
133 | + index: obj.id + "-3", | ||
134 | + order: "C", | ||
135 | + ans: obj.option_c, | ||
136 | + choiced: false | ||
137 | + }, | ||
138 | + { | ||
139 | + evaId: obj.id, | ||
140 | + index: obj.id + "-4", | ||
141 | + order: "D", | ||
142 | + ans: obj.option_d, | ||
143 | + choiced: false | ||
144 | + } | ||
145 | + ); | ||
146 | + obj.answer = arr; | ||
147 | + }; | ||
148 | + let answered = JSON.parse(localStorage.getItem("cnAnswer")); | ||
149 | + if(answered){ | ||
150 | + answer1 = answered; | ||
151 | + }; | ||
152 | + // 缓存的数据 | ||
153 | + for (let i in answered) { | ||
154 | + // 所有数据 | ||
155 | + for (let obj of this.questionList) { | ||
156 | + if (i == obj.id) { | ||
157 | + for (let k in obj.answer) { | ||
158 | + if (answered[i] == obj.answer[k].order) { | ||
159 | + obj.answer[k].choiced = true; | ||
160 | + } | ||
161 | + } | ||
162 | + } | ||
163 | + } | ||
164 | + }; | ||
165 | + // 总页数 | ||
166 | + this.pageNum = Math.ceil(this.questionList.length / this.pageSize); | ||
167 | + // 当前显示的数据 | ||
168 | + // this.questionList = this.questionList.slice(begin, end); | ||
169 | + // 答题时间 | ||
170 | + this.ansTime = res.time; | ||
171 | + ansTimer = setInterval(function() { | ||
172 | + res.time--; | ||
173 | + that.ansTime = res.time; | ||
174 | + if (that.ansTime == 0) { | ||
175 | + clearInterval(ansTimer); | ||
176 | + ansTimer = null; | ||
177 | + that.setTestPluralistic(); | ||
178 | + } | ||
179 | + }, 1000); | ||
180 | + }); | ||
181 | + }, | ||
182 | + | ||
183 | + nextPage() { | ||
184 | + // 所有问题 | ||
185 | + let allArr = []; | ||
186 | + // 已选择问题 | ||
187 | + let ansArr = []; | ||
188 | + for (let obj of this.questionList) { | ||
189 | + allArr.push(obj.id); | ||
190 | + } | ||
191 | + // 已选择问题 | ||
192 | + for (let i in answer1) { | ||
193 | + if (answer1[i]) { | ||
194 | + ansArr.push(i / 1); | ||
195 | + } | ||
196 | + } | ||
197 | + for (var i = 0; i < allArr.length; i++) { | ||
198 | + if (ansArr.indexOf(allArr[i]) == -1) { | ||
199 | + allArr = allArr[i]; | ||
200 | + } | ||
201 | + } | ||
202 | + if (allArr.length > 3) { | ||
203 | + clearInterval(ansTimer); | ||
204 | + this.setTestPluralistic(); | ||
205 | + // if (this.currentPage == this.pageNum) { | ||
206 | + // clearInterval(ansTimer); | ||
207 | + // ansTimer = null; | ||
208 | + // this.setTestPluralistic(); | ||
209 | + // return ""; | ||
210 | + // } else { | ||
211 | + // this.currentPage++; | ||
212 | + // this.getTestPluralisticList(); | ||
213 | + // document.body.scrollTop = 0; | ||
214 | + // document.documentElement.scrollTop = 0; | ||
215 | + // } | ||
216 | + } else { | ||
217 | + Notification.info({ | ||
218 | + title: "提示", | ||
219 | + message: "请全部选择", | ||
220 | + duration: 1500 | ||
221 | + }); | ||
222 | + this.goTop(allArr); | ||
223 | + } | ||
224 | + }, | ||
225 | + // 未选择跳转 | ||
226 | + goTop(id) { | ||
227 | + document.getElementById(id).scrollIntoView(); | ||
228 | + }, | ||
229 | + // 提交测评 | ||
230 | + setTestPluralistic() { | ||
231 | + let url = "/api/primary_pluralistic/setTestPluralistic/"; | ||
232 | + let params = { | ||
233 | + id: localStorage.getItem("evaluteId"), | ||
234 | + type: localStorage.getItem("typeId"), | ||
235 | + data: JSON.stringify(answer1) | ||
236 | + }; | ||
237 | + post(url, params).then(res => { | ||
238 | + localStorage.setItem('is_complete',res.is_complete) | ||
239 | + // 题目类型 | ||
240 | + localStorage.setItem("typeId", 2); | ||
241 | + this.btnValue = "停!等候指示,才可以翻页再作答"; | ||
242 | + this.overVisible = true; | ||
243 | + this.typeId = 1; | ||
244 | + }); | ||
245 | + } | ||
246 | + }, | ||
247 | + components: { | ||
248 | + OverDialog | ||
249 | + }, | ||
250 | + mounted() { | ||
251 | + this.getTestPluralisticList(); | ||
252 | + }, | ||
253 | +}; | ||
254 | +</script> | ||
255 | +<style scoped> | ||
256 | +@import "../../../../../style/exampleRight.css"; | ||
257 | +@import "../../../../../style/detailExample.css"; | ||
258 | +</style> |
1 | +<template> | ||
2 | + <!-- 语文辞意推理 --> | ||
3 | + <div class="cn_example clearfix"> | ||
4 | + <!-- 左侧 说明--> | ||
5 | + <div class="cn_exam_l clearfix"> | ||
6 | + <div class="cn_left_box"> | ||
7 | + <!-- 词意推理 --> | ||
8 | + <div class="cn_box_title"> | ||
9 | + <h1> | ||
10 | + 第一部分 | ||
11 | + <br> | ||
12 | + 语文辞意推理 | ||
13 | + </h1> | ||
14 | + </div> | ||
15 | + <!-- 测评说明 --> | ||
16 | + <!-- 说明的内容 --> | ||
17 | + <!-- <div class="cn_box_explain clearfix"> | ||
18 | + <h2>测评说明:</h2> | ||
19 | + <div class="cn_exp_step" v-for="item in stepList" :key="item.index"> | ||
20 | + <h3>{{item.step}}</h3> | ||
21 | + | ||
22 | + <p class="cn_step_exp">{{item.content}}</p> | ||
23 | + <p class="cn_step_exp">{{item.content2}}</p> | ||
24 | + </div> | ||
25 | + </div> --> | ||
26 | + <!-- 图片 --> | ||
27 | + <div class="cn_box_p" style="margin-top:181px"> | ||
28 | + <img src="@/assets/img/13.png" alt> | ||
29 | + </div> | ||
30 | + </div> | ||
31 | + </div> | ||
32 | + <!-- 右侧 题目 --> | ||
33 | + <div class="cn_exam_r"> | ||
34 | + <router-view></router-view> | ||
35 | + </div> | ||
36 | + </div> | ||
37 | +</template> | ||
38 | +<script> | ||
39 | +export default { | ||
40 | + data() { | ||
41 | + return { | ||
42 | + stepList: [ | ||
43 | + { | ||
44 | + index: 1, | ||
45 | + step: "Step1:", | ||
46 | + content: | ||
47 | + "每个分测验都有说明与例题,阅读完后请按下【开始作答】进行该分测验,时间随即开始倒数。" | ||
48 | + }, | ||
49 | + { | ||
50 | + index: 2, | ||
51 | + step: "Step2:", | ||
52 | + content: "作答时若遇到不会的题目,可先跳往下一题作答;", | ||
53 | + content2: "开始作答进行该分测验,时间随即开始倒数。" | ||
54 | + } | ||
55 | + ] | ||
56 | + }; | ||
57 | + }, | ||
58 | +}; | ||
59 | +</script> | ||
60 | +<style scoped> | ||
61 | +@import '../../../../../style/example.css' | ||
62 | +</style> |
1 | +<template> | ||
2 | + <div class="cn_right_box clearfix"> | ||
3 | + <!-- 标题及时间 --> | ||
4 | + <div class="cn_exam_title layout align_center justify"> | ||
5 | + <h2>指导和例题</h2> | ||
6 | + <div> | ||
7 | + 作答时限: | ||
8 | + <p class="cn_title_time">15分钟</p> | ||
9 | + </div> | ||
10 | + </div> | ||
11 | + <!-- 说明 --> | ||
12 | + <div class="cn_exam_exp">每一题都有两个词组,请观察他们之间的关系后,选出符合这样关系的答案,使整个句子完整而有意义。 | ||
13 | +此大题作答时间为5分钟,请把握时间尽可能快速且正确的回答。</div> | ||
14 | + <!-- 请看下列两个例题: --> | ||
15 | + <div class="cn_exam_two"> | ||
16 | + <h2>请看下面例题:</h2> | ||
17 | + </div> | ||
18 | + <!-- 具体例题 --> | ||
19 | + <div class="cn_exam_detail" v-for="item in detList" :key="item.index"> | ||
20 | + <!-- 上层 --> | ||
21 | + <!-- <div class="cn_det_top"> | ||
22 | + <p class="cn_top_title">{{item.title}}</p> | ||
23 | + </div> --> | ||
24 | + <!-- 下层 --> | ||
25 | + <div class="cn_det_bot clearfix" style="border:none"> | ||
26 | + <div class="cn_bot_box layout flex_diection justify"> | ||
27 | + <!-- 问题 --> | ||
28 | + <div class="cn_box_question layout">{{item.question}}</div> | ||
29 | + <!-- 答案 --> | ||
30 | + <div class="cn_box_answer layout align_center justify flex_row"> | ||
31 | + <p v-for="(secondItem,index) in item.answer" :key="index">{{secondItem}}</p> | ||
32 | + </div> | ||
33 | + <!-- 说明 --> | ||
34 | + <div class="cn_box_explain">{{item.explain}}</div> | ||
35 | + </div> | ||
36 | + </div> | ||
37 | + </div> | ||
38 | + <!-- 提示 --> | ||
39 | + <div class="induc_warn cn_exam_wran clearfix layout justify_center align_center"> | ||
40 | + <div class="induc_pic"> | ||
41 | + <img src="@/assets/img/12.png" alt /> | ||
42 | + </div> | ||
43 | + | ||
44 | + <!-- <p class="induc_warn_content cn_wran_content">正式作答时若你觉得某些问题太难,可先做较简单的题目,有剩余时间再回头补作。</p> --> | ||
45 | + </div> | ||
46 | + <!-- 阅读完毕开始答题 --> | ||
47 | + <div class="currency_btn" @click="nextPage">阅读完毕开始答题</div> | ||
48 | + </div> | ||
49 | +</template> | ||
50 | +<script> | ||
51 | +import { post } from "../../../../../api/http"; | ||
52 | +export default { | ||
53 | + data() { | ||
54 | + return { | ||
55 | + detList: [ | ||
56 | + { | ||
57 | + index: 1, | ||
58 | + title: "例题1. 请选取相同关系的答案,使句子完整而有意义。", | ||
59 | + question: "_______之于右,好像西之于_______", | ||
60 | + answer: [ | ||
61 | + "A 左 —— 北", | ||
62 | + "B 左 —— 南", | ||
63 | + "C 错误 —— 方向", | ||
64 | + "D 左 —— 东" | ||
65 | + ], | ||
66 | + explain: | ||
67 | + "在例题1.中,最适合的答案是D,因为“左之于右,好像西之于东”。“左对右”等于“西对东”。请点选D,以示其为正确的作答方式。" | ||
68 | + }, | ||
69 | +// { | ||
70 | +// index: 2, | ||
71 | +// title: "例题2. 请判断字词之间的关系,使等号两端的意义相同。", | ||
72 | +// question: "木头 :腐朽 = 铁块 :_______", | ||
73 | +// answer: ["A 潮湿", "B 生锈", "C 钢铁", "D 破碎"], | ||
74 | +// explain: | ||
75 | +// "在例题2中,最适合的答案是B,因为“木头用久了会腐朽”与“铁块用久了会生锈”的相对意义是相同的。答案请点选选项B。" | ||
76 | +// } | ||
77 | + ] | ||
78 | + }; | ||
79 | + }, | ||
80 | + methods: { | ||
81 | + // 阅读完毕开始答题 | ||
82 | + nextPage() { | ||
83 | + this.$router.push({ path: "/chinesetail" }); | ||
84 | + } | ||
85 | + }, | ||
86 | + mounted() {} | ||
87 | +}; | ||
88 | +</script> | ||
89 | +<style scoped> | ||
90 | +@import "../../../../../style/exampleRight.css"; | ||
91 | +</style> |
1 | +<template> | ||
2 | + <div> | ||
3 | + <el-dialog | ||
4 | + :visible="overVisible" | ||
5 | + @update:visible="$emit('update:overVisible',false)" | ||
6 | + width="636px" | ||
7 | + :before-close="next" | ||
8 | + :close-on-click-modal="false" | ||
9 | + append-to-body | ||
10 | + center | ||
11 | + > | ||
12 | + <div class="over_tip"> | ||
13 | + 多元性向潜能测验 | ||
14 | + <i class="overed">已结束</i> | ||
15 | + </div> | ||
16 | + <div class="over_explain"> | ||
17 | + 亲爱的同学,第{{number}}部分多元性向潜能暨{{textName}}试题 | ||
18 | + <i class="overed">已结束</i>,可以休息一会再继续完成其他的试题~ | ||
19 | + </div> | ||
20 | + <div class="over_method layout justify_center"> | ||
21 | + <div class="bind_now" @click="next">我知道了</div> | ||
22 | + </div> | ||
23 | + </el-dialog> | ||
24 | + </div> | ||
25 | +</template> | ||
26 | +<script> | ||
27 | +export default { | ||
28 | + props: ["overVisible", "typeId"], | ||
29 | + data(){ | ||
30 | + return{ | ||
31 | + textName:"", | ||
32 | + number:"" | ||
33 | + } | ||
34 | + }, | ||
35 | + methods: { | ||
36 | + // 下一测评 | ||
37 | + next() { | ||
38 | + this.$emit("update:overVisible", false); | ||
39 | + if (this.typeId == 1) { | ||
40 | + // 辞意完成 | ||
41 | + localStorage.removeItem("cnAnswer"); | ||
42 | + this.check(); | ||
43 | + } else if (this.typeId == 2) { | ||
44 | + // 数学完成 | ||
45 | + localStorage.removeItem("mathAnswer"); | ||
46 | + this.check(); | ||
47 | + } else if (this.typeId == 3) { | ||
48 | + // 逻辑完成 | ||
49 | + localStorage.removeItem("logicAnswer"); | ||
50 | + this.check(); | ||
51 | + } else if (this.typeId == 4) { | ||
52 | + // 速度完成 | ||
53 | + localStorage.removeItem("speedAnswer"); | ||
54 | + this.check(); | ||
55 | + } else if (this.typeId == 5) { | ||
56 | + // 力矩完成 | ||
57 | + localStorage.removeItem("momentAnswer"); | ||
58 | + this.check(); | ||
59 | + } else if (this.typeId == 6) { | ||
60 | + // 空间完成 | ||
61 | + localStorage.removeItem("spaceAnswer"); | ||
62 | + this.check(); | ||
63 | + } else if (this.typeId == 7) { | ||
64 | + // 字词完成 | ||
65 | + localStorage.removeItem("wordAnswer"); | ||
66 | + this.check(); | ||
67 | + } else if (this.typeId == 8) { | ||
68 | + // 语法完成 | ||
69 | + localStorage.removeItem("grammerAnswer"); | ||
70 | + this.check(); | ||
71 | + } else if (this.typeId == 9) { | ||
72 | + // 英语完成 | ||
73 | + localStorage.removeItem("engAnswer"); | ||
74 | + this.check(); | ||
75 | + } | ||
76 | + }, | ||
77 | + check(){ | ||
78 | + this.$router.replace({path:'/BlankPage'}); | ||
79 | + if(localStorage.getItem('is_complete')==1){ | ||
80 | + this.$router.replace({path:'/SetEvalute'}) | ||
81 | + } | ||
82 | + } | ||
83 | + }, | ||
84 | + mounted(){ | ||
85 | + switch(this.typeId){ | ||
86 | + case 1:this.textName = "语文辞意推理";this.number = "一";break; | ||
87 | + case 2:this.textName = "数字概念推理";this.number = "二";break; | ||
88 | + case 3:this.textName = "抽象逻辑推理";this.number = "三";break; | ||
89 | + case 4:this.textName = "知觉速度统合";this.number = "四";break; | ||
90 | + case 5:this.textName = "机械力矩推理";this.number = "五";break; | ||
91 | + case 6:this.textName = "立体空间推理";this.number = "六";break; | ||
92 | + case 7:this.textName = "中文字词推论";this.number = "七";break; | ||
93 | + case 8:this.textName = "中文语法结构";this.number = "八";break; | ||
94 | + case 9:this.textName = "英文基本能力";this.number = "九";break; | ||
95 | + } | ||
96 | + } | ||
97 | +}; | ||
98 | +</script> | ||
99 | +<style scoped> | ||
100 | +/* 提示 */ | ||
101 | +.over_tip { | ||
102 | + font-size: 18px; | ||
103 | + font-family: Microsoft YaHei; | ||
104 | + font-weight: bold; | ||
105 | + line-height: 1; | ||
106 | + color: #34485e; | ||
107 | + opacity: 1; | ||
108 | + margin-top: -9px; | ||
109 | + padding-bottom: 36px; | ||
110 | + border-bottom: 1px solid #f1f1f1; | ||
111 | +} | ||
112 | +.overed { | ||
113 | + color: #f44a5e; | ||
114 | +} | ||
115 | +/* 解释说明 */ | ||
116 | +.over_explain { | ||
117 | + font-size: 16px; | ||
118 | + line-height: 32px; | ||
119 | + color: #5b5e63; | ||
120 | + opacity: 1; | ||
121 | + text-align: left; | ||
122 | + margin-top: 27px; | ||
123 | + font-family: Microsoft YaHei; | ||
124 | +} | ||
125 | +/* 按钮 */ | ||
126 | +.over_method { | ||
127 | + margin-top: 21px; | ||
128 | + text-align: center; | ||
129 | +} | ||
130 | +.bind_now { | ||
131 | + width: 180px; | ||
132 | + height: 40px; | ||
133 | + border: 1px solid #409eff; | ||
134 | + line-height: 40px; | ||
135 | + border-radius: 3px; | ||
136 | + font-size: 14px; | ||
137 | + text-align: center; | ||
138 | + background-color: #409eff; | ||
139 | + color: #fff; | ||
140 | + margin-bottom: -7px; | ||
141 | +} | ||
142 | +</style> |
1 | +<template> | ||
2 | + <!-- 语文辞意推理 --> | ||
3 | + <div class="cn_example clearfix"> | ||
4 | + <!-- 左侧 说明--> | ||
5 | + <div class="cn_exam_l clearfix"> | ||
6 | + <div class="cn_left_box"> | ||
7 | + <!-- 词意推理 --> | ||
8 | + <div class="cn_box_title"> | ||
9 | + <h1> | ||
10 | + 第一部分 | ||
11 | + <br> | ||
12 | + 语文辞意推理 | ||
13 | + </h1> | ||
14 | + </div> | ||
15 | + <!-- 测评说明 --> | ||
16 | + <!-- 说明的内容 --> | ||
17 | + <!-- <div class="cn_box_explain clearfix"> | ||
18 | + <h2>测评说明:</h2> | ||
19 | + <div class="cn_exp_step" v-for="item in stepList" :key="item.index"> | ||
20 | + <h3>{{item.step}}</h3> | ||
21 | + | ||
22 | + <p class="cn_step_exp">{{item.content}}</p> | ||
23 | + <p class="cn_step_exp">{{item.content2}}</p> | ||
24 | + </div> | ||
25 | + </div> --> | ||
26 | + <!-- 图片 --> | ||
27 | + <div class="cn_box_p" style="margin-top:181px"> | ||
28 | + <img src="@/assets/img/13.png" alt> | ||
29 | + </div> | ||
30 | + </div> | ||
31 | + </div> | ||
32 | + <!-- 右侧 题目 --> | ||
33 | + <div class="cn_exam_r"> | ||
34 | + <router-view></router-view> | ||
35 | + </div> | ||
36 | + </div> | ||
37 | +</template> | ||
38 | +<script> | ||
39 | +export default { | ||
40 | + data() { | ||
41 | + return { | ||
42 | + stepList: [ | ||
43 | + { | ||
44 | + index: 1, | ||
45 | + step: "Step1:", | ||
46 | + content: | ||
47 | + "每个分测验都有说明与例题,阅读完后请按下【开始作答】进行该分测验,时间随即开始倒数。" | ||
48 | + }, | ||
49 | + { | ||
50 | + index: 2, | ||
51 | + step: "Step2:", | ||
52 | + content: "作答时若遇到不会的题目,可先跳往下一题作答;", | ||
53 | + content2: "开始作答进行该分测验,时间随即开始倒数。" | ||
54 | + } | ||
55 | + ] | ||
56 | + }; | ||
57 | + }, | ||
58 | +}; | ||
59 | +</script> | ||
60 | +<style scoped> | ||
61 | +@import '../../../../../style/example.css' | ||
62 | +</style> |
1 | +<template> | ||
2 | + <div class="cn_right_box clearfix"> | ||
3 | + <!-- 标题及时间 --> | ||
4 | + <div class="cn_exam_title layout align_center justify"> | ||
5 | + <h2>指导和例题</h2> | ||
6 | + <div> | ||
7 | + 作答时限: | ||
8 | + <p class="cn_title_time">15分钟</p> | ||
9 | + </div> | ||
10 | + </div> | ||
11 | + <!-- 说明 --> | ||
12 | + <div class="cn_exam_exp">每一题都有两个词组,请观察他们之间的关系后,选出符合这样关系的答案,使整个句子完整而有意义。 | ||
13 | +此大题作答时间为5分钟,请把握时间尽可能快速且正确的回答。</div> | ||
14 | + <!-- 请看下列两个例题: --> | ||
15 | + <div class="cn_exam_two"> | ||
16 | + <h2>请看下面例题:</h2> | ||
17 | + </div> | ||
18 | + <!-- 具体例题 --> | ||
19 | + <div class="cn_exam_detail" v-for="item in detList" :key="item.index"> | ||
20 | + <!-- 上层 --> | ||
21 | + <!-- <div class="cn_det_top"> | ||
22 | + <p class="cn_top_title">{{item.title}}</p> | ||
23 | + </div> --> | ||
24 | + <!-- 下层 --> | ||
25 | + <div class="cn_det_bot clearfix" style="border:none"> | ||
26 | + <div class="cn_bot_box layout flex_diection justify"> | ||
27 | + <!-- 问题 --> | ||
28 | + <div class="cn_box_question layout">{{item.question}}</div> | ||
29 | + <!-- 答案 --> | ||
30 | + <div class="cn_box_answer layout align_center justify flex_row"> | ||
31 | + <p v-for="(secondItem,index) in item.answer" :key="index">{{secondItem}}</p> | ||
32 | + </div> | ||
33 | + <!-- 说明 --> | ||
34 | + <div class="cn_box_explain">{{item.explain}}</div> | ||
35 | + </div> | ||
36 | + </div> | ||
37 | + </div> | ||
38 | + <!-- 提示 --> | ||
39 | + <div class="induc_warn cn_exam_wran clearfix layout justify_center align_center"> | ||
40 | + <div class="induc_pic"> | ||
41 | + <img src="@/assets/img/12.png" alt /> | ||
42 | + </div> | ||
43 | + | ||
44 | + <!-- <p class="induc_warn_content cn_wran_content">正式作答时若你觉得某些问题太难,可先做较简单的题目,有剩余时间再回头补作。</p> --> | ||
45 | + </div> | ||
46 | + <!-- 阅读完毕开始答题 --> | ||
47 | + <div class="currency_btn" @click="nextPage">阅读完毕开始答题</div> | ||
48 | + </div> | ||
49 | +</template> | ||
50 | +<script> | ||
51 | +import { post } from "../../../../../api/http"; | ||
52 | +export default { | ||
53 | + data() { | ||
54 | + return { | ||
55 | + detList: [ | ||
56 | + { | ||
57 | + index: 1, | ||
58 | + title: "例题1. 请选取相同关系的答案,使句子完整而有意义。", | ||
59 | + question: "_______之于右,好像西之于_______", | ||
60 | + answer: [ | ||
61 | + "A 左 —— 北", | ||
62 | + "B 左 —— 南", | ||
63 | + "C 错误 —— 方向", | ||
64 | + "D 左 —— 东" | ||
65 | + ], | ||
66 | + explain: | ||
67 | + "在例题1.中,最适合的答案是D,因为“左之于右,好像西之于东”。“左对右”等于“西对东”。请点选D,以示其为正确的作答方式。" | ||
68 | + }, | ||
69 | +// { | ||
70 | +// index: 2, | ||
71 | +// title: "例题2. 请判断字词之间的关系,使等号两端的意义相同。", | ||
72 | +// question: "木头 :腐朽 = 铁块 :_______", | ||
73 | +// answer: ["A 潮湿", "B 生锈", "C 钢铁", "D 破碎"], | ||
74 | +// explain: | ||
75 | +// "在例题2中,最适合的答案是B,因为“木头用久了会腐朽”与“铁块用久了会生锈”的相对意义是相同的。答案请点选选项B。" | ||
76 | +// } | ||
77 | + ] | ||
78 | + }; | ||
79 | + }, | ||
80 | + methods: { | ||
81 | + // 阅读完毕开始答题 | ||
82 | + nextPage() { | ||
83 | + this.$router.push({ path: "/chinesetail" }); | ||
84 | + } | ||
85 | + }, | ||
86 | + mounted() {} | ||
87 | +}; | ||
88 | +</script> | ||
89 | +<style scoped> | ||
90 | +@import "../../../../../style/exampleRight.css"; | ||
91 | +</style> |
1 | +<template> | ||
2 | + <!-- 语文部分具体问题 --> | ||
3 | + <div class="cn_right_box clearfix"> | ||
4 | + <!-- 标题及时间 --> | ||
5 | + <div class="cn_exam_title layout align_center justify"> | ||
6 | + <h2>第一部分</h2> | ||
7 | + <div> | ||
8 | + 剩余时间: | ||
9 | + <p class="cn_title_time">{{ansTime | seconds}}</p> | ||
10 | + </div> | ||
11 | + </div> | ||
12 | + <!-- 说明 --> | ||
13 | + <div class="cn_exam_exp cn_det_exp">(时间截止自动提交本部分作答,截止前未记录任何答案,禁止提前离开本页面。)</div> | ||
14 | + <!-- 具体问题 --> | ||
15 | + <div | ||
16 | + class="cn_det_quest clearfix" | ||
17 | + v-for="item in questionList" | ||
18 | + :key="item.index" | ||
19 | + :id="item.id" | ||
20 | + > | ||
21 | + <div class="det_quest_box layout flex_diection align_center"> | ||
22 | + <!-- 问题 --> | ||
23 | + <div class="det_box_question layout">{{item.id}}.{{item.title}}</div> | ||
24 | + <!-- 答案 --> | ||
25 | + <div class="det_box_answer"> | ||
26 | + <div | ||
27 | + class="det_answer_choice layout flex_row align_center" | ||
28 | + v-for="ansItems in item.answer" | ||
29 | + :key="ansItems.index" | ||
30 | + @click="choiced(ansItems,item.id)" | ||
31 | + > | ||
32 | + <div class="det_answer_circle"> | ||
33 | + <img :src="ansItems.choiced?src1:src2" alt class="det_ans_pic" /> | ||
34 | + </div> | ||
35 | + <div> | ||
36 | + <i class="order_num">{{ansItems.order}}</i> | ||
37 | + {{ansItems.ans}} | ||
38 | + </div> | ||
39 | + </div> | ||
40 | + </div> | ||
41 | + </div> | ||
42 | + </div> | ||
43 | + | ||
44 | + <!-- 阅读完毕开始答题 --> | ||
45 | + <div class="currency_btn" @click="nextPage">{{btnValue}}</div> | ||
46 | + <!-- 结束提示弹窗 --> | ||
47 | + <OverDialog :overVisible.sync="overVisible" v-if="overVisible" :typeId="typeId"></OverDialog> | ||
48 | + </div> | ||
49 | +</template> | ||
50 | +<script> | ||
51 | +import OverDialog from "../OverDialog"; | ||
52 | +import { post } from "@/api/http"; | ||
53 | +import { Notification } from "element-ui"; | ||
54 | +let answer1 = {}; | ||
55 | +let ansTimer = null; | ||
56 | +export default { | ||
57 | + data() { | ||
58 | + return { | ||
59 | + btnValue: "停!等候指示,才可以翻页再作答", | ||
60 | + typeId:'', | ||
61 | + overVisible: false, | ||
62 | + src1: require("@/assets/img/15.png"), | ||
63 | + src2: require("@/assets/img/9.png"), | ||
64 | + // 答题的时间 | ||
65 | + ansTime: 0, | ||
66 | + // 数据 | ||
67 | + questionList: [], | ||
68 | + // 共几页 | ||
69 | + pageNum: "", | ||
70 | + // 每页数量 | ||
71 | + pageSize: 10, | ||
72 | + // 默认显示第一页 | ||
73 | + currentPage: 1, | ||
74 | + // 当前显示的数据 | ||
75 | + // questionList: [] | ||
76 | + }; | ||
77 | + }, | ||
78 | + methods: { | ||
79 | + // 选择答案 | ||
80 | + choiced: function(item, num) { | ||
81 | + let that = this; | ||
82 | + for (let i in this.questionList) { | ||
83 | + for (let j in this.questionList[i].answer) { | ||
84 | + if (item.evaId == this.questionList[i].answer[j].evaId) { | ||
85 | + that.$set(that.questionList[i].answer[j], "choiced", false); | ||
86 | + if (item.index == this.questionList[i].answer[j].index) { | ||
87 | + that.$set(that.questionList[i].answer[j], "choiced", true); | ||
88 | + } | ||
89 | + } | ||
90 | + } | ||
91 | + this.$forceUpdate(); | ||
92 | + } | ||
93 | + answer1[num] = item.order; | ||
94 | + localStorage.setItem("cnAnswer", JSON.stringify(answer1)); | ||
95 | + }, | ||
96 | + // 测评题目 | ||
97 | + getTestPluralisticList() { | ||
98 | + clearInterval(ansTimer); | ||
99 | + let begin = (this.currentPage - 1) * this.pageSize; | ||
100 | + let end = this.currentPage * this.pageSize; | ||
101 | + let url = "/api/primary_pluralistic/getTestPluralisticList/"; | ||
102 | + let params = { | ||
103 | + id: localStorage.getItem("evaluteId"), | ||
104 | + type: localStorage.getItem("typeId") | ||
105 | + }; | ||
106 | + let that = this; | ||
107 | + post(url, params).then(res => { | ||
108 | + this.questionList = res.list; | ||
109 | + // 答案 | ||
110 | + for (var obj of this.questionList) { | ||
111 | + if (that.currentPage == 1) { | ||
112 | + answer1[obj.id] = ""; | ||
113 | + } | ||
114 | + | ||
115 | + let arr = []; | ||
116 | + arr.push( | ||
117 | + { | ||
118 | + evaId: obj.id, | ||
119 | + index: obj.id + "-1", | ||
120 | + order: "A", | ||
121 | + ans: obj.option_a, | ||
122 | + choiced: false | ||
123 | + }, | ||
124 | + { | ||
125 | + evaId: obj.id, | ||
126 | + index: obj.id + "-2", | ||
127 | + order: "B", | ||
128 | + ans: obj.option_b, | ||
129 | + choiced: false | ||
130 | + }, | ||
131 | + { | ||
132 | + evaId: obj.id, | ||
133 | + index: obj.id + "-3", | ||
134 | + order: "C", | ||
135 | + ans: obj.option_c, | ||
136 | + choiced: false | ||
137 | + }, | ||
138 | + { | ||
139 | + evaId: obj.id, | ||
140 | + index: obj.id + "-4", | ||
141 | + order: "D", | ||
142 | + ans: obj.option_d, | ||
143 | + choiced: false | ||
144 | + } | ||
145 | + ); | ||
146 | + obj.answer = arr; | ||
147 | + }; | ||
148 | + let answered = JSON.parse(localStorage.getItem("cnAnswer")); | ||
149 | + if(answered){ | ||
150 | + answer1 = answered; | ||
151 | + }; | ||
152 | + // 缓存的数据 | ||
153 | + for (let i in answered) { | ||
154 | + // 所有数据 | ||
155 | + for (let obj of this.questionList) { | ||
156 | + if (i == obj.id) { | ||
157 | + for (let k in obj.answer) { | ||
158 | + if (answered[i] == obj.answer[k].order) { | ||
159 | + obj.answer[k].choiced = true; | ||
160 | + } | ||
161 | + } | ||
162 | + } | ||
163 | + } | ||
164 | + }; | ||
165 | + // 总页数 | ||
166 | + this.pageNum = Math.ceil(this.questionList.length / this.pageSize); | ||
167 | + // 当前显示的数据 | ||
168 | + // this.questionList = this.questionList.slice(begin, end); | ||
169 | + // 答题时间 | ||
170 | + this.ansTime = res.time; | ||
171 | + ansTimer = setInterval(function() { | ||
172 | + res.time--; | ||
173 | + that.ansTime = res.time; | ||
174 | + if (that.ansTime == 0) { | ||
175 | + clearInterval(ansTimer); | ||
176 | + ansTimer = null; | ||
177 | + that.setTestPluralistic(); | ||
178 | + } | ||
179 | + }, 1000); | ||
180 | + }); | ||
181 | + }, | ||
182 | + | ||
183 | + nextPage() { | ||
184 | + // 所有问题 | ||
185 | + let allArr = []; | ||
186 | + // 已选择问题 | ||
187 | + let ansArr = []; | ||
188 | + for (let obj of this.questionList) { | ||
189 | + allArr.push(obj.id); | ||
190 | + } | ||
191 | + // 已选择问题 | ||
192 | + for (let i in answer1) { | ||
193 | + if (answer1[i]) { | ||
194 | + ansArr.push(i / 1); | ||
195 | + } | ||
196 | + } | ||
197 | + for (var i = 0; i < allArr.length; i++) { | ||
198 | + if (ansArr.indexOf(allArr[i]) == -1) { | ||
199 | + allArr = allArr[i]; | ||
200 | + } | ||
201 | + } | ||
202 | + if (allArr.length > 3) { | ||
203 | + clearInterval(ansTimer); | ||
204 | + this.setTestPluralistic(); | ||
205 | + // if (this.currentPage == this.pageNum) { | ||
206 | + // clearInterval(ansTimer); | ||
207 | + // ansTimer = null; | ||
208 | + // this.setTestPluralistic(); | ||
209 | + // return ""; | ||
210 | + // } else { | ||
211 | + // this.currentPage++; | ||
212 | + // this.getTestPluralisticList(); | ||
213 | + // document.body.scrollTop = 0; | ||
214 | + // document.documentElement.scrollTop = 0; | ||
215 | + // } | ||
216 | + } else { | ||
217 | + Notification.info({ | ||
218 | + title: "提示", | ||
219 | + message: "请全部选择", | ||
220 | + duration: 1500 | ||
221 | + }); | ||
222 | + this.goTop(allArr); | ||
223 | + } | ||
224 | + }, | ||
225 | + // 未选择跳转 | ||
226 | + goTop(id) { | ||
227 | + document.getElementById(id).scrollIntoView(); | ||
228 | + }, | ||
229 | + // 提交测评 | ||
230 | + setTestPluralistic() { | ||
231 | + let url = "/api/primary_pluralistic/setTestPluralistic/"; | ||
232 | + let params = { | ||
233 | + id: localStorage.getItem("evaluteId"), | ||
234 | + type: localStorage.getItem("typeId"), | ||
235 | + data: JSON.stringify(answer1) | ||
236 | + }; | ||
237 | + post(url, params).then(res => { | ||
238 | + localStorage.setItem('is_complete',res.is_complete) | ||
239 | + // 题目类型 | ||
240 | + localStorage.setItem("typeId", 2); | ||
241 | + this.btnValue = "停!等候指示,才可以翻页再作答"; | ||
242 | + this.overVisible = true; | ||
243 | + this.typeId = 1; | ||
244 | + }); | ||
245 | + } | ||
246 | + }, | ||
247 | + components: { | ||
248 | + OverDialog | ||
249 | + }, | ||
250 | + mounted() { | ||
251 | + this.getTestPluralisticList(); | ||
252 | + }, | ||
253 | +}; | ||
254 | +</script> | ||
255 | +<style scoped> | ||
256 | +@import "../../../../../style/exampleRight.css"; | ||
257 | +@import "../../../../../style/detailExample.css"; | ||
258 | +</style> |
1 | +<template> | ||
2 | + <!-- 语文部分具体问题 --> | ||
3 | + <div class="cn_right_box clearfix"> | ||
4 | + <!-- 标题及时间 --> | ||
5 | + <div class="cn_exam_title layout align_center justify"> | ||
6 | + <h2>第一部分</h2> | ||
7 | + <div> | ||
8 | + 剩余时间: | ||
9 | + <p class="cn_title_time">{{ansTime | seconds}}</p> | ||
10 | + </div> | ||
11 | + </div> | ||
12 | + <!-- 说明 --> | ||
13 | + <div class="cn_exam_exp cn_det_exp">(时间截止自动提交本部分作答,截止前未记录任何答案,禁止提前离开本页面。)</div> | ||
14 | + <!-- 具体问题 --> | ||
15 | + <div | ||
16 | + class="cn_det_quest clearfix" | ||
17 | + v-for="item in questionList" | ||
18 | + :key="item.index" | ||
19 | + :id="item.id" | ||
20 | + > | ||
21 | + <div class="det_quest_box layout flex_diection align_center"> | ||
22 | + <!-- 问题 --> | ||
23 | + <div class="det_box_question layout">{{item.id}}.{{item.title}}</div> | ||
24 | + <!-- 答案 --> | ||
25 | + <div class="det_box_answer"> | ||
26 | + <div | ||
27 | + class="det_answer_choice layout flex_row align_center" | ||
28 | + v-for="ansItems in item.answer" | ||
29 | + :key="ansItems.index" | ||
30 | + @click="choiced(ansItems,item.id)" | ||
31 | + > | ||
32 | + <div class="det_answer_circle"> | ||
33 | + <img :src="ansItems.choiced?src1:src2" alt class="det_ans_pic" /> | ||
34 | + </div> | ||
35 | + <div> | ||
36 | + <i class="order_num">{{ansItems.order}}</i> | ||
37 | + {{ansItems.ans}} | ||
38 | + </div> | ||
39 | + </div> | ||
40 | + </div> | ||
41 | + </div> | ||
42 | + </div> | ||
43 | + | ||
44 | + <!-- 阅读完毕开始答题 --> | ||
45 | + <div class="currency_btn" @click="nextPage">{{btnValue}}</div> | ||
46 | + <!-- 结束提示弹窗 --> | ||
47 | + <OverDialog :overVisible.sync="overVisible" v-if="overVisible" :typeId="typeId"></OverDialog> | ||
48 | + </div> | ||
49 | +</template> | ||
50 | +<script> | ||
51 | +import OverDialog from "../OverDialog"; | ||
52 | +import { post } from "@/api/http"; | ||
53 | +import { Notification } from "element-ui"; | ||
54 | +let answer1 = {}; | ||
55 | +let ansTimer = null; | ||
56 | +export default { | ||
57 | + data() { | ||
58 | + return { | ||
59 | + btnValue: "停!等候指示,才可以翻页再作答", | ||
60 | + typeId:'', | ||
61 | + overVisible: false, | ||
62 | + src1: require("@/assets/img/15.png"), | ||
63 | + src2: require("@/assets/img/9.png"), | ||
64 | + // 答题的时间 | ||
65 | + ansTime: 0, | ||
66 | + // 数据 | ||
67 | + questionList: [], | ||
68 | + // 共几页 | ||
69 | + pageNum: "", | ||
70 | + // 每页数量 | ||
71 | + pageSize: 10, | ||
72 | + // 默认显示第一页 | ||
73 | + currentPage: 1, | ||
74 | + // 当前显示的数据 | ||
75 | + // questionList: [] | ||
76 | + }; | ||
77 | + }, | ||
78 | + methods: { | ||
79 | + // 选择答案 | ||
80 | + choiced: function(item, num) { | ||
81 | + let that = this; | ||
82 | + for (let i in this.questionList) { | ||
83 | + for (let j in this.questionList[i].answer) { | ||
84 | + if (item.evaId == this.questionList[i].answer[j].evaId) { | ||
85 | + that.$set(that.questionList[i].answer[j], "choiced", false); | ||
86 | + if (item.index == this.questionList[i].answer[j].index) { | ||
87 | + that.$set(that.questionList[i].answer[j], "choiced", true); | ||
88 | + } | ||
89 | + } | ||
90 | + } | ||
91 | + this.$forceUpdate(); | ||
92 | + } | ||
93 | + answer1[num] = item.order; | ||
94 | + localStorage.setItem("cnAnswer", JSON.stringify(answer1)); | ||
95 | + }, | ||
96 | + // 测评题目 | ||
97 | + getTestPluralisticList() { | ||
98 | + clearInterval(ansTimer); | ||
99 | + let begin = (this.currentPage - 1) * this.pageSize; | ||
100 | + let end = this.currentPage * this.pageSize; | ||
101 | + let url = "/api/primary_pluralistic/getTestPluralisticList/"; | ||
102 | + let params = { | ||
103 | + id: localStorage.getItem("evaluteId"), | ||
104 | + type: localStorage.getItem("typeId") | ||
105 | + }; | ||
106 | + let that = this; | ||
107 | + post(url, params).then(res => { | ||
108 | + this.questionList = res.list; | ||
109 | + // 答案 | ||
110 | + for (var obj of this.questionList) { | ||
111 | + if (that.currentPage == 1) { | ||
112 | + answer1[obj.id] = ""; | ||
113 | + } | ||
114 | + | ||
115 | + let arr = []; | ||
116 | + arr.push( | ||
117 | + { | ||
118 | + evaId: obj.id, | ||
119 | + index: obj.id + "-1", | ||
120 | + order: "A", | ||
121 | + ans: obj.option_a, | ||
122 | + choiced: false | ||
123 | + }, | ||
124 | + { | ||
125 | + evaId: obj.id, | ||
126 | + index: obj.id + "-2", | ||
127 | + order: "B", | ||
128 | + ans: obj.option_b, | ||
129 | + choiced: false | ||
130 | + }, | ||
131 | + { | ||
132 | + evaId: obj.id, | ||
133 | + index: obj.id + "-3", | ||
134 | + order: "C", | ||
135 | + ans: obj.option_c, | ||
136 | + choiced: false | ||
137 | + }, | ||
138 | + { | ||
139 | + evaId: obj.id, | ||
140 | + index: obj.id + "-4", | ||
141 | + order: "D", | ||
142 | + ans: obj.option_d, | ||
143 | + choiced: false | ||
144 | + } | ||
145 | + ); | ||
146 | + obj.answer = arr; | ||
147 | + }; | ||
148 | + let answered = JSON.parse(localStorage.getItem("cnAnswer")); | ||
149 | + if(answered){ | ||
150 | + answer1 = answered; | ||
151 | + }; | ||
152 | + // 缓存的数据 | ||
153 | + for (let i in answered) { | ||
154 | + // 所有数据 | ||
155 | + for (let obj of this.questionList) { | ||
156 | + if (i == obj.id) { | ||
157 | + for (let k in obj.answer) { | ||
158 | + if (answered[i] == obj.answer[k].order) { | ||
159 | + obj.answer[k].choiced = true; | ||
160 | + } | ||
161 | + } | ||
162 | + } | ||
163 | + } | ||
164 | + }; | ||
165 | + // 总页数 | ||
166 | + this.pageNum = Math.ceil(this.questionList.length / this.pageSize); | ||
167 | + // 当前显示的数据 | ||
168 | + // this.questionList = this.questionList.slice(begin, end); | ||
169 | + // 答题时间 | ||
170 | + this.ansTime = res.time; | ||
171 | + ansTimer = setInterval(function() { | ||
172 | + res.time--; | ||
173 | + that.ansTime = res.time; | ||
174 | + if (that.ansTime == 0) { | ||
175 | + clearInterval(ansTimer); | ||
176 | + ansTimer = null; | ||
177 | + that.setTestPluralistic(); | ||
178 | + } | ||
179 | + }, 1000); | ||
180 | + }); | ||
181 | + }, | ||
182 | + | ||
183 | + nextPage() { | ||
184 | + // 所有问题 | ||
185 | + let allArr = []; | ||
186 | + // 已选择问题 | ||
187 | + let ansArr = []; | ||
188 | + for (let obj of this.questionList) { | ||
189 | + allArr.push(obj.id); | ||
190 | + } | ||
191 | + // 已选择问题 | ||
192 | + for (let i in answer1) { | ||
193 | + if (answer1[i]) { | ||
194 | + ansArr.push(i / 1); | ||
195 | + } | ||
196 | + } | ||
197 | + for (var i = 0; i < allArr.length; i++) { | ||
198 | + if (ansArr.indexOf(allArr[i]) == -1) { | ||
199 | + allArr = allArr[i]; | ||
200 | + } | ||
201 | + } | ||
202 | + if (allArr.length > 3) { | ||
203 | + clearInterval(ansTimer); | ||
204 | + this.setTestPluralistic(); | ||
205 | + // if (this.currentPage == this.pageNum) { | ||
206 | + // clearInterval(ansTimer); | ||
207 | + // ansTimer = null; | ||
208 | + // this.setTestPluralistic(); | ||
209 | + // return ""; | ||
210 | + // } else { | ||
211 | + // this.currentPage++; | ||
212 | + // this.getTestPluralisticList(); | ||
213 | + // document.body.scrollTop = 0; | ||
214 | + // document.documentElement.scrollTop = 0; | ||
215 | + // } | ||
216 | + } else { | ||
217 | + Notification.info({ | ||
218 | + title: "提示", | ||
219 | + message: "请全部选择", | ||
220 | + duration: 1500 | ||
221 | + }); | ||
222 | + this.goTop(allArr); | ||
223 | + } | ||
224 | + }, | ||
225 | + // 未选择跳转 | ||
226 | + goTop(id) { | ||
227 | + document.getElementById(id).scrollIntoView(); | ||
228 | + }, | ||
229 | + // 提交测评 | ||
230 | + setTestPluralistic(){ | ||
231 | + let url = "/api/primary_pluralistic/setTestPluralistic/"; | ||
232 | + let params = { | ||
233 | + id: localStorage.getItem("evaluteId"), | ||
234 | + type: localStorage.getItem("typeId"), | ||
235 | + data: JSON.stringify(answer1) | ||
236 | + }; | ||
237 | + post(url, params).then(res => { | ||
238 | + localStorage.setItem('is_complete',res.is_complete) | ||
239 | + // 题目类型 | ||
240 | + localStorage.setItem("typeId", 2); | ||
241 | + this.btnValue = "停!等候指示,才可以翻页再作答"; | ||
242 | + this.overVisible = true; | ||
243 | + this.typeId = 1; | ||
244 | + }); | ||
245 | + } | ||
246 | + }, | ||
247 | + components: { | ||
248 | + OverDialog | ||
249 | + }, | ||
250 | + mounted() { | ||
251 | + this.getTestPluralisticList(); | ||
252 | + }, | ||
253 | +}; | ||
254 | +</script> | ||
255 | +<style scoped> | ||
256 | +@import "../../../../../style/exampleRight.css"; | ||
257 | +@import "../../../../../style/detailExample.css"; | ||
258 | +</style> |
1 | +<template> | ||
2 | + <!-- 语文辞意推理 --> | ||
3 | + <div class="cn_example clearfix"> | ||
4 | + <!-- 左侧 说明--> | ||
5 | + <div class="cn_exam_l clearfix"> | ||
6 | + <div class="cn_left_box"> | ||
7 | + <!-- 词意推理 --> | ||
8 | + <div class="cn_box_title"> | ||
9 | + <h1> | ||
10 | + 第一部分 | ||
11 | + <br> | ||
12 | + 语文辞意推理 | ||
13 | + </h1> | ||
14 | + </div> | ||
15 | + <!-- 测评说明 --> | ||
16 | + <!-- 说明的内容 --> | ||
17 | + <!-- <div class="cn_box_explain clearfix"> | ||
18 | + <h2>测评说明:</h2> | ||
19 | + <div class="cn_exp_step" v-for="item in stepList" :key="item.index"> | ||
20 | + <h3>{{item.step}}</h3> | ||
21 | + | ||
22 | + <p class="cn_step_exp">{{item.content}}</p> | ||
23 | + <p class="cn_step_exp">{{item.content2}}</p> | ||
24 | + </div> | ||
25 | + </div> --> | ||
26 | + <!-- 图片 --> | ||
27 | + <div class="cn_box_p" style="margin-top:181px"> | ||
28 | + <img src="@/assets/img/13.png" alt> | ||
29 | + </div> | ||
30 | + </div> | ||
31 | + </div> | ||
32 | + <!-- 右侧 题目 --> | ||
33 | + <div class="cn_exam_r"> | ||
34 | + <router-view></router-view> | ||
35 | + </div> | ||
36 | + </div> | ||
37 | +</template> | ||
38 | +<script> | ||
39 | +export default { | ||
40 | + data() { | ||
41 | + return { | ||
42 | + stepList: [ | ||
43 | + { | ||
44 | + index: 1, | ||
45 | + step: "Step1:", | ||
46 | + content: | ||
47 | + "每个分测验都有说明与例题,阅读完后请按下【开始作答】进行该分测验,时间随即开始倒数。" | ||
48 | + }, | ||
49 | + { | ||
50 | + index: 2, | ||
51 | + step: "Step2:", | ||
52 | + content: "作答时若遇到不会的题目,可先跳往下一题作答;", | ||
53 | + content2: "开始作答进行该分测验,时间随即开始倒数。" | ||
54 | + } | ||
55 | + ] | ||
56 | + }; | ||
57 | + }, | ||
58 | +}; | ||
59 | +</script> | ||
60 | +<style scoped> | ||
61 | +@import '../../../../../style/example.css' | ||
62 | +</style> |
1 | +<template> | ||
2 | + <div class="cn_right_box clearfix"> | ||
3 | + <!-- 标题及时间 --> | ||
4 | + <div class="cn_exam_title layout align_center justify"> | ||
5 | + <h2>指导和例题</h2> | ||
6 | + <div> | ||
7 | + 作答时限: | ||
8 | + <p class="cn_title_time">15分钟</p> | ||
9 | + </div> | ||
10 | + </div> | ||
11 | + <!-- 说明 --> | ||
12 | + <div class="cn_exam_exp">每一题都有两个词组,请观察他们之间的关系后,选出符合这样关系的答案,使整个句子完整而有意义。 | ||
13 | +此大题作答时间为5分钟,请把握时间尽可能快速且正确的回答。</div> | ||
14 | + <!-- 请看下列两个例题: --> | ||
15 | + <div class="cn_exam_two"> | ||
16 | + <h2>请看下面例题:</h2> | ||
17 | + </div> | ||
18 | + <!-- 具体例题 --> | ||
19 | + <div class="cn_exam_detail" v-for="item in detList" :key="item.index"> | ||
20 | + <!-- 上层 --> | ||
21 | + <!-- <div class="cn_det_top"> | ||
22 | + <p class="cn_top_title">{{item.title}}</p> | ||
23 | + </div> --> | ||
24 | + <!-- 下层 --> | ||
25 | + <div class="cn_det_bot clearfix" style="border:none"> | ||
26 | + <div class="cn_bot_box layout flex_diection justify"> | ||
27 | + <!-- 问题 --> | ||
28 | + <div class="cn_box_question layout">{{item.question}}</div> | ||
29 | + <!-- 答案 --> | ||
30 | + <div class="cn_box_answer layout align_center justify flex_row"> | ||
31 | + <p v-for="(secondItem,index) in item.answer" :key="index">{{secondItem}}</p> | ||
32 | + </div> | ||
33 | + <!-- 说明 --> | ||
34 | + <div class="cn_box_explain">{{item.explain}}</div> | ||
35 | + </div> | ||
36 | + </div> | ||
37 | + </div> | ||
38 | + <!-- 提示 --> | ||
39 | + <div class="induc_warn cn_exam_wran clearfix layout justify_center align_center"> | ||
40 | + <div class="induc_pic"> | ||
41 | + <img src="@/assets/img/12.png" alt /> | ||
42 | + </div> | ||
43 | + | ||
44 | + <!-- <p class="induc_warn_content cn_wran_content">正式作答时若你觉得某些问题太难,可先做较简单的题目,有剩余时间再回头补作。</p> --> | ||
45 | + </div> | ||
46 | + <!-- 阅读完毕开始答题 --> | ||
47 | + <div class="currency_btn" @click="nextPage">阅读完毕开始答题</div> | ||
48 | + </div> | ||
49 | +</template> | ||
50 | +<script> | ||
51 | +import { post } from "../../../../../api/http"; | ||
52 | +export default { | ||
53 | + data() { | ||
54 | + return { | ||
55 | + detList: [ | ||
56 | + { | ||
57 | + index: 1, | ||
58 | + title: "例题1. 请选取相同关系的答案,使句子完整而有意义。", | ||
59 | + question: "_______之于右,好像西之于_______", | ||
60 | + answer: [ | ||
61 | + "A 左 —— 北", | ||
62 | + "B 左 —— 南", | ||
63 | + "C 错误 —— 方向", | ||
64 | + "D 左 —— 东" | ||
65 | + ], | ||
66 | + explain: | ||
67 | + "在例题1.中,最适合的答案是D,因为“左之于右,好像西之于东”。“左对右”等于“西对东”。请点选D,以示其为正确的作答方式。" | ||
68 | + }, | ||
69 | +// { | ||
70 | +// index: 2, | ||
71 | +// title: "例题2. 请判断字词之间的关系,使等号两端的意义相同。", | ||
72 | +// question: "木头 :腐朽 = 铁块 :_______", | ||
73 | +// answer: ["A 潮湿", "B 生锈", "C 钢铁", "D 破碎"], | ||
74 | +// explain: | ||
75 | +// "在例题2中,最适合的答案是B,因为“木头用久了会腐朽”与“铁块用久了会生锈”的相对意义是相同的。答案请点选选项B。" | ||
76 | +// } | ||
77 | + ] | ||
78 | + }; | ||
79 | + }, | ||
80 | + methods: { | ||
81 | + // 阅读完毕开始答题 | ||
82 | + nextPage() { | ||
83 | + this.$router.push({ path: "/chinesetail" }); | ||
84 | + } | ||
85 | + }, | ||
86 | + mounted() {} | ||
87 | +}; | ||
88 | +</script> | ||
89 | +<style scoped> | ||
90 | +@import "../../../../../style/exampleRight.css"; | ||
91 | +</style> |
1 | +<template> | ||
2 | + <!-- 语文部分具体问题 --> | ||
3 | + <div class="cn_right_box clearfix"> | ||
4 | + <!-- 标题及时间 --> | ||
5 | + <div class="cn_exam_title layout align_center justify"> | ||
6 | + <h2>第一部分</h2> | ||
7 | + <div> | ||
8 | + 剩余时间: | ||
9 | + <p class="cn_title_time">{{ansTime | seconds}}</p> | ||
10 | + </div> | ||
11 | + </div> | ||
12 | + <!-- 说明 --> | ||
13 | + <div class="cn_exam_exp cn_det_exp">(时间截止自动提交本部分作答,截止前未记录任何答案,禁止提前离开本页面。)</div> | ||
14 | + <!-- 具体问题 --> | ||
15 | + <div | ||
16 | + class="cn_det_quest clearfix" | ||
17 | + v-for="item in questionList" | ||
18 | + :key="item.index" | ||
19 | + :id="item.id" | ||
20 | + > | ||
21 | + <div class="det_quest_box layout flex_diection align_center"> | ||
22 | + <!-- 问题 --> | ||
23 | + <div class="det_box_question layout">{{item.id}}.{{item.title}}</div> | ||
24 | + <!-- 答案 --> | ||
25 | + <div class="det_box_answer"> | ||
26 | + <div | ||
27 | + class="det_answer_choice layout flex_row align_center" | ||
28 | + v-for="ansItems in item.answer" | ||
29 | + :key="ansItems.index" | ||
30 | + @click="choiced(ansItems,item.id)" | ||
31 | + > | ||
32 | + <div class="det_answer_circle"> | ||
33 | + <img :src="ansItems.choiced?src1:src2" alt class="det_ans_pic" /> | ||
34 | + </div> | ||
35 | + <div> | ||
36 | + <i class="order_num">{{ansItems.order}}</i> | ||
37 | + {{ansItems.ans}} | ||
38 | + </div> | ||
39 | + </div> | ||
40 | + </div> | ||
41 | + </div> | ||
42 | + </div> | ||
43 | + | ||
44 | + <!-- 阅读完毕开始答题 --> | ||
45 | + <div class="currency_btn" @click="nextPage">{{btnValue}}</div> | ||
46 | + <!-- 结束提示弹窗 --> | ||
47 | + <OverDialog :overVisible.sync="overVisible" v-if="overVisible" :typeId="typeId"></OverDialog> | ||
48 | + </div> | ||
49 | +</template> | ||
50 | +<script> | ||
51 | +import OverDialog from "../OverDialog"; | ||
52 | +import { post } from "@/api/http"; | ||
53 | +import { Notification } from "element-ui"; | ||
54 | +let answer1 = {}; | ||
55 | +let ansTimer = null; | ||
56 | +export default { | ||
57 | + data() { | ||
58 | + return { | ||
59 | + btnValue: "停!等候指示,才可以翻页再作答", | ||
60 | + typeId:'', | ||
61 | + overVisible: false, | ||
62 | + src1: require("@/assets/img/15.png"), | ||
63 | + src2: require("@/assets/img/9.png"), | ||
64 | + // 答题的时间 | ||
65 | + ansTime: 0, | ||
66 | + // 数据 | ||
67 | + questionList: [], | ||
68 | + // 共几页 | ||
69 | + pageNum: "", | ||
70 | + // 每页数量 | ||
71 | + pageSize: 10, | ||
72 | + // 默认显示第一页 | ||
73 | + currentPage: 1, | ||
74 | + // 当前显示的数据 | ||
75 | + // questionList: [] | ||
76 | + }; | ||
77 | + }, | ||
78 | + methods: { | ||
79 | + // 选择答案 | ||
80 | + choiced: function(item, num) { | ||
81 | + let that = this; | ||
82 | + for (let i in this.questionList) { | ||
83 | + for (let j in this.questionList[i].answer) { | ||
84 | + if (item.evaId == this.questionList[i].answer[j].evaId) { | ||
85 | + that.$set(that.questionList[i].answer[j], "choiced", false); | ||
86 | + if (item.index == this.questionList[i].answer[j].index) { | ||
87 | + that.$set(that.questionList[i].answer[j], "choiced", true); | ||
88 | + } | ||
89 | + } | ||
90 | + } | ||
91 | + this.$forceUpdate(); | ||
92 | + } | ||
93 | + answer1[num] = item.order; | ||
94 | + localStorage.setItem("cnAnswer", JSON.stringify(answer1)); | ||
95 | + }, | ||
96 | + // 测评题目 | ||
97 | + getTestPluralisticList() { | ||
98 | + clearInterval(ansTimer); | ||
99 | + let begin = (this.currentPage - 1) * this.pageSize; | ||
100 | + let end = this.currentPage * this.pageSize; | ||
101 | + let url = "/api/primary_pluralistic/getTestPluralisticList/"; | ||
102 | + let params = { | ||
103 | + id: localStorage.getItem("evaluteId"), | ||
104 | + type: localStorage.getItem("typeId") | ||
105 | + }; | ||
106 | + let that = this; | ||
107 | + post(url, params).then(res => { | ||
108 | + this.questionList = res.list; | ||
109 | + // 答案 | ||
110 | + for (var obj of this.questionList) { | ||
111 | + if (that.currentPage == 1) { | ||
112 | + answer1[obj.id] = ""; | ||
113 | + } | ||
114 | + | ||
115 | + let arr = []; | ||
116 | + arr.push( | ||
117 | + { | ||
118 | + evaId: obj.id, | ||
119 | + index: obj.id + "-1", | ||
120 | + order: "A", | ||
121 | + ans: obj.option_a, | ||
122 | + choiced: false | ||
123 | + }, | ||
124 | + { | ||
125 | + evaId: obj.id, | ||
126 | + index: obj.id + "-2", | ||
127 | + order: "B", | ||
128 | + ans: obj.option_b, | ||
129 | + choiced: false | ||
130 | + }, | ||
131 | + { | ||
132 | + evaId: obj.id, | ||
133 | + index: obj.id + "-3", | ||
134 | + order: "C", | ||
135 | + ans: obj.option_c, | ||
136 | + choiced: false | ||
137 | + }, | ||
138 | + { | ||
139 | + evaId: obj.id, | ||
140 | + index: obj.id + "-4", | ||
141 | + order: "D", | ||
142 | + ans: obj.option_d, | ||
143 | + choiced: false | ||
144 | + } | ||
145 | + ); | ||
146 | + obj.answer = arr; | ||
147 | + }; | ||
148 | + let answered = JSON.parse(localStorage.getItem("cnAnswer")); | ||
149 | + if(answered){ | ||
150 | + answer1 = answered; | ||
151 | + }; | ||
152 | + // 缓存的数据 | ||
153 | + for (let i in answered) { | ||
154 | + // 所有数据 | ||
155 | + for (let obj of this.questionList) { | ||
156 | + if (i == obj.id) { | ||
157 | + for (let k in obj.answer) { | ||
158 | + if (answered[i] == obj.answer[k].order) { | ||
159 | + obj.answer[k].choiced = true; | ||
160 | + } | ||
161 | + } | ||
162 | + } | ||
163 | + } | ||
164 | + }; | ||
165 | + // 总页数 | ||
166 | + this.pageNum = Math.ceil(this.questionList.length / this.pageSize); | ||
167 | + // 当前显示的数据 | ||
168 | + // this.questionList = this.questionList.slice(begin, end); | ||
169 | + // 答题时间 | ||
170 | + this.ansTime = res.time; | ||
171 | + ansTimer = setInterval(function() { | ||
172 | + res.time--; | ||
173 | + that.ansTime = res.time; | ||
174 | + if (that.ansTime == 0) { | ||
175 | + clearInterval(ansTimer); | ||
176 | + ansTimer = null; | ||
177 | + that.setTestPluralistic(); | ||
178 | + } | ||
179 | + }, 1000); | ||
180 | + }); | ||
181 | + }, | ||
182 | + | ||
183 | + nextPage() { | ||
184 | + // 所有问题 | ||
185 | + let allArr = []; | ||
186 | + // 已选择问题 | ||
187 | + let ansArr = []; | ||
188 | + for (let obj of this.questionList) { | ||
189 | + allArr.push(obj.id); | ||
190 | + } | ||
191 | + // 已选择问题 | ||
192 | + for (let i in answer1) { | ||
193 | + if (answer1[i]) { | ||
194 | + ansArr.push(i / 1); | ||
195 | + } | ||
196 | + } | ||
197 | + for (var i = 0; i < allArr.length; i++) { | ||
198 | + if (ansArr.indexOf(allArr[i]) == -1) { | ||
199 | + allArr = allArr[i]; | ||
200 | + } | ||
201 | + } | ||
202 | + if (allArr.length > 3) { | ||
203 | + clearInterval(ansTimer); | ||
204 | + this.setTestPluralistic(); | ||
205 | + // if (this.currentPage == this.pageNum) { | ||
206 | + // clearInterval(ansTimer); | ||
207 | + // ansTimer = null; | ||
208 | + // this.setTestPluralistic(); | ||
209 | + // return ""; | ||
210 | + // } else { | ||
211 | + // this.currentPage++; | ||
212 | + // this.getTestPluralisticList(); | ||
213 | + // document.body.scrollTop = 0; | ||
214 | + // document.documentElement.scrollTop = 0; | ||
215 | + // } | ||
216 | + } else { | ||
217 | + Notification.info({ | ||
218 | + title: "提示", | ||
219 | + message: "请全部选择", | ||
220 | + duration: 1500 | ||
221 | + }); | ||
222 | + this.goTop(allArr); | ||
223 | + } | ||
224 | + }, | ||
225 | + // 未选择跳转 | ||
226 | + goTop(id) { | ||
227 | + document.getElementById(id).scrollIntoView(); | ||
228 | + }, | ||
229 | + // 提交测评 | ||
230 | + setTestPluralistic() { | ||
231 | + let url = "/api/primary_pluralistic/setTestPluralistic/"; | ||
232 | + let params = { | ||
233 | + id: localStorage.getItem("evaluteId"), | ||
234 | + type: localStorage.getItem("typeId"), | ||
235 | + data: JSON.stringify(answer1) | ||
236 | + }; | ||
237 | + post(url, params).then(res => { | ||
238 | + localStorage.setItem('is_complete',res.is_complete) | ||
239 | + // 题目类型 | ||
240 | + localStorage.setItem("typeId", 2); | ||
241 | + this.btnValue = "停!等候指示,才可以翻页再作答"; | ||
242 | + this.overVisible = true; | ||
243 | + this.typeId = 1; | ||
244 | + }); | ||
245 | + } | ||
246 | + }, | ||
247 | + components: { | ||
248 | + OverDialog | ||
249 | + }, | ||
250 | + mounted() { | ||
251 | + this.getTestPluralisticList(); | ||
252 | + }, | ||
253 | +}; | ||
254 | +</script> | ||
255 | +<style scoped> | ||
256 | +@import "../../../../../style/exampleRight.css"; | ||
257 | +@import "../../../../../style/detailExample.css"; | ||
258 | +</style> |
1 | +<template> | ||
2 | + <!-- 语文辞意推理 --> | ||
3 | + <div class="cn_example clearfix"> | ||
4 | + <!-- 左侧 说明--> | ||
5 | + <div class="cn_exam_l clearfix"> | ||
6 | + <div class="cn_left_box"> | ||
7 | + <!-- 词意推理 --> | ||
8 | + <div class="cn_box_title"> | ||
9 | + <h1> | ||
10 | + 第一部分 | ||
11 | + <br> | ||
12 | + 语文辞意推理 | ||
13 | + </h1> | ||
14 | + </div> | ||
15 | + <!-- 测评说明 --> | ||
16 | + <!-- 说明的内容 --> | ||
17 | + <!-- <div class="cn_box_explain clearfix"> | ||
18 | + <h2>测评说明:</h2> | ||
19 | + <div class="cn_exp_step" v-for="item in stepList" :key="item.index"> | ||
20 | + <h3>{{item.step}}</h3> | ||
21 | + | ||
22 | + <p class="cn_step_exp">{{item.content}}</p> | ||
23 | + <p class="cn_step_exp">{{item.content2}}</p> | ||
24 | + </div> | ||
25 | + </div> --> | ||
26 | + <!-- 图片 --> | ||
27 | + <div class="cn_box_p" style="margin-top:181px"> | ||
28 | + <img src="@/assets/img/13.png" alt> | ||
29 | + </div> | ||
30 | + </div> | ||
31 | + </div> | ||
32 | + <!-- 右侧 题目 --> | ||
33 | + <div class="cn_exam_r"> | ||
34 | + <router-view></router-view> | ||
35 | + </div> | ||
36 | + </div> | ||
37 | +</template> | ||
38 | +<script> | ||
39 | +export default { | ||
40 | + data() { | ||
41 | + return { | ||
42 | + stepList: [ | ||
43 | + { | ||
44 | + index: 1, | ||
45 | + step: "Step1:", | ||
46 | + content: | ||
47 | + "每个分测验都有说明与例题,阅读完后请按下【开始作答】进行该分测验,时间随即开始倒数。" | ||
48 | + }, | ||
49 | + { | ||
50 | + index: 2, | ||
51 | + step: "Step2:", | ||
52 | + content: "作答时若遇到不会的题目,可先跳往下一题作答;", | ||
53 | + content2: "开始作答进行该分测验,时间随即开始倒数。" | ||
54 | + } | ||
55 | + ] | ||
56 | + }; | ||
57 | + }, | ||
58 | +}; | ||
59 | +</script> | ||
60 | +<style scoped> | ||
61 | +@import '../../../../../style/example.css' | ||
62 | +</style> |
1 | +<template> | ||
2 | + <div class="cn_right_box clearfix"> | ||
3 | + <!-- 标题及时间 --> | ||
4 | + <div class="cn_exam_title layout align_center justify"> | ||
5 | + <h2>指导和例题</h2> | ||
6 | + <div> | ||
7 | + 作答时限: | ||
8 | + <p class="cn_title_time">15分钟</p> | ||
9 | + </div> | ||
10 | + </div> | ||
11 | + <!-- 说明 --> | ||
12 | + <div class="cn_exam_exp">每一题都有两个词组,请观察他们之间的关系后,选出符合这样关系的答案,使整个句子完整而有意义。 | ||
13 | +此大题作答时间为5分钟,请把握时间尽可能快速且正确的回答。</div> | ||
14 | + <!-- 请看下列两个例题: --> | ||
15 | + <div class="cn_exam_two"> | ||
16 | + <h2>请看下面例题:</h2> | ||
17 | + </div> | ||
18 | + <!-- 具体例题 --> | ||
19 | + <div class="cn_exam_detail" v-for="item in detList" :key="item.index"> | ||
20 | + <!-- 上层 --> | ||
21 | + <!-- <div class="cn_det_top"> | ||
22 | + <p class="cn_top_title">{{item.title}}</p> | ||
23 | + </div> --> | ||
24 | + <!-- 下层 --> | ||
25 | + <div class="cn_det_bot clearfix" style="border:none"> | ||
26 | + <div class="cn_bot_box layout flex_diection justify"> | ||
27 | + <!-- 问题 --> | ||
28 | + <div class="cn_box_question layout">{{item.question}}</div> | ||
29 | + <!-- 答案 --> | ||
30 | + <div class="cn_box_answer layout align_center justify flex_row"> | ||
31 | + <p v-for="(secondItem,index) in item.answer" :key="index">{{secondItem}}</p> | ||
32 | + </div> | ||
33 | + <!-- 说明 --> | ||
34 | + <div class="cn_box_explain">{{item.explain}}</div> | ||
35 | + </div> | ||
36 | + </div> | ||
37 | + </div> | ||
38 | + <!-- 提示 --> | ||
39 | + <div class="induc_warn cn_exam_wran clearfix layout justify_center align_center"> | ||
40 | + <div class="induc_pic"> | ||
41 | + <img src="@/assets/img/12.png" alt /> | ||
42 | + </div> | ||
43 | + | ||
44 | + <!-- <p class="induc_warn_content cn_wran_content">正式作答时若你觉得某些问题太难,可先做较简单的题目,有剩余时间再回头补作。</p> --> | ||
45 | + </div> | ||
46 | + <!-- 阅读完毕开始答题 --> | ||
47 | + <div class="currency_btn" @click="nextPage">阅读完毕开始答题</div> | ||
48 | + </div> | ||
49 | +</template> | ||
50 | +<script> | ||
51 | +import { post } from "../../../../../api/http"; | ||
52 | +export default { | ||
53 | + data() { | ||
54 | + return { | ||
55 | + detList: [ | ||
56 | + { | ||
57 | + index: 1, | ||
58 | + title: "例题1. 请选取相同关系的答案,使句子完整而有意义。", | ||
59 | + question: "_______之于右,好像西之于_______", | ||
60 | + answer: [ | ||
61 | + "A 左 —— 北", | ||
62 | + "B 左 —— 南", | ||
63 | + "C 错误 —— 方向", | ||
64 | + "D 左 —— 东" | ||
65 | + ], | ||
66 | + explain: | ||
67 | + "在例题1.中,最适合的答案是D,因为“左之于右,好像西之于东”。“左对右”等于“西对东”。请点选D,以示其为正确的作答方式。" | ||
68 | + }, | ||
69 | +// { | ||
70 | +// index: 2, | ||
71 | +// title: "例题2. 请判断字词之间的关系,使等号两端的意义相同。", | ||
72 | +// question: "木头 :腐朽 = 铁块 :_______", | ||
73 | +// answer: ["A 潮湿", "B 生锈", "C 钢铁", "D 破碎"], | ||
74 | +// explain: | ||
75 | +// "在例题2中,最适合的答案是B,因为“木头用久了会腐朽”与“铁块用久了会生锈”的相对意义是相同的。答案请点选选项B。" | ||
76 | +// } | ||
77 | + ] | ||
78 | + }; | ||
79 | + }, | ||
80 | + methods: { | ||
81 | + // 阅读完毕开始答题 | ||
82 | + nextPage() { | ||
83 | + this.$router.push({ path: "/chinesetail" }); | ||
84 | + } | ||
85 | + }, | ||
86 | + mounted() {} | ||
87 | +}; | ||
88 | +</script> | ||
89 | +<style scoped> | ||
90 | +@import "../../../../../style/exampleRight.css"; | ||
91 | +</style> |
1 | +<template> | ||
2 | + <!-- 语文部分具体问题 --> | ||
3 | + <div class="cn_right_box clearfix"> | ||
4 | + <!-- 标题及时间 --> | ||
5 | + <div class="cn_exam_title layout align_center justify"> | ||
6 | + <h2>第一部分</h2> | ||
7 | + <div> | ||
8 | + 剩余时间: | ||
9 | + <p class="cn_title_time">{{ansTime | seconds}}</p> | ||
10 | + </div> | ||
11 | + </div> | ||
12 | + <!-- 说明 --> | ||
13 | + <div class="cn_exam_exp cn_det_exp">(时间截止自动提交本部分作答,截止前未记录任何答案,禁止提前离开本页面。)</div> | ||
14 | + <!-- 具体问题 --> | ||
15 | + <div | ||
16 | + class="cn_det_quest clearfix" | ||
17 | + v-for="item in questionList" | ||
18 | + :key="item.index" | ||
19 | + :id="item.id" | ||
20 | + > | ||
21 | + <div class="det_quest_box layout flex_diection align_center"> | ||
22 | + <!-- 问题 --> | ||
23 | + <div class="det_box_question layout">{{item.id}}.{{item.title}}</div> | ||
24 | + <!-- 答案 --> | ||
25 | + <div class="det_box_answer"> | ||
26 | + <div | ||
27 | + class="det_answer_choice layout flex_row align_center" | ||
28 | + v-for="ansItems in item.answer" | ||
29 | + :key="ansItems.index" | ||
30 | + @click="choiced(ansItems,item.id)" | ||
31 | + > | ||
32 | + <div class="det_answer_circle"> | ||
33 | + <img :src="ansItems.choiced?src1:src2" alt class="det_ans_pic" /> | ||
34 | + </div> | ||
35 | + <div> | ||
36 | + <i class="order_num">{{ansItems.order}}</i> | ||
37 | + {{ansItems.ans}} | ||
38 | + </div> | ||
39 | + </div> | ||
40 | + </div> | ||
41 | + </div> | ||
42 | + </div> | ||
43 | + | ||
44 | + <!-- 阅读完毕开始答题 --> | ||
45 | + <div class="currency_btn" @click="nextPage">{{btnValue}}</div> | ||
46 | + <!-- 结束提示弹窗 --> | ||
47 | + <OverDialog :overVisible.sync="overVisible" v-if="overVisible" :typeId="typeId"></OverDialog> | ||
48 | + </div> | ||
49 | +</template> | ||
50 | +<script> | ||
51 | +import OverDialog from "../OverDialog"; | ||
52 | +import { post } from "@/api/http"; | ||
53 | +import { Notification } from "element-ui"; | ||
54 | +let answer1 = {}; | ||
55 | +let ansTimer = null; | ||
56 | +export default { | ||
57 | + data() { | ||
58 | + return { | ||
59 | + btnValue: "停!等候指示,才可以翻页再作答", | ||
60 | + typeId:'', | ||
61 | + overVisible: false, | ||
62 | + src1: require("@/assets/img/15.png"), | ||
63 | + src2: require("@/assets/img/9.png"), | ||
64 | + // 答题的时间 | ||
65 | + ansTime: 0, | ||
66 | + // 数据 | ||
67 | + questionList: [], | ||
68 | + // 共几页 | ||
69 | + pageNum: "", | ||
70 | + // 每页数量 | ||
71 | + pageSize: 10, | ||
72 | + // 默认显示第一页 | ||
73 | + currentPage: 1, | ||
74 | + // 当前显示的数据 | ||
75 | + // questionList: [] | ||
76 | + }; | ||
77 | + }, | ||
78 | + methods: { | ||
79 | + // 选择答案 | ||
80 | + choiced: function(item, num) { | ||
81 | + let that = this; | ||
82 | + for (let i in this.questionList) { | ||
83 | + for (let j in this.questionList[i].answer) { | ||
84 | + if (item.evaId == this.questionList[i].answer[j].evaId) { | ||
85 | + that.$set(that.questionList[i].answer[j], "choiced", false); | ||
86 | + if (item.index == this.questionList[i].answer[j].index) { | ||
87 | + that.$set(that.questionList[i].answer[j], "choiced", true); | ||
88 | + } | ||
89 | + } | ||
90 | + } | ||
91 | + this.$forceUpdate(); | ||
92 | + } | ||
93 | + answer1[num] = item.order; | ||
94 | + localStorage.setItem("cnAnswer", JSON.stringify(answer1)); | ||
95 | + }, | ||
96 | + // 测评题目 | ||
97 | + getTestPluralisticList() { | ||
98 | + clearInterval(ansTimer); | ||
99 | + let begin = (this.currentPage - 1) * this.pageSize; | ||
100 | + let end = this.currentPage * this.pageSize; | ||
101 | + let url = "/api/primary_pluralistic/getTestPluralisticList/"; | ||
102 | + let params = { | ||
103 | + id: localStorage.getItem("evaluteId"), | ||
104 | + type: localStorage.getItem("typeId") | ||
105 | + }; | ||
106 | + let that = this; | ||
107 | + post(url, params).then(res => { | ||
108 | + this.questionList = res.list; | ||
109 | + // 答案 | ||
110 | + for (var obj of this.questionList) { | ||
111 | + if (that.currentPage == 1) { | ||
112 | + answer1[obj.id] = ""; | ||
113 | + } | ||
114 | + | ||
115 | + let arr = []; | ||
116 | + arr.push( | ||
117 | + { | ||
118 | + evaId: obj.id, | ||
119 | + index: obj.id + "-1", | ||
120 | + order: "A", | ||
121 | + ans: obj.option_a, | ||
122 | + choiced: false | ||
123 | + }, | ||
124 | + { | ||
125 | + evaId: obj.id, | ||
126 | + index: obj.id + "-2", | ||
127 | + order: "B", | ||
128 | + ans: obj.option_b, | ||
129 | + choiced: false | ||
130 | + }, | ||
131 | + { | ||
132 | + evaId: obj.id, | ||
133 | + index: obj.id + "-3", | ||
134 | + order: "C", | ||
135 | + ans: obj.option_c, | ||
136 | + choiced: false | ||
137 | + }, | ||
138 | + { | ||
139 | + evaId: obj.id, | ||
140 | + index: obj.id + "-4", | ||
141 | + order: "D", | ||
142 | + ans: obj.option_d, | ||
143 | + choiced: false | ||
144 | + } | ||
145 | + ); | ||
146 | + obj.answer = arr; | ||
147 | + }; | ||
148 | + let answered = JSON.parse(localStorage.getItem("cnAnswer")); | ||
149 | + if(answered){ | ||
150 | + answer1 = answered; | ||
151 | + }; | ||
152 | + // 缓存的数据 | ||
153 | + for (let i in answered) { | ||
154 | + // 所有数据 | ||
155 | + for (let obj of this.questionList) { | ||
156 | + if (i == obj.id) { | ||
157 | + for (let k in obj.answer) { | ||
158 | + if (answered[i] == obj.answer[k].order) { | ||
159 | + obj.answer[k].choiced = true; | ||
160 | + } | ||
161 | + } | ||
162 | + } | ||
163 | + } | ||
164 | + }; | ||
165 | + // 总页数 | ||
166 | + this.pageNum = Math.ceil(this.questionList.length / this.pageSize); | ||
167 | + // 当前显示的数据 | ||
168 | + // this.questionList = this.questionList.slice(begin, end); | ||
169 | + // 答题时间 | ||
170 | + this.ansTime = res.time; | ||
171 | + ansTimer = setInterval(function() { | ||
172 | + res.time--; | ||
173 | + that.ansTime = res.time; | ||
174 | + if (that.ansTime == 0) { | ||
175 | + clearInterval(ansTimer); | ||
176 | + ansTimer = null; | ||
177 | + that.setTestPluralistic(); | ||
178 | + } | ||
179 | + }, 1000); | ||
180 | + }); | ||
181 | + }, | ||
182 | + | ||
183 | + nextPage() { | ||
184 | + // 所有问题 | ||
185 | + let allArr = []; | ||
186 | + // 已选择问题 | ||
187 | + let ansArr = []; | ||
188 | + for (let obj of this.questionList) { | ||
189 | + allArr.push(obj.id); | ||
190 | + } | ||
191 | + // 已选择问题 | ||
192 | + for (let i in answer1) { | ||
193 | + if (answer1[i]) { | ||
194 | + ansArr.push(i / 1); | ||
195 | + } | ||
196 | + } | ||
197 | + for (var i = 0; i < allArr.length; i++) { | ||
198 | + if (ansArr.indexOf(allArr[i]) == -1) { | ||
199 | + allArr = allArr[i]; | ||
200 | + } | ||
201 | + } | ||
202 | + if (allArr.length > 3) { | ||
203 | + clearInterval(ansTimer); | ||
204 | + this.setTestPluralistic(); | ||
205 | + // if (this.currentPage == this.pageNum) { | ||
206 | + // clearInterval(ansTimer); | ||
207 | + // ansTimer = null; | ||
208 | + // this.setTestPluralistic(); | ||
209 | + // return ""; | ||
210 | + // } else { | ||
211 | + // this.currentPage++; | ||
212 | + // this.getTestPluralisticList(); | ||
213 | + // document.body.scrollTop = 0; | ||
214 | + // document.documentElement.scrollTop = 0; | ||
215 | + // } | ||
216 | + } else { | ||
217 | + Notification.info({ | ||
218 | + title: "提示", | ||
219 | + message: "请全部选择", | ||
220 | + duration: 1500 | ||
221 | + }); | ||
222 | + this.goTop(allArr); | ||
223 | + } | ||
224 | + }, | ||
225 | + // 未选择跳转 | ||
226 | + goTop(id) { | ||
227 | + document.getElementById(id).scrollIntoView(); | ||
228 | + }, | ||
229 | + // 提交测评 | ||
230 | + setTestPluralistic() { | ||
231 | + let url = "/api/primary_pluralistic/setTestPluralistic/"; | ||
232 | + let params = { | ||
233 | + id: localStorage.getItem("evaluteId"), | ||
234 | + type: localStorage.getItem("typeId"), | ||
235 | + data: JSON.stringify(answer1) | ||
236 | + }; | ||
237 | + post(url, params).then(res => { | ||
238 | + localStorage.setItem('is_complete',res.is_complete) | ||
239 | + // 题目类型 | ||
240 | + localStorage.setItem("typeId", 2); | ||
241 | + this.btnValue = "停!等候指示,才可以翻页再作答"; | ||
242 | + this.overVisible = true; | ||
243 | + this.typeId = 1; | ||
244 | + }); | ||
245 | + } | ||
246 | + }, | ||
247 | + components: { | ||
248 | + OverDialog | ||
249 | + }, | ||
250 | + mounted() { | ||
251 | + this.getTestPluralisticList(); | ||
252 | + }, | ||
253 | +}; | ||
254 | +</script> | ||
255 | +<style scoped> | ||
256 | +@import "../../../../../style/exampleRight.css"; | ||
257 | +@import "../../../../../style/detailExample.css"; | ||
258 | +</style> |
1 | +<template> | ||
2 | + <!-- 语文辞意推理 --> | ||
3 | + <div class="cn_example clearfix"> | ||
4 | + <!-- 左侧 说明--> | ||
5 | + <div class="cn_exam_l clearfix"> | ||
6 | + <div class="cn_left_box"> | ||
7 | + <!-- 词意推理 --> | ||
8 | + <div class="cn_box_title"> | ||
9 | + <h1> | ||
10 | + 第一部分 | ||
11 | + <br> | ||
12 | + 语文辞意推理 | ||
13 | + </h1> | ||
14 | + </div> | ||
15 | + <!-- 测评说明 --> | ||
16 | + <!-- 说明的内容 --> | ||
17 | + <!-- <div class="cn_box_explain clearfix"> | ||
18 | + <h2>测评说明:</h2> | ||
19 | + <div class="cn_exp_step" v-for="item in stepList" :key="item.index"> | ||
20 | + <h3>{{item.step}}</h3> | ||
21 | + | ||
22 | + <p class="cn_step_exp">{{item.content}}</p> | ||
23 | + <p class="cn_step_exp">{{item.content2}}</p> | ||
24 | + </div> | ||
25 | + </div> --> | ||
26 | + <!-- 图片 --> | ||
27 | + <div class="cn_box_p" style="margin-top:181px"> | ||
28 | + <img src="@/assets/img/13.png" alt> | ||
29 | + </div> | ||
30 | + </div> | ||
31 | + </div> | ||
32 | + <!-- 右侧 题目 --> | ||
33 | + <div class="cn_exam_r"> | ||
34 | + <router-view></router-view> | ||
35 | + </div> | ||
36 | + </div> | ||
37 | +</template> | ||
38 | +<script> | ||
39 | +export default { | ||
40 | + data() { | ||
41 | + return { | ||
42 | + stepList: [ | ||
43 | + { | ||
44 | + index: 1, | ||
45 | + step: "Step1:", | ||
46 | + content: | ||
47 | + "每个分测验都有说明与例题,阅读完后请按下【开始作答】进行该分测验,时间随即开始倒数。" | ||
48 | + }, | ||
49 | + { | ||
50 | + index: 2, | ||
51 | + step: "Step2:", | ||
52 | + content: "作答时若遇到不会的题目,可先跳往下一题作答;", | ||
53 | + content2: "开始作答进行该分测验,时间随即开始倒数。" | ||
54 | + } | ||
55 | + ] | ||
56 | + }; | ||
57 | + }, | ||
58 | +}; | ||
59 | +</script> | ||
60 | +<style scoped> | ||
61 | +@import '../../../../../style/example.css' | ||
62 | +</style> |
1 | +<template> | ||
2 | + <div class="cn_right_box clearfix"> | ||
3 | + <!-- 标题及时间 --> | ||
4 | + <div class="cn_exam_title layout align_center justify"> | ||
5 | + <h2>指导和例题</h2> | ||
6 | + <div> | ||
7 | + 作答时限: | ||
8 | + <p class="cn_title_time">15分钟</p> | ||
9 | + </div> | ||
10 | + </div> | ||
11 | + <!-- 说明 --> | ||
12 | + <div class="cn_exam_exp">每一题都有两个词组,请观察他们之间的关系后,选出符合这样关系的答案,使整个句子完整而有意义。 | ||
13 | +此大题作答时间为5分钟,请把握时间尽可能快速且正确的回答。</div> | ||
14 | + <!-- 请看下列两个例题: --> | ||
15 | + <div class="cn_exam_two"> | ||
16 | + <h2>请看下面例题:</h2> | ||
17 | + </div> | ||
18 | + <!-- 具体例题 --> | ||
19 | + <div class="cn_exam_detail" v-for="item in detList" :key="item.index"> | ||
20 | + <!-- 上层 --> | ||
21 | + <!-- <div class="cn_det_top"> | ||
22 | + <p class="cn_top_title">{{item.title}}</p> | ||
23 | + </div> --> | ||
24 | + <!-- 下层 --> | ||
25 | + <div class="cn_det_bot clearfix" style="border:none"> | ||
26 | + <div class="cn_bot_box layout flex_diection justify"> | ||
27 | + <!-- 问题 --> | ||
28 | + <div class="cn_box_question layout">{{item.question}}</div> | ||
29 | + <!-- 答案 --> | ||
30 | + <div class="cn_box_answer layout align_center justify flex_row"> | ||
31 | + <p v-for="(secondItem,index) in item.answer" :key="index">{{secondItem}}</p> | ||
32 | + </div> | ||
33 | + <!-- 说明 --> | ||
34 | + <div class="cn_box_explain">{{item.explain}}</div> | ||
35 | + </div> | ||
36 | + </div> | ||
37 | + </div> | ||
38 | + <!-- 提示 --> | ||
39 | + <div class="induc_warn cn_exam_wran clearfix layout justify_center align_center"> | ||
40 | + <div class="induc_pic"> | ||
41 | + <img src="@/assets/img/12.png" alt /> | ||
42 | + </div> | ||
43 | + | ||
44 | + <!-- <p class="induc_warn_content cn_wran_content">正式作答时若你觉得某些问题太难,可先做较简单的题目,有剩余时间再回头补作。</p> --> | ||
45 | + </div> | ||
46 | + <!-- 阅读完毕开始答题 --> | ||
47 | + <div class="currency_btn" @click="nextPage">阅读完毕开始答题</div> | ||
48 | + </div> | ||
49 | +</template> | ||
50 | +<script> | ||
51 | +import { post } from "../../../../../api/http"; | ||
52 | +export default { | ||
53 | + data() { | ||
54 | + return { | ||
55 | + detList: [ | ||
56 | + { | ||
57 | + index: 1, | ||
58 | + title: "例题1. 请选取相同关系的答案,使句子完整而有意义。", | ||
59 | + question: "_______之于右,好像西之于_______", | ||
60 | + answer: [ | ||
61 | + "A 左 —— 北", | ||
62 | + "B 左 —— 南", | ||
63 | + "C 错误 —— 方向", | ||
64 | + "D 左 —— 东" | ||
65 | + ], | ||
66 | + explain: | ||
67 | + "在例题1.中,最适合的答案是D,因为“左之于右,好像西之于东”。“左对右”等于“西对东”。请点选D,以示其为正确的作答方式。" | ||
68 | + }, | ||
69 | +// { | ||
70 | +// index: 2, | ||
71 | +// title: "例题2. 请判断字词之间的关系,使等号两端的意义相同。", | ||
72 | +// question: "木头 :腐朽 = 铁块 :_______", | ||
73 | +// answer: ["A 潮湿", "B 生锈", "C 钢铁", "D 破碎"], | ||
74 | +// explain: | ||
75 | +// "在例题2中,最适合的答案是B,因为“木头用久了会腐朽”与“铁块用久了会生锈”的相对意义是相同的。答案请点选选项B。" | ||
76 | +// } | ||
77 | + ] | ||
78 | + }; | ||
79 | + }, | ||
80 | + methods: { | ||
81 | + // 阅读完毕开始答题 | ||
82 | + nextPage() { | ||
83 | + this.$router.push({ path: "/chinesetail" }); | ||
84 | + } | ||
85 | + }, | ||
86 | + mounted() {} | ||
87 | +}; | ||
88 | +</script> | ||
89 | +<style scoped> | ||
90 | +@import "../../../../../style/exampleRight.css"; | ||
91 | +</style> |
1 | +<template> | ||
2 | + <!-- 语文部分具体问题 --> | ||
3 | + <div class="cn_right_box clearfix"> | ||
4 | + <!-- 标题及时间 --> | ||
5 | + <div class="cn_exam_title layout align_center justify"> | ||
6 | + <h2>第一部分</h2> | ||
7 | + <div> | ||
8 | + 剩余时间: | ||
9 | + <p class="cn_title_time">{{ansTime | seconds}}</p> | ||
10 | + </div> | ||
11 | + </div> | ||
12 | + <!-- 说明 --> | ||
13 | + <div class="cn_exam_exp cn_det_exp">(时间截止自动提交本部分作答,截止前未记录任何答案,禁止提前离开本页面。)</div> | ||
14 | + <!-- 具体问题 --> | ||
15 | + <div | ||
16 | + class="cn_det_quest clearfix" | ||
17 | + v-for="item in questionList" | ||
18 | + :key="item.index" | ||
19 | + :id="item.id" | ||
20 | + > | ||
21 | + <div class="det_quest_box layout flex_diection align_center"> | ||
22 | + <!-- 问题 --> | ||
23 | + <div class="det_box_question layout">{{item.id}}.{{item.title}}</div> | ||
24 | + <!-- 答案 --> | ||
25 | + <div class="det_box_answer"> | ||
26 | + <div | ||
27 | + class="det_answer_choice layout flex_row align_center" | ||
28 | + v-for="ansItems in item.answer" | ||
29 | + :key="ansItems.index" | ||
30 | + @click="choiced(ansItems,item.id)" | ||
31 | + > | ||
32 | + <div class="det_answer_circle"> | ||
33 | + <img :src="ansItems.choiced?src1:src2" alt class="det_ans_pic" /> | ||
34 | + </div> | ||
35 | + <div> | ||
36 | + <i class="order_num">{{ansItems.order}}</i> | ||
37 | + {{ansItems.ans}} | ||
38 | + </div> | ||
39 | + </div> | ||
40 | + </div> | ||
41 | + </div> | ||
42 | + </div> | ||
43 | + | ||
44 | + <!-- 阅读完毕开始答题 --> | ||
45 | + <div class="currency_btn" @click="nextPage">{{btnValue}}</div> | ||
46 | + <!-- 结束提示弹窗 --> | ||
47 | + <OverDialog :overVisible.sync="overVisible" v-if="overVisible" :typeId="typeId"></OverDialog> | ||
48 | + </div> | ||
49 | +</template> | ||
50 | +<script> | ||
51 | +import OverDialog from "../OverDialog"; | ||
52 | +import { post } from "@/api/http"; | ||
53 | +import { Notification } from "element-ui"; | ||
54 | +let answer1 = {}; | ||
55 | +let ansTimer = null; | ||
56 | +export default { | ||
57 | + data() { | ||
58 | + return { | ||
59 | + btnValue: "停!等候指示,才可以翻页再作答", | ||
60 | + typeId:'', | ||
61 | + overVisible: false, | ||
62 | + src1: require("@/assets/img/15.png"), | ||
63 | + src2: require("@/assets/img/9.png"), | ||
64 | + // 答题的时间 | ||
65 | + ansTime: 0, | ||
66 | + // 数据 | ||
67 | + questionList: [], | ||
68 | + // 共几页 | ||
69 | + pageNum: "", | ||
70 | + // 每页数量 | ||
71 | + pageSize: 10, | ||
72 | + // 默认显示第一页 | ||
73 | + currentPage: 1, | ||
74 | + // 当前显示的数据 | ||
75 | + // questionList: [] | ||
76 | + }; | ||
77 | + }, | ||
78 | + methods: { | ||
79 | + // 选择答案 | ||
80 | + choiced: function(item, num) { | ||
81 | + let that = this; | ||
82 | + for (let i in this.questionList) { | ||
83 | + for (let j in this.questionList[i].answer) { | ||
84 | + if (item.evaId == this.questionList[i].answer[j].evaId) { | ||
85 | + that.$set(that.questionList[i].answer[j], "choiced", false); | ||
86 | + if (item.index == this.questionList[i].answer[j].index) { | ||
87 | + that.$set(that.questionList[i].answer[j], "choiced", true); | ||
88 | + } | ||
89 | + } | ||
90 | + } | ||
91 | + this.$forceUpdate(); | ||
92 | + } | ||
93 | + answer1[num] = item.order; | ||
94 | + localStorage.setItem("cnAnswer", JSON.stringify(answer1)); | ||
95 | + }, | ||
96 | + // 测评题目 | ||
97 | + getTestPluralisticList() { | ||
98 | + clearInterval(ansTimer); | ||
99 | + let begin = (this.currentPage - 1) * this.pageSize; | ||
100 | + let end = this.currentPage * this.pageSize; | ||
101 | + let url = "/api/primary_pluralistic/getTestPluralisticList/"; | ||
102 | + let params = { | ||
103 | + id: localStorage.getItem("evaluteId"), | ||
104 | + type: localStorage.getItem("typeId") | ||
105 | + }; | ||
106 | + let that = this; | ||
107 | + post(url, params).then(res => { | ||
108 | + this.questionList = res.list; | ||
109 | + // 答案 | ||
110 | + for (var obj of this.questionList) { | ||
111 | + if (that.currentPage == 1) { | ||
112 | + answer1[obj.id] = ""; | ||
113 | + } | ||
114 | + | ||
115 | + let arr = []; | ||
116 | + arr.push( | ||
117 | + { | ||
118 | + evaId: obj.id, | ||
119 | + index: obj.id + "-1", | ||
120 | + order: "A", | ||
121 | + ans: obj.option_a, | ||
122 | + choiced: false | ||
123 | + }, | ||
124 | + { | ||
125 | + evaId: obj.id, | ||
126 | + index: obj.id + "-2", | ||
127 | + order: "B", | ||
128 | + ans: obj.option_b, | ||
129 | + choiced: false | ||
130 | + }, | ||
131 | + { | ||
132 | + evaId: obj.id, | ||
133 | + index: obj.id + "-3", | ||
134 | + order: "C", | ||
135 | + ans: obj.option_c, | ||
136 | + choiced: false | ||
137 | + }, | ||
138 | + { | ||
139 | + evaId: obj.id, | ||
140 | + index: obj.id + "-4", | ||
141 | + order: "D", | ||
142 | + ans: obj.option_d, | ||
143 | + choiced: false | ||
144 | + } | ||
145 | + ); | ||
146 | + obj.answer = arr; | ||
147 | + }; | ||
148 | + let answered = JSON.parse(localStorage.getItem("cnAnswer")); | ||
149 | + if(answered){ | ||
150 | + answer1 = answered; | ||
151 | + }; | ||
152 | + // 缓存的数据 | ||
153 | + for (let i in answered) { | ||
154 | + // 所有数据 | ||
155 | + for (let obj of this.questionList) { | ||
156 | + if (i == obj.id) { | ||
157 | + for (let k in obj.answer) { | ||
158 | + if (answered[i] == obj.answer[k].order) { | ||
159 | + obj.answer[k].choiced = true; | ||
160 | + } | ||
161 | + } | ||
162 | + } | ||
163 | + } | ||
164 | + }; | ||
165 | + // 总页数 | ||
166 | + this.pageNum = Math.ceil(this.questionList.length / this.pageSize); | ||
167 | + // 当前显示的数据 | ||
168 | + // this.questionList = this.questionList.slice(begin, end); | ||
169 | + // 答题时间 | ||
170 | + this.ansTime = res.time; | ||
171 | + ansTimer = setInterval(function() { | ||
172 | + res.time--; | ||
173 | + that.ansTime = res.time; | ||
174 | + if (that.ansTime == 0) { | ||
175 | + clearInterval(ansTimer); | ||
176 | + ansTimer = null; | ||
177 | + that.setTestPluralistic(); | ||
178 | + } | ||
179 | + }, 1000); | ||
180 | + }); | ||
181 | + }, | ||
182 | + | ||
183 | + nextPage() { | ||
184 | + // 所有问题 | ||
185 | + let allArr = []; | ||
186 | + // 已选择问题 | ||
187 | + let ansArr = []; | ||
188 | + for (let obj of this.questionList) { | ||
189 | + allArr.push(obj.id); | ||
190 | + } | ||
191 | + // 已选择问题 | ||
192 | + for (let i in answer1) { | ||
193 | + if (answer1[i]) { | ||
194 | + ansArr.push(i / 1); | ||
195 | + } | ||
196 | + } | ||
197 | + for (var i = 0; i < allArr.length; i++) { | ||
198 | + if (ansArr.indexOf(allArr[i]) == -1) { | ||
199 | + allArr = allArr[i]; | ||
200 | + } | ||
201 | + } | ||
202 | + if (allArr.length > 3) { | ||
203 | + clearInterval(ansTimer); | ||
204 | + this.setTestPluralistic(); | ||
205 | + // if (this.currentPage == this.pageNum) { | ||
206 | + // clearInterval(ansTimer); | ||
207 | + // ansTimer = null; | ||
208 | + // this.setTestPluralistic(); | ||
209 | + // return ""; | ||
210 | + // } else { | ||
211 | + // this.currentPage++; | ||
212 | + // this.getTestPluralisticList(); | ||
213 | + // document.body.scrollTop = 0; | ||
214 | + // document.documentElement.scrollTop = 0; | ||
215 | + // } | ||
216 | + } else { | ||
217 | + Notification.info({ | ||
218 | + title: "提示", | ||
219 | + message: "请全部选择", | ||
220 | + duration: 1500 | ||
221 | + }); | ||
222 | + this.goTop(allArr); | ||
223 | + } | ||
224 | + }, | ||
225 | + // 未选择跳转 | ||
226 | + goTop(id) { | ||
227 | + document.getElementById(id).scrollIntoView(); | ||
228 | + }, | ||
229 | + // 提交测评 | ||
230 | + setTestPluralistic() { | ||
231 | + let url = "/api/primary_pluralistic/setTestPluralistic/"; | ||
232 | + let params = { | ||
233 | + id: localStorage.getItem("evaluteId"), | ||
234 | + type: localStorage.getItem("typeId"), | ||
235 | + data: JSON.stringify(answer1) | ||
236 | + }; | ||
237 | + post(url, params).then(res => { | ||
238 | + localStorage.setItem('is_complete',res.is_complete) | ||
239 | + // 题目类型 | ||
240 | + localStorage.setItem("typeId", 2); | ||
241 | + this.btnValue = "停!等候指示,才可以翻页再作答"; | ||
242 | + this.overVisible = true; | ||
243 | + this.typeId = 1; | ||
244 | + }); | ||
245 | + } | ||
246 | + }, | ||
247 | + components: { | ||
248 | + OverDialog | ||
249 | + }, | ||
250 | + mounted() { | ||
251 | + this.getTestPluralisticList(); | ||
252 | + }, | ||
253 | +}; | ||
254 | +</script> | ||
255 | +<style scoped> | ||
256 | +@import "../../../../../style/exampleRight.css"; | ||
257 | +@import "../../../../../style/detailExample.css"; | ||
258 | +</style> |
1 | +<template> | ||
2 | + <!-- 语文辞意推理 --> | ||
3 | + <div class="cn_example clearfix"> | ||
4 | + <!-- 左侧 说明--> | ||
5 | + <div class="cn_exam_l clearfix"> | ||
6 | + <div class="cn_left_box"> | ||
7 | + <!-- 词意推理 --> | ||
8 | + <div class="cn_box_title"> | ||
9 | + <h1> | ||
10 | + 第一部分 | ||
11 | + <br> | ||
12 | + 语文辞意推理 | ||
13 | + </h1> | ||
14 | + </div> | ||
15 | + <!-- 测评说明 --> | ||
16 | + <!-- 说明的内容 --> | ||
17 | + <!-- <div class="cn_box_explain clearfix"> | ||
18 | + <h2>测评说明:</h2> | ||
19 | + <div class="cn_exp_step" v-for="item in stepList" :key="item.index"> | ||
20 | + <h3>{{item.step}}</h3> | ||
21 | + | ||
22 | + <p class="cn_step_exp">{{item.content}}</p> | ||
23 | + <p class="cn_step_exp">{{item.content2}}</p> | ||
24 | + </div> | ||
25 | + </div> --> | ||
26 | + <!-- 图片 --> | ||
27 | + <div class="cn_box_p" style="margin-top:181px"> | ||
28 | + <img src="@/assets/img/13.png" alt> | ||
29 | + </div> | ||
30 | + </div> | ||
31 | + </div> | ||
32 | + <!-- 右侧 题目 --> | ||
33 | + <div class="cn_exam_r"> | ||
34 | + <router-view></router-view> | ||
35 | + </div> | ||
36 | + </div> | ||
37 | +</template> | ||
38 | +<script> | ||
39 | +export default { | ||
40 | + data() { | ||
41 | + return { | ||
42 | + stepList: [ | ||
43 | + { | ||
44 | + index: 1, | ||
45 | + step: "Step1:", | ||
46 | + content: | ||
47 | + "每个分测验都有说明与例题,阅读完后请按下【开始作答】进行该分测验,时间随即开始倒数。" | ||
48 | + }, | ||
49 | + { | ||
50 | + index: 2, | ||
51 | + step: "Step2:", | ||
52 | + content: "作答时若遇到不会的题目,可先跳往下一题作答;", | ||
53 | + content2: "开始作答进行该分测验,时间随即开始倒数。" | ||
54 | + } | ||
55 | + ] | ||
56 | + }; | ||
57 | + }, | ||
58 | +}; | ||
59 | +</script> | ||
60 | +<style scoped> | ||
61 | +@import '../../../../../style/example.css' | ||
62 | +</style> |
1 | +<template> | ||
2 | + <div class="cn_right_box clearfix"> | ||
3 | + <!-- 标题及时间 --> | ||
4 | + <div class="cn_exam_title layout align_center justify"> | ||
5 | + <h2>指导和例题</h2> | ||
6 | + <div> | ||
7 | + 作答时限: | ||
8 | + <p class="cn_title_time">15分钟</p> | ||
9 | + </div> | ||
10 | + </div> | ||
11 | + <!-- 说明 --> | ||
12 | + <div class="cn_exam_exp">每一题都有两个词组,请观察他们之间的关系后,选出符合这样关系的答案,使整个句子完整而有意义。 | ||
13 | +此大题作答时间为5分钟,请把握时间尽可能快速且正确的回答。</div> | ||
14 | + <!-- 请看下列两个例题: --> | ||
15 | + <div class="cn_exam_two"> | ||
16 | + <h2>请看下面例题:</h2> | ||
17 | + </div> | ||
18 | + <!-- 具体例题 --> | ||
19 | + <div class="cn_exam_detail" v-for="item in detList" :key="item.index"> | ||
20 | + <!-- 上层 --> | ||
21 | + <!-- <div class="cn_det_top"> | ||
22 | + <p class="cn_top_title">{{item.title}}</p> | ||
23 | + </div> --> | ||
24 | + <!-- 下层 --> | ||
25 | + <div class="cn_det_bot clearfix" style="border:none"> | ||
26 | + <div class="cn_bot_box layout flex_diection justify"> | ||
27 | + <!-- 问题 --> | ||
28 | + <div class="cn_box_question layout">{{item.question}}</div> | ||
29 | + <!-- 答案 --> | ||
30 | + <div class="cn_box_answer layout align_center justify flex_row"> | ||
31 | + <p v-for="(secondItem,index) in item.answer" :key="index">{{secondItem}}</p> | ||
32 | + </div> | ||
33 | + <!-- 说明 --> | ||
34 | + <div class="cn_box_explain">{{item.explain}}</div> | ||
35 | + </div> | ||
36 | + </div> | ||
37 | + </div> | ||
38 | + <!-- 提示 --> | ||
39 | + <div class="induc_warn cn_exam_wran clearfix layout justify_center align_center"> | ||
40 | + <div class="induc_pic"> | ||
41 | + <img src="@/assets/img/12.png" alt /> | ||
42 | + </div> | ||
43 | + | ||
44 | + <!-- <p class="induc_warn_content cn_wran_content">正式作答时若你觉得某些问题太难,可先做较简单的题目,有剩余时间再回头补作。</p> --> | ||
45 | + </div> | ||
46 | + <!-- 阅读完毕开始答题 --> | ||
47 | + <div class="currency_btn" @click="nextPage">阅读完毕开始答题</div> | ||
48 | + </div> | ||
49 | +</template> | ||
50 | +<script> | ||
51 | +import { post } from "../../../../../api/http"; | ||
52 | +export default { | ||
53 | + data() { | ||
54 | + return { | ||
55 | + detList: [ | ||
56 | + { | ||
57 | + index: 1, | ||
58 | + title: "例题1. 请选取相同关系的答案,使句子完整而有意义。", | ||
59 | + question: "_______之于右,好像西之于_______", | ||
60 | + answer: [ | ||
61 | + "A 左 —— 北", | ||
62 | + "B 左 —— 南", | ||
63 | + "C 错误 —— 方向", | ||
64 | + "D 左 —— 东" | ||
65 | + ], | ||
66 | + explain: | ||
67 | + "在例题1.中,最适合的答案是D,因为“左之于右,好像西之于东”。“左对右”等于“西对东”。请点选D,以示其为正确的作答方式。" | ||
68 | + }, | ||
69 | +// { | ||
70 | +// index: 2, | ||
71 | +// title: "例题2. 请判断字词之间的关系,使等号两端的意义相同。", | ||
72 | +// question: "木头 :腐朽 = 铁块 :_______", | ||
73 | +// answer: ["A 潮湿", "B 生锈", "C 钢铁", "D 破碎"], | ||
74 | +// explain: | ||
75 | +// "在例题2中,最适合的答案是B,因为“木头用久了会腐朽”与“铁块用久了会生锈”的相对意义是相同的。答案请点选选项B。" | ||
76 | +// } | ||
77 | + ] | ||
78 | + }; | ||
79 | + }, | ||
80 | + methods: { | ||
81 | + // 阅读完毕开始答题 | ||
82 | + nextPage() { | ||
83 | + this.$router.push({ path: "/chinesetail" }); | ||
84 | + } | ||
85 | + }, | ||
86 | + mounted() {} | ||
87 | +}; | ||
88 | +</script> | ||
89 | +<style scoped> | ||
90 | +@import "../../../../../style/exampleRight.css"; | ||
91 | +</style> |
1 | +<template> | ||
2 | + <div class="agreement_wrap"> | ||
3 | + <!-- 多元测评协议 --> | ||
4 | + <div class="agreement_box clearfix"> | ||
5 | + <!-- 多元测评标题 --> | ||
6 | + <div class="mul_title agree_title clearfix"> | ||
7 | + <h1>多元性潜能发展测评</h1> | ||
8 | + </div> | ||
9 | + <!-- 使用条款 --> | ||
10 | + <div class="agree_article clearfix"> | ||
11 | + <h2>使用条款</h2> | ||
12 | + <!-- 具体条款 --> | ||
13 | + <div class="det_article"> | ||
14 | + <div class="single" v-for="item in articleList" :key="item.index"> | ||
15 | + <div>{{item.content}}</div> | ||
16 | + <div class="single_det" v-for="(items,index) in item.name" :key="index">{{items}}</div> | ||
17 | + </div> | ||
18 | + </div> | ||
19 | + </div> | ||
20 | + <!-- 同意 --> | ||
21 | + <div class="agree_tips layout justify_center align_center"> | ||
22 | + <div class="agree_img" @click="agreeClause()"> | ||
23 | + <img :src="isAgree?src2:src1" alt /> | ||
24 | + </div> | ||
25 | + <div class="agree_con">我已阅读并同意以上使用条款</div> | ||
26 | + </div> | ||
27 | + <div class="inter_answer_btn" @click="nextPage">下一页</div> | ||
28 | + </div> | ||
29 | + </div> | ||
30 | +</template> | ||
31 | +<script> | ||
32 | +import { Notification } from "element-ui"; | ||
33 | +export default { | ||
34 | + data() { | ||
35 | + return { | ||
36 | + articleList: [ | ||
37 | + { | ||
38 | + articleId: 0, | ||
39 | + content: | ||
40 | + "欢迎使用PAC中学生测评系统,在您正式成为我们的使用者之前,请详细阅读本服务使用条款的内容。 " | ||
41 | + }, | ||
42 | + { | ||
43 | + articleId: 1, | ||
44 | + content: | ||
45 | + "一、主体: 本服务使用条款由您和本公司所共同约定,主要是为了规范您使用PAC中学生测评系统(以下称「本系统」)以及使用各项服务(以下称「本服务」)的行为。" | ||
46 | + }, | ||
47 | + { | ||
48 | + articleId: 2, | ||
49 | + content: | ||
50 | + "二、前提: 除非您已详细阅读本服务使用条款的内容并且同意所有条款,否则请不要登入或是使用本服务。本公司于确认您的身分后,本服务使用条款即构成本公司与您之 间的契约。另外,本公司往后对这份服务使用条款可以随时更改任何条款的内容,如果您不同意本公司所公布的更新条款,请您停止使用本服务并且通知本公司;如果您在 本公司公布更新条款后继续使用本服务,就视为您同意遵守我们的更新条款内容。" | ||
51 | + }, | ||
52 | + { | ||
53 | + articleId: 3, | ||
54 | + content: "三、定义:", | ||
55 | + name: [ | ||
56 | + "1.本系统:本服务使用条款所称的本系统包括本公司所开发的校园发展评量、职场潜能评量、心理健康评量在线测评系统、所有的更新版本以及任何本公司以后所提供的辅 助或附加应用程序。 ", | ||
57 | + "2.正式使用者:本服务使用条款所称的正式使用者是指所有同意本服务使用条款内容,并完成登入程序成为正式用户。 ", | ||
58 | + "3.内容:本服务使用条款所称的内容包括本系统内的各种心理测评服务结果、信息、文字、照片、图片、音乐及其他相关项目(以下统称「内容」)。", | ||
59 | + "4.服务:本服务使用条款所称的服务是指本公司透过因特网,向正式使用者所提供的在线测评管理/评量服务。", | ||
60 | + "5.使用者账号:系指经由本公司提供之账号密码,登入指定网页以使用本服务。", | ||
61 | + "6.服务期间:服务期间系指各正式使用者按其所选择使用服务的内容及付费方式,所得使用本服务之期间。" | ||
62 | + ] | ||
63 | + }, | ||
64 | + { | ||
65 | + articleId: 4, | ||
66 | + content: | ||
67 | + " 四、授权: 在您同意本服务使用条款所有内容的前提下,本公司授权您使用本服务,但您必须确实遵守本服务使用条款的规定,如有任何违反本服务使用条款的地方,本 公司得在察觉该违反情形后,不经通知即单方面停止您使用本服务的权利。", | ||
68 | + name: [ | ||
69 | + "1.本服务所容许的使用方式:本公司授权您使用本服务进行本服务各项内容之在线测评,但您不得更改、再授权、出租、销售、或转让任何本服务使用条款所赋予您的权 利。您并同意遵守所有适用的地方、国家及国际法律、法规,即只为合法目的而使用本服务。 ", | ||
70 | + "2.本服务所禁止的使用方式:本公司禁止任何正式使用者对本服务的原始程序编码进行任何修改、阻止或妨碍其他正式使用者享受本服务、藉本服务而散布病毒或其他足以 损害他人计算机运作之程序、违反任何本服务使用条款的软件或内容、及任何可能侵害他人知识产权或其它权益之内容。您不可以对本系统进行还原工程、反向编码、简化 为常人可理解形式或反向组译。", | ||
71 | + "3.除执行本系统所必要的情形外,您不得复制或修改本公司所提供的技术或网页档。如任何其他第三人检举,并且经本公司证实您使用本系统的方式确实超出本服务使用 条款所许可的范围,本公司得随时不经通知即取消您的正式用户权力。", | ||
72 | + " 4.本公司保留采取任何必要的手段来阻止您以本服务使用条款所禁止的方式使用本服务,包括但不限于以技术性障碍阻止您登入本服务或直接与您的网络服务提供商联络。" | ||
73 | + ] | ||
74 | + }, | ||
75 | + { | ||
76 | + articleId: 5, | ||
77 | + content: "五、使用者的责任:", | ||
78 | + name: [ | ||
79 | + "1.如果您是付费使用本服务管理者系统的正式用户,您同意按照本公司的规定而给付使用本服务之费用。如果您未依规定缴交费用,本公司有权立即冻结您的账号并暂时终 止您使用本服务的权利,直到您补缴费用为止。 ", | ||
80 | + "2.您同意于使用本服务各项内容之在线测评时,提供正确的个人资料,并秉持诚意、不故意为相反或错误之作答。", | ||
81 | + "3.您使用本服务的行为,除了表示您同意遵守本服务使用条款的内容外,也表示您同意在遵守中华人民共和国著作权法之各项条款的前提下,使用本系统内之各项内容。", | ||
82 | + "4.您应妥善保管您的账号和密码,以免遭他人冒用或不当使用。您对以您的账号所进行的任何及全部行为负责,包括但不限于任何因使用您的账号所获得之内容及服务而应 给付予本公司的费用。", | ||
83 | + "5.您不得以本服务所容许使用范围外的方式修改、复制、公开展示、公布或分发系统内容或者以其他方式把它们用于任何公开或商业目的。本公司禁止以任何目的把系统内 容用于其他Web网站或连网计算机环境。系统的内容受版权保护,任何未经授权的使用都可能构成侵犯版权、商标和其他法律。如果您违反本条款,您使用本服务的权利 将自动终止,同时您必须自行负责一切违法使用的法律责任。", | ||
84 | + "6.您同意本公司保存所有测评之相关资料复本3年,作为学校测评结果分析、日后产品研发参考及与其他测评结果统计比较之用等非销售用途。 " | ||
85 | + ] | ||
86 | + }, | ||
87 | + { | ||
88 | + articleId: 6, | ||
89 | + content: "六、隐私权: ", | ||
90 | + name: [ | ||
91 | + "1.本公司尊重正式使用者之隐私权并将其数据保密,但基于诚信、在合理的必要情况下、为满足法律、司法单位的要求、为增进、改善本服务内容、为正常地操作系统、为 保护本公司或第三人,或者本服务使用条款另有容许时,本公司可以披露任何有关您或是您的账号资料、以及您使用本服务的相关记录。您使用本服务即代表您同意本公司 在上述情形下可以不经通知您本人即披露前述信息。", | ||
92 | + "2.如果您是以学校/机关/团体/机构/单位之成员的身分接受施测,则视为您同意本公司可以将您的测评分析报告向您学校/机关/团体/机构/单位内部之相关辅导人员揭露,以 供该辅导人员在其辅导业务范围内使用。但您了解该辅导人员原本(依法令或依契约)即负有保守您的个人隐私的义务,若该辅导人员擅自泄露您的测评分析报告,或者超 出其辅导业务范围而使用您的测评分析报告,应由该辅导人员自负一切责任,与本公司无涉。" | ||
93 | + ] | ||
94 | + }, | ||
95 | + { | ||
96 | + articleId: 7, | ||
97 | + content: | ||
98 | + "七、知识产权: 本公司所提供的软件、文本文件及任何编码,不论是储存于磁盘、可读式储存媒体、任何其他媒体上,本公司仅准许您使用本系统,而并非将其所有权移转 给您。您只可以根据本服务使用条款的内容加以使用,一切本公司没有在本服务使用条款中明确授予您的权利,均由本公司保留。本公司及其授权人保留对本系统的所有权 及一切知识产权。您承认本公司技术受版权法及国际条约规定的保护,并同意不会变更、消除、隐匿其中所包含的任何版权或其它所有权或产品的标记。 " | ||
99 | + }, | ||
100 | + { | ||
101 | + articleId: 8, | ||
102 | + content: "八、责任限制:", | ||
103 | + name: [ | ||
104 | + "1.本公司对于透过本服务所提供的任何信息、产品或服务,均仅依各该服务当时之功能及现况提供使用,至于其速度、安全性、正确性、可靠性、完整性及不会断线和出错 等,本公司不负任何形式或内容之担保或保证责任。", | ||
105 | + "2.本公司不对由任何正式使用者所提供的内容负责,而且对透过本服务所提供内容的准确性、实时性、完整性、可靠性或有用性,不承担任何责任亦不承诺任何担保或保障。", | ||
106 | + "3.无论在任何情况下,本公司及其授权人都不应该对使用者的任何损失负损害赔偿的责任,包括因使用或无法使用本系统或服务而引起的损失或其它直接、间接、意外、特 别或附随性的损失(包括但不限于任何其它金钱上的损失)。" | ||
107 | + ] | ||
108 | + }, | ||
109 | + { | ||
110 | + articleId: 9, | ||
111 | + content: | ||
112 | + "九、损害赔偿条款: 本公司对于正式使用者因本公司及其他正式使用者的故意过失行为所造成的任何瑕疵与损害不负担保与赔偿之责。这些瑕疵与损害包括但不限于因系 统延误而失去的数据、系统当机时间、错误发送、网络或系统停用、档案错误或服务中断等情形。您并同意维护本公司与其母公司、子公司及相关公司,以及雇员、受许可 人之权益,而使其不承担任何损失、责任、赔偿要求、要求、损害赔偿以及律师费用。 " | ||
113 | + }, | ||
114 | + { | ||
115 | + articleId: 10, | ||
116 | + content: | ||
117 | + "十、服务使用条款的修改: 本服务使用条款构成您与本公司就使用本服务所同意的全部内容。本公司保留随时修改本服务使用条款的权利,而且修改后的服务使用条款一经 本公司的网站上公布即生效,本公司不另外个别通知各位正式使用者。如果您不能接受本公司对本服务使用条款所做的任何修改,您可以随时通知本公司终止您的正式使用 者资格。当本公司将修改后的服务使用条款内容于本公司网站上公布以后,您若继续使用本系统与服务的行为即视为您已接受此修改。" | ||
118 | + } | ||
119 | + ], | ||
120 | + src1: require("../../../assets/img/agree1.png"), | ||
121 | + src2: require("../../../assets/img/agree.png"), | ||
122 | + isAgree: true | ||
123 | + }; | ||
124 | + }, | ||
125 | + methods: { | ||
126 | + agreeClause() { | ||
127 | + this.isAgree = !this.isAgree; | ||
128 | + }, | ||
129 | + nextPage() { | ||
130 | + if (this.isAgree) { | ||
131 | + this.$router.push({ path: "/MulSchoolEvalution" }); | ||
132 | + } else { | ||
133 | + Notification.info({ | ||
134 | + title: "提示", | ||
135 | + message: "请选择用户协议", | ||
136 | + duration: 1500 | ||
137 | + }); | ||
138 | + } | ||
139 | + } | ||
140 | + } | ||
141 | +}; | ||
142 | +</script> | ||
143 | +<style scoped> | ||
144 | +/* 施测说明标题 */ | ||
145 | +@import "../../../style/mulTitle.css"; | ||
146 | +/* 下一页按钮 */ | ||
147 | +@import "../../../style/btn.css"; | ||
148 | +.agreement_wrap { | ||
149 | + width: 100%; | ||
150 | + background-color: #f2f5fa; | ||
151 | + padding: 36px 0 40px; | ||
152 | +} | ||
153 | +.agreement_box { | ||
154 | + width: 1200px; | ||
155 | + margin: 0 auto; | ||
156 | + background: #fff; | ||
157 | +} | ||
158 | +/* 标题 */ | ||
159 | +.agree_title { | ||
160 | + padding-top: 69px; | ||
161 | +} | ||
162 | +/* 使用条款 */ | ||
163 | +.agree_article { | ||
164 | + width: 1108px; | ||
165 | + margin: 0 auto; | ||
166 | + background-color: #f1f1f1; | ||
167 | +} | ||
168 | +h2 { | ||
169 | + color: #34485e; | ||
170 | + font-size: 20px; | ||
171 | + padding: 30px 0 0; | ||
172 | +} | ||
173 | +.det_article { | ||
174 | + padding: 27px 23px 0; | ||
175 | + font-size: 14px; | ||
176 | + color: #8c9198; | ||
177 | +} | ||
178 | +/* 单个条款 */ | ||
179 | +.single { | ||
180 | + margin-bottom: 30px; | ||
181 | + text-align: left; | ||
182 | +} | ||
183 | +/* 同意 */ | ||
184 | +.agree_img { | ||
185 | + margin-right: 8px; | ||
186 | + width: 14px; | ||
187 | + height: 14px; | ||
188 | + line-height: 14px; | ||
189 | +} | ||
190 | +.agree_img img { | ||
191 | + display: block; | ||
192 | +} | ||
193 | +.agree_tips { | ||
194 | + color: #409eff; | ||
195 | + margin-top: 54px; | ||
196 | +} | ||
197 | +/* 下一页 */ | ||
198 | +.inter_answer_btn { | ||
199 | + margin-bottom: 53px; | ||
200 | +} | ||
201 | +</style> |
@@ -32,7 +32,8 @@ | @@ -32,7 +32,8 @@ | ||
32 | <div class="test_style clearfix"> | 32 | <div class="test_style clearfix"> |
33 | <div class="test_style_l"> | 33 | <div class="test_style_l"> |
34 | <div class="test_interest"> | 34 | <div class="test_interest"> |
35 | - <p>{{item.test_category == 'interest'?"兴趣测评":"多元性向GS"}}</p> | 35 | + <!-- <p>{{item.test_category == 'interest'?"兴趣测评":"多元性向GS"}}</p> --> |
36 | + <p>{{item.type_category_text}}</p> | ||
36 | <p>{{item.title}}</p> | 37 | <p>{{item.title}}</p> |
37 | </div> | 38 | </div> |
38 | <div class="test_start_end"> | 39 | <div class="test_start_end"> |
@@ -106,6 +107,19 @@ export default { | @@ -106,6 +107,19 @@ export default { | ||
106 | localStorage.setItem("evaluteId", item.id); | 107 | localStorage.setItem("evaluteId", item.id); |
107 | // 学生 | 108 | // 学生 |
108 | if (this.groupId == 1) { | 109 | if (this.groupId == 1) { |
110 | + // if (item.test_category == "interest") { | ||
111 | + // // 兴趣测评 | ||
112 | + // this.$router.push({ path: "/Inducte" }); | ||
113 | + // } else if (item.test_category == "pluralistic") { | ||
114 | + // // 多元性向测评 | ||
115 | + // this.$router.push({ path: "/MulAgreement" }); | ||
116 | + // }else if(item.test_category=='school_suit'){ | ||
117 | + // // 校园生活适应测评 | ||
118 | + // this.$router.push({ path: "/SchoolLife" }); | ||
119 | + // }else if(item.test_category=='junior_interest'){ | ||
120 | + // // 初中兴趣测评 | ||
121 | + // this.$router.push({ path: "/JuniorIntrest" }); | ||
122 | + // } | ||
109 | if (item.button_status == 1) { | 123 | if (item.button_status == 1) { |
110 | if (item.is_to_show_student == 1) { | 124 | if (item.is_to_show_student == 1) { |
111 | // 查看报告 | 125 | // 查看报告 |
@@ -115,7 +129,21 @@ export default { | @@ -115,7 +129,21 @@ export default { | ||
115 | path: "/AssessmentReport", | 129 | path: "/AssessmentReport", |
116 | query: { testId: item.test_student_id } | 130 | query: { testId: item.test_student_id } |
117 | }); | 131 | }); |
118 | - } else if (item.test_category == "pluralistic") { | 132 | + }else if(item.test_category == "junior_interest"){ |
133 | + // 初中兴趣测评 | ||
134 | + this.$router.push({ | ||
135 | + path: "/juniorintrestresult", | ||
136 | + query: { testId: item.test_student_id } | ||
137 | + }); | ||
138 | + | ||
139 | + }else if(item.test_category == "primary_pluralistic"){ | ||
140 | + // 小学多元测评 | ||
141 | + // this.$router.push({ | ||
142 | + // path: "/juniorintrestresult", | ||
143 | + // query: { testId: item.test_student_id } | ||
144 | + // }); | ||
145 | + | ||
146 | + }else if (item.test_category == "pluralistic") { | ||
119 | // 多元测评报告 | 147 | // 多元测评报告 |
120 | this.$router.push({ path: "/MulReport" }); | 148 | this.$router.push({ path: "/MulReport" }); |
121 | } | 149 | } |
@@ -133,7 +161,17 @@ export default { | @@ -133,7 +161,17 @@ export default { | ||
133 | } else if (item.test_category == "pluralistic") { | 161 | } else if (item.test_category == "pluralistic") { |
134 | // 多元性向测评 | 162 | // 多元性向测评 |
135 | this.$router.push({ path: "/MulAgreement" }); | 163 | this.$router.push({ path: "/MulAgreement" }); |
164 | + }else if(item.test_category=='school_suit'){ | ||
165 | + // 校园生活适应测评 | ||
166 | + this.$router.push({ path: "/SchoolLife" }); | ||
167 | + }else if(item.test_category=='junior_interest'){ | ||
168 | + // 初中兴趣测评 | ||
169 | + this.$router.push({ path: "/JuniorIntrest" }); | ||
170 | + }else if(item.test_category=='primary_pluralistic'){ | ||
171 | + // 小学多元测评 | ||
172 | + this.$router.push({ path: "/SchoolMulAgreement" }); | ||
136 | } | 173 | } |
174 | + | ||
137 | } | 175 | } |
138 | } else if (this.groupId == 2) { | 176 | } else if (this.groupId == 2) { |
139 | // 家长 | 177 | // 家长 |
1 | +<template> | ||
2 | + <div class="induc_wrap"> | ||
3 | + <!-- 施测说明 --> | ||
4 | + <div class="induc clearfix"> | ||
5 | + <div class="induc_box clearfix"> | ||
6 | + <!-- 施测说明标题 --> | ||
7 | + <div class="induc_title clearfix"> | ||
8 | + <h1>施测说明</h1> | ||
9 | + </div> | ||
10 | + <!-- 提示 --> | ||
11 | + <div class="induc_tips">面对未来,许多人会想选择有兴趣的专业或工作, | ||
12 | + 因为兴趣让人有热情、活力与成就感。这份测验能帮助你了解自己的兴趣, | ||
13 | + 进而探索适当的专业及工作。 测验中列举了一些活动和职业名称, | ||
14 | + 回答时只需要考虑「喜欢」或者「不喜欢」的程度, | ||
15 | + 不必在意是否有机会去做这件事。作答时,有的根据您从小到大的生活经验; | ||
16 | + 至于有些没有经历过的事, | ||
17 | + 就请你以直觉来回答。作答时间大约15分钟。</div> | ||
18 | + <!-- 选项说明 --> | ||
19 | + <div class="induc_option clearfix"> | ||
20 | + <!-- 左侧图片 --> | ||
21 | + <div class="induc_option_l"> | ||
22 | + <img src="@/assets/img/11.png" alt /> | ||
23 | + </div> | ||
24 | + <!-- 右侧说明 --> | ||
25 | + <div class="induc_option_r clearfix"> | ||
26 | + <h3>选项说明:</h3> | ||
27 | + <ul class="induc_ul"> | ||
28 | + <li v-for="(item,index) in inducList" :key="index">{{item}}</li> | ||
29 | + </ul> | ||
30 | + </div> | ||
31 | + </div> | ||
32 | + <!-- 评测按钮 --> | ||
33 | + <div class="induc_btn currency_btn" @click="toInter">开始测评</div> | ||
34 | + <!-- 提示 --> | ||
35 | + <div class="induc_warn clearfix layout justify_center align_center"> | ||
36 | + <div class="induc_pic"> | ||
37 | + <img src="@/assets/img/12.png" alt /> | ||
38 | + </div> | ||
39 | + | ||
40 | + <p class="induc_warn_content">本测评无标准答案,与学业成绩无关,请按个人真实感受客观选择,不建议短时间内多次重复测评</p> | ||
41 | + </div> | ||
42 | + </div> | ||
43 | + </div> | ||
44 | + </div> | ||
45 | +</template> | ||
46 | +<script> | ||
47 | +export default { | ||
48 | + data() { | ||
49 | + return { | ||
50 | + active: 1, | ||
51 | + inducList: [ | ||
52 | + "非常喜欢:有强烈(特别喜欢)的感觉", | ||
53 | + "喜欢:有(喜欢做)的快乐感觉,不会日久生厌", | ||
54 | + "不喜欢:有(不想做)的厌烦感觉", | ||
55 | + "非常不喜欢:有强烈(排斥)的感觉" | ||
56 | + ], | ||
57 | + }; | ||
58 | + }, | ||
59 | + methods: { | ||
60 | + // 生涯兴趣测评 | ||
61 | + toInter: function() { | ||
62 | + localStorage.removeItem("interAnswer2"); | ||
63 | + this.$router.push({ path: "/JuniorIntrestTest"}); | ||
64 | + } | ||
65 | + }, | ||
66 | +}; | ||
67 | +</script> | ||
68 | +<style scoped> | ||
69 | +.induc_wrap { | ||
70 | + width: 100%; | ||
71 | + background-color: #f2f5fa; | ||
72 | + padding: 36px 0 134px; | ||
73 | +} | ||
74 | +.induc { | ||
75 | + width: 1200px; | ||
76 | + /* height: 731px; */ | ||
77 | + background-color: #fff; | ||
78 | + margin: 0 auto; | ||
79 | + padding-bottom: 32px; | ||
80 | + box-sizing: border-box; | ||
81 | +} | ||
82 | +.induc_box { | ||
83 | + width: 713px; | ||
84 | + margin: 0 auto; | ||
85 | + padding-top: 95px; | ||
86 | + text-align: center; | ||
87 | +} | ||
88 | +/* 施测说明标题 */ | ||
89 | +.induc_title h1 { | ||
90 | + font-size: 36px; | ||
91 | + color: #34485e; | ||
92 | + position: relative; | ||
93 | + width: 144px; | ||
94 | + margin: 0 auto; | ||
95 | + margin-bottom: 68px; | ||
96 | +} | ||
97 | +.induc_title h1:after { | ||
98 | + content: ""; | ||
99 | + position: absolute; | ||
100 | + bottom: -31px; | ||
101 | + left: 29px; | ||
102 | + width: 87px; | ||
103 | + height: 1px; | ||
104 | + background-color: #34485e; | ||
105 | +} | ||
106 | +/* 提示 */ | ||
107 | +.induc_tips { | ||
108 | + font-size: 16px; | ||
109 | + color: #409eff; | ||
110 | + text-align: left; | ||
111 | + line-height: 22px; | ||
112 | +} | ||
113 | +/* 选项说明 */ | ||
114 | +.induc_option { | ||
115 | + margin: 41px 0 59px; | ||
116 | +} | ||
117 | +/* 左侧图片 */ | ||
118 | +.induc_option_l { | ||
119 | + float: left; | ||
120 | + width: 287px; | ||
121 | + height: 246px; | ||
122 | + margin-left: 22px; | ||
123 | +} | ||
124 | +.induc_option_l img { | ||
125 | + width: 100%; | ||
126 | + height: 100%; | ||
127 | +} | ||
128 | +/* 右侧说明 */ | ||
129 | +.induc_option_r { | ||
130 | + float: right; | ||
131 | + margin-top: 38px; | ||
132 | + text-align: left; | ||
133 | +} | ||
134 | +.induc_option_r h3 { | ||
135 | + font-size: 20px; | ||
136 | + color: #409eff; | ||
137 | +} | ||
138 | +.induc_ul { | ||
139 | + text-align: left; | ||
140 | + font-size: 14px; | ||
141 | + color: #8c9198; | ||
142 | + line-height: 19px; | ||
143 | + margin-top: 32px; | ||
144 | + margin-left: 18px; | ||
145 | +} | ||
146 | +.induc_ul li { | ||
147 | + list-style: disc; | ||
148 | + margin-bottom: 10px; | ||
149 | +} | ||
150 | + | ||
151 | +/* 警告 */ | ||
152 | +.induc_warn_content { | ||
153 | + color: #409eff; | ||
154 | + font-size: 16px; | ||
155 | +} | ||
156 | +</style> |
1 | +<template> | ||
2 | + <!-- 兴趣检测报告 --> | ||
3 | + <div class="assessment_report"> | ||
4 | + <div class="assessment_wrap"> | ||
5 | + <!-- 第一部分 --> | ||
6 | + <div class="assessment_first layout align_center justify_center clearfix"> | ||
7 | + <div> | ||
8 | + <img src="@/assets/img/note.png" alt /> | ||
9 | + </div> | ||
10 | + <h1> | ||
11 | + 个人报告 | ||
12 | + <br />生涯兴趣测验 | ||
13 | + </h1> | ||
14 | + </div> | ||
15 | + <!-- 第二部分 --> | ||
16 | + <div class="assessment_second clearfix"> | ||
17 | + <!-- 书签 --> | ||
18 | + <div class="first_bg_l"> | ||
19 | + <img src="@/assets/img/bg.png" alt /> | ||
20 | + </div> | ||
21 | + <div class="first_bg_r"> | ||
22 | + <img src="@/assets/img/bg.png" alt /> | ||
23 | + </div> | ||
24 | + <!-- 上层 --> | ||
25 | + <div class="assess_second_top layout justify clearfix"> | ||
26 | + <!-- 受试者资料 --> | ||
27 | + <div class="assess_top_l layout flex_diection align_left clearfix"> | ||
28 | + <h2>受试者资料</h2> | ||
29 | + <div class="assess_det_data layout justify align_center"> | ||
30 | + <!-- 头像 --> | ||
31 | + <div class="assess_img"> | ||
32 | + <img :src="studentInfo.avatar" alt /> | ||
33 | + </div> | ||
34 | + <!-- 资料 --> | ||
35 | + <div class="assess_msg layout justify flex_diection align_left"> | ||
36 | + <h3>{{studentInfo.nickname}}</h3> | ||
37 | + <!-- 个人信息 --> | ||
38 | + <div class="personal_infor layout flex_row"> | ||
39 | + <div class="per_infor_single"> | ||
40 | + 性别: | ||
41 | + <i></i> | ||
42 | + {{studentInfo.sex == 1?"男":"女"}} | ||
43 | + </div> | ||
44 | + <div class="per_infor_single"> | ||
45 | + 年级: | ||
46 | + <i></i> | ||
47 | + {{studentInfo.group}} | ||
48 | + </div> | ||
49 | + <!-- <div class="per_infor_single per_infor_num"> | ||
50 | + 学号: | ||
51 | + <i></i> | ||
52 | + {{userName}} | ||
53 | + </div>--> | ||
54 | + </div> | ||
55 | + <div class="layout flex_row"> | ||
56 | + <div class="per_infor_single"> | ||
57 | + 班级: | ||
58 | + <i></i> | ||
59 | + {{studentInfo.class}} | ||
60 | + </div> | ||
61 | + <div class="per_infor_single"> | ||
62 | + 学校: | ||
63 | + <i></i> | ||
64 | + {{studentInfo.school_name}} | ||
65 | + </div> | ||
66 | + <!-- <div class="per_infor_single"> | ||
67 | + 日期: | ||
68 | + <i></i> | ||
69 | + {{reportList.endtime_text}} | ||
70 | + </div>--> | ||
71 | + </div> | ||
72 | + </div> | ||
73 | + </div> | ||
74 | + </div> | ||
75 | + <!-- 这份报告你会看到 --> | ||
76 | + <div class="assess_top_r layout flex_diection justify align_left clearfix"> | ||
77 | + <h2>这份报告你会看到</h2> | ||
78 | + <div class="report_content layout flex_row"> | ||
79 | + <div | ||
80 | + class="report_single layout justify_center align_center" | ||
81 | + v-for="item in watchList" | ||
82 | + :class="{report_center:item.watchId == 2,report_right:item.watchId == 3}" | ||
83 | + :key="item.watchId" | ||
84 | + @click="goAnchor(item.watchId)" | ||
85 | + > | ||
86 | + {{item.name}} | ||
87 | + <br /> | ||
88 | + {{item.name1}} | ||
89 | + </div> | ||
90 | + </div> | ||
91 | + </div> | ||
92 | + </div> | ||
93 | + <!-- 下层 --> | ||
94 | + <div class="assess_second_bot"> | ||
95 | + <div v-for="(item,index) in contentList" :key="index" class="assess_bot_content">{{item}}</div> | ||
96 | + </div> | ||
97 | + <!-- 书签 --> | ||
98 | + <div class="second_bg_l"> | ||
99 | + <img src="@/assets/img/bg.png" alt /> | ||
100 | + </div> | ||
101 | + <div class="second_bg_r"> | ||
102 | + <img src="@/assets/img/bg.png" alt /> | ||
103 | + </div> | ||
104 | + </div> | ||
105 | + <!-- 第三部分 --> | ||
106 | + <div class="assessment_third clearfix layout flex_diection align_left" id="first"> | ||
107 | + <!-- 六类型分数 --> | ||
108 | + <div class="assess_third_score layout flex_diection align_left"> | ||
109 | + <h2>六类型分数</h2> | ||
110 | + <table class="assess_type_score"> | ||
111 | + <tr class="tr_type"> | ||
112 | + <td v-for="(item,index) in titList" :key="index">{{item.name}}</td> | ||
113 | + </tr> | ||
114 | + <tr> | ||
115 | + <td v-for="(item,index) in tdList" :key="index" class="tr_score">{{item}}</td> | ||
116 | + </tr> | ||
117 | + </table> | ||
118 | + </div> | ||
119 | + <!-- 测评反馈 --> | ||
120 | + <div class="assess_third_induc layout flex_diection align_left"> | ||
121 | + <!-- 图表 --> | ||
122 | + <div class="assess_third_echats layout"> | ||
123 | + <!-- 六角星图 --> | ||
124 | + <div class="assess_echats_radar layout align_left flex_diection"> | ||
125 | + <h2>六角星图</h2> | ||
126 | + <div id="myChart" :style="{width: '477px', height: '401px'}"></div> | ||
127 | + </div> | ||
128 | + <!-- 数线图 --> | ||
129 | + <div class="assess_echats_line layout align_left flex_diection"> | ||
130 | + <h2>数线图</h2> | ||
131 | + <div id="lineChart" :style="{width: '482px', height: '415px'}"></div> | ||
132 | + </div> | ||
133 | + </div> | ||
134 | + <!-- 评价 --> | ||
135 | + <div class="assess_third_eva"> | ||
136 | + <ul class="assess_third_ul layout flex_diection align_left"> | ||
137 | + <li> | ||
138 | + 生涯兴趣组型(Holland Code): | ||
139 | + <i class="assess_third_bold">{{coded}}</i> | ||
140 | + </li> | ||
141 | + <li> | ||
142 | + 我的生涯特质: | ||
143 | + <i class="assess_third_bold">{{traits}}</i> | ||
144 | + </li> | ||
145 | + <li> | ||
146 | + 自我介绍三码: | ||
147 | + <i class="assess_third_bold">{{introduceCode}}</i> | ||
148 | + </li> | ||
149 | + <li> | ||
150 | + 区分性: | ||
151 | + <i class="assess_third_bold">{{strong}}</i> | ||
152 | + </li> | ||
153 | + </ul> | ||
154 | + </div> | ||
155 | + <!-- 选课意向 --> | ||
156 | + <div class="assess_third_choice" id="second"> | ||
157 | + <ul class="assess_choice_ul"> | ||
158 | + <li class="assess_choice_li clearfix"> | ||
159 | + <p class="assess_ul_p">我有兴趣的选课倾向:</p> | ||
160 | + <div v-for="(item,index) in currList1" :key="index" class="curr">{{item}}</div> | ||
161 | + </li> | ||
162 | + <li class="assess_choice_li clearfix"> | ||
163 | + <p class="assess_ul_p">我有兴趣的科系:</p> | ||
164 | + <div class="assess_ul_div"> | ||
165 | + <div v-for="(item,index) in currList2" :key="index"> | ||
166 | + <i class="curr" v-for="(items,index) in item" :key="index">{{items}}</i> | ||
167 | + </div> | ||
168 | + </div> | ||
169 | + </li> | ||
170 | + <li class="assess_choice_li clearfix"> | ||
171 | + <p class="assess_ul_p">我有兴趣的职业:</p> | ||
172 | + <div class="assess_ul_div"> | ||
173 | + <div v-for="(item,index) in currList3" :key="index" class="curr"> | ||
174 | + <i class="curr" v-for="(items,index) in item" :key="index">{{items}}</i> | ||
175 | + </div> | ||
176 | + </div> | ||
177 | + </li> | ||
178 | + </ul> | ||
179 | + </div> | ||
180 | + </div> | ||
181 | + <!-- 得分说明 --> | ||
182 | + <div class="assess_third_score_induc" id="third"> | ||
183 | + <h2>得分说明</h2> | ||
184 | + <div class="third_score_induc"> | ||
185 | + <div class="third_score_det" v-for="(item,index) in inducList" :key="index">{{item}}</div> | ||
186 | + </div> | ||
187 | + </div> | ||
188 | + <!-- 书签 --> | ||
189 | + <div class="third_bg_l"> | ||
190 | + <img src="@/assets/img/bg.png" alt /> | ||
191 | + </div> | ||
192 | + <div class="third_bg_r"> | ||
193 | + <img src="@/assets/img/bg.png" alt /> | ||
194 | + </div> | ||
195 | + </div> | ||
196 | + <!-- 第四部分 --> | ||
197 | + <div class="assessment_fourth clearfix layout align_left flex_diection"> | ||
198 | + <h2>六型介绍</h2> | ||
199 | + <!-- 具体类型 --> | ||
200 | + <div class="assess_four_type clearfix layout flex_row"> | ||
201 | + <div | ||
202 | + class="assess_det_type" | ||
203 | + v-for="item in typeList" | ||
204 | + :key="item.typeId" | ||
205 | + @click="showDialog(item)" | ||
206 | + :class="{type_two:item.typeId == 2,type_three:item.typeId == 3,type_four:item.typeId == 4,type_five:item.typeId == 5,type_six:item.typeId == 6}" | ||
207 | + > | ||
208 | + <i>{{item.letter}}</i> | ||
209 | + <br /> | ||
210 | + {{item.name}} | ||
211 | + <!-- 类型介绍图片 --> | ||
212 | + <div | ||
213 | + class="type_pic" | ||
214 | + v-show="item.typeId == isType" | ||
215 | + :class="{type_pic1:item.typeId == 1||item.typeId == 2,type_pic3:item.typeId == 3,type_pic4:item.typeId == 4,type_pic5:item.typeId == 5||item.typeId == 6}" | ||
216 | + > | ||
217 | + <div class="type_close" @click.stop="closeTypePic(item)"></div> | ||
218 | + <img :src="item.img" alt /> | ||
219 | + </div> | ||
220 | + </div> | ||
221 | + </div> | ||
222 | + </div> | ||
223 | + <div class="second_btn"> | ||
224 | + <a :href="assessReportUrl" target="_blank">下载报告</a> | ||
225 | + </div> | ||
226 | + </div> | ||
227 | + </div> | ||
228 | +</template> | ||
229 | +<script> | ||
230 | +// 引入基本模板 | ||
231 | +let echarts = require("echarts/lib/echarts"); | ||
232 | +// 引入雷达图组件 | ||
233 | +require("echarts/lib/chart/radar"); | ||
234 | +// 引入折线图组件 | ||
235 | +require("echarts/lib/chart/line"); | ||
236 | +// 引入提示框 | ||
237 | +require("echarts/lib/component/tooltip"); | ||
238 | +import { post } from "@/api/http"; | ||
239 | +export default { | ||
240 | + data() { | ||
241 | + return { | ||
242 | + assessReportUrl: "", | ||
243 | + isType: "", | ||
244 | + title: "", | ||
245 | + // 兴趣测评报告 | ||
246 | + reportList: [], | ||
247 | + // 看到内容 | ||
248 | + watchList: [ | ||
249 | + { watchId: 1, name: "生涯兴趣 ", name1: "测评介绍" }, | ||
250 | + { watchId: 2, name: "适配的学系 ", name1: "与职业" }, | ||
251 | + { watchId: 3, name: "得分及 ", name1: "说明" } | ||
252 | + ], | ||
253 | + // 弹窗内容 | ||
254 | + dialogList: [ | ||
255 | + "兴趣类型:喜欢在讲求实际、技术规范下动手做明确的工作,对机械、仪器、工具、动能设备有兴趣。生活喜以以实用为主,眼前的事胜于对未来的想像。情绪稳定,不善与人有深入的接触。", | ||
256 | + "职业活动:适合从事机械,电子、土木建筑、生物科技等工作。", | ||
257 | + "性格特征:情绪安稳、内向不善表达,严谨按部就班,谦虚有礼。" | ||
258 | + ], | ||
259 | + contentList: [ | ||
260 | + "生涯兴趣测验是每一个人在生涯选择时一项重要能力指标,生涯兴趣就是个人在职业、工作、嗜好与休閒上的表现,可以反映出每个人的自我概念、生活目标、甚至创造力等特质。这一份测验採用美国霍兰德教授(Dr. John Holland)的类型论为理论参考架构(Holland, 1994),经过不断的修正,我们尽量使这一份题目能够符合目前的社会情况。", | ||
261 | + "本测验可测量六种兴趣类型,包括实用(R)、研究(I) 、艺术(A) 、社会(S) 、企业(E)和事务(C)的倾向,得分越高,代表你在日常生活中比较喜欢从事该类型的相关活动,也会比较喜欢在同类型的环境下工作,工作表现也较佳。得分较低表示你在相关活动的兴趣不高,在这类环境工作容易出现不适应的情形。" | ||
262 | + ], | ||
263 | + // 得分 | ||
264 | + tdList: [], | ||
265 | + titList: [], | ||
266 | + coded: "", | ||
267 | + // 特质 | ||
268 | + traits: "", | ||
269 | + // 自我介绍 | ||
270 | + introduceCode: "", | ||
271 | + // 区分 | ||
272 | + strong: "", | ||
273 | + // 选课意向 | ||
274 | + currList1: [], | ||
275 | + // 科系 | ||
276 | + currList2: ["", "", "", ""], | ||
277 | + // 职业 | ||
278 | + currList3: ["", "", "", ""], | ||
279 | + inducList: [ | ||
280 | + "1. 得分最高的前三项兴趣类型就是你的生涯兴趣组型Holland Code", | ||
281 | + "2. 六角形图是将六类生涯兴趣依照特定的排序而成,因此六个角分别代表一个兴趣类型,根据你的兴趣高低落在六个角内不同的位置,得分越高离中心点越远,得分越低越接近中心点,以不规则的六角形描绘出你的生涯兴趣型态。", | ||
282 | + "3. 区分性是指你在六个得分得差距程度,当区分性越大的时候,表示你的兴趣组型越能突显,容易找到你的职业发展方向及历程。", | ||
283 | + "4. 数线图是区分性的表示方法,本报告将六个兴趣类型分数由高到低排列,你可以看出六个类型相聚或远离的状态,以表示六个类型的区分程度。", | ||
284 | + "5. 自我介绍三码通常是反映个人内心深处的渴望,如果和「生涯兴趣组型」一致或相近,表示你的兴趣类型清晰和稳定。如果不一致时,有可能你的兴趣倾向未来还会改变,也有可能你在选择自我介绍类型有特别的理由。" | ||
285 | + ], | ||
286 | + // 六型介绍 | ||
287 | + typeList: [ | ||
288 | + { | ||
289 | + typeId: 1, | ||
290 | + letter: "R", | ||
291 | + name: "实际型", | ||
292 | + img: require("../../../assets/img/r.png") | ||
293 | + }, | ||
294 | + { | ||
295 | + typeId: 2, | ||
296 | + letter: "I", | ||
297 | + name: "研究型", | ||
298 | + img: require("../../../assets/img/i.png") | ||
299 | + }, | ||
300 | + { | ||
301 | + typeId: 3, | ||
302 | + letter: "A", | ||
303 | + name: "艺术型", | ||
304 | + img: require("../../../assets/img/a.png") | ||
305 | + }, | ||
306 | + { | ||
307 | + typeId: 4, | ||
308 | + letter: "S", | ||
309 | + name: "社会型", | ||
310 | + img: require("../../../assets/img/s.png") | ||
311 | + }, | ||
312 | + { | ||
313 | + typeId: 5, | ||
314 | + letter: "E", | ||
315 | + name: "企业型", | ||
316 | + img: require("../../../assets/img/e.png") | ||
317 | + }, | ||
318 | + { | ||
319 | + typeId: 6, | ||
320 | + letter: "C", | ||
321 | + name: "事务型", | ||
322 | + img: require("../../../assets/img/c.png") | ||
323 | + } | ||
324 | + ], | ||
325 | + // 图表分数 | ||
326 | + lineScore: [], | ||
327 | + // x轴 | ||
328 | + lineLike: [], | ||
329 | + // y轴 | ||
330 | + yAxis: [], | ||
331 | + // 测评结果Id | ||
332 | + testId: "", | ||
333 | + // 学生信息 | ||
334 | + studentInfo: "" | ||
335 | + }; | ||
336 | + }, | ||
337 | + methods: { | ||
338 | + handleClose: function() { | ||
339 | + this.dialogVisible = false; | ||
340 | + }, | ||
341 | + // 锚点跳转 | ||
342 | + goAnchor(id) { | ||
343 | + if (id == 1) { | ||
344 | + document.getElementById("first").scrollIntoView(); | ||
345 | + } else if (id == 2) { | ||
346 | + document.getElementById("second").scrollIntoView(); | ||
347 | + } else if (id == 3) { | ||
348 | + document.getElementById("third").scrollIntoView(); | ||
349 | + } | ||
350 | + }, | ||
351 | + // 六型弹窗 | ||
352 | + showDialog(item) { | ||
353 | + this.isType = item.typeId; | ||
354 | + }, | ||
355 | + // 关闭弹窗 | ||
356 | + closeTypePic(item) { | ||
357 | + this.isType = ""; | ||
358 | + }, | ||
359 | + | ||
360 | + // 获取测评结果 | ||
361 | + getcepingresult(){ | ||
362 | + let url = "/api/junior_interest/downloadTestJuniorInterestResult"; | ||
363 | + let params = { | ||
364 | + id: this.testId, | ||
365 | + | ||
366 | + }; | ||
367 | + post(url, params) | ||
368 | + .then(res => { | ||
369 | + this.assessReportUrl = res.pdf; | ||
370 | + }) | ||
371 | + .catch(err => { | ||
372 | + console.log(err,378347874378) | ||
373 | + // answer1 = {}; | ||
374 | + // answer2 = {}; | ||
375 | + // localStorage.removeItem("interAnswer"); | ||
376 | + // localStorage.removeItem("interAnswer2"); | ||
377 | + }); | ||
378 | + }, | ||
379 | + | ||
380 | + // 兴趣测评报告 | ||
381 | + getTestInterestResult() { | ||
382 | + let that = this; | ||
383 | + let url = "/api/junior_interest/getTestJuniorInterestResult"; | ||
384 | + let params = { | ||
385 | + id: this.testId, | ||
386 | + | ||
387 | + student_id:'' | ||
388 | + }; | ||
389 | + post(url, params).then(res => { | ||
390 | + this.reportList = res; | ||
391 | + | ||
392 | + this.studentInfo = res.user; | ||
393 | + // 组型 | ||
394 | + this.coded = res.result.threeCode; | ||
395 | + // 特质 | ||
396 | + let arr = []; | ||
397 | + for (let i in res.result.traits) { | ||
398 | + arr.push(res.result.traits[i]) | ||
399 | + } | ||
400 | + this.traits = arr[0]; | ||
401 | + // 自我介绍 | ||
402 | + this.introduceCode = res.result.introduceCode; | ||
403 | + // 区分性 | ||
404 | + this.strong = res.result.strong; | ||
405 | + // 选课意向 | ||
406 | + this.currList1 = res.result.majorData.arts_sciences.total; | ||
407 | + // 科系 | ||
408 | + this.currList2 = res.result.majorData.major.total; | ||
409 | + // 职业 | ||
410 | + this.currList3 = res.result.majorData.occupation.total; | ||
411 | + // x轴 | ||
412 | + this.lineLike = res.xAxis; | ||
413 | + // y轴 | ||
414 | + this.yAxis = res.yAxis; | ||
415 | + // 分数 | ||
416 | + this.tdList = res.result.result; | ||
417 | + for (var i in this.tdList) { | ||
418 | + let obj = {}; | ||
419 | + if (i == "A") { | ||
420 | + obj["name"] = "艺术型(A)"; | ||
421 | + obj["max"] = 120; | ||
422 | + this.titList.push(obj); | ||
423 | + } | ||
424 | + if (i == "E") { | ||
425 | + obj["name"] = "企业型(E)"; | ||
426 | + obj["max"] = 120; | ||
427 | + this.titList.push(obj); | ||
428 | + } | ||
429 | + if (i == "R") { | ||
430 | + obj["name"] = "实际型(R)"; | ||
431 | + obj["max"] = 120; | ||
432 | + this.titList.push(obj); | ||
433 | + } | ||
434 | + if (i == "I") { | ||
435 | + obj["name"] = "研究型(I)"; | ||
436 | + obj["max"] = 120; | ||
437 | + this.titList.push(obj); | ||
438 | + } | ||
439 | + if (i == "S") { | ||
440 | + obj["name"] = "社会型(S)"; | ||
441 | + obj["max"] = 120; | ||
442 | + this.titList.push(obj); | ||
443 | + } | ||
444 | + if (i == "C") { | ||
445 | + obj["name"] = "事务型(C)"; | ||
446 | + obj["max"] = 120; | ||
447 | + this.titList.push(obj); | ||
448 | + } | ||
449 | + this.lineScore.push(i); | ||
450 | + } | ||
451 | + this.drawLine(); | ||
452 | + }); | ||
453 | + }, | ||
454 | + drawLine() { | ||
455 | + // 折线图横轴 | ||
456 | + let lineX = this.lineLike; | ||
457 | + // 纵轴 | ||
458 | + let lineY = this.yAxis; | ||
459 | + // 类型 | ||
460 | + let style = this.lineScore; | ||
461 | + let indic = this.titList; | ||
462 | + // 基于准备好的dom,初始化echarts实例 | ||
463 | + // 六角星 | ||
464 | + let myChart = echarts.init(document.getElementById("myChart")); | ||
465 | + // 折线图 | ||
466 | + let lineChart = echarts.init(document.getElementById("lineChart")); | ||
467 | + // 绘制六角星图表 | ||
468 | + myChart.setOption({ | ||
469 | + tooltip: { | ||
470 | + confine: true, | ||
471 | + enterable: true, | ||
472 | + backgroundColor: "#fff", | ||
473 | + textStyle: { | ||
474 | + //提示框浮层的文本样式。 | ||
475 | + color: "#8C9198", | ||
476 | + fontSize: 14 | ||
477 | + } | ||
478 | + }, | ||
479 | + radar: { | ||
480 | + name: { | ||
481 | + color: "#8C9198", | ||
482 | + fontSize: 14 | ||
483 | + }, | ||
484 | + splitNumber: 3, // 雷达图圈数设置 | ||
485 | + // 设置雷达图中间射线的颜色 | ||
486 | + axisLine: { | ||
487 | + lineStyle: { | ||
488 | + color: "#C8C8C8" | ||
489 | + } | ||
490 | + }, | ||
491 | + splitArea: { | ||
492 | + areaStyle: { | ||
493 | + color: "#fff" | ||
494 | + } | ||
495 | + }, | ||
496 | + legend: { | ||
497 | + data: style | ||
498 | + }, | ||
499 | + indicator: indic | ||
500 | + }, | ||
501 | + | ||
502 | + series: [ | ||
503 | + { | ||
504 | + type: "radar", | ||
505 | + tooltip: { | ||
506 | + trigger: "item", | ||
507 | + // 提示框背景色 | ||
508 | + backgroundColor: "#fff", | ||
509 | + // 文本 | ||
510 | + textStyle: { | ||
511 | + color: "#8C9198", | ||
512 | + rich: "" | ||
513 | + }, | ||
514 | + // 位置 | ||
515 | + position: "top", | ||
516 | + padding: [5, 13, 5, 13] | ||
517 | + // 显示文字 | ||
518 | + // formatter: function(params) { | ||
519 | + // console.log(params); | ||
520 | + // } | ||
521 | + }, | ||
522 | + // 填充区域颜色 | ||
523 | + areaStyle: { | ||
524 | + color: "#E3F0FF" | ||
525 | + }, | ||
526 | + symbolSize: 6, | ||
527 | + lineStyle: { | ||
528 | + color: "#409eff" //线的颜色 | ||
529 | + }, | ||
530 | + itemStyle: { | ||
531 | + borderColor: "#409eff" | ||
532 | + }, | ||
533 | + data: [ | ||
534 | + { | ||
535 | + name: [], | ||
536 | + value: lineY | ||
537 | + } | ||
538 | + ] | ||
539 | + } | ||
540 | + ] | ||
541 | + }); | ||
542 | + // 绘制折线图 | ||
543 | + lineChart.setOption({ | ||
544 | + textStyle: { | ||
545 | + color: "#fff" | ||
546 | + }, | ||
547 | + xAxis: { | ||
548 | + type: "category", | ||
549 | + // x轴换行 | ||
550 | + data: lineX.map(function(str) { | ||
551 | + return str.replace(" ", "\n"); | ||
552 | + }), | ||
553 | + // data:lineX, | ||
554 | + | ||
555 | + nameTextStyle: { | ||
556 | + fontSize: 14, | ||
557 | + fontWeight: "bold" | ||
558 | + }, | ||
559 | + axisLine: { | ||
560 | + show: false, // 坐标轴是否显示 | ||
561 | + lineStyle: { | ||
562 | + color: "#fff" | ||
563 | + } | ||
564 | + }, | ||
565 | + axisTick: { | ||
566 | + //刻度线 | ||
567 | + show: false //去掉刻度线 | ||
568 | + } | ||
569 | + }, | ||
570 | + yAxis: { | ||
571 | + type: "value", | ||
572 | + nameTextStyle: { | ||
573 | + fontSize: 10 | ||
574 | + }, | ||
575 | + axisLine: { | ||
576 | + show: false, | ||
577 | + lineStyle: { | ||
578 | + color: "#fff" | ||
579 | + } | ||
580 | + }, | ||
581 | + axisTick: { | ||
582 | + //刻度线 | ||
583 | + show: false //去掉刻度线 | ||
584 | + }, | ||
585 | + splitNumber: 9 | ||
586 | + }, | ||
587 | + tooltip: { | ||
588 | + trigger: "item", | ||
589 | + // 提示框背景色 | ||
590 | + backgroundColor: "#fff", | ||
591 | + // 文本 | ||
592 | + textStyle: { | ||
593 | + color: "#8C9198", | ||
594 | + rich: "" | ||
595 | + }, | ||
596 | + // 位置 | ||
597 | + position: "top", | ||
598 | + // 显示文字 | ||
599 | + formatter: "{b0}" + "<br>" + "得分:{c0}", | ||
600 | + padding: [5, 13, 5, 13] | ||
601 | + }, | ||
602 | + legend: { | ||
603 | + // data: ["实际型(R)", "事务型(C)", "企业型(E)", "社会型(S)", "艺术型(A)","研究型(I)"] | ||
604 | + }, | ||
605 | + series: [ | ||
606 | + { | ||
607 | + data: lineY, | ||
608 | + type: "line", | ||
609 | + symbol: "circle", //拐点图形 | ||
610 | + symbolSize: 6, | ||
611 | + hoverAnimation: false, | ||
612 | + itemStyle: { | ||
613 | + borderColor: "#fff", //拐点的边框色 | ||
614 | + color: "#409eff" //拐点颜色 | ||
615 | + }, | ||
616 | + lineStyle: { | ||
617 | + color: "#fff" //线的颜色 | ||
618 | + } | ||
619 | + } | ||
620 | + ] | ||
621 | + }); | ||
622 | + } | ||
623 | + }, | ||
624 | + mounted() { | ||
625 | + // 测评结果Id | ||
626 | + this.testId = this.$route.query.testId; | ||
627 | + // 兴趣测评报告 | ||
628 | + this.getTestInterestResult(); | ||
629 | + // 获取测评结果 | ||
630 | + // this.getcepingresult() | ||
631 | + } | ||
632 | +}; | ||
633 | +</script> | ||
634 | +<style scoped> | ||
635 | +@import "../../../style/report.css"; | ||
636 | +@import "../../../style/btn.css"; | ||
637 | +.type_pic { | ||
638 | + position: absolute; | ||
639 | + top: -390px; | ||
640 | + z-index: 999; | ||
641 | +} | ||
642 | +.type_pic1 { | ||
643 | + left: 59px; | ||
644 | +} | ||
645 | +.type_pic3 { | ||
646 | + left: -235px; | ||
647 | +} | ||
648 | +.type_pic4 { | ||
649 | + left: -427px; | ||
650 | +} | ||
651 | +.type_pic5 { | ||
652 | + right: 67px; | ||
653 | +} | ||
654 | +.type_close { | ||
655 | + width: 25px; | ||
656 | + height: 25px; | ||
657 | + float: right; | ||
658 | + z-index: 1000; | ||
659 | + position: relative; | ||
660 | + right: 12px; | ||
661 | + top: 37px; | ||
662 | + background-color:rgba(255,255,255,0); | ||
663 | +} | ||
664 | +.second_btn { | ||
665 | + margin-top: 49px; | ||
666 | +} | ||
667 | +.second_btn a { | ||
668 | + color: #fff; | ||
669 | + font-size: 14px; | ||
670 | +} | ||
671 | +</style> |
1 | +<template> | ||
2 | + <div class="inter_wrap"> | ||
3 | + <!-- 兴趣测评 --> | ||
4 | + <div class="inter_test clearfix"> | ||
5 | + <!-- 左侧提示 --> | ||
6 | + <div class="inter_test_l"> | ||
7 | + <div class="inter_l_box clearfix"> | ||
8 | + <div class="inter_box_t clearfix"> | ||
9 | + <h1>生涯兴趣测验(CIA)</h1> | ||
10 | + </div> | ||
11 | + <!-- 选项说明 --> | ||
12 | + <div class="inter_box_b"> | ||
13 | + <h2>选项说明:</h2> | ||
14 | + <ul> | ||
15 | + <li v-for="item in list" :key="item.index" class="clearfix"> | ||
16 | + <p class="inter_b_title">{{item.title}}</p> | ||
17 | + <p class="inter_b_content">{{item.content}}</p> | ||
18 | + </li> | ||
19 | + </ul> | ||
20 | + </div> | ||
21 | + <!-- 图片 --> | ||
22 | + <div class="inter_box_pic"> | ||
23 | + <img src="@/assets/img/14.png" alt /> | ||
24 | + </div> | ||
25 | + </div> | ||
26 | + </div> | ||
27 | + <!-- 右侧选项 --> | ||
28 | + <div class="inter_test_r"> | ||
29 | + <div class="inter_r_box clearfix"> | ||
30 | + <!-- 答题组数 倒计时 --> | ||
31 | + <div class="inter_r_num layout align_center justify"> | ||
32 | + <div class="inter_group_num">第{{currentPage}}组/共{{pageNum}}组</div> | ||
33 | + <div class="inter_count_down"> | ||
34 | + 已用时间: | ||
35 | + <p class="count_down_time">{{useTime | seconds}}</p> | ||
36 | + </div> | ||
37 | + </div> | ||
38 | + | ||
39 | + <!-- 题目 --> | ||
40 | + <div class="inter_r_problem clearfix"> | ||
41 | + <!-- 所有的问题 --> | ||
42 | + <div | ||
43 | + class="inter_pro_box layout flex_diection" | ||
44 | + v-for="item in dataShow" | ||
45 | + :key="item.id" | ||
46 | + v-show="isLast" | ||
47 | + :id="item.id" | ||
48 | + @change="goTop()" | ||
49 | + > | ||
50 | + <!-- 问题 --> | ||
51 | + <div class="inter_pro_question layout justify">{{item.id}}.{{item.title}}</div> | ||
52 | + <!-- 答案 --> | ||
53 | + <div class="inter_pro_answer"> | ||
54 | + <ul class="layout align_center justify inter_answer_ul"> | ||
55 | + <li | ||
56 | + class="inter_answer_li" | ||
57 | + v-for="arrItem in item.arr" | ||
58 | + :key="arrItem.index" | ||
59 | + @click="choiced(arrItem,item.id)" | ||
60 | + > | ||
61 | + <div class="inter_answer_circle"> | ||
62 | + <img :src="arrItem.choiced?src1:src2" alt /> | ||
63 | + </div> | ||
64 | + {{arrItem.name}} | ||
65 | + </li> | ||
66 | + </ul> | ||
67 | + </div> | ||
68 | + </div> | ||
69 | + <!-- 最后一组问题 --> | ||
70 | + <div class="inter_pro_last" v-show="!isLast"> | ||
71 | + <h3>下面哪一种「自我介绍」最能代表你自己?</h3> | ||
72 | + <table class="inter_pro_table"> | ||
73 | + <tr v-for="item in introduceData" :key="item.id" class="inter_table_tr"> | ||
74 | + <td class="td_left"> | ||
75 | + <p class="td_l_p">{{item.id}}</p> | ||
76 | + </td> | ||
77 | + <td class="td_right">{{item.value}}</td> | ||
78 | + </tr> | ||
79 | + </table> | ||
80 | + </div> | ||
81 | + <div | ||
82 | + class="inter_pro_box layout flex_diection" | ||
83 | + v-for="item in introduceList" | ||
84 | + :key="item.id" | ||
85 | + v-show="!isLast" | ||
86 | + > | ||
87 | + <!-- 问题 --> | ||
88 | + <div class="inter_pro_question layout justify">{{item.id}}.{{item.value}}</div> | ||
89 | + <!-- 答案 --> | ||
90 | + <div class="inter_pro_answer"> | ||
91 | + <ul class="layout align_center justify inter_answer_ul"> | ||
92 | + <li | ||
93 | + class="inter_answer_li" | ||
94 | + v-for="arrItem in item.arr" | ||
95 | + :key="arrItem.num" | ||
96 | + @click="choicedLast(arrItem,item.id)" | ||
97 | + > | ||
98 | + <div class="inter_answer_circle"> | ||
99 | + <img :src="arrItem.choiced?src1:src2" alt /> | ||
100 | + </div> | ||
101 | + {{arrItem.num}} | ||
102 | + </li> | ||
103 | + </ul> | ||
104 | + </div> | ||
105 | + </div> | ||
106 | + <!-- 下一页按钮 --> | ||
107 | + <div class="inter_answer_btn" @click="nextPage">{{isLast?"下一页":"提交"}}</div> | ||
108 | + </div> | ||
109 | + </div> | ||
110 | + </div> | ||
111 | + </div> | ||
112 | + </div> | ||
113 | +</template> | ||
114 | +<script> | ||
115 | +import { post } from "../../../api/http"; | ||
116 | +import { Notification } from "element-ui"; | ||
117 | +let answer1 = {}; | ||
118 | +let answer2 = {}; | ||
119 | +export default { | ||
120 | + data() { | ||
121 | + return { | ||
122 | + // 已用时间 | ||
123 | + useTime: 0, | ||
124 | + // 单选框的值 | ||
125 | + checkedValue: [], | ||
126 | + list: [ | ||
127 | + { index: 1, title: "非常喜欢:", content: "有强烈(特别喜欢)的感觉" }, | ||
128 | + { | ||
129 | + index: 2, | ||
130 | + title: "喜欢:", | ||
131 | + content: "有(喜欢做)的快乐感觉,不会日久生厌" | ||
132 | + }, | ||
133 | + { index: 3, title: "不喜欢:", content: "有(不想做)的厌烦感觉" }, | ||
134 | + { index: 4, title: "非常不喜欢:", content: "有强烈(排斥)的感觉" } | ||
135 | + ], | ||
136 | + src1: require("@/assets/img/15.png"), | ||
137 | + src2: require("@/assets/img/9.png"), | ||
138 | + // 数据 | ||
139 | + interestList: [], | ||
140 | + // 自我介绍 | ||
141 | + introduceData: [], | ||
142 | + introduceList: [], | ||
143 | + // 共几页 | ||
144 | + pageNum: "", | ||
145 | + // 每页数量 | ||
146 | + pageSize: 36, | ||
147 | + // 默认显示第一页 | ||
148 | + currentPage: 1, | ||
149 | + // 当前显示的数据 | ||
150 | + dataShow: [], | ||
151 | + isLast: true, | ||
152 | + flag: false, | ||
153 | + count: 0, | ||
154 | + userTimer: null | ||
155 | + }; | ||
156 | + }, | ||
157 | + methods: { | ||
158 | + // 选择答案 | ||
159 | + choiced: function(item, num) { | ||
160 | + this.count++; | ||
161 | + let that = this; | ||
162 | + for (let i in that.dataShow) { | ||
163 | + for (let j in that.dataShow[i].arr) { | ||
164 | + if (item.interId == that.dataShow[i].arr[j].interId) { | ||
165 | + that.$set(that.dataShow[i].arr[j], "choiced", false); | ||
166 | + if (item.index == that.dataShow[i].arr[j].index) { | ||
167 | + that.$set(that.dataShow[i].arr[j], "choiced", true); | ||
168 | + } | ||
169 | + } | ||
170 | + } | ||
171 | + this.$forceUpdate(); | ||
172 | + } | ||
173 | + answer1[num] = item.order; | ||
174 | + localStorage.setItem("interAnswer", JSON.stringify(answer1)); | ||
175 | + }, | ||
176 | + // 自我介绍选择答案 | ||
177 | + choicedLast: function(arrItem, index) { | ||
178 | + for (let i in this.introduceList) { | ||
179 | + for (let j in this.introduceList[i].arr) { | ||
180 | + if (arrItem.interId == this.introduceList[i].arr[j].interId) { | ||
181 | + this.$set(this.introduceList[i].arr[j], "choiced", false); | ||
182 | + if (arrItem.index == this.introduceList[i].arr[j].index) { | ||
183 | + this.$set(this.introduceList[i].arr[j], "choiced", true); | ||
184 | + } | ||
185 | + } | ||
186 | + } | ||
187 | + this.$forceUpdate(); | ||
188 | + } | ||
189 | + answer2[index] = arrItem.num; | ||
190 | + localStorage.setItem("interAnswer2", JSON.stringify(answer2)); | ||
191 | + }, | ||
192 | + // 兴趣测评题目 | ||
193 | + getTestInterestList: function() { | ||
194 | + let url = "/api/junior_interest/getTestJuniorInterestList"; | ||
195 | + let begin = (this.currentPage - 1) * this.pageSize; | ||
196 | + let end = this.currentPage * this.pageSize; | ||
197 | + console.log(begin); | ||
198 | + console.log(end) | ||
199 | + let that = this; | ||
200 | + let params = { | ||
201 | + id: localStorage.getItem("evaluteId") | ||
202 | + }; | ||
203 | + clearInterval(that.userTimer); | ||
204 | + post(url, params).then(res => { | ||
205 | + console.log('测评题目',res) | ||
206 | + // 计时器 | ||
207 | + that.userTimer = setInterval(function() { | ||
208 | + that.useTime++; | ||
209 | + }, 1000); | ||
210 | + // 提交测评id | ||
211 | + localStorage.setItem("testStatus", res.student_test_id); | ||
212 | + // 自我介绍 | ||
213 | + this.introduceData = res.junior_interest.introduce; | ||
214 | + // 自我介绍题目 | ||
215 | + this.introduceList = res.junior_interest.test; | ||
216 | + for (var obj of this.introduceList) { | ||
217 | + let arr = []; | ||
218 | + arr.push( | ||
219 | + { interId: obj.id, index: obj.id + "-1", num: "1", choiced: false }, | ||
220 | + { interId: obj.id, index: obj.id + "-2", num: "2", choiced: false }, | ||
221 | + { interId: obj.id, index: obj.id + "-3", num: "3", choiced: false }, | ||
222 | + { interId: obj.id, index: obj.id + "-4", num: "4", choiced: false }, | ||
223 | + { interId: obj.id, index: obj.id + "-5", num: "5", choiced: false }, | ||
224 | + { interId: obj.id, index: obj.id + "-6", num: "6", choiced: false } | ||
225 | + ); | ||
226 | + obj.arr = arr; | ||
227 | + } | ||
228 | + // 兴趣试题 | ||
229 | + this.interestList = res.interest; | ||
230 | + for (var obj of this.interestList) { | ||
231 | + let answerArr = []; | ||
232 | + answerArr.push( | ||
233 | + { | ||
234 | + interId: obj.id, | ||
235 | + index: obj.id + "-1", | ||
236 | + name: obj.option_a, | ||
237 | + choiced: false, | ||
238 | + order: "A" | ||
239 | + }, | ||
240 | + { | ||
241 | + interId: obj.id, | ||
242 | + index: obj.id + "-2", | ||
243 | + name: obj.option_b, | ||
244 | + choiced: false, | ||
245 | + order: "B" | ||
246 | + }, | ||
247 | + { | ||
248 | + interId: obj.id, | ||
249 | + index: obj.id + "-3", | ||
250 | + name: obj.option_c, | ||
251 | + choiced: false, | ||
252 | + order: "C" | ||
253 | + }, | ||
254 | + { | ||
255 | + interId: obj.id, | ||
256 | + index: obj.id + "-4", | ||
257 | + name: obj.option_d, | ||
258 | + choiced: false, | ||
259 | + order: "D" | ||
260 | + } | ||
261 | + ); | ||
262 | + obj.arr = answerArr; | ||
263 | + } | ||
264 | + console.log(this.interestList) | ||
265 | + let answered = JSON.parse(localStorage.getItem("interAnswer")); | ||
266 | + let answered2 = JSON.parse(localStorage.getItem("interAnswer2")); | ||
267 | + if (answered) { | ||
268 | + answer1 = answered; | ||
269 | + } | ||
270 | + if (answered2) { | ||
271 | + answer2 = answered2; | ||
272 | + } | ||
273 | + // 前180答案 | ||
274 | + //缓存的数据 | ||
275 | + for (let i in answered) { | ||
276 | + // 所有数据 | ||
277 | + for (let obj of this.interestList) { | ||
278 | + if (i == obj.id) { | ||
279 | + for (let k in obj.arr) { | ||
280 | + if (answered[i] == obj.arr[k].order) { | ||
281 | + obj.arr[k].choiced = true; | ||
282 | + } | ||
283 | + } | ||
284 | + } | ||
285 | + } | ||
286 | + } | ||
287 | + //181-183答案 | ||
288 | + for (let i1 in answered) { | ||
289 | + // 所有数据 | ||
290 | + for (let obj of this.introduceList) { | ||
291 | + if (i1 == obj.id) { | ||
292 | + for (let k1 in obj.arr) { | ||
293 | + if (answered[i1] == obj.arr[k1].order) { | ||
294 | + obj.arr[k1].choiced = true; | ||
295 | + } | ||
296 | + } | ||
297 | + } | ||
298 | + } | ||
299 | + } | ||
300 | + // 总页数 | ||
301 | + this.pageNum = Math.ceil(this.interestList.length / this.pageSize + 1); | ||
302 | + this.dataShow = this.interestList.slice(begin, end); | ||
303 | + | ||
304 | + }); | ||
305 | + }, | ||
306 | + // 下一页 | ||
307 | + nextPage: function() { | ||
308 | + let that = this; | ||
309 | + // 兴趣所有问题 | ||
310 | + let allArr = []; | ||
311 | + // 已选择问题 | ||
312 | + let ansArr = []; | ||
313 | + | ||
314 | + for (let obj of this.dataShow) { | ||
315 | + allArr.push(obj.id); | ||
316 | + } | ||
317 | + // 已选择问题 | ||
318 | + for (let i in answer1) { | ||
319 | + ansArr.push(i / 1); | ||
320 | + } | ||
321 | + console.log(ansArr) | ||
322 | + for (var i = 0; i < allArr.length; i++) { | ||
323 | + if (ansArr.indexOf(allArr[i]) == -1) { | ||
324 | + | ||
325 | + allArr = allArr[i]; | ||
326 | + } | ||
327 | + } | ||
328 | + console.log(allArr,'全部选择') | ||
329 | + if (allArr.length > 3) { | ||
330 | + // | ||
331 | + if (this.currentPage < this.pageNum - 1) { | ||
332 | + console.log(6666) | ||
333 | + this.currentPage++; | ||
334 | + let begin = (this.currentPage - 1) * this.pageSize; | ||
335 | + let end = this.currentPage * this.pageSize; | ||
336 | + // 当前显示的数据 | ||
337 | + this.dataShow = this.interestList.slice(begin, end); | ||
338 | + document.body.scrollTop = 0; | ||
339 | + document.documentElement.scrollTop = 0; | ||
340 | + } else { | ||
341 | + console.log(11111) | ||
342 | + | ||
343 | + // this.currentPage++; | ||
344 | + this.isLast = false; | ||
345 | + // this.currentPage = 6; | ||
346 | + // 自我介绍已选择问题 | ||
347 | + let inducArr = []; | ||
348 | + console.log('答案',answer2) | ||
349 | + for (let i in answer2) { | ||
350 | + inducArr.push(i / 1); | ||
351 | + } | ||
352 | + console.log(this.pageNum,'当前页面') | ||
353 | + console.log(this.currentPage,'页面页面') | ||
354 | + console.log('页面里的题',inducArr) | ||
355 | + if (this.currentPage == this.pageNum) { | ||
356 | + if (inducArr.length == 3) { | ||
357 | + clearInterval(that.userTimer); | ||
358 | + this.setTestInterest(); | ||
359 | + return ""; | ||
360 | + } else { | ||
361 | + | ||
362 | + Notification.info({ | ||
363 | + title: "提示", | ||
364 | + message: "请选择自我介绍答案", | ||
365 | + duration: 1500 | ||
366 | + }); | ||
367 | + } | ||
368 | + document.body.scrollTop = 0; | ||
369 | + document.documentElement.scrollTop = 0; | ||
370 | + this.currentPage = this.pageNum; | ||
371 | + return false; | ||
372 | + }else{ | ||
373 | + this.currentPage++ | ||
374 | + | ||
375 | + } | ||
376 | + } | ||
377 | + } else { | ||
378 | + Notification.info({ | ||
379 | + title: "提示", | ||
380 | + message: "请全部选择", | ||
381 | + duration: 1500 | ||
382 | + }); | ||
383 | + this.goTop(allArr); | ||
384 | + } | ||
385 | + | ||
386 | + | ||
387 | + }, | ||
388 | + // 181-183提交 | ||
389 | + | ||
390 | + // 未选择跳转 | ||
391 | + goTop(id) { | ||
392 | + document.getElementById(id).scrollIntoView(); | ||
393 | + }, | ||
394 | + // 提交兴趣测评 | ||
395 | + setTestInterest() { | ||
396 | + let url = "/api/junior_interest/setTestJuniorInterest"; | ||
397 | + let params = { | ||
398 | + id: localStorage.getItem("testStatus"), | ||
399 | + answer1: JSON.stringify(answer1), | ||
400 | + answer2: JSON.stringify(answer2) | ||
401 | + }; | ||
402 | + post(url, params) | ||
403 | + .then(res => { | ||
404 | + // answer1 = {}; | ||
405 | + // answer2 = {}; | ||
406 | + // localStorage.removeItem("interAnswer"); | ||
407 | + // localStorage.removeItem("interAnswer2"); | ||
408 | + Notification.info({ | ||
409 | + title: "提示", | ||
410 | + message: "提交成功", | ||
411 | + duration: 1500 | ||
412 | + }); | ||
413 | + this.$router.push({ path: "/SetEvalute" }); | ||
414 | + }) | ||
415 | + .catch(err => { | ||
416 | + console.log(err,378347874378) | ||
417 | + // answer1 = {}; | ||
418 | + // answer2 = {}; | ||
419 | + // localStorage.removeItem("interAnswer"); | ||
420 | + // localStorage.removeItem("interAnswer2"); | ||
421 | + }); | ||
422 | + } | ||
423 | + }, | ||
424 | + mounted() { | ||
425 | + answer2 = {}; | ||
426 | + localStorage.removeItem("interAnswer2"); | ||
427 | + this.getTestInterestList(); | ||
428 | + }, | ||
429 | + computed: {} | ||
430 | +}; | ||
431 | +</script> | ||
432 | + | ||
433 | +<style scoped> | ||
434 | +@import "../../../style/btn.css"; | ||
435 | +.inter_wrap { | ||
436 | + width: 100%; | ||
437 | + background-color: #f2f5fa; | ||
438 | + padding: 36px 0 25px; | ||
439 | +} | ||
440 | +.inter_test { | ||
441 | + width: 1200px; | ||
442 | + margin: 0 auto; | ||
443 | + background-color: #fff; | ||
444 | +} | ||
445 | +/* 左侧提示 */ | ||
446 | +.inter_test_l { | ||
447 | + width: 430px; | ||
448 | + float: left; | ||
449 | + text-align: left; | ||
450 | +} | ||
451 | +.inter_l_box { | ||
452 | + margin: 65px 0 0 70px; | ||
453 | +} | ||
454 | +/* 生涯兴趣测验(CIA) */ | ||
455 | + | ||
456 | +.inter_box_t h1 { | ||
457 | + font-size: 24px; | ||
458 | + color: #34485e; | ||
459 | + position: relative; | ||
460 | + margin-bottom: 60px; | ||
461 | +} | ||
462 | +h1:after { | ||
463 | + position: absolute; | ||
464 | + bottom: -30px; | ||
465 | + left: 0; | ||
466 | + content: ""; | ||
467 | + width: 54px; | ||
468 | + height: 1px; | ||
469 | + background-color: #34485e; | ||
470 | +} | ||
471 | +/* 选项说明 */ | ||
472 | +.inter_box_b { | ||
473 | + margin-bottom: 45px; | ||
474 | +} | ||
475 | +.inter_box_b h2 { | ||
476 | + margin-bottom: 14px; | ||
477 | + font-size: 18px; | ||
478 | + color: #34485e; | ||
479 | +} | ||
480 | +.inter_box_b p { | ||
481 | + float: left; | ||
482 | + font-size: 14px; | ||
483 | + line-height: 28px; | ||
484 | +} | ||
485 | +.inter_b_title { | ||
486 | + color: #409eff; | ||
487 | +} | ||
488 | +.inter_b_content { | ||
489 | + color: #8c9198; | ||
490 | +} | ||
491 | +/* 图片 */ | ||
492 | +.inter_box_pic { | ||
493 | + width: 281px; | ||
494 | + height: 188px; | ||
495 | + margin-left: 5px; | ||
496 | +} | ||
497 | +.inter_box_pic img { | ||
498 | + width: 100%; | ||
499 | + height: 100%; | ||
500 | +} | ||
501 | +/* 右侧选项 */ | ||
502 | +.inter_test_r { | ||
503 | + width: 769px; | ||
504 | + border-left: 1px solid #eee; | ||
505 | + float: right; | ||
506 | +} | ||
507 | +.inter_r_box { | ||
508 | + margin: 59px 120px 0 77px; | ||
509 | +} | ||
510 | +/* 答题组数 时间 */ | ||
511 | +.inter_r_num { | ||
512 | + margin-bottom: 31px; | ||
513 | +} | ||
514 | +.inter_group_num { | ||
515 | + font-size: 18px; | ||
516 | + font-weight: bold; | ||
517 | + color: #34485e; | ||
518 | +} | ||
519 | +/* 时间 */ | ||
520 | +.inter_count_down { | ||
521 | + font-size: 14px; | ||
522 | + color: #5b5e63; | ||
523 | +} | ||
524 | +.count_down_time { | ||
525 | + float: right; | ||
526 | + color: #409eff; | ||
527 | +} | ||
528 | +/* 题目 */ | ||
529 | +.inter_r_problem { | ||
530 | + padding: 0 8px 0 4px; | ||
531 | + width: 100%; | ||
532 | +} | ||
533 | +.inter_pro_box { | ||
534 | + width: 100%; | ||
535 | + margin-bottom: 20px; | ||
536 | + font-size: 14px; | ||
537 | + color: #8c9198; | ||
538 | +} | ||
539 | +/* 问题 */ | ||
540 | +.inter_pro_question { | ||
541 | + margin-bottom: 9px; | ||
542 | +} | ||
543 | +/* 答案 */ | ||
544 | +.inter_answer_ul { | ||
545 | + padding-left: 3px; | ||
546 | +} | ||
547 | +.inter_answer_li { | ||
548 | + line-height: 19px; | ||
549 | +} | ||
550 | +/* 选择框 */ | ||
551 | +.inter_answer_circle { | ||
552 | + width: 12px; | ||
553 | + height: 12px; | ||
554 | + vertical-align: middle; | ||
555 | + margin: 3px 4px 0 0; | ||
556 | + line-height: 12px; | ||
557 | + float: left; | ||
558 | + vertical-align: middle; | ||
559 | +} | ||
560 | +.inter_answer_circle img { | ||
561 | + width: 100%; | ||
562 | + height: 100%; | ||
563 | +} | ||
564 | +/* 最后一组问题 */ | ||
565 | +h3 { | ||
566 | + font-size: 18px; | ||
567 | + color: #34485e; | ||
568 | + text-align: left; | ||
569 | + margin-bottom: 20px; | ||
570 | +} | ||
571 | +/* 表格 */ | ||
572 | +.inter_pro_table { | ||
573 | + width: 646px; | ||
574 | + height: 570px; | ||
575 | + margin-bottom: 40px; | ||
576 | +} | ||
577 | +.inter_table_tr:last-child .td_left { | ||
578 | + border-bottom: 1px solid #409eff; | ||
579 | +} | ||
580 | +/* 表格左侧 */ | ||
581 | +.td_left { | ||
582 | + width: 85px; | ||
583 | + background-color: #409eff; | ||
584 | + border-bottom: 1px solid #fff; | ||
585 | +} | ||
586 | +.td_l_p { | ||
587 | + width: 29px; | ||
588 | + height: 29px; | ||
589 | + background: rgba(255, 255, 255, 1); | ||
590 | + border-radius: 50%; | ||
591 | + opacity: 1; | ||
592 | + color: #409eff; | ||
593 | + line-height: 29px; | ||
594 | + margin: 0 auto; | ||
595 | +} | ||
596 | +/* 表格右侧 */ | ||
597 | +.td_right { | ||
598 | + border: 1px solid #eee; | ||
599 | + border-left: none; | ||
600 | + font-size: 14px; | ||
601 | + color: #8c9198; | ||
602 | + text-align: left; | ||
603 | + line-height: 19px; | ||
604 | + padding: 0 11px 0 18px; | ||
605 | +} | ||
606 | +</style> |
1 | +<template> | ||
2 | + <div class="induc_wrap"> | ||
3 | + <!-- 施测说明 --> | ||
4 | + <div class="induc clearfix"> | ||
5 | + <div class="induc_box clearfix"> | ||
6 | + <!-- 施测说明标题 --> | ||
7 | + <div class="induc_title clearfix"> | ||
8 | + <h1>施测说明</h1> | ||
9 | + </div> | ||
10 | + <!-- 提示 --> | ||
11 | + <div class="induc_tips">亲爱的同学</div> | ||
12 | + <div class="induc_tips"> | ||
13 | + 我们现在要做「多元性向潜能发展测验」,主要目的是帮助各位了解自己的能力,诸如语文推理、数字推理等等,帮助你增进对自我的了解。这是一个测验你潜在能力的测验,这份测验不是考试,尽力做就可以,不会也不会关系。</div> | ||
14 | + <div class="induc_tips"> | ||
15 | + 本测验共有六个大题,每一大题都会有「说明与例题」以及「作答限制时间」,时间结束便不能再进行填答,所以请把握时间尽量迅速且正确的作答。如果您需要做任何计算,请利用桌上的纸张。</div> | ||
16 | + | ||
17 | + | ||
18 | + | ||
19 | + | ||
20 | + <!-- 选项说明 --> | ||
21 | + <div class="induc_option clearfix"> | ||
22 | + <!-- 左侧图片 --> | ||
23 | + <div class="induc_option_l"> | ||
24 | + <img src="@/assets/img/11.png" alt /> | ||
25 | + </div> | ||
26 | + | ||
27 | + | ||
28 | + <!-- 右侧说明 --> | ||
29 | + <div class="induc_option_r clearfix" > | ||
30 | + <h3>选项说明:</h3> | ||
31 | + <ul class="induc_ul"> | ||
32 | + <li v-for="(item,index) in inducList" :key="index">{{item}}</li> | ||
33 | + </ul> | ||
34 | + | ||
35 | + | ||
36 | + <h3 style="margin-top:68px">测试规定</h3> | ||
37 | + <ul class="induc_ul"> | ||
38 | + <li v-for="(item,index) in guidinglist" :key="index">{{item}}</li> | ||
39 | + </ul> | ||
40 | + </div> | ||
41 | + </div> | ||
42 | + <!-- 评测按钮 --> | ||
43 | + <div class="induc_btn currency_btn" @click="toInter">开始测评</div> | ||
44 | + <!-- 提示 --> | ||
45 | + <div class="induc_warn clearfix layout justify_center align_center"> | ||
46 | + <div class="induc_pic"> | ||
47 | + <img src="@/assets/img/12.png" alt /> | ||
48 | + </div> | ||
49 | + | ||
50 | + <p class="induc_warn_content">本测评无标准答案,与学业成绩无关,请按个人真实感受客观选择,不建议短时间内多次重复测评</p> | ||
51 | + </div> | ||
52 | + </div> | ||
53 | + </div> | ||
54 | + </div> | ||
55 | +</template> | ||
56 | +<script> | ||
57 | +import {post} from '@/api/http'; | ||
58 | +export default { | ||
59 | + data() { | ||
60 | + return { | ||
61 | + active: 1, | ||
62 | + inducList: [ | ||
63 | + "非常喜欢:有强烈(特别喜欢)的感觉", | ||
64 | + "喜欢:有(喜欢做)的快乐感觉,不会日久生厌", | ||
65 | + "不喜欢:有(不想做)的厌烦感觉", | ||
66 | + "非常不喜欢:有强烈(排斥)的感觉" | ||
67 | + ], | ||
68 | + guidinglist:[ | ||
69 | + "施测时间:约45分钟,详细流程如下表《施测流程》", | ||
70 | + "施测地点:合适的作答环境,可正常书写、思考", | ||
71 | + "施测材料:电脑及基本设施、白纸1-2张/每人(计算用)" | ||
72 | + ] | ||
73 | + }; | ||
74 | + }, | ||
75 | + methods: { | ||
76 | + // 生涯兴趣测评 | ||
77 | + toInter: function() { | ||
78 | + let url = "/api/primary_pluralistic/addTestPluralistic/"; | ||
79 | + let params = { | ||
80 | + id:localStorage.getItem('evaluteId') | ||
81 | + } | ||
82 | + post(url,params) | ||
83 | + .then(res=>{ | ||
84 | + this.$router.push({path: "/MulSchoolExample"}); | ||
85 | + }) | ||
86 | + | ||
87 | + } | ||
88 | + }, | ||
89 | +}; | ||
90 | +</script> | ||
91 | +<style scoped> | ||
92 | +.induc_wrap { | ||
93 | + width: 100%; | ||
94 | + background-color: #f2f5fa; | ||
95 | + padding: 36px 0 134px; | ||
96 | +} | ||
97 | +.induc { | ||
98 | + width: 1200px; | ||
99 | + /* height: 731px; */ | ||
100 | + background-color: #fff; | ||
101 | + margin: 0 auto; | ||
102 | + padding-bottom: 32px; | ||
103 | + box-sizing: border-box; | ||
104 | +} | ||
105 | +.induc_box { | ||
106 | + width: 777px; | ||
107 | + margin: 0 auto; | ||
108 | + padding-top: 95px; | ||
109 | + text-align: center; | ||
110 | +} | ||
111 | +/* 施测说明标题 */ | ||
112 | +.induc_title h1 { | ||
113 | + font-size: 36px; | ||
114 | + color: #34485e; | ||
115 | + position: relative; | ||
116 | + width: 144px; | ||
117 | + margin: 0 auto; | ||
118 | + margin-bottom: 68px; | ||
119 | +} | ||
120 | +.induc_title h1:after { | ||
121 | + content: ""; | ||
122 | + position: absolute; | ||
123 | + bottom: -31px; | ||
124 | + left: 29px; | ||
125 | + width: 87px; | ||
126 | + height: 1px; | ||
127 | + background-color: #34485e; | ||
128 | +} | ||
129 | +/* 提示 */ | ||
130 | +.induc_tips { | ||
131 | + font-size: 16px; | ||
132 | + color: #409eff; | ||
133 | + text-align: left; | ||
134 | + line-height: 22px; | ||
135 | +} | ||
136 | +/* 选项说明 */ | ||
137 | +.induc_option { | ||
138 | + margin: 41px 0 59px; | ||
139 | +} | ||
140 | +/* 左侧图片 */ | ||
141 | +.induc_option_l { | ||
142 | + float: left; | ||
143 | + width: 287px; | ||
144 | + height: 246px; | ||
145 | + margin-left: 22px; | ||
146 | +} | ||
147 | +.induc_option_l img { | ||
148 | + width: 100%; | ||
149 | + height: 100%; | ||
150 | +} | ||
151 | +/* 右侧说明 */ | ||
152 | +.induc_option_r { | ||
153 | + float: right; | ||
154 | + margin-top: 38px; | ||
155 | + text-align: left; | ||
156 | +} | ||
157 | +.induc_option_r h3 { | ||
158 | + font-size: 20px; | ||
159 | + color: #409eff; | ||
160 | +} | ||
161 | +.induc_ul { | ||
162 | + text-align: left; | ||
163 | + font-size: 14px; | ||
164 | + color: #8c9198; | ||
165 | + line-height: 19px; | ||
166 | + margin-top: 32px; | ||
167 | + margin-left: 18px; | ||
168 | +} | ||
169 | +.induc_ul li { | ||
170 | + list-style: disc; | ||
171 | + margin-bottom: 10px; | ||
172 | +} | ||
173 | + | ||
174 | +/* 警告 */ | ||
175 | +.induc_warn_content { | ||
176 | + color: #409eff; | ||
177 | + font-size: 16px; | ||
178 | +} | ||
179 | +</style> |
-
请 注册 或 登录 后发表评论