AIFormCommonStyle.js 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. import mxConfig from "@/common/mxConfig";
  2. import {combineOssFile} from "@/utils";
  3. export default {
  4. data() {
  5. return {
  6. formGroupBinding: {
  7. type: 'main',
  8. bold: true,
  9. margin: '15px 0 0 0'
  10. },
  11. formInputBinding: {
  12. fontSize: 16,
  13. border: "bottom",
  14. inputAlign: "right"
  15. },
  16. gradientBtnBinding: {
  17. color: `linear-gradient(270deg, var(--primary-light-color), var(--primary-deep-color)`,
  18. customStyle: {height: '44px'},
  19. shape: 'circle',
  20. class: '!flex-1'
  21. },
  22. plainBtnBinding: {
  23. type: 'primary',
  24. plain: true,
  25. shape: 'circle',
  26. customStyle: {height: '44px'},
  27. class: '!flex-1'
  28. },
  29. singleTitleBinding: {
  30. title: '院校录取概率测试',
  31. subTitle: '测录取概率',
  32. description: '选择院校专业,测算录取概率及分析'
  33. },
  34. analysisTitleBinding: {
  35. mode: 'light',
  36. title: '模拟志愿分析',
  37. subTitle: '志愿分析',
  38. description: '输入院校专业,分析志愿合理性',
  39. bgIcon: '/static/ie/entry/bg-large-header-analysis.png',
  40. bgIconWidth: 128,
  41. titleStyle: {
  42. backgroundImage: this.makeEnvImagePath('static/ie/entry/bg-large-header-title.png'),
  43. backgroundPosition: 'bottom right',
  44. backgroundSize: '80% auto',
  45. backgroundRepeat: 'no-repeat'
  46. }
  47. },
  48. aiTitleBinding: {
  49. mode: 'light',
  50. title: 'AI志愿',
  51. subTitle: 'AI志愿',
  52. description: '填写信息,人工智能推荐合理志愿',
  53. bgIcon: '/static/ie/entry/bg-large-header-light.png',
  54. bgIconWidth: 96
  55. },
  56. reportTitleBinding: {
  57. title: '志愿报告',
  58. bgIcon: '/static/ie/entry/bg-ai-report.png',
  59. bgIconHeight: '110',
  60. subTitle: '你的专属报告',
  61. description: '精准分析 提升录取概率',
  62. contentCustomClass: 'ai-sta'
  63. },
  64. calculateTitleBinding: {
  65. mode: 'light',
  66. title: '职业技能分测算',
  67. subTitle: '测职业技能分',
  68. description: '输入分数,测算所需职业技能分',
  69. bgIcon: '/static/ie/entry/bg-large-header-calculate.png',
  70. bgIconHeight: 104
  71. }
  72. }
  73. },
  74. methods: {
  75. makeEnvImagePath(path) {
  76. // backgroundImage的路径需要手工处理
  77. const routerBase = mxConfig.ossFileBase || __uniConfig.router.base || '/'
  78. return `url('${combineOssFile(routerBase + path)}')`
  79. }
  80. },
  81. }