Constant.js 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357
  1. export const PcUrl = __PcUrl__;
  2. export const WechatPcAppId = __WechatPcAppId__;
  3. export const H5Url = __H5Url__;
  4. export const WechatH5AppId = __WechatH5AppId__;
  5. export const QuestionDifficult = [{ label: 'Easy', value: 'easy', sort: 2 }, { label: 'Medium', value: 'medium', sort: 1 }, { label: 'Hard', value: 'hard', sort: 0 }];
  6. export const QuestionType = [{ label: 'SC/语法', value: 'sc', long: 'Sentence Correnction' }, { label: 'RC/阅读', value: 'rc', long: 'Reading Comprehension' }, { label: 'CR/逻辑', value: 'cr', long: 'Critical Reasoning' }, { label: 'PS/数学', value: 'ps', long: 'Problem solving' }, { label: 'DS/数学', value: 'ds', long: 'Data Sufficiency' }, { label: 'IR/综合推理', value: 'ir', long: 'Integrated Reasoning' }, { label: 'AWA/作文', value: 'awa', long: 'Analytical Writing Assessment' }];
  7. export const ExaminationQuestionType = [{ label: 'SC/语法', value: 'sc', long: 'Sentence Correnction' }, { label: 'RC/阅读', value: 'rc', long: 'Reading Comprehension' }, { label: 'CR/逻辑', value: 'cr', long: 'Critical Reasoning' }, { label: 'PS/数学', value: 'ps', long: 'Problem solving' }, { label: 'DS/数学', value: 'ds', long: 'Data Sufficiency' }];
  8. export const FeedbackQuestionType = [{ label: 'SC/语法', value: 'sc' }, { label: 'RC/阅读', value: 'rc' }, { label: 'CR/逻辑', value: 'cr' }, { label: 'PS/数学', value: 'ps' }, { label: 'DS/数学', value: 'ds' }, { label: 'IR/综合推理', value: 'ir' }, { label: '长难句', value: 'sentence' }];
  9. export const TextbookType = [{ label: 'PS/数学', value: 'ps' }, { label: 'DS/数学', value: 'ds' }];
  10. export const MoneyRange = [{ label: '0', value: 0 }, { label: '1-1000', value: 1 }, { label: '1000-5000', value: 2 }, { label: '5000-10000', value: 3 }, { label: '10000以上', value: 4 }];
  11. export const AskTarget = [{ label: '题目', value: 'question', title: '题目', key: 'question' }, { label: '官方解析', value: 'official', title: '官方解析', key: 'official' }, { label: '千行解析', value: 'qx', title: '千行解析', key: 'qx' }, { label: '题源联想', value: 'association', title: '题源联想', key: 'association' }, { label: '相关问答', value: 'qa', title: '相关问答', key: 'qa' }];
  12. export const ServiceKey = [{ label: 'VIP', value: 'vip' }, { label: '机经', value: 'textbook' }, { label: '千行CAT', value: 'qx_cat' }];
  13. export const ServiceParamMap = {
  14. vip: [{ label: '1个月', value: 'month1' }, { label: '3个月', value: 'month3' }, { label: '6个月', value: 'month6' }],
  15. };
  16. export const AskModule = [{ label: '练习', value: 'exercise' }, { label: '模考', value: 'examination' }];
  17. export const PaperModule = [{ label: '练习', value: 'exercise' }, { label: '模考', value: 'examination' }, { label: '长难句', value: 'sentence' }, { label: '机经', value: 'textbook' }];
  18. export const RecordSource = [{ label: '银行转账', value: 'bank' }, { label: '微信', value: 'wechat' }, { label: '支付宝', value: 'alipay' }, { label: '实名认证', value: 'real' }, { label: '邀请好友', value: 'invite' }, { label: '备考设置', value: 'prepare' }, { label: '课程赠送', value: 'gift_course' }, { label: '活动赠送', value: 'gift_activity' }, { label: '线下报名', value: 'backend' }];
  19. export const RecordBuySource = [{ label: '银行转账', value: 'bank' }, { label: '微信', value: 'wechat' }, { label: '支付宝', value: 'alipay' }];
  20. export const CourseSource = [{ label: '网上报名', value: 'bank' }, { label: '网上报名', value: 'wechat' }, { label: '网上报名', value: 'alipay' }, { label: '线下报名', value: 'backend' }];
  21. export const SwitchSelect = [{ value: 0, label: '否' }, { value: 1, label: '是' }];
  22. export const PassSelect = [{ value: 0, label: '未认证' }, { value: 1, label: '通过' }];
  23. export const InputSelect = [{ value: 0, label: '未填' }, { value: 1, label: '已填' }];
  24. export const SystemSelect = [{ value: 0, label: '用户' }, { value: 1, label: '系统' }];
  25. export const AskStatus = [{ value: 0, label: '新增' }, { value: 1, label: '已回答' }, { value: 2, label: '忽略' }];
  26. export const FeedbackStatus = [{ value: 0, label: '新增' }, { value: 1, label: '已处理' }, { value: 2, label: '忽略' }, { value: 3, label: '无需修改' }];
  27. export const FeedbackModule = [{ value: 'question', label: '题目' }, { value: 'data', label: '资料' }];
  28. export const PrepareStatus = [{ label: '学生-Domestic', value: 'student_domestic' }, { label: '学生-Overseas', value: 'student_overseas' }, { label: '在职-Domestic', value: 'worker_domestic' }, { label: '在职-Overseas', value: 'worker_overseas' }, { label: 'Gap Year', value: 'gap_year' }];
  29. export const PrepareExaminationTime = [{ label: '近1个月', value: 'one_month' }, { label: '近2个月', value: 'two_month' }, { label: '近3个月', value: 'three_month' }, { label: '半年内', value: 'six_month' }];
  30. export const ProductType = [{ label: '服务', value: 'service' }, { label: '课程', value: 'course' }, { label: '资料', value: 'data' }, { label: '课程-套餐', value: 'course-package' }];
  31. export const ProductTypeMain = [{ label: '服务', value: 'service' }, { label: '课程', value: 'course' }, { label: '资料', value: 'data' }];
  32. export const QuestionStyleType = [{ label: '单选', value: 'single' }, { label: '横纵向单选', value: 'double' }, { label: '题目内选择', value: 'inline' }];
  33. export const QuestionRadioDirection = [{ label: '横向', value: 'landscape' }, { label: '纵向', value: 'portrait' }];
  34. export const SentenceOption = [{ label: '平行', value: 'parallel' }, { label: '修饰', value: 'embellish' }, { label: '转折', value: 'transition' }, { label: '比较', value: 'compare' }, { label: '因果', value: 'cause' }, { label: '递进', value: 'progressively' }];
  35. export const ExaminationSubject = [{ long: 'Analytical Writing Analysis', value: 'awa', label: '作文', english: 'AWA', ignore: true }, { long: 'Integrated Reasoning', value: 'ir', label: '综合推理', english: 'IR' }, { long: 'Quantitative', value: 'quant', label: '数学', english: 'Quant' }, { long: 'Verbal', value: 'verbal', label: '语文', english: 'Verbal' }];
  36. export const ExaminationOrder = [
  37. { label: 'ARQV', value: ['awa', 'ir', 'quant', 'verbal'], list: [{ label: 'Analytical Writing Analysis', value: 'awa' }, { label: 'Integrated Reasoning', value: 'ir' }, { label: 'Quantitative', value: 'quant' }, { label: 'Verbal', value: 'verbal' }] },
  38. { label: 'VQRA', value: ['verbal', 'quant', 'ir', 'awa'], list: [{ label: 'Verbal', value: 'verbal' }, { label: 'Quantitative', value: 'quant' }, { label: 'Integrated Reasoning', value: 'ir' }, { label: 'Analytical Writing Analysis', value: 'awa' }] },
  39. { label: 'QVRA', value: ['quant', 'verbal', 'ir', 'awa'], list: [{ label: 'Quantitative', value: 'quant' }, { label: 'Verbal', value: 'verbal' }, { label: 'Integrated Reasoning', value: 'ir' }, { label: 'Analytical Writing Analysis', value: 'awa' }] },
  40. ];
  41. export const DataType = [{ label: '电子', value: 'electron' }, { label: '纸质', value: 'paper' }];
  42. export const ExperienceScore = [{ label: '680+', value: '_680' }, { label: '700+', value: '_700' }, { label: '730+', value: '_730' }, { label: '750+', value: '_750' }];
  43. export const ExperienceScoreRange = [680, 800, 10];
  44. export const ExperienceDay = [{ label: '<=1个月', value: 'lt1month' }, { label: '1-3个月', value: 'b13month' }, { label: '>=3个月', value: 'gt3month' }];
  45. export const ExperiencePercent = [{ label: '50+', value: '_50' }, { label: '100+', value: '_100' }, { label: '150+', value: '_150' }, { label: '200+', value: '_200' }];
  46. export const CourseModule = [{ label: '视频课程', value: 'video' }, { label: '小班课程', value: 'online' }, { label: '1v1课程', value: 'vs' }];
  47. export const CourseModuleShow = [{ label: '在线课程', value: 'online', courseModules: ['video', 'online'] }, { label: '1V1私教', value: 'vs', courseModules: ['vs'] }];
  48. export const CourseVsType = [{ label: '新手辅导', value: 'novice' }, { label: '诊断辅导', value: 'coach' }, { label: '系统授课', value: 'system' }, { label: '答疑课', value: 'answer' }];
  49. export const CourseVideoType = [{ label: '基础刷题', value: 'base' }, { label: '系统授课', value: 'system' }, { label: '思维提升', value: 'thinking' }];
  50. export const CrowdList = [{ label: '新手', value: 'novice' }, { label: '非新手', value: 'veteran' }];
  51. export const CourseStatus = [{ label: '未开通', value: 0 }, { label: '学习中', value: 1 }, { label: '已到期', value: 2 }];
  52. export const InvoiceType = [{ label: '个人', value: 'personal' }, { label: '企业', value: 'enterprise' }];
  53. export const TextbookQuality = [{ label: '残缺', value: 'incomplete' }, { label: '较完整', value: 'morecomplete' }, { label: '完整', value: 'complete' }];
  54. export const TextbookSubject = [{ label: '数学', value: 'quant' }, { label: '阅读', value: 'rc' }, { label: '逻辑', value: 'ir' }];
  55. export const TextbookFeedbackStatus = [{ value: 0, label: '新增' }, { value: 1, label: '采纳' }, { value: 2, label: '忽略' }, { value: 3, label: '无需修改' }];
  56. export const TextbookFeedbackTarget = [{ label: '纠正', value: 'correct' }, { label: '完善', value: 'perfect' }, { label: '反馈全新', value: 'new' }];
  57. export const ContractKey = [{ label: '注册', value: 'register' }, { label: '课程购买', value: 'course' }];
  58. export const RoomPosition = [{ label: '北部', value: 'north' }, { label: '东部', value: 'east' }, { label: '中南', value: 'south_central' }, { label: '西部', value: 'west' }, { label: '海外', value: 'overseas' }];
  59. export const MessageCategory = [
  60. { label: '注册消息', value: 'register', params: ['mobile'] },
  61. { label: '登录异常', value: 'login_abnormal', params: ['nickname', 'ip', 'city'] },
  62. { label: '机经更新', value: 'textbook_update', params: [''] },
  63. { label: '预习作业提醒', value: 'preview_notice', params: ['courseTitle', 'title'] },
  64. { label: '支付成功提醒', value: 'payed', params: ['money'] },
  65. { label: '资料更新', value: 'data_update', params: ['title', 'time'] },
  66. { label: '题目提问回复', value: 'ask_question', params: ['content', 'time', 'status'] },
  67. { label: '课程提问回复', value: 'ask_course', params: ['content', 'time', 'status'] },
  68. { label: '咨询回复', value: 'faq_callback', params: ['content', 'answer', 'channel'] },
  69. { label: '纠错回复', value: 'feedback_callback', params: ['content', 'object', 'correct', 'status'] },
  70. { label: '邀请好友注册', value: 'invited', params: ['code', 'nickname', 'url'] },
  71. { label: '邮箱变更', value: 'email_change', params: ['nickname', 'email'] },
  72. { label: '自定义消息', value: 'custom', params: ['nickname'] },
  73. ];
  74. export const MessageEmailStatus = [
  75. { label: '已停止', value: 0 },
  76. { label: '运行中', value: 1 },
  77. ];
  78. export const MessageCustomStatus = [
  79. { label: '未发送', value: 0 },
  80. { label: '发送中', value: 1 },
  81. { label: '发送完', value: 2 },
  82. ];
  83. export const FaqChannel = [
  84. { label: 'GetReady', value: 'getready' },
  85. { label: '模考', value: 'examination' },
  86. { label: 'CAT难度适应性', value: 'cat', parent: 'examination' },
  87. { label: '非CAT', value: 'base', parent: 'examination' },
  88. { label: '数学机经', value: 'textbook' },
  89. { label: '换库', value: 'library' },
  90. { label: '课堂-课程', value: 'course' },
  91. { label: '首页', value: 'index', parent: 'course' },
  92. { label: '视频首页', value: 'video_index', parent: 'course' },
  93. { label: '单项', value: 'video', parent: 'course' },
  94. { label: '套餐首页', value: 'package_index', parent: 'course' },
  95. { label: '1对1首页', value: 'vs_index', parent: 'course' },
  96. { label: '课堂-资料', value: 'course_data' },
  97. ];
  98. export const CommentChannel = [
  99. { label: '网站首页', value: 'main', type: 'manual' },
  100. { label: '换库机经', value: 'library' },
  101. { label: '课堂-课程', value: 'course' },
  102. { label: '首页', value: 'index', parent: 'course', type: 'manual' },
  103. { label: '视频首页', value: 'video_index', parent: 'course', type: 'manual' },
  104. { label: '单项', value: 'video', parent: 'course' },
  105. { label: '套餐首页', value: 'package_index', parent: 'course' },
  106. { label: '1对1首页', value: 'vs_index', parent: 'course', type: 'manual' },
  107. { label: '1对1', value: 'vs', parent: 'course' },
  108. { label: '课堂-资料', value: 'course_data' },
  109. ];
  110. export const AdChannel = [
  111. { label: '个人中心', value: 'my' },
  112. { label: '我的', value: 'self', parent: 'my' },
  113. { label: '课程', value: 'course' },
  114. { label: '首页', value: 'index', parent: 'course' },
  115. ];
  116. export const AdPlace = [
  117. { label: '右1', value: '1', parent: 'my-self' },
  118. { label: '右2', value: '2', parent: 'my-self' },
  119. { label: '右3', value: '3', parent: 'my-self' },
  120. { label: '顶部', value: 'top', parent: 'course-index' },
  121. ];
  122. export const MobileArea = ['+86', '+1'].map(row => {
  123. return { label: row, value: row };
  124. });
  125. // const content = {
  126. // steps: [{
  127. // title: '',
  128. // stem: '',
  129. // }],
  130. // questions: [{
  131. // description: '', // type!=inline
  132. // select: [],
  133. // direction: '', // type=double
  134. // first: '', // type=double
  135. // second: '', // type=double
  136. // }],
  137. // table: {
  138. // row: 3,
  139. // col: 3,
  140. // header: [],
  141. // data: [[], []],
  142. // },
  143. // type: '',
  144. // number: '',
  145. // typeset: 'one|two',
  146. // };
  147. // const answer = {
  148. // questions: [{
  149. // single: [true, false],
  150. // double: [[true, false], [false, true]],
  151. // }],
  152. // // aws作文内容
  153. // aws: '',
  154. // // sentence
  155. // subject: [[{ text: '', uuid: '' }, { text: '', uuid: '' }], [{ text: '', uuid: '' }]],
  156. // predicate: [],
  157. // object: [],
  158. // options: [],
  159. // };
  160. // 答案分布
  161. // const answerDistributed = {
  162. // questions: [{
  163. // single: [0, 1],
  164. // double: [[0, 1], [11, 22]],
  165. // }],
  166. // };
  167. // 备考统计字段格式
  168. // const PrepareStat = {
  169. // status: [{ key: '', value: '' }],
  170. // goal: [{ key: '', value: '' }],
  171. // examinationTime: [{ key: '', value: '' }],
  172. // scoreTime: [{ key: '', value: '' }],
  173. // };
  174. // 练习报告
  175. // const exerciseReportDetail = {
  176. // pace: [{ no: '', time: '', userTime: '' }],
  177. // difficult: [{ key: '', userNumber: '', userCorrect: '', totalNumber: '', totalCorrect: '' }],
  178. // place: [{ key: '', userNumber: '', userCorrect: '', userTime: '' }],
  179. // limit: { userNumber: '', userCorrect: '' },
  180. // info: { times: '', finishTime: '', userTime: '', time: '', questionNumber: '', userNumber: '', userCorrect: '', totalNumber: '', totalCorrect: '', totalTime: '', correctTime: '', incorrectTime: '' },
  181. // };
  182. // 长难句做题结果
  183. // const sentenceQuestionDetail = {
  184. // subject: true,
  185. // predicate: true,
  186. // object: true,
  187. // options: true,
  188. // };
  189. // 长难句报告
  190. // const sentenceReportDetail = {
  191. // ability: { score: '', struct: '', logic: '', speed: '' },
  192. // info: { times: '', finishTime: '', userTime: '', time: '', questionNumber: '', userNumber: '', userCorrect: '', totalNumber: '', totalCorrect: '', totalTime: '', correctTime: '', incorrectTime: '' },
  193. // };
  194. // 模考题目数:/base/examination/number返回
  195. // const examinationNumber = { verbal: { number: '36', time: '65' }, ir: { number: '12', time: '30' }, awa: { number: '1', time: '30' }, quant: { number: '31', time: '62' } };
  196. // 模考设置
  197. // const examinationSetting = {
  198. // order: [],
  199. // disorder: true,
  200. // stage: '', // 当前阶段
  201. // time: { verbal: 0 }, // 每个阶段时间
  202. // number: { verbal: 0 }, // 每个阶段做题数
  203. // verbal: { steps: [{ ids: [], level: 0 }] }, // 语文出题逻辑
  204. // quant: { steps: [{ ids: [], level: 0 }] }, // 数学出题逻辑
  205. // rc: { 5: 8 }, // 随机出题时,rc题的对应序号
  206. // };
  207. // 模考卷子分数
  208. // const examinationScore = {
  209. // totalScore: 123, totalRank:12, quantScore: 123, quantRank: 123, verbalScore: 123, verbalRank: 123, irScore: 123, irRank: 123,
  210. // };
  211. // 模考卷子报告
  212. // const examinationReportDetail = {
  213. // subject: {
  214. // [key]: {
  215. // key: '',
  216. // pace: [{ no: '', time: '', userTime: '' }],
  217. // place: [{ key: '', userNumber: '', userCorrect: '', userTime: '' }],
  218. // difficult: [{ key: '', userNumber: '', userCorrect: '', totalNumber: '', totalCorrect: '' }],
  219. // info: { questionNumber: '', time: '', userNumber: '', userTime: '', userCorrect: '', correctTime: '', incorrectTime: '', avgDiffCorrect: '', avgDiffIncorrect: '' },
  220. // },
  221. // },
  222. // type: {
  223. // [key]: {
  224. // key: '',
  225. // pace: [{ no: '', time: '', userTime: '' }],
  226. // place: [{ key: '', userNumber: '', userCorrect: '', userTime: '' }],
  227. // difficult: [{ key: '', userNumber: '', userCorrect: '', totalNumber: '', totalCorrect: '' }],
  228. // info: { questionNumber, '', time: '', userNumber: '', userTime: '', userCorrect: '', correctTime: '', incorrectTime: '', avgDiffCorrect: '', avgDiffIncorrect: '' },
  229. // },
  230. // },
  231. // info: { times: '', finishTime: '', userTime: '', time: '', questionNumber: '', userNumber: '', userCorrect: '' },
  232. // };
  233. // 每日统计
  234. // 首页设置:
  235. // const index = {
  236. // class: [{
  237. // title: '',
  238. // image: '',
  239. // link: '',
  240. // }],
  241. // activity: [{
  242. // image: '',
  243. // link: '',
  244. // }],
  245. // evaluation: [{
  246. // nickname: '',
  247. // avatar: '',
  248. // content: '',
  249. // }],
  250. // prepare: {
  251. // first: '',
  252. // continue: '',
  253. // classJunior: '',
  254. // classMiddle: '',
  255. // classSenior: '',
  256. // },
  257. // user: {
  258. // numberOffline: 0,
  259. // number700: 0,
  260. // numberScore: 0,
  261. // },
  262. // contact: {
  263. // phone: '',
  264. // email: '',
  265. // wechat: '',
  266. // wechatImage: '',
  267. // weiboImage: '',
  268. // },
  269. // };
  270. // service信息
  271. // const service = {
  272. // price: 0,
  273. // title: '',
  274. // description: '',
  275. // expire_info: '',
  276. // refund_policy: '',
  277. // copyright_notes: '',
  278. // }
  279. // 心经配置
  280. // const exerienceInfo = {
  281. // score: [],
  282. // percent: [],
  283. // period: 0,
  284. // };