scale 默认最小缩放值0.5, 然后可以给图片外层加多一个缩放,值zoom=等于 (750 / 图片宽度rpx) <view class="warp" style="width:{{ areaviewWidthRpx * zoom + 'rpx' }};height:{{ areaviewHeightRpx * zoom + 'rpx' }};transform:translateZ(0) scale({{ zoom }});">
movable-view中的图片在IOS上放大后模糊movable-view中有个image,图片放在本地,图片本身不模糊。在Android中放大之后,图片由模糊迅速变为了清晰,而在IOS中放大之后,图片始终模糊。感觉在Android中,图片放大之后做了分级加载,而在IOS中没有这么处理。代码如下: <movable-area> <movable-view x="0" y="0" direction="all" scale="true" animation="true" inertia="true" scale-min="1" scale-max="5" out-of-bounds> <image class='map' mode='widthFix' src='{{mapSrc}}'> </image> </movable-view> </movable-area>
2022-12-10同样出现问题。8点上推文。有人在没
此刻小程序后台无法配置,急死人了!?小程序后台出问题了!!!!无法登陆配置,且身边朋友完全一样且换了各个地方的网络电脑登录都一样,急死人了 [图片] 有没有没睡的同学?大家看登录下是不是也是这样呢?? [图片]
2021-11-07//2021-11-29 又踩了一次坑,写了个超强补丁,有再遇到回复下 onLaunch: function (options) { const getGlobalData = () => { const systemRes = wx.getSystemInfoSync() this.globalData.statusBarHeight = systemRes.statusBarHeight; this.globalData.boundingRect = wx.getMenuButtonBoundingClientRect(); if (!this.globalData.boundingRect || this.globalData.boundingRect.height <= 0 && this.globalData.statusBarHeight <= 0 && wx.onWindowResize) { wx.onWindowResize(() => { getGlobalData() }) } } getGlobalData(); } //组件内 attached: function () { // 定义导航栏的高度 const setHeight = (boundingRect, statusBarHeight) => { if (boundingRect && boundingRect.height > 0 && statusBarHeight > 0) { this.setData({ height: statusBarHeight, boundingRect: boundingRect }) this.triggerEvent('fetchHeight', { height: boundingRect.height + boundingRect.top * 2 - statusBarHeight }) } else { setTimeout(() => { const systemRes = wx.getSystemInfoSync() const statusBarHeight = systemRes.statusBarHeight; const boundingRect = wx.getMenuButtonBoundingClientRect(); setHeight(statusBarHeight, boundingRect) }, 1000) } } setHeight(app.globalData.boundingRect, app.globalData.statusBarHeight) }
getMenuButtonBoundingClientRect偶尔获取不到值在真机和在开发工具上,经常这个值获取不到
2021-10-29