imageText.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. import {
  2. displayList,
  3. serialNumberTypeList,
  4. serialNumberPositionList,
  5. isEnable,
  6. pinyinPositionList,
  7. } from '@/views/book/courseware/data/common';
  8. export { isEnable };
  9. export function getImageTextProperty() {
  10. return {
  11. serial_number: 1,
  12. sn_type: serialNumberTypeList[0].value,
  13. sn_position: serialNumberPositionList[3].value,
  14. sn_display_mode: displayList[0].value,
  15. view_pinyin: 'true', // 显示拼音
  16. pinyin_position: pinyinPositionList[0].value, // top bottom
  17. is_first_sentence_first_hz_pinyin_first_char_upper_case: 'true', // 句首大写
  18. };
  19. }
  20. export function getImageTextData() {
  21. return {
  22. type: 'image_text',
  23. title: '图片文本融合',
  24. property: getImageTextProperty(),
  25. total_size: 500, // 单位MB
  26. mp3_list: [], // 音频列表
  27. image_list: [], // 图片列表
  28. image_info_list: [],
  29. image_id_list: [], // 文件 id
  30. image_width: 500, // 图片宽度px
  31. image_height: 500, // 图片高度px
  32. text_list: [], // 文字框列表
  33. input_list: [], // 输入框列表
  34. mind_map: {
  35. node_list: [
  36. ], // 思维导图数据
  37. },
  38. answer: {
  39. answer_list: [],
  40. },
  41. };
  42. }