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.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1c8ca57-36b1e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1c8ca57-36b1e.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?