WeChat Mini Programs production: different view, sharing an array, resulting in repeated data output traversal, what should I do?

this is the first view

view

view0


what I want to make is that when the button is clicked, the content is displayed corresponding to the button.


if there are several view, just store several variables. By default, all of these variables are 0

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