Wepy Mini Program data merge problem

problem description:
is like this. At present, there is a page with course details, showing different information according to different types, but in almost the same way. At present, there are three kinds of course details. I wrote three page pages when I took over the project. I would like to know if there is any way to extract common method logic. All three pages can be used publicly? Are there any good ideas and methods?
ps: the existing Mini Program page cannot be deleted, because a QR code is generated when the course details are involved, and the path will change if deleted


try Custom components


Please see the wepy official documentation
components

.
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-1bead42-46a6f.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-1bead42-46a6f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?