- cover-view中得button 文字没能动态的修改
[代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]"page"[代码][代码]>[代码] [代码] [代码][代码]<[代码][代码]map[代码] [代码]id[代码][代码]=[代码][代码]"map"[代码] [代码]longitude[代码][代码]=[代码][代码]"{{mapLongitude}}"[代码] [代码]latitude[代码][代码]=[代码][代码]"{{mapLatitude}}"[代码] [代码]markers[代码][代码]=[代码][代码]"{{markers}}"[代码] [代码]bindregionchange[代码][代码]=[代码][代码]"onRegionchange"[代码] [代码]style[代码][代码]=[代码][代码]"width:100%;height:100%;"[代码][代码]>[代码] [代码]。。。。。[代码] [代码]<[代码][代码]cover-view[代码] [代码]style[代码][代码]=[代码][代码]"margin-left:15rpx;margin-top:10rpx;padding-top:10rpx;"[代码][代码]>{{selfLocAddress}}</[代码][代码]cover-view[代码][代码]>[代码] [代码]。。。。。[代码] [代码]<[代码][代码]cover-view[代码][代码]><[代码][代码]button[代码] [代码]class[代码][代码]=[代码][代码]"button_select_pickup"[代码] [代码]bindtap[代码][代码]=[代码][代码]"onSelectPickup"[代码][代码]>{{locAddress}}</[代码][代码]button[代码][代码]></[代码][代码]cover-view[代码][代码]>[代码] [代码]。。。。。[代码] 在JS中 [代码]var[代码] [代码]that = [代码][代码]this[代码][代码];[代码] [代码]that.setData({[代码] [代码] [代码][代码]selfLocAddress: data.wxMarkerData[0].address, [代码] [代码] [代码][代码]locAddress: data.wxMarkerData[0].address[代码] [代码] [代码][代码]});[代码] 刷新selfLocAddress能正常刷新,可是locAddress变量对应的Button文字不刷新。我在控制台看到已经更新了,可是界面没更新。 补充说明下,开发的模拟界面正常显示,正常跟新,可是真机(iphone6 plus)界面就不能更新。 请各位高手给个解释及解决方案。
2018-08-20 - cover-view中得button 文字没能动态的修改
[代码]<[代码][代码]view[代码] [代码]class[代码][代码]=[代码][代码]"page"[代码][代码]>[代码][代码] [代码][代码]<[代码][代码]map[代码] [代码]id[代码][代码]=[代码][代码]"map"[代码] [代码]longitude[代码][代码]=[代码][代码]"{{mapLongitude}}"[代码] [代码]latitude[代码][代码]=[代码][代码]"{{mapLatitude}}"[代码] [代码]markers[代码][代码]=[代码][代码]"{{markers}}"[代码] [代码]bindregionchange[代码][代码]=[代码][代码]"onRegionchange"[代码] [代码]style[代码][代码]=[代码][代码]"width:100%;height:100%;"[代码][代码]>[代码][代码]。。。。。[代码][代码]<[代码][代码]cover-view[代码] [代码]style[代码][代码]=[代码][代码]"margin-left:15rpx;margin-top:10rpx;padding-top:10rpx;"[代码][代码]>{{selfLocAddress}}</[代码][代码]cover-view[代码][代码]>[代码][代码]。。。。。[代码][代码]<[代码][代码]cover-view[代码][代码]><[代码][代码]button[代码] [代码]class[代码][代码]=[代码][代码]"button_select_pickup"[代码] [代码]bindtap[代码][代码]=[代码][代码]"onSelectPickup"[代码][代码]>{{locAddress}}</[代码][代码]button[代码][代码]></[代码][代码]cover-view[代码][代码]>[代码][代码]。。。。。[代码]在JS中 [代码]var[代码] [代码]that = [代码][代码]this[代码][代码];[代码][代码]that.setData({[代码][代码] [代码][代码]selfLocAddress: data.wxMarkerData[0].address, [代码][代码] [代码][代码]locAddress: data.wxMarkerData[0].address[代码][代码] [代码][代码]});[代码]刷新selfLocAddress能正常刷新,可是locAddress变量对应的Button文字不刷新。我在控制台看到已经更新了,可是界面没更新。 补充说明下,开发的模拟界面正常显示,正常跟新,可是真机(iphone6 plus)界面就不能更新。 请各位高手给个解释及解决方案。
2018-08-20