| | |
| | | }; |
| | | onMounted(() => { |
| | | isFinishPromise = new Promise(async (resolve) => { |
| | | bottomRef.value.getMainSectionList(); |
| | | resolve(true); |
| | | }); |
| | | emitter.on('isShowHomePage', showGuide); |
| | |
| | | watch( |
| | | () => activeGroupType.value, |
| | | (val) => { |
| | | console.log('🚀 ~ val:', val); |
| | | nextTick(() => { |
| | | bottomRef.value.getMainSectionList(); |
| | | }); |
| | |
| | | const iconCount = iconList.value.length; |
| | | return iconList.value[index % iconCount]; |
| | | }; |
| | | const getMainSectionList = (val) => { |
| | | const getMainSectionList = () => { |
| | | let result = []; |
| | | console.log('🚀 ~ sceneGroupList.value:', sceneGroupList.value); |
| | | sceneGroupList.value.forEach((sectionItem, index) => { |
| | | sectionItem.Icon = getIconByIndex(index); |
| | | if (activeGroupType.value == sectionItem.group_type) { |