• 请不要在回答技术问题时复制粘贴 AI 生成的内容
handsomehaitao
V2EX  ›  程序员

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

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

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

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