V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
handsomehaitao
V2EX  ›  程序员

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

  •  
  •   handsomehaitao · 2020-04-08 11:36:22 +08:00 · 1890 次点击
    这是一个创建于 1471 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

    6 条回复    2020-04-09 16:05:24 +08:00
    realpg
        1
    realpg  
       2020-04-08 14:18:37 +08:00
    多维数组 check 一下?
    sundae91
        2
    sundae91  
       2020-04-08 14:46:12 +08:00
    选中时广播消息?消息带上 index 、每个 item 收到消息自行处理显示逻辑
    以上纯属瞎掰
    tongda
        3
    tongda  
       2020-04-08 15:06:23 +08:00
    占坑,目前是遍历的
    handsomehaitao
        4
    handsomehaitao  
    OP
       2020-04-09 15:18:20 +08:00
    @realpg 多个规格组合数组有点大啊假设 ABCDE 五个规格每个只有一个 AB BC CD DE ABC BCD CDE ABCD BCDE 等,如果多个就更大了
    handsomehaitao
        5
    handsomehaitao  
    OP
       2020-04-09 16:04:46 +08:00
    @sundae91 你字多我信了
    handsomehaitao
        6
    handsomehaitao  
    OP
       2020-04-09 16:05:24 +08:00
    有什么好的算法适应这个场景
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1205 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 41ms · UTC 23:17 · PVG 07:17 · LAX 16:17 · JFK 19:17
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.