IOS原生导航

2021-04-20 16:01:56 阅读:3 编辑

https://zhyframe.fzh.fun/app/index.php?i=1023&v=1.0&from=wxapp&c=entry&a=wxapp&do=Api_index|appTabTar&m=zhyshop_sun&_type=app&_sub_type=ios IOS原生导航: 尺寸:64*64 命名:xxx@2x.png https://bmfe.github.io/eros-docs/#/zh-cn/eros_widget?id=navigator%ef%bc%88%e5%8e%9f%e7%94%9f%e5%af%bc%e8%88%aa%e6%9d%a1%e7%9b%b8%e5%85%b3%e6%93%8d%e4%bd%9c%ef%bc%89

foreach ($nav as $index => $item) {
            $lists[] = [
                "pagePath" => $item["app_link_url"],
                "text" => $item["title"],
                "icon" => $img_root . $item["clickago_icon"],
                "selectedIcon" => $img_root . $item["clickafter_icon"],
            ];
            if($_GPC["_sub_type"] == "ios" && $index >= 4){
                 break;
            }
            $index++;
        }
        if($_GPC["_sub_type"] == "ios"){
            foreach ($lists as &$item) {
            $item["icon"] = "https://zhyframe.fzh.fun/attachment/aaa/home@2x.png";
            $item["selectedIcon"] = "https://zhyframe.fzh.fun/attachment/aaa/home_active@2x.png";
            }
        }