The value passed between the two custom components of WeChat Mini Programs wepy framework

<template>
  <view>
    <!--  -->
    <swiper :interval="interval1"></swiper>
    <!--  -->
    <optioncard></optioncard>
    <!--  -->
    <lessonlist></lessonlist>
  </view>
</template>

there are 3 custom components in a page, 3 components should appear in parallel on the page, and there is no parent-child relationship. Click the button in the
tab to send data aRom 1 to the course list. How should this be done?

May.07,2021

Hello, < optioncard/ > component initiates $emit to the parent component (that is, the component in which you are currently showing the code), and the parent component initiates a broadcast to the < lessonlist/ > component through $broadcast.

Menu