diff --git a/components.d.ts b/components.d.ts index 2a5c5c5..35e7713 100644 --- a/components.d.ts +++ b/components.d.ts @@ -2,7 +2,7 @@ // @ts-nocheck // Generated by unplugin-vue-components // Read more: https://github.com/vuejs/core/pull/3399 -export {} +export {}; /* prettier-ignore */ declare module 'vue' { @@ -10,15 +10,16 @@ declare module 'vue' { RouterLink: typeof import('vue-router')['RouterLink'] RouterView: typeof import('vue-router')['RouterView'] VanActionSheet: typeof import('vant/es')['ActionSheet'] + VanButton: typeof import('vant/es')['Button'] VanCell: typeof import('vant/es')['Cell'] 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/assets/css/main.scss b/src/assets/css/main.scss index b101d8c..c09079b 100644 --- a/src/assets/css/main.scss +++ b/src/assets/css/main.scss @@ -32,6 +32,10 @@ a, justify-content: flex-start; } +.flex-warp { + flex-wrap: wrap; +} + .space-between { justify-content: space-between; } diff --git a/src/components/YLSelect.vue b/src/components/YLSelect.vue index 55d8424..b558712 100644 --- a/src/components/YLSelect.vue +++ b/src/components/YLSelect.vue @@ -6,7 +6,13 @@ :label="item.label" :value="item.value" :disabled="item.disabled" - /> + > + + + + + + @@ -70,7 +76,7 @@ export default defineComponent({ } .yl-select { - height: 44px; /* 增加高度以适应触摸 */ + height: 35px; /* 增加高度以适应触摸 */ padding: 10px; /* 增加内边距 */ border: 1px solid #ccc; border-radius: 5px; diff --git a/src/fonts/demo.css b/src/fonts/demo.css index 12ec742..18e8077 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 904795b..703807d 100644 --- a/src/stores/modules/common.ts +++ b/src/stores/modules/common.ts @@ -95,12 +95,6 @@ export const useCommonStore = defineStore('common', { }, logics: [ { - id: 472148, - question_index: 24, - sample_number: 0, - skip_question_index: 27, - skip_type: 0, - question_id: '17852294', logic: [ { value: '', @@ -127,24 +121,13 @@ export const useCommonStore = defineStore('common', { question_id: null } ], - autofill: { - value: '', - date: '', - time: '', - question_type: 1, - option_indexs: [], - row_indexs: [], - cell_indexs: [] - }, - hide_option_index: [] + skip_question_index: 27, + skip_type: 0, + id: 472148, + question_index: 24, + question_id: '17852294' }, { - id: 472149, - question_index: 24, - sample_number: 0, - skip_question_index: 0, - skip_type: 0, - question_id: '17852294', logic: [ { value: '', @@ -171,24 +154,12 @@ export const useCommonStore = defineStore('common', { question_id: null } ], - autofill: { - value: '', - date: '', - time: '', - question_type: 1, - option_indexs: [], - row_indexs: [], - cell_indexs: [] - }, - hide_option_index: [] + skip_type: 0, + id: 472149, + question_index: 24, + question_id: '17852294' }, { - id: 472152, - question_index: 24, - sample_number: 0, - skip_question_index: 0, - skip_type: 1, - question_id: '17852294', logic: [ { value: '', @@ -205,7 +176,7 @@ export const useCommonStore = defineStore('common', { row_index: 0, cell_index: 0, question_type: 1, - question_index: 0, + question_index: 24, relation_question_index: 0, relation_question_row_index: 0, relation_question_cell_index: 0, @@ -215,19 +186,263 @@ export const useCommonStore = defineStore('common', { question_id: null } ], - autofill: { - value: '', - date: '', - time: '', - question_type: 1, - option_indexs: [], - row_indexs: [], - cell_indexs: [] - }, - hide_option_index: [] + skip_type: 0, + id: 472151, + question_index: 24, + question_id: '17852294' + }, + { + logic: [ + { + logic: 'if', + question_index: 30, + question_type: 1, + is_answer: 1, + operator: '=', + option_index: 2, + relation_question_index: 0, + type: 0, + is_option_group: 0, + group_index: null + }, + { + logic: 'and', + question_index: 30, + question_type: 1, + is_answer: 1, + operator: '=', + option_index: 1, + relation_question_index: 0, + type: 0, + is_option_group: 1, + group_index: 1 + } + ], + skip_question_index: 0, + skip_type: 1, + id: 472152, + question_index: 24, + question_id: '17852294' + }, + { + logic: [ + { + logic: 'if', + question_index: 30, + question_type: 1, + is_answer: 0, + operator: '=', + option_index: 0, + relation_question_index: 0, + type: 0 + } + ], + skip_type: 1, + id: '28fe4d64-81eb-4937-a082-c519ac74374f', + question_index: 24, + question_id: '17852294' + }, + { + logic: [ + { + operator: '=', + is_answer: 1, + question_type: 1, + logic: 'always' + } + ], + skip_type: 1, + id: '459f781f-8db0-4663-b2d1-9ddad627078e', + question_index: 24, + question_id: '17852294' } ], questions: [ + { + id: '17852442', + title: 'Q7', + stem: '请选择一个选项', + other: '', + question_index: 30, + question_type: 1, + config: { + placeholder: '', + version: '', + scene: null, + shelf: null, + ware: null, + option_groups: { + min: 0, + max: 2, + is_hide: 0, + option_group: [ + { + group_index: 1, + title: '分组1', + min: null, + max: null, + groups: [ + { + option: '
选项1
', + id: '1049037', + 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: 74427, + option_code: '', + option_config: { + title: '', + instructions: [], + price: 0, + gradient: '', + image_url: [], + option_type: 0, + type: 0, + limit_right_content: '', + child_area: null, + binding_goods_id: '' + }, + disable_option_update: null, + cascade: [] + } + ] + } + ] + }, + is_required: 1, + select_random: 0, + each_number: 1, + is_three_dimensions: 0, + material_sn: '', + scene_information: null, + simple_scene_information: null, + is_behavior: 0, + is_price_tag: 0, + is_brand: 0, + is_initialize: 0, + is_default_perspective: 0, + is_binding_goods: 0, + float_window: 0, + float_window_content: '', + popup_window: 0, + popup_window_content: '', + is_show: [], + quick_type: 0, + option_group_random_inside: null, + option_group_random_outside: null + }, + created_at: '2025-03-04T13:53:22', + created_user_id: 1281, + updated_user_id: null, + survey_id: 8721, + logic_config: { + expect: '', + order: 0, + type: 0, + stay_time: '' + }, + options: [ + [ + { + option: '选项1
', + id: '1049037', + 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: 74427, + option_code: '', + option_config: { + title: '', + instructions: [], + price: 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: '1049038', + 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: 74427, + option_code: '', + option_config: { + title: '', + instructions: [], + price: 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: '1049039', + 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: 74427, + option_code: '', + option_config: { + title: '', + instructions: [], + price: 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: false, + last_option_index: 3, + question_code: '', + question_value: '', + question_tag: '', + planet_id: '', + permissions: null + }, { id: '17852294', title: 'Q2', @@ -265,7 +480,7 @@ export const useCommonStore = defineStore('common', { option_group_random_outside: null }, created_at: '2025-02-27T16:02:34', - created_user_id: 9, + created_user_id: 1281, updated_user_id: null, survey_id: 8721, logic_config: { @@ -335,7 +550,7 @@ export const useCommonStore = defineStore('common', { ] ], associate: [], - logics_has: null, + logics_has: true, last_option_index: 2, question_code: '4_gender', question_value: '性别', @@ -391,7 +606,7 @@ export const useCommonStore = defineStore('common', { option_group_random_outside: null }, created_at: '2025-03-03T13:55:41', - created_user_id: 1280, + created_user_id: 1281, updated_user_id: null, survey_id: 8721, logic_config: { @@ -431,7 +646,8 @@ export const useCommonStore = defineStore('common', { cascade: [] }, { - option: '选项2
', + option: + '选项啊萨达萨达爱睡觉的发货尽快发货记录和计划给到付即可了规划到付即可了会更加快乐东方化工节快乐的方式关键看落地符合国家2
', id: '1048969', type: 0, is_other: 1, @@ -461,7 +677,7 @@ export const useCommonStore = defineStore('common', { ] ], associate: [], - logics_has: null, + logics_has: false, last_option_index: 2, question_code: '', question_value: '', @@ -507,118 +723,119 @@ export const useCommonStore = defineStore('common', { 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, + [ + { + option: '选项1
', + id: '1049106', type: 0, - limit_right_content: '', - child_area: null, - binding_goods_id: '' + 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: [] }, - 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, + { + option: '选项2
', + id: '1049107', type: 0, - limit_right_content: '', - child_area: null, - binding_goods_id: '' + 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: [] }, - 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, + { + option: '选项3
', + id: '1049108', type: 0, - limit_right_content: '', - child_area: null, - binding_goods_id: '' + 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: [] }, - 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, + { + option: '选项4
', + id: '1049171', type: 0, - limit_right_content: '', - child_area: null, - binding_goods_id: '' - }, - disable_option_update: null, - cascade: [] - } + 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: [], @@ -667,7 +884,7 @@ export const useCommonStore = defineStore('common', { option_group_random_outside: null }, created_at: '2025-02-27T16:03:05', - created_user_id: 9, + created_user_id: 1281, updated_user_id: null, survey_id: 8721, logic_config: { @@ -849,7 +1066,7 @@ export const useCommonStore = defineStore('common', { ] ], associate: [], - logics_has: null, + logics_has: false, last_option_index: 8, question_code: '4_age', question_value: '年龄段', @@ -898,7 +1115,7 @@ export const useCommonStore = defineStore('common', { }, options: [[]], associate: [], - logics_has: null, + logics_has: false, last_option_index: null, question_code: '4_city', question_value: '省市', @@ -917,6 +1134,19 @@ export const useCommonStore = defineStore('common', { disable_copy_update: 1 } }, + { + page: 1, + total: 5, + first_title: 'Q7', + last_title: 'Q3', + pages: [], + is_short_time: 0, + short_time: '', + is_show: 0, + use_type: 0, + pageId: 'f12945ac-5920-42d2-8789-a78379515e80', + logics_has: false + }, { id: '17835005', title: 'A1', @@ -1108,7 +1338,7 @@ export const useCommonStore = defineStore('common', { ] ], associate: [], - logics_has: null, + logics_has: false, last_option_index: 5, question_code: '300_purchase_intention', question_value: '购买意愿', @@ -1127,18 +1357,6 @@ export const useCommonStore = defineStore('common', { disable_copy_update: 1 } }, - { - page: 1, - total: 5, - first_title: 'Q2', - last_title: 'A1', - pages: [], - is_short_time: 0, - short_time: '', - is_show: 0, - use_type: 0, - pageId: 'ed94e92d-efcf-44f3-9f17-7a11559e3bd9' - }, { id: '17835006', title: 'A2', @@ -1330,7 +1548,7 @@ export const useCommonStore = defineStore('common', { ] ], associate: [], - logics_has: null, + logics_has: false, last_option_index: 5, question_code: '300_overall_liking', question_value: '总体喜欢程度', @@ -1393,7 +1611,7 @@ export const useCommonStore = defineStore('common', { quick_type: 0 }, created_at: '2024-09-04T14:44:50', - created_user_id: 9, + created_user_id: 1280, updated_user_id: null, survey_id: 8721, logic_config: { @@ -1467,11 +1685,11 @@ export const useCommonStore = defineStore('common', { child_area: [ { color: 'rgba(54, 167, 185, 0.2000)', - top_left: [0.4, 56.79960731378083], - top_right: [38.8, 56.79960731378083], - bottom_left: [0.4, 93.08381396490368], + top_left: [0, 63.71579334887715], + top_right: [38.4, 63.71579334887715], + bottom_left: [0, 100], child_index: 2, - bottom_right: [38.8, 93.08381396490368], + bottom_right: [38.4, 100], option_index: 2 } ], @@ -1505,11 +1723,20 @@ export const useCommonStore = defineStore('common', { child_area: [ { color: 'rgba(239, 0, 0, 0.2000)', - top_left: [55.8, 29.939869922689898], - top_right: [72.80000000000001, 29.939869922689898], - bottom_left: [55.8, 38.57896674438581], + top_left: [55.00000000000001, 30.568167873358693], + top_right: [72.00000000000003, 30.568167873358693], + bottom_left: [55.00000000000001, 39.20726469505461], child_index: 3, - bottom_right: [72.80000000000001, 38.57896674438581], + bottom_right: [72.00000000000003, 39.20726469505461], + option_index: 3 + }, + { + color: 'rgba(239, 0, 0, 0.2000)', + top_left: [32.6, 30.521536384832498], + top_right: [54.8, 30.521536384832498], + bottom_left: [32.6, 52.98318812124187], + child_index: 4, + bottom_right: [54.8, 52.98318812124187], option_index: 3 } ], @@ -1521,7 +1748,7 @@ export const useCommonStore = defineStore('common', { ] ], associate: [], - logics_has: null, + logics_has: false, last_option_index: 3, question_code: '300_hate_which', question_value: '不喜欢的方面', @@ -1592,7 +1819,7 @@ export const useCommonStore = defineStore('common', { }, options: [], associate: [], - logics_has: null, + logics_has: false, last_option_index: 0, question_code: '300_hate_reason', question_value: '不喜欢的原因', @@ -1678,7 +1905,7 @@ export const useCommonStore = defineStore('common', { picture_type: 0 } ], - logics_has: null, + logics_has: false, last_option_index: null, question_code: '300_like_which', question_value: '喜欢的方面', @@ -1700,7 +1927,7 @@ export const useCommonStore = defineStore('common', { { id: '17835010', title: 'A6', - stem: '请问您为什么喜欢这些地方?
', + stem: '请问您为什么喜欢这些地方?

请问您为什么不喜欢这些地方?
', + stem: '请问您为什么不喜欢这些地方?

选项1
', + id: '1049040', + 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: 74428, + option_code: '', + option_config: { + title: '', + instructions: [], + price: 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: '1049041', + 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: 74428, + option_code: '', + option_config: { + title: '', + instructions: [], + price: 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: false, + last_option_index: 2, + question_code: '', + question_value: '', + question_tag: '', + planet_id: '', + permissions: null + }, + { + id: '17852449', + title: 'Q9', + stem: '请选择一个选项', + other: '', + question_index: 32, + question_type: 1, + config: { + placeholder: '', + version: '', + scene: null, + shelf: null, + ware: null, + option_groups: null, + is_required: 1, + select_random: 0, + each_number: 1, + is_three_dimensions: 0, + material_sn: '', + scene_information: null, + simple_scene_information: null, + is_behavior: 0, + is_price_tag: 0, + is_brand: 0, + is_initialize: 0, + is_default_perspective: 0, + is_binding_goods: 0, + float_window: 0, + float_window_content: '', + popup_window: 0, + popup_window_content: '', + is_show: [], + quick_type: 0, + option_group_random_inside: null, + option_group_random_outside: null + }, + created_at: '2025-03-04T14:52:03', + created_user_id: 1281, + updated_user_id: null, + survey_id: 8721, + logic_config: { + expect: '', + order: 0, + type: 0, + stay_time: '' + }, + options: [ + [ + { + option: '选项1
', + id: '1049046', + 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: 74431, + option_code: '', + option_config: { + title: '', + instructions: [], + price: 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: '1049047', + 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: 74431, + option_code: '', + option_config: { + title: '', + instructions: [], + price: 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: false, + last_option_index: 2, + question_code: '', + question_value: '', + question_tag: '', + planet_id: '', + permissions: null + }, { page: 5, total: 5, first_title: 'Q5', - last_title: 'Q1', + last_title: 'Q9', pages: [], is_short_time: 0, short_time: '', is_show: 0, use_type: 0, - pageId: '30bb8256-2069-4458-ad67-0c9cefd3415d' + pageId: 'a00b392c-d3cc-47e2-a0c4-3f1cb066d0dc', + logics_has: false } ], cycle_pages: null diff --git a/src/views/Design/Index.vue b/src/views/Design/Index.vue index d8e5ce3..e38c88d 100644 --- a/src/views/Design/Index.vue +++ b/src/views/Design/Index.vue @@ -17,11 +17,11 @@ @get-choose-question-id="getChooseQuestionId" > -