同问,楼主解决了吗
微信接入最新版SDK,出现(未验证应用)?帮我看下是什么问题?接入了最新的IOS OpenSDK。 一切功能都可以使用,包括微信登录和分享。只是分享到微信,后 出现(未验证应用)【部分手机出现】 然后通过 下面方式进行检测。 最后定格到微信中提示:由于应用安全校验不通过,无法使用此功能 提示。 请帮我看下 这个是哪里出错了。 appID 和 universalLink 已经检测过都是一致的 WechatOpenSDK 版本 1.8.7.1 [WXApi startLogByLevel:WXLogLevelDetail logBlock:^(NSString *log) { NSLog(@"WeChatSDK: %@", log); }]; [WXApi registerApp:WeChatAppKey universalLink:@“******”]; [WXApi checkUniversalLinkReady:^(WXULCheckStep step, WXCheckULStepResult* result) { NSLog(@"%@, %u, %@, %@", @(step), result.success, result.errorInfo, result.suggestion); }]; 打印日志 0, 1, check passed, 1, 1, check passed, 2, 1, check passed, WeChatSDK: wxlog:set property list 3, 1, check passed, WeChatSDK: wxlog:launch app with ul only success 4, 1, check passed, WeChatSDK: wxlog:Successfully starting WeChat with the universal link. 5, 1, Universal Link check passed. The application is launched by WeChat via Universal Link, WeChatSDK: wxlog:WXCheckULStepResult[success: 1, errorInfo: Universal Link check passed. The application is launched by WeChat via Universal Link, suggestion: ] 6, 1, All Check Passed!, WeChatSDK: wxlog:WXCheckULStepResult[success: 1, errorInfo: All Check Passed!, suggestion: ] WeChatSDK: wxlog:Error:set token fail, errCode:3, errLog:app no context, req[(null)], contextID[(null)] WeChatSDK: wxlog:Error:check or record token fail, error:Error Domain=WXOpenSDKRefreshTokenError Code=3 "app no context, req[(null)], contextID[(null)]" UserInfo={NSLocalizedDescription=app no context, req[(null)], contextID[(null)]} WeChatSDK: wxlog:delay launch wx with refresh token fail WeChatSDK: wxlog:set property list WeChatSDK: wxlog:launch app with ul only success WeChatSDK: wxlog:openURL success:1,
2020-07-02我希望地图在展示多个标记点的时候能够自动缩放视野以包含所有的点,最初我采用map的include-points属性来实现,发现工具上没有任何效果,真机上可以实现,但是其中有两个点处于地图可视范围的边缘,导致气泡有部分超出了屏幕,于是我尝试给map设置padding如下: [代码]map{[代码][代码] [代码][代码]padding[代码][代码]: [代码][代码]50[代码][代码]rpx;[代码][代码]}[代码]但是不起作用,反而超出屏幕的范围更多了。后来我尝试用Api :map.includePoints实现,发现工具可以实现且展示均匀不超出屏幕,但真机还是和上一个方案的效果一样,会超出屏幕,padding设置后也是没有效果,反而超出屏幕的范围更多了。相关代码如下: wxml部分 [代码]<[代码][代码]map[代码] [代码]id[代码][代码]=[代码][代码]'myMap'[代码] [代码]longitude[代码][代码]=[代码][代码]'{{longtitude}}'[代码] [代码]latitude[代码][代码]=[代码][代码]'{{latitude}}'[代码] [代码]show-location [代码][代码]scale[代码][代码]=[代码][代码]'12'[代码] [代码]markers[代码][代码]=[代码][代码]'{{markers}}'[代码] [代码]include-points[代码][代码]=[代码][代码]'{{points}}'[代码] [代码]bindmarkertap[代码][代码]=[代码][代码]'tapToShowCard'[代码] [代码]bindcallouttap[代码][代码]=[代码][代码]'tapToShowCard'[代码][代码]>[代码]wxss部分 [代码]page {[代码][代码] [代码][代码]height[代码][代码]: [代码][代码]100%[代码][代码];[代码][代码]}[代码] [代码]map {[代码][代码] [代码][代码]width[代码][代码]: [代码][代码]100%[代码][代码];[代码][代码] [代码][代码]height[代码][代码]: [代码][代码]100%[代码][代码];[代码][代码]}[代码]js部分 [代码]var[代码] [代码]sourceMarker = [{[代码][代码] [代码][代码]id: 0,[代码][代码] [代码][代码]latitude: 24.508513,[代码][代码] [代码][代码]longitude: 118.107597,[代码][代码] [代码][代码]iconPath: [代码][代码]'../../sources/marker.png'[代码][代码],[代码][代码] [代码][代码]width: 22,[代码][代码] [代码][代码]height: 30,[代码][代码] [代码][代码]callout: {[代码][代码] [代码][代码]content: [代码][代码]'查看详情'[代码][代码],[代码][代码] [代码][代码]fontSize: 16,[代码][代码] [代码][代码]borderRadius: 5,[代码][代码] [代码][代码]padding: 8,[代码][代码] [代码][代码]display: [代码][代码]'ALWAYS'[代码][代码] [代码][代码]}[代码][代码]},{[代码][代码] [代码][代码]id: 1,[代码][代码] [代码][代码]latitude: 24.508439,[代码][代码] [代码][代码]longitude: 118.10778,[代码][代码] [代码][代码]iconPath: [代码][代码]'../../sources/marker.png'[代码][代码],[代码][代码] [代码][代码]width: 22,[代码][代码] [代码][代码]height: 30,[代码][代码] [代码][代码]callout: {[代码][代码] [代码][代码]content: [代码][代码]'查看详情'[代码][代码],[代码][代码] [代码][代码]fontSize: 16,[代码][代码] [代码][代码]borderRadius: 5,[代码][代码] [代码][代码]padding: 8,[代码][代码] [代码][代码]display: [代码][代码]'ALWAYS'[代码][代码] [代码][代码]}[代码][代码]},{[代码][代码] [代码][代码]id: 2,[代码][代码] [代码][代码]latitude: 24.5084,[代码][代码] [代码][代码]longitude: 118.107168,[代码][代码] [代码][代码]iconPath: [代码][代码]'../../sources/marker.png'[代码][代码],[代码][代码] [代码][代码]width: 22,[代码][代码] [代码][代码]height: 30,[代码][代码] [代码][代码]callout: {[代码][代码] [代码][代码]content: [代码][代码]'查看详情'[代码][代码],[代码][代码] [代码][代码]fontSize: 16,[代码][代码] [代码][代码]borderRadius: 5,[代码][代码] [代码][代码]padding: 8,[代码][代码] [代码][代码]display: [代码][代码]'ALWAYS'[代码][代码] [代码][代码]}[代码][代码]}][代码][代码]var[代码] [代码]sourcePoints = [{[代码][代码] [代码][代码]latitude: 24.508513,[代码][代码] [代码][代码]longitude: 118.107597,[代码][代码]}, {[代码][代码] [代码][代码]latitude: 24.508439,[代码][代码] [代码][代码]longitude: 118.10778,[代码][代码]}, {[代码][代码] [代码][代码]latitude: 24.5084,[代码][代码] [代码][代码]longitude: 118.107168,[代码][代码]}][代码] [代码]Page({[代码] [代码] [代码][代码]/**[代码][代码] [代码][代码]* 页面的初始数据[代码][代码] [代码][代码]*/[代码][代码] [代码][代码]data: {[代码][代码] [代码][代码]showCard: [代码][代码]false[代码][代码],[代码][代码] [代码][代码]cardBottom: 0,[代码][代码] [代码][代码]latitude: 0,[代码][代码] [代码][代码]longtitude: 0,[代码][代码] [代码][代码]markers: sourceMarker,[代码][代码] [代码][代码]points: sourcePoints[代码][代码] [代码][代码]},[代码] [代码] [代码][代码]/**[代码][代码] [代码][代码]* 生命周期函数--监听页面加载[代码][代码] [代码][代码]*/[代码][代码] [代码][代码]onLoad: [代码][代码]function[代码] [代码](options) {[代码][代码] [代码][代码]var[代码] [代码]that = [代码][代码]this[代码][代码];[代码][代码] [代码] [代码] [代码][代码]wx.getLocation({[代码][代码] [代码][代码]success: [代码][代码]function[代码][代码](res) {[代码][代码] [代码][代码]that.setData({[代码][代码] [代码][代码]latitude: res.latitude,[代码][代码] [代码][代码]longtitude: res.longitude[代码][代码] [代码][代码]})[代码][代码] [代码][代码]that.mapCtx = wx.createMapContext([代码][代码]'myMap'[代码][代码]);[代码] [代码] [代码][代码]that.includePoints();[代码][代码] [代码][代码]},[代码][代码] [代码][代码]})[代码][代码] [代码][代码]},[代码] [代码] [代码][代码]includePoints: [代码][代码]function[代码] [代码]() {[代码][代码] [代码][代码]this[代码][代码].mapCtx.includePoints({[代码][代码] [代码][代码]padding: [10],[代码][代码] [代码][代码]points: [{[代码][代码] [代码][代码]latitude: 24.508513,[代码][代码] [代码][代码]longitude: 118.107597,[代码][代码] [代码][代码]}, {[代码][代码] [代码][代码]latitude: 24.508439,[代码][代码] [代码][代码]longitude: 118.10778,[代码][代码] [代码][代码]}, {[代码][代码] [代码][代码]latitude: 24.5084,[代码][代码] [代码][代码]longitude: 118.107168,[代码][代码] [代码][代码]}][代码][代码] [代码][代码]})[代码][代码] [代码][代码]}[代码][代码] [代码][代码]})[代码]
map.includePoints 的padding无效<!-- .wxml --> <map id='myMap' longitude='{{longtitude}}' latitude='{{latitude}}' show-location scale='12' markers='{{markers}}' bindmarkertap='tapToShowCard' bindcallouttap='tapToShowDetail'></map> <!-- .js --> var sourceMarker = [{ latitude: 24.508513, longitude: 118.107597, iconPath: '../../sources/marker.png', width: 22, height: 30, callout: { content: '查看详情', fontSize: 16, borderRadius: 5, padding: 8, display: 'ALWAYS' } },{ latitude: 24.508439, longitude: 118.10778, iconPath: '../../sources/marker.png', width: 22, height: 30, callout: { content: '查看详情', fontSize: 16, borderRadius: 5, padding: 8, display: 'ALWAYS' } },{ latitude: 24.5084, longitude: 118.107168, iconPath: '../../sources/marker.png', width: 22, height: 30, callout: { content: '查看详情', fontSize: 16, borderRadius: 5, padding: 8, display: 'ALWAYS' } }] Page({ /** * 页面的初始数据 */ data: { latitude: 0, longtitude: 0, markers: sourceMarker, points: sourcePoints }, /** * 生命周期函数--监听页面加载 */ onLoad: function (options) { var that = this; wx.getLocation({ success: function(res) { that.setData({ latitude: res.latitude, longtitude: res.longitude }) that.mapCtx = wx.createMapContext('myMap'); that.includePoints(); }, }) }, includePoints: function () { this.mapCtx.includePoints({ padding: [20], points: [{ latitude: 24.508513, longitude: 118.107597, }, { latitude: 24.508439, longitude: 118.10778, }, { latitude: 24.5084, longitude: 118.107168, }] }) }, /** * 生命周期函数--监听页面初次渲染完成 */ onReady: function () { }, /** * 生命周期函数--监听页面显示 */ onShow: function () { }, /** * 生命周期函数--监听页面隐藏 */ onHide: function () { }, /** * 生命周期函数--监听页面卸载 */ onUnload: function () { }, /** * 页面相关事件处理函数--监听用户下拉动作 */ onPullDownRefresh: function () { }, /** * 页面上拉触底事件的处理函数 */ onReachBottom: function () { }, /** * 用户点击右上角分享 */ onShareAppMessage: function () { } })
2018-11-05同求
地图map组件callout不支持自定义- 需求的场景描述(希望解决的问题) 地图map组件,markers里面的callout属性,支持自定义,现在只支持单纯的文字和图标?? - 希望提供的能力 地图map组件,markers里面的callout属性,支持自定义,可以实现文字+图标的复杂marker
2018-11-04同问,wxss设置padding也是无效
map 组件能否设置padding需求: 点击marker,底部弹出卡片,地图被遮盖,地图内容上移卡片高度,同时调整缩放级别
2018-11-03