mx-block-widgets.js 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628
  1. import mxConst from '@/common/mxConst'
  2. export default {
  3. // NOTE: 方便本地配置的时候重用
  4. // 选科查询
  5. selectCourseQuery: {
  6. is: "mx-card-common",
  7. gutter: 0,
  8. lineSize: 1,
  9. containerClasses: ['mb15'],
  10. dataList: [{
  11. height: '112px',
  12. src: '/static/images/career/img_xuankechaxuxn.png',
  13. path: '/pages/career/select-course/index'
  14. }]
  15. },
  16. // 院校排名
  17. collegeRanking: {
  18. is: "mx-card-common",
  19. gutter: 0,
  20. lineSize: 1,
  21. containerClasses: ['ml12 mr12 rd6'],
  22. dataList: [{
  23. height: '103px',
  24. src: '/static/home/college-ranking@2x.png',
  25. path: '/pages/college-library/index/index?data=' + JSON.stringify({
  26. tab: 'rank'
  27. })
  28. }]
  29. },
  30. hollandGuide: {
  31. is: "test-guide-card",
  32. img: '/static/home/holland.png',
  33. title: '专业倾向测评',
  34. desc: 'Holland测评是一种基于职业兴趣的测评工具,根据被测者对六种职业兴趣类型的倾向性,提供对应的职业建议。',
  35. bgColor: '#D8EDFD',
  36. clazz: ['mx12'],
  37. path: '/pages/test-center/holland/holland',
  38. more: '/pages/test-center/list/list',
  39. moreNext: {type: 'holland'}
  40. },
  41. mbtiGuide: {
  42. is: "test-guide-card",
  43. img: '/static/home/mbti.png',
  44. title: '职业性格测评',
  45. desc: 'MBTI测评是一种基于人格类型的测评工具,根据被测者对四种人格维度的偏好程度,判断其人格类型并提供相关建议。',
  46. bgColor: '#D9E2FD',
  47. clazz: ['mx12'],
  48. path: '/pages/test-center/mbti/mbti',
  49. more: '/pages/test-center/list/list',
  50. moreNext: {type: 'mbti'}
  51. },
  52. multiwayGuide: {
  53. is: "test-guide-card",
  54. img: '/static/home/multiway-guide@2x.png',
  55. title: '多元升学路径规划',
  56. desc: '"多元录取"是新高考改革的核心,国家鼓励更多的学生能够结合自身的情况选择合适的升学路径,促进低分高就及科学的学业生涯规划。',
  57. bgColor: '#75DDBD',
  58. clazz: ['mx12'],
  59. path: '/pages/career/multiway/multiway',
  60. more: '/pages/career/multiway/history'
  61. },
  62. mentalHealthGuide: {
  63. is: "test-guide-card",
  64. img: '/static/home/mental-health.png',
  65. title: '中学生心理健康诊断测验',
  66. desc: '该测评是由华东师范大学心理学系教授周步成和其他心理学科研究人员,根据日本铃木清等人编制的"不安倾向诊断测验"进行修订,成为适应于我国中学学生标准化的《心理健康诊断测验》',
  67. bgColor: '#E1FCDF',
  68. clazz: ['mx12'],
  69. path: '/pages/test-center/mental-health/mental-health',
  70. more: '/pages/test-center/mental-health/history'
  71. },
  72. electiveGuide: {
  73. is: "test-guide-card",
  74. img: '/static/home/elective-guide@2x.png',
  75. title: '选科测评',
  76. desc: '新高考选科测评,从人生价值观、职业兴趣和知识兴趣三个维度,帮助你找到最适合的专业。',
  77. bgColor: '#9595dd',
  78. clazz: ['mx12'],
  79. path: '/pages/elective/test/index/index'
  80. },
  81. // 选科测评
  82. electiveTest: {
  83. is: "mx-card-common",
  84. lineSize: 1,
  85. gutter: 0,
  86. containerClasses: ['pl15', 'pr15', 'mb15'],
  87. itemClasses: ['rd8', 'relative'],
  88. header: {
  89. title: '选科测评',
  90. icon: '/static/images/elective/elective_block_select_icon.png',
  91. },
  92. titleBinder: {
  93. customStyle: {
  94. ...mxConst.commonStyle.blockFloatTitle,
  95. color: '#336699'
  96. }
  97. },
  98. titleMapper: {
  99. 'name': 'text'
  100. },
  101. descBinder: {
  102. customStyle: {
  103. ...mxConst.commonStyle.blockFloatDesc,
  104. color: '#ff9966',
  105. opacity: 1,
  106. fontSize: '14px',
  107. fontFamily: 'PingFangSC-Regular, PingFang SC',
  108. }
  109. },
  110. descMapper: {
  111. 'desc': 'text'
  112. },
  113. dataList: [{
  114. name: '',
  115. desc: '',
  116. src: '/static/images/elective/elective_block_test.png',
  117. path: '/pages/elective/test/index/index',
  118. }]
  119. },
  120. // 心理测评
  121. psychologyTest: {
  122. is: "mx-card-common",
  123. lineSize: 1,
  124. gutter: 0,
  125. containerClasses: ['pl15', 'pr15', 'mb15'],
  126. itemClasses: ['rd8', 'relative'],
  127. header: {
  128. title: '心理测评',
  129. icon: '/static/images/elective/elective_block_select_icon.png',
  130. },
  131. titleBinder: {
  132. customStyle: {
  133. ...mxConst.commonStyle.blockFloatTitle,
  134. color: '#336699'
  135. }
  136. },
  137. titleMapper: {
  138. 'name': 'text'
  139. },
  140. dataList: [{
  141. name: '心理测评',
  142. src: '/static/images/elective/elective_block_test.png',
  143. path: '/pages/elective/test/index/index',
  144. }]
  145. },
  146. // 学业测评
  147. studyTest: {
  148. is: "mx-card-common",
  149. lineSize: 1,
  150. gutter: 0,
  151. containerClasses: ['pl15', 'pr15', 'mb15'],
  152. itemClasses: ['rd8', 'relative'],
  153. header: {
  154. title: '学业测评',
  155. icon: '/static/images/elective/elective_block_select_icon.png',
  156. },
  157. titleBinder: {
  158. customStyle: {
  159. ...mxConst.commonStyle.blockFloatTitle,
  160. color: '#336699'
  161. }
  162. },
  163. titleMapper: {
  164. 'name': 'text'
  165. },
  166. dataList: [{
  167. name: '学业测评',
  168. src: '/static/images/elective/elective_block_test.png',
  169. path: '/pages/elective/test/index/index',
  170. }]
  171. },
  172. // 学科测评入口
  173. evaluationSummary: {
  174. is: 'mx-index-eval-summary',
  175. categories: function (vm, config) {
  176. return vm.storeGetterFilter(config.studentEvaluationTabs)
  177. }
  178. },
  179. // 同步视频
  180. videoSync: {
  181. is: 'mx-card-video-sync',
  182. lineSize: 2,
  183. itemClasses: ['pl8', 'pr8', 'pt3', 'pb10', 'card-shadow'],
  184. header: {
  185. title: '视频课程',
  186. icon: "/static/images/home/icon_mingshijingjiang@2x.png",
  187. moreText: '所有视频>>',
  188. path: '/pages/video-center/index/index'
  189. },
  190. imgMapper: {
  191. 'img': 'src'
  192. },
  193. titleBinder: {
  194. // 不要使用lineHeight,手机端在单行文本时不兼容,改用margin控制
  195. margin: '10px 0 5px 0',
  196. lines: 1,
  197. customStyle: mxConst.commonStyle.blockNormalTitle
  198. },
  199. titleMapper: {
  200. 'section_name': 'text'
  201. },
  202. dataList: []
  203. },
  204. // 热门专业
  205. hotMajor: {
  206. is: 'MxCardHotMajor',
  207. lineSize: 2,
  208. class: ['bg-white rd6 ml12 mr12'],
  209. header: {
  210. title: '热门专业'
  211. },
  212. imgBinder: {
  213. height: '105px'
  214. },
  215. dataList: []
  216. },
  217. // 生涯视频
  218. videoCareer: {
  219. is: 'mx-card-video-career',
  220. ref: 'careerVideo',
  221. lineSize: 2,
  222. class: ['bg-white', 'rd6', 'ml12', 'mr12'],
  223. itemClasses: [],
  224. header: {
  225. title: '生涯课程',
  226. // icon: "/static/images/home/icon_video@2x.png",
  227. moreText: '查看全部 >',
  228. path: '/pages/career/index/career-list?type=1'
  229. },
  230. imgBinder: {
  231. classes: 'rd4'
  232. },
  233. imgMapper: {
  234. 'pictUrl': 'src'
  235. },
  236. titleBinder: {
  237. // 不要使用lineHeight,手机端在单行文本时不兼容,改用margin控制
  238. margin: '10px 0 5px 0',
  239. lines: 1,
  240. customStyle: mxConst.commonStyle.blockNormalTitle
  241. },
  242. titleMapper: {
  243. 'name': 'text'
  244. },
  245. descBinder: {
  246. lines: 1,
  247. prefixIcon: 'eye',
  248. customStyle: mxConst.commonStyle.blockNormalDesc
  249. },
  250. descMapper: {
  251. 'plays': 'text'
  252. },
  253. dataList: []
  254. },
  255. gkzx: {
  256. is: 'mx-card-gkzx',
  257. lineSize: 1,
  258. itemClasses: ['pl8', 'pr8', 'pt3', 'pb10', 'bd-b-1'],
  259. header: {
  260. title: '高考政策',
  261. icon: "/static/images/home/icon_video@2x.png",
  262. moreText: '更多>>',
  263. path: '/pages/career/volunteer/info/list?type=高考政策'
  264. },
  265. titleBinder: {
  266. // 不要使用lineHeight,手机端在单行文本时不兼容,改用margin控制
  267. margin: '10px 0 5px 0',
  268. lines: 1,
  269. customStyle: mxConst.commonStyle.blockNormalTitle
  270. },
  271. titleMapper: {
  272. 'title': 'text'
  273. },
  274. dataList: []
  275. },
  276. videoGksp: {
  277. is: 'mx-card-video-gksp',
  278. lineSize: 2,
  279. class: ['bg-white', 'rd6', 'ml12', 'mr12'],
  280. itemClasses: [],
  281. header: {
  282. title: '高考政策',
  283. // icon: "/static/images/home/icon_video@2x.png",
  284. moreText: '查看全部 >',
  285. path: '/pages/career/volunteer/new-gkvideo?type=高考政策'
  286. },
  287. imgBinder: {
  288. mode: '',
  289. width: '100%',
  290. src: '/static/images/home/img_shegnyaguanli@2x.png' //default value
  291. },
  292. imgMapper: {
  293. 'coverUrl': 'src'
  294. },
  295. titleBinder: {
  296. // 不要使用lineHeight,手机端在单行文本时不兼容,改用margin控制
  297. margin: '10px 0 5px 0',
  298. lines: 1,
  299. customStyle: mxConst.commonStyle.blockNormalTitle
  300. },
  301. titleMapper: {
  302. 'title': 'text'
  303. },
  304. dataList: []
  305. },
  306. // 微课视频
  307. videoMicro: {
  308. is: 'mx-card-video-micro',
  309. lineSize: 2,
  310. itemClasses: ['pl8', 'pr8', 'pt3', 'pb10', 'card-shadow'],
  311. header: {
  312. title: '微课视频',
  313. icon: "/static/images/home/icon_video@2x.png",
  314. moreText: '更多>>',
  315. path: '/pages/eval-center/personal-resource/index/index'
  316. },
  317. imgBinder: {
  318. mode: '',
  319. src: '/static/images/home/img_shegnyaguanli@2x.png' //default value
  320. },
  321. imgMapper: {
  322. 'resourcesCoverUrl': 'src'
  323. },
  324. titleBinder: {
  325. // 不要使用lineHeight,手机端在单行文本时不兼容,改用margin控制
  326. margin: '10px 0 5px 0',
  327. lines: 1,
  328. customStyle: mxConst.commonStyle.blockNormalTitle
  329. },
  330. titleMapper: {
  331. 'resourcesName': 'text'
  332. },
  333. dataList: []
  334. },
  335. // 生涯测评
  336. careerTest: {
  337. is: 'mx-card-common',
  338. lineSize: 2,
  339. itemClasses: ['rd4'],
  340. header: {
  341. title: '生涯测评',
  342. icon: '/static/images/home/icon_shengyaceping@2x.png',
  343. moreText: '测评记录>>',
  344. path: '/pages/test-center/list/list'
  345. },
  346. dataList: [{
  347. src: '/static/images/home/img_zhuanyexingquceping@2x.png',
  348. path: '/pages/test-center/holland/holland'
  349. }, {
  350. src: '/static/images/home/img_zhiyexingquceping@2x.png',
  351. path: '/pages/test-center/mbti/mbti'
  352. }],
  353. },
  354. // 智能练习
  355. intelligentExercise: {
  356. is: 'mx-card-common',
  357. lineSize: 2,
  358. itemClasses: ['rd4'],
  359. header: {
  360. title: '智能练习',
  361. icon: "/static/images/home/home_icon_tikuzhongxin@2x.png",
  362. },
  363. dataList: [{
  364. mode: '',
  365. src: '/static/images/home/img_tongbuzaixianlianxi@2x.png',
  366. path: '/pages/topic-center/sync-online/sync-online?tabIndex=0'
  367. }, {
  368. mode: '',
  369. src: '/static/images/home/img_zhishidianzaixianlianxi@2x.png',
  370. path: '/pages/topic-center/sync-online/sync-online?tabIndex=1'
  371. }],
  372. },
  373. paperWork: {
  374. is: "mx-card-common",
  375. lineSize: 1,
  376. gutter: 0,
  377. containerClasses: ['pl15', 'pr15', 'mb15'],
  378. itemClasses: ['rd8', 'relative'],
  379. header: {
  380. title: '在线作业',
  381. icon: '/static/images/topic-center/topic_center_icon_homework.png',
  382. },
  383. titleBinder: {
  384. customStyle: {
  385. ...mxConst.commonStyle.blockFloatTitle,
  386. color: '#608EDF'
  387. }
  388. },
  389. titleMapper: {
  390. 'name': 'text'
  391. },
  392. descBinder: {
  393. customStyle: {
  394. ...mxConst.commonStyle.blockFloatDesc,
  395. color: '#FFA400',
  396. opacity: 1,
  397. fontSize: '14px',
  398. fontFamily: 'PingFangSC-Regular, PingFang SC',
  399. }
  400. },
  401. descMapper: {
  402. 'desc': 'text'
  403. },
  404. dataList: [{
  405. name: '在线作业/视频作业/试卷作业',
  406. desc: 'HOMEWORK ONLINE',
  407. src: '/static/images/topic-center/topic_center_block_homework.png',
  408. path: '/pages/topic-center/homework/index',
  409. }]
  410. },
  411. paperWorkManage: {
  412. is: "mx-card-common",
  413. lineSize: 1,
  414. gutter: 0,
  415. containerClasses: ['pl15', 'pr15', 'mb15'],
  416. itemClasses: ['rd8', 'relative'],
  417. header: {
  418. title: '作业管理',
  419. icon: '/static/images/topic-center/topic_center_icon_homework.png',
  420. },
  421. titleBinder: {
  422. customStyle: {
  423. ...mxConst.commonStyle.blockFloatTitle,
  424. color: '#608EDF'
  425. }
  426. },
  427. titleMapper: {
  428. 'name': 'text'
  429. },
  430. descBinder: {
  431. customStyle: {
  432. ...mxConst.commonStyle.blockFloatDesc,
  433. color: '#FFA400',
  434. opacity: 1,
  435. fontSize: '14px',
  436. fontFamily: 'PingFangSC-Regular, PingFang SC',
  437. }
  438. },
  439. descMapper: {
  440. 'desc': 'text'
  441. },
  442. dataList: [{
  443. name: '发布作业/检查作业',
  444. desc: 'HOMEWORK MANAGEMENT',
  445. src: '/static/images/topic-center/topic_center_block_homework.png',
  446. path: '/pages/topic-center/homework/manage',
  447. }]
  448. },
  449. qualityPaper: {
  450. is: 'mx-card-common',
  451. lineSize: 2,
  452. itemClasses: ['rd4'],
  453. header: {
  454. title: '精品试卷',
  455. icon: "/static/images/home/icon_jingpinshijuan@2x.png",
  456. },
  457. dataList: [{
  458. mode: '',
  459. src: '/static/images/home/img_mingxiao@2x.png',
  460. path: '/pages/topic-center/best-paper/index/index?tabIndex=0'
  461. }, {
  462. mode: '',
  463. src: '/static/images/home/IMG_linianzhent@2x.png',
  464. path: '/pages/topic-center/best-paper/index/index?tabIndex=1'
  465. }]
  466. },
  467. // 高考志愿
  468. simulatedVolunteer: {
  469. is: "mx-card-common",
  470. lineSize: 1,
  471. gutter: 0,
  472. itemClasses: ['rd8', 'rel'],
  473. header: {
  474. title: '高考志愿',
  475. icon: '/static/images/career/icon_zhiyuan.png',
  476. },
  477. titleBinder: {
  478. customStyle: mxConst.commonStyle.blockFloatTitle
  479. },
  480. titleMapper: {
  481. 'name': 'text'
  482. },
  483. descBinder: {
  484. customStyle: mxConst.commonStyle.blockFloatDesc
  485. },
  486. descMapper: {
  487. 'desc': 'text'
  488. },
  489. dataList: [{
  490. name: '志愿填报',
  491. desc: 'SIMULATED VOLUNTEER',
  492. src: '/static/images/career/img_zhiyuantianbao.png',
  493. path: '/pages/voluntary/index/index',
  494. }]
  495. },
  496. // 高考志愿F4
  497. simulatedVolunteerF4: {
  498. is: "mx-card-common",
  499. lineSize: 4,
  500. itemClasses: ['fx-cen-cen'],
  501. imgBinder: {
  502. width: '64px',
  503. height: '64px',
  504. },
  505. titleBinder: {
  506. margin: '10px 0 0 0',
  507. lines: 1
  508. },
  509. titleMapper: {
  510. 'name': 'text'
  511. },
  512. dataList: [{
  513. name: '招生计划',
  514. src: '/static/images/career/icon_gaokaomingci.png',
  515. path: '/pages/career/volunteer/plan/index'
  516. }, {
  517. name: '批次控制线',
  518. src: '/static/images/career/icon_kongzhixian.png',
  519. path: '/pages/career/volunteer/batch'
  520. }, {
  521. name: '一分一段',
  522. src: '/static/images/career/icon_yifenyiduan.png',
  523. path: '/pages/career/volunteer/yfyd'
  524. }, {
  525. name: '投档线',
  526. src: '/static/images/career/icon_toudangxian.png',
  527. path: '/pages/career/volunteer/admission-line'
  528. }]
  529. },
  530. // 3库
  531. collegeMajorVocation: {
  532. is: "mx-card-common",
  533. lineSize: 3,
  534. itemClasses: ['fx-cen-cen'],
  535. header: {
  536. title: "院校专业",
  537. icon: "/static/images/career/icon_star.png",
  538. },
  539. imgBinder: {
  540. width: '64px',
  541. height: '64px',
  542. },
  543. titleBinder: {
  544. margin: '10px 0 0 0',
  545. lines: 1
  546. },
  547. titleMapper: {
  548. 'name': 'text'
  549. },
  550. dataList: [{
  551. name: '院校库',
  552. src: '/static/images/career/icon_yuanxiaoku.png',
  553. path: '/pages/college-library/index/index'
  554. }, {
  555. name: '专业库',
  556. src: '/static/images/career/icon_zhuanyeku.png',
  557. path: '/pages/major-library/index/index'
  558. }, {
  559. name: '职业库',
  560. src: '/static/images/career/icon_zhiyeku.png',
  561. path: '/pages/vocation-library/index/index'
  562. }]
  563. },
  564. // 大数据选科
  565. elective: {
  566. is: "mx-card-common",
  567. lineSize: 2,
  568. itemClasses: ['fx-cen-cen'],
  569. header: {
  570. title: "大数据选科",
  571. icon: "/static/images/career/icon_star.png",
  572. },
  573. imgBinder: {
  574. width: '96px',
  575. height: '96px',
  576. },
  577. titleBinder: {
  578. margin: '10px 0 0 0',
  579. customStyle: mxConst.commonStyle.blockNormalTitle
  580. },
  581. titleMapper: {
  582. 'name': 'text'
  583. },
  584. dataList: function (vm, config) {
  585. return vm.storeGetterFilter(config.indexElectiveBlockOptions)
  586. }
  587. },
  588. // 精准ai助学
  589. PreciseAi: {
  590. is: 'mx-card-common',
  591. lineSize: 2,
  592. itemClasses: ['rd4'],
  593. header: {
  594. title: '精准AI助学',
  595. icon: "/static/images/home/home_icon_tikuzhongxin@2x.png",
  596. },
  597. dataList: [{
  598. mode: '',
  599. src: '/static/images/home/precise_micro.png',
  600. path: '/pages/eval-center/ai/preciseAi/microVideo/index'
  601. }, {
  602. mode: '',
  603. src: '/static/images/home/precise_pratise.png',
  604. path: '/pages/eval-center/ai/preciseAi/practise/index'
  605. }],
  606. },
  607. // 普通ai助学
  608. CommonAi: {
  609. is: 'mx-card-common',
  610. lineSize: 2,
  611. itemClasses: ['rd4'],
  612. header: {
  613. title: '普通AI助学',
  614. icon: "/static/images/home/home_icon_tikuzhongxin@2x.png",
  615. },
  616. dataList: [{
  617. mode: '',
  618. src: '/static/images/home/common_micro.png',
  619. path: '/pages/eval-center/ai/commonAi/microVideo/index'
  620. }, {
  621. mode: '',
  622. src: '/static/images/home/common_pratise.png',
  623. path: '/pages/eval-center/ai/commonAi/practise/index'
  624. }],
  625. }
  626. }