The sku display in the front end Mini Program imitates Taobao.

problem description

clipboard.png

1mappingkey2stock0

clipboard.png

the environmental background of the problems and what methods you have tried

related codes

/ / Please paste the code text below (do not replace the code with pictures)
"{

"data":{
    "attributes":[
        {
            "attributes":[
                {
                    "check":false,
                    "index":1,
                    "value":""
                },
                {
                    "check":true,
                    "index":2,
                    "value":""
                },
                {
                    "check":false,
                    "index":3,
                    "value":""
                }
            ],
            "index":1,
            "name":""
        },
        {
            "attributes":[
                {
                    "check":false,
                    "index":1,
                    "value":""
                },
                {
                    "check":true,
                    "index":2,
                    "value":"-8"
                },
                {
                    "check":false,
                    "index":3,
                    "value":"-10"
                }
            ],
            "index":2,
            "name":""
        }
    ],
    "mapping":[
        {
            "id":"1034745629549543424",
            "key":"1:1,2:1",
            "pic":"https://img.jxjia.net/pic/10083001200470C26000/CgMBKVuGcFKAOEi1AAQ7F0U_HPU821.jpg",
            "price":0.01,
            "sell":true,
            "stock":898,
            "sysName":" FLP-001   "
        },
        {
            "id":"1034745629515988992",
            "key":"1:2,2:1",
            "pic":"https://img.jxjia.net/pic/10079008600150B99000/CgMBKVuGcCWAVKQsAADjHB9qVGc891.jpg",
            "price":1111,
            "sell":true,
            "stock":900,
            "sysName":" FLP-001   "
        },
        {
            "id":"1034745629532766208",
            "key":"1:2,2:2",
            "pic":"https://img.jxjia.net/pic/10063006400290B90000/CgMBKFuGcCaACaWGAAIHAfKVaNc483.jpg",
            "price":900,
            "sell":true,
            "stock":900,
            "sysName":" FLP-001   -8"
        },
        {
            "id":"1034745629574709248",
            "key":"1:3,2:2",
            "pic":"https://img.jxjia.net/pic/10059006400920B35000/CgMBKFuGcDaACpYNAAOJ1cohrQA302.jpg",
            "price":2380,
            "sell":true,
            "stock":899,
            "sysName":" FLP-001   -8"
        },
        {
            "id":"1034745629553737728",
            "key":"1:1,2:2",
            "pic":"https://img.jxjia.net/pic/10046008800120B92000/CgMBKVuGcEiANfcVAAIHAfKVaNc367.jpg",
            "price":499,
            "sell":true,
            "stock":900,
            "sysName":" FLP-001   -8"
        },
        {
            "id":"1034745629541154816",
            "key":"1:1,2:3",
            "pic":"https://img.jxjia.net/pic/10065002800520B13000/CgMBKVuGcDCAX_wvAAL5O6GYHLM026.jpg",
            "price":0.02,
            "sell":true,
            "stock":899,
            "sysName":" FLP-001   -10"
        },
        {
            "id":"1034745629562126336",
            "key":"1:3,2:3",
            "pic":"https://img.jxjia.net/pic/10076001400720B35000/CgMBKFuGcECADgWxAAL77npUIn4821.jpg",
            "price":0.01,
            "sell":true,
            "stock":891,
            "sysName":" FLP-001   -10"
        },
        {
            "id":"1034745629499211776",
            "key":"1:2,2:3",
            "pic":"https://img.jxjia.net/pic/10012002400570B85000/CgMBKVuGcCKAHL_7AAAMDQVwR5I339.jpg",
            "price":0.01,
            "sell":true,
            "stock":891,
            "sysName":" FLP-001   -10"
        }
    ]
},
"errorCode":0,
"line":null,
"message":"",
"success":true

} "

what result do you expect? What is the error message actually seen?

problem description

the platform version of the problem and what methods you have tried

take a look at the sku algorithm and an example on GitHub, but still have no idea

related codes

/ / Please paste the code text below (do not replace the code with pictures)

what result do you expect? What is the error message actually seen?

May.22,2021
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-1eace61-47ee9.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-1eace61-47ee9.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?