b***@126.com
b***@126.com
  • 发布:2018-08-10 10:22
  • 更新:2018-08-10 12:42
  • 阅读:887

进行了hostname匹配后,底部选项卡都不能点击了。

分类:wap2app
- -----------sitemap-------------  
"pages": [  
        {  
            "webviewId": "__W2A__zqw.lijiangblog.com",//首页  
            "matchUrls": [  
                {  
                    "hostname": "zqw.lijiangblog.com"  

                }],  
            "webviewParameter": {  

            "titleNView": false,  
            "tabBar": {//选项卡配置,仅首页支持  
            "height": "50px",//选项卡高度,默认为50px  
            "list": [  
                {  
                    "url": "http://zqw.lijiangblog.com" //tab1页面地址  
                }, {  
                    "url": "http://zqw.lijiangblog.com/index.php?r=p&u=298036" //tab2页面地址  
                }, {  
                    "url": "http://zqw.lijiangblog.com/index.php?r=ddq&u=298036"  //tab3页面地址  
                }  
            ]  
        }  
            }  
        }  
    ]  

----------------client_index.html--------------------  
<script>  
    new TabBar({  
        list: [{  
            url: "http://zqw.lijiangblog.com",  
            text: "首页",  
            iconPath: 'img/home2.png',  
            selectedIconPath: 'img/home1.png'  
        }, {  
            url: "http://zqw.lijiangblog.com/index.php?r=p&u=298036",  
            text: "榜单",  
            iconPath: 'img/bangdan2.png', //本地图标  
            selectedIconPath: 'img/bangdan1.png'  
        }, {  
            url: "http://zqw.lijiangblog.com/index.php?r=ddq&u=298036",  
            text: "直播",  
            iconPath: 'img/zhibo2.png',//网络图标  
            selectedIconPath: 'img/zhibo1.png'  
        }]  
    });  
</script>
2018-08-10 10:22 负责人:无 分享
已邀请:
Trust

Trust - 少说废话

添加 hostname 匹配后,pathname 也要添加。否则所有的页面,都能匹配到这个 hostname,也就都匹配到这个 page 中去了。

  • b***@126.com (作者)

    因为m站很多地方不方便修改,我就是希望所有页面下面加一个底部选项卡,头部不需要原生title。全局里面定义了titleNView为false,我看介绍说是必须每个页面都匹配一次,再定义一次false。所以我想到了 hostname直接写。现在就是写了后,选项卡连接点击没反应

    2018-08-10 13:12

该问题目前已经被锁定, 无法添加新回复