- map的marker能否添加自定义属性值?
如题,我想添加其他可以和当前标记点绑定的属性,当我点击时,可以获取绑定的属性
2020-05-16 - map中marker的图标动画效果能否支持
- 需求的场景描述(希望解决的问题) 在地图上用图标显示标注位置信息,用有动画效果的图标,显示效果更生动、友好 - 希望提供的能力 map组件的markers中的标记点的图标支持动画效果 即点击与不点击的图标效果不同
2020-04-17 - reLaunch跳转页面,小程序会闪退?
路由wx.reLaunch从某个页面传参跳转另一个tabBar时,出现小程序崩溃闪退
2020-03-13 - setData()失效?
markertap: function(e) { var that = this; var id; var temp = false; var pindex; if (typeof(e) != undefined && typeof(e) == "string") { //分类tab跳转 id = e; temp = true; } else if (typeof(e.markerId) != undefined) { //气泡点击 id = e.markerId; } for (var i = 0; i < that.data.markers.length; i++) { if (that.data.markers[i].id == id) { pindex = i; break; } } //图标变回 if (that.data.detailPId != -1 && pindex != that.data.detailPId) { that.changeMarker(false, that.data.markers, that.data.detailPId, that.data.project) } wx: wx.request({ url: 'https://www.s**h.com/project/form/' + id, header: { 'content-type': 'application/json' // 默认值 }, method: 'post', success: function(res) { if (res.statusCode == 200) { that.setData({ project: res.data.data, flag: false, markers: that.changeMarker(true, that.data.markers, pindex, res.data.data), detailPId: pindex }) if (temp) { that.setData({ scale: 17, latitude: res.data.data.coordinates.split(",")[1], longitude: res.data.data.coordinates.split(",")[0] }) } } }, }); that.getPictures(id).then(function (result) { console.log(result)//该部分打印返回值成功 但是无法set成功值 if (result.datas.length < 1) { that.setData({ pictures: result.datas, fullPictures: that.getFullPictures(result.datas), height: "48%" }) } else { that.setData({ pictures: result.datas, fullPictures: that.getFullPictures(result.datas), height: "75%" }) } }) }, 打印结果 [图片] 同时该方法结束后AppData中的该值未发生变化
2020-01-19 - wx.openLocation()无法调起内置地图?
代码片段:https://developers.weixin.qq.com/s/SZzmRomE7feX 另外,什么时候可以增加,dom操作,微信调起手机截屏功能及调起直接调其他APP,如导航需要调高德
2020-01-15 - 怎么操作dom元素节点,js中改变元素节点中的值或者其他属性?
wx.createSelectorQuery() 该方法可获取,那有什么方法可以改变值,类似setdata的方法有吗
2020-01-08 - ios平台部分swiper-item内部的内容无法显示?官方大佬来看看那
部分代码: <!--2 --> <block wx:if="{{'情况说明' == item.fileType}}"> <swiper-item style="height:4000rpx;"> <scroll-view scroll-y="true" class="scroll-box" style="height:1380rpx;display: initial;"> <block wx:for="{{item.childFiles}}" wx:for-item="itemChild" wx:for-index="indexChild" wx:key="unique"> <view class="newest-list" style="display: initial;"> <image src="{{ftpUrl + itemChild.fileUrl}}" bindtap="preview" data-src="{{ftpUrl + itemChild.fileUrl}}" mode="widthFix"></image> </view> </block> </scroll-view> </swiper-item> </block> 该部分代码 安卓可显示,ios不行
2019-11-30