V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
handsomehaitao
V2EX  ›  程序员

请问一下 APP 中商品规格点击 sku 其它 sku 无库存置灰是怎么处理的

  •  
  •   handsomehaitao · Apr 8, 2020 · 2652 views
    This topic created in 2217 days ago, the information mentioned may be changed or developed.

    每次点击都要循环感觉不太对,而且组合很多,每次点击也都不是按顺序点的

    6 replies    2020-04-09 16:05:24 +08:00
    realpg
        1
    realpg  
    PRO
       Apr 8, 2020
    多维数组 check 一下?
    sundae91
        2
    sundae91  
       Apr 8, 2020
    选中时广播消息?消息带上 index 、每个 item 收到消息自行处理显示逻辑
    以上纯属瞎掰
    tongda
        3
    tongda  
       Apr 8, 2020
    占坑,目前是遍历的
    handsomehaitao
        4
    handsomehaitao  
    OP
       Apr 9, 2020
    @realpg 多个规格组合数组有点大啊假设 ABCDE 五个规格每个只有一个 AB BC CD DE ABC BCD CDE ABCD BCDE 等,如果多个就更大了
    handsomehaitao
        5
    handsomehaitao  
    OP
       Apr 9, 2020
    @sundae91 你字多我信了
    handsomehaitao
        6
    handsomehaitao  
    OP
       Apr 9, 2020
    有什么好的算法适应这个场景
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2496 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 36ms · UTC 08:03 · PVG 16:03 · LAX 01:03 · JFK 04:03
    ♥ Do have faith in what you're doing.