ilijiayin
ilijiayin
  • 发布:2017-08-06 01:25
  • 更新:2019-02-15 11:38
  • 阅读:1238

【报Bug】HBuilder 8.8.0,云打包APP,openURL一直提示未安装

分类:HBuilder

详细问题描述
[内容]
真机运行openURL是正常使用的,但是云打包之后openURL就失效了,一直提示未安装百度地图,请官方尽快修复此bug,谢谢!

function openBMap(to_lng,to_lat,to_title,to_address,src)  
{  
    var url=null,id=null,f=null;  
    if (mui.os.ios)  
    {  
        url = "baidumap://map/marker?location=" + to_lat.toFixed(6) + "," + to_lng.toFixed(6) + "&title=" + to_title + "&content=" + to_address + "&src="+src;  
        f = iosAppstore;  
        id = "itunes.apple.com/cn/app/bai-du-de-tu-yu-yin-dao-hang/id452186370?mt=8";  
    }  
    else  
    {  
        url = "baidumap://map/marker?location=" + to_lat.toFixed(6) + "," + to_lng.toFixed(6) + "&title=" + to_title + "&content=" + to_address + "&src="+src;  
        f = androidMarket;  
        id = "com.baidu.BaiduMap";  
    }  
    url = encodeURI(url);  

    plus.runtime.openURL( url, function(e) {  
        plus.nativeUI.confirm( "检查到您未安装\"百度地图\",是否到商城搜索下载?", function(i){  
            if ( i.index == 0 ) {  
                f(id);  
            }  
        } );  
    } );  
}

[IDE版本]
HBuilder 8.8.0.201706142254
[mui版本]
v3.7.0

2017-08-06 01:25 2 条评论 负责人:无 分享
已邀请:
2***@qq.com

2***@qq.com - 80后it男

我使用是高德地图,遇到同样问题,不过我是离线打包。

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