Mini Program commodity details page, how to put ash according to the inventory of goods?

[
{
name:" goods,
price:33,
skuSn:20,
spec:" [{"key": "model", "value": "model 4"}, {"key": "size", "value": "size 1"}, {"key": "color", "value": "color 2"}]"
},
{
name:" product 2mm,
price:33,
skuSn:21,
spec:" [{"key": "model", "value": "model 3"}, {"key": "size", "value": "size 2"}, {"key": "color", "value": "color 1"}]"
}
]
this is the backend data structure, skuSn is inventory, spec is selected. How to determine whether the following specification option is available or not after I have selected one, so as to set the gray button.

Mar.24,2021

have you solved it

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