diff --git a/.vscode/settings.json b/.vscode/settings.json index 5e453ae..d0ec779 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,6 +1,6 @@ { "explorer.confirmDelete": false, - "editor.fontSize": 18, + "editor.fontSize": 16, "workbench.editorAssociations": { "*.ipynb": "jupyter.notebook.ipynb" }, diff --git a/components.d.ts b/components.d.ts index 917ada8..2a5c5c5 100644 --- a/components.d.ts +++ b/components.d.ts @@ -14,11 +14,11 @@ declare module 'vue' { VanCellGroup: typeof import('vant/es')['CellGroup'] VanCheckbox: typeof import('vant/es')['Checkbox'] VanCheckboxGroup: typeof import('vant/es')['CheckboxGroup'] - VanDialog: typeof import('vant/es')['Dialog'] VanDivider: typeof import('vant/es')['Divider'] VanField: typeof import('vant/es')['Field'] VanIcon: typeof import('vant/es')['Icon'] VanPopup: typeof import('vant/es')['Popup'] + VanRate: typeof import('vant/es')['Rate'] VanSearch: typeof import('vant/es')['Search'] VanSwitch: typeof import('vant/es')['Switch'] VanTabbar: typeof import('vant/es')['Tabbar'] diff --git a/src/fonts/demo.css b/src/fonts/demo.css index 18e8077..12ec742 100644 --- a/src/fonts/demo.css +++ b/src/fonts/demo.css @@ -4,11 +4,11 @@ src: url('https://at.alicdn.com/t/font_985780_km7mi63cihi.eot?t=1545807318834'); src: url('https://at.alicdn.com/t/font_985780_km7mi63cihi.eot?t=1545807318834#iefix') - format('embedded-opentype'), + format('embedded-opentype'), url('https://at.alicdn.com/t/font_985780_km7mi63cihi.woff?t=1545807318834') format('woff'), url('https://at.alicdn.com/t/font_985780_km7mi63cihi.ttf?t=1545807318834') format('truetype'), url('https://at.alicdn.com/t/font_985780_km7mi63cihi.svg?t=1545807318834#iconfont') - format('svg'); + format('svg'); } .logo { diff --git a/src/stores/modules/common.ts b/src/stores/modules/common.ts index 0d7ecfb..904795b 100644 --- a/src/stores/modules/common.ts +++ b/src/stores/modules/common.ts @@ -469,6 +469,167 @@ export const useCommonStore = defineStore('common', { planet_id: '', permissions: null }, + { + id: '17852489', + title: 'Q3', + stem: '

请打分

', + other: '', + question_index: 3, + question_type: 5, + config: { + min: 1.0, + max: 5.0, + is_required: 1, + score_type: 0, + score_way: 0, + score_interval: 1.0, + prompt_score: 2, + prompt_array: null, + prompt_left: '', + prompt_right: '', + prompt_center: '', + select_random: 0, + float_window: 0, + float_window_content: '', + popup_window: 0, + popup_window_content: '', + is_show: [], + quick_type: 0 + }, + created_at: '2025-03-05T09:47:02', + created_user_id: 1281, + updated_user_id: null, + survey_id: 9482, + logic_config: { + expect: '', + order: 0, + type: 0, + stay_time: '' + }, + options: [ + [{ + option: '

选项1

', + id: '1049106', + type: 0, + is_other: 0, + is_fixed: 0, + is_remove_other: 0, + created_at: null, + created_user_id: null, + parent_id: null, + option_index: 1, + list_id: 74455, + option_code: '', + option_config: { + title: '', + instructions: [], + price: 0.0, + gradient: '', + image_url: [], + option_type: 0, + type: 0, + limit_right_content: '', + child_area: null, + binding_goods_id: '' + }, + disable_option_update: null, + cascade: [] + }, + { + option: '

选项2

', + id: '1049107', + type: 0, + is_other: 0, + is_fixed: 0, + is_remove_other: 0, + created_at: null, + created_user_id: null, + parent_id: null, + option_index: 2, + list_id: 74455, + option_code: '', + option_config: { + title: '', + instructions: [], + price: 0.0, + gradient: '', + image_url: [], + option_type: 0, + type: 0, + limit_right_content: '', + child_area: null, + binding_goods_id: '' + }, + disable_option_update: null, + cascade: [] + }, + { + option: '

选项3

', + id: '1049108', + type: 0, + is_other: 0, + is_fixed: 0, + is_remove_other: 0, + created_at: null, + created_user_id: null, + parent_id: null, + option_index: 3, + list_id: 74455, + option_code: '', + option_config: { + title: '', + instructions: [], + price: 0.0, + gradient: '', + image_url: [], + option_type: 0, + type: 0, + limit_right_content: '', + child_area: null, + binding_goods_id: '' + }, + disable_option_update: null, + cascade: [] + }, + { + option: '

选项4

', + id: '1049171', + type: 0, + is_other: 0, + is_fixed: 0, + is_remove_other: 0, + created_at: null, + created_user_id: null, + parent_id: null, + option_index: 4, + list_id: 74455, + option_code: '', + option_config: { + title: '', + instructions: [], + price: 0.0, + gradient: '', + image_url: [], + option_type: 0, + type: 0, + limit_right_content: '', + child_area: null, + binding_goods_id: '' + }, + disable_option_update: null, + cascade: [] + } + ] + ], + associate: [], + logics_has: null, + last_option_index: 4, + question_code: '', + question_value: '', + question_tag: '', + planet_id: '', + permissions: null + }, { id: '17852298', title: 'Q4', diff --git a/src/views/Design/Index.vue b/src/views/Design/Index.vue index 4564ec4..d8e5ce3 100644 --- a/src/views/Design/Index.vue +++ b/src/views/Design/Index.vue @@ -16,17 +16,27 @@ :chooseQuestionId="chooseQuestionId" @get-choose-question-id="getChooseQuestionId" > + + + + + @@ -51,6 +61,7 @@ import BaseSelect from './components/Questions/BaseSelect.vue'; import ChooseQuestion from './components/ChooseQuestion.vue'; import Paging from './components/Questions/paging/Paging.vue'; import Completion from './components/Questions/Completion.vue'; +import Rate from './components/Questions/Rate.vue'; const activeIndex = ref(-1); /** diff --git a/src/views/Design/components/ActionCompoents/QuestionAction.vue b/src/views/Design/components/ActionCompoents/QuestionAction.vue index 5b139c3..2423987 100644 --- a/src/views/Design/components/ActionCompoents/QuestionAction.vue +++ b/src/views/Design/components/ActionCompoents/QuestionAction.vue @@ -58,7 +58,7 @@ round :style="{ minHeight: '60%' }" > -