- 跳转web页面,ios手机黑屏10分钟后,页面直接卡死
因为公司业务需求,小程序的代码堪比一个大的app,逻辑写了很多。跳转web页面,ios手机黑屏挂起10分钟后,这个时候手机就会发烫,这是为什么,页面也没有写什么循环和定时事件。在打开页面直接卡死,点击事件直接失效。过了3分钟左右才恢复正常操作。在线求助大佬帮助
2023-12-19 - 小程序editor富文本编辑器,安卓机长按粘贴框跟随键盘消失,怎么解决?
<editor id="editor" bindready="onEditorReady" placeholder="请输入"></editor> 小程序editor富文本编辑器,安卓机长按粘贴悬浮框跟随键盘消失,怎么解决?
2023-12-11 - 锁屏播放超过十分钟后进入页面查看时间倒计时,此时播放页面会卡住,点击bindtap事件失效?
锁屏播放音频超过十分钟后进入页面查看时间倒计时,此时播放页面会卡住,点击事件bindtap失效?2分钟后点击事件才恢复正常。哪位大佬知道怎么回事吗?运行内存也是够的
2023-11-16 - web-view的bindload方法ios手机体验版不能触发
<web-view src="{{ url }}" bindload='loadHtml'> <cover-view wx:if="{{homeBool && !detailBool}}" class="duiba-back-btn" bindtap="handleBackTo"> <cover-view> <cover-view>返回</cover-view> <cover-view>首页</cover-view> </cover-view> </cover-view> <cover-view wx:if="{{pageloadBool && shareBool && !detailBool}}" class="share_fixed"> <button class="button" open-type="share"> <cover-view class="button_img"> <cover-image class="img_0" src="{{util.IMAGE_URL}}/images/activity_ram_share.png" /> </cover-view> <cover-view class="zt_0">分享</cover-view> </button> </cover-view> </web-view> js loadHtml(){ console.log('页面加载完成') this.setData({ pageloadBool:true }) }, 真机调试正常,体验版ios不行
2023-10-26 - 代码主包加分包4M大小,开发工具卡顿
现在开发的小程序,代码包加分包4M大小,开发工具模拟器跳转到第三级页面就开始卡,有时候直接卡崩页面,什么时候可以优化一下开发工具,不要动不动模拟器就卡死
2023-09-04 - 自定义tarbar底部导航电脑打开小程序不显示?
自定义底部导航栏在手机端查看是正常的,但在电脑端微信查看没有显示一下是我的自定义导航栏代码 <view class="{{show ? '' : 'overlay'}}"> </view> <van-tabbar class="tab-bar" wx:if="{{!hide}}" active="{{ active }}" active-color="#5AC7F4" bind:change="onChange"> <block wx:for="{{ list }}" wx:key="index"> <van-tabbar-item style="display: {{item.bool?'':'none'}}"> <image slot="icon" src="{{ item.icon.normal }}" mode="aspectFit" style="width: 30px; height: 18px;" /> <image slot="icon-active" src="{{ item.icon.active }}" mode="aspectFit" style="width: 30px; height: 18px;" /> {{item.text}} </van-tabbar-item> </block> </van-tabbar> css .overlay { position: fixed; bottom: 0; left: 0; z-index: 9999; width: 100%; height: 50px; background-color: rgba(0, 0, 0, 0.7); } js const app = getApp() Component({ data: { active: null, show: true, hide: false, list: [ { text: '首页', url: '/pages/health/main/main-page', icon: { normal: 'https://hmpcloud-static.oss-cn-shenzhen.aliyuncs.com/app/images/tab_home_n.png ', active: 'https://hmpcloud-static.oss-cn-shenzhen.aliyuncs.com/app/images/tab_home_s.png' }, bool:true }, { text: '档案', url: '/pages/arichives/main/archives-page', icon: { normal: 'https://hmpcloud-static.oss-cn-shenzhen.aliyuncs.com/app/images/tab_file_n.png', active: 'https://hmpcloud-static.oss-cn-shenzhen.aliyuncs.com/app/images/tab_file_s.png' }, bool:true }, { text: '发现', url: '/pages/discover/discover', icon: { normal: 'https://hmpcloud-static.oss-cn-shenzhen.aliyuncs.com/app/images/tab_find_n.png', active: 'https://hmpcloud-static.oss-cn-shenzhen.aliyuncs.com/app/images/tab_find_s.png' }, bool:true }, { text: '我的', url: '/pages/user/center/user-center', icon: { normal: 'https://hmpcloud-static.oss-cn-shenzhen.aliyuncs.com/app/images/tab_mine_n.png', active: 'https://hmpcloud-static.oss-cn-shenzhen.aliyuncs.com/app/images/tab_mine_s.png' }, bool:true } ] }, methods: { onChange(event) { wx.switchTab({ url: this.data.list[event.detail].url }) }, loading() { this.setData({show: false}) }, endLoading() { this.setData({show: true}) }, hide() { this.setData({ hide: true }) }, show() { this.setData({ hide: false }) }, init() { const page = getCurrentPages().pop() let list = this.data.list; if(app.globalData.userInfo){ list[1].bool = true; list[2].bool = true; // if(app.globalData.userInfo.viperId){ // //会员显示 // list[2].bool = true; // }else{ // //非会员隐藏 // list[2].bool = false; // } }else{ list[1].bool = false; list[2].bool = false; } this.setData({ list:list, active: this.data.list.findIndex(item => item.url === `/${page.route}`) }); } } });
2023-07-19 - cover-view自定义页面头部导航,页面卡顿
cover-view自定义页面头部导航,页面卡顿.复现流程:跳转二级页面后台挂起10分钟,在进入当前页面,页面出现滑动和点击卡顿5~10秒的bug 以下为头部自定义导航代码: <cover-view class="nav-bar {{type}}" style="height: {{navHeight}}px; opacity:{{type != 'transparent' ? 1 : opacity}}"> <cover-view style="padding-top: {{ navTop }}px; text-align: center; width: 100%; "> <cover-view style="display:inline-block; height: {{ menuButtonHeight }}px;line-height: {{ menuButtonHeight }}px; " bindtap="dropdown"> {{title}} <cover-view class="dropdown" wx:if="{{dropdown}}"> <cover-image wx:if="{{ arrow == 'up' }}" src="https://hmpcloud-static.oss-cn-shenzhen.aliyuncs.com/app/images/icon_up.png" /> <cover-image wx:if="{{ arrow == 'down' }}" src="https://hmpcloud-static.oss-cn-shenzhen.aliyuncs.com/app/images/icon_down.png" /> </cover-view> </cover-view> </cover-view> </cover-view> <cover-view bindtap="back" class="nav-bar-icon-box" style="top: {{navTop - 15 + menuButtonHeight/2}}px;"> <cover-view wx:if="{{ back }}" style="opacity:{{type != 'transparent' ? 1 : opacity}}" class="nav-bar-icon {{type}}"> <cover-image wx:if="{{ arrowColor == 'black' }}" src="../../../images/icon_return.png" style="opacity:{{type != 'transparent' ? 1 : opacity}}" class="img_black {{type}}"/> <cover-image wx:else src="https://hmpcloud-static.oss-cn-shenzhen.aliyuncs.com/app/images/icon_back.png" style="opacity:{{type != 'transparent' ? 1 : opacity}}" class="nav-bar-icon {{type}}"/> </cover-view> <cover-image wx:if="{{ home }}" src="https://hmpcloud-static.oss-cn-shenzhen.aliyuncs.com/app/images/icon_home.png" style="opacity:{{type != 'transparent' ? 1 : opacity}}" class="nav-bar-icon {{type}}"/> </cover-view> <cover-view wx:if="{{type != 'transparent'}}" class="nav-bar-placeholder" style="height: {{navHeight}}px;"> </cover-view>
2023-05-25 - 使用cover-view自定义头部导航页面卡顿
使用cover-view自定义头部导航页面卡顿,复现流程:在二级页面挂起10分钟后进入页面,页面出现滑动和点击卡顿现象(安卓机卡顿比较明显)。 以下是头部自定义导航代码 <cover-view class="nav-bar {{type}}" style="height: {{navHeight}}px; opacity:{{type != 'transparent' ? 1 : opacity}}"> <cover-view style="padding-top: {{ navTop }}px; text-align: center; width: 100%; "> <cover-view style="display:inline-block; height: {{ menuButtonHeight }}px;line-height: {{ menuButtonHeight }}px; " bindtap="dropdown"> {{title}} <cover-view class="dropdown" wx:if="{{dropdown}}"> <cover-image wx:if="{{ arrow == 'up' }}" src="https://hmpcloud-static.oss-cn-shenzhen.aliyuncs.com/app/images/icon_up.png" /> <cover-image wx:if="{{ arrow == 'down' }}" src="https://hmpcloud-static.oss-cn-shenzhen.aliyuncs.com/app/images/icon_down.png" /> </cover-view> </cover-view> </cover-view> </cover-view> <cover-view bindtap="back" class="nav-bar-icon-box" style="top: {{navTop - 15 + menuButtonHeight/2}}px;"> <cover-view wx:if="{{ back }}" style="opacity:{{type != 'transparent' ? 1 : opacity}}" class="nav-bar-icon {{type}}"> <cover-image wx:if="{{ arrowColor == 'black' }}" src="../../../images/icon_return.png" style="opacity:{{type != 'transparent' ? 1 : opacity}}" class="img_black {{type}}"/> <cover-image wx:else src="https://hmpcloud-static.oss-cn-shenzhen.aliyuncs.com/app/images/icon_back.png" style="opacity:{{type != 'transparent' ? 1 : opacity}}" class="nav-bar-icon {{type}}"/> </cover-view> <cover-image wx:if="{{ home }}" src="https://hmpcloud-static.oss-cn-shenzhen.aliyuncs.com/app/images/icon_home.png" style="opacity:{{type != 'transparent' ? 1 : opacity}}" class="nav-bar-icon {{type}}"/> </cover-view> <cover-view wx:if="{{type != 'transparent'}}" class="nav-bar-placeholder" style="height: {{navHeight}}px;"> </cover-view>
2023-05-25 - 自定义头部导航栏使用cover-view,后台挂起10分钟后进入前台页面卡顿5~15秒?
自定义头部导航栏使用cover-view,后台挂起10分钟后进入前台页面卡顿5~15秒,哪位大佬知道原因吗?我把cover-view换成view就不卡了 <cover-view class="nav-bar {{type}}" style="height: {{navHeight}}px; opacity:{{type != 'transparent' ? 1 : opacity}}"> <cover-view style="padding-top: {{ navTop }}px; text-align: center; width: 100%; "> <cover-view style="display:inline-block; height: {{ menuButtonHeight }}px;line-height: {{ menuButtonHeight }}px; " bindtap="dropdown"> {{title}} <cover-view class="dropdown" wx:if="{{dropdown}}"> <cover-image wx:if="{{ arrow == 'up' }}" src="https://hmpcloud-static.oss-cn-shenzhen.aliyuncs.com/app/images/icon_up.png" /> <cover-image wx:if="{{ arrow == 'down' }}" src="https://hmpcloud-static.oss-cn-shenzhen.aliyuncs.com/app/images/icon_down.png" /> </cover-view> </cover-view> </cover-view> </cover-view> <cover-view bindtap="back" class="nav-bar-icon-box" style="top: {{navTop - 15 + menuButtonHeight/2}}px;"> <cover-image wx:if="{{ back }}" src="https://hmpcloud-static.oss-cn-shenzhen.aliyuncs.com/app/images/icon_back.png" style="opacity:{{type != 'transparent' ? 1 : opacity}}" class="nav-bar-icon {{type}}"/> <cover-image wx:if="{{ home }}" src="https://hmpcloud-static.oss-cn-shenzhen.aliyuncs.com/app/images/icon_home.png" style="opacity:{{type != 'transparent' ? 1 : opacity}}" class="nav-bar-icon {{type}}"/> </cover-view> <cover-view wx:if="{{type != 'transparent'}}" class="nav-bar-placeholder" style="height: {{navHeight}}px;"> </cover-view>
2023-05-16 - h5l网页wx-open-launch-weapp使用绝对定位点击失效?
需求是图片铺满页面点击图片跳转小程序,在template里面设置图片100%失效, 然后我就设置wx-open-launch-weapp绝对定位点击跳转事件失效。求大神教我怎么 b把图片铺满屏幕,还可以跳转小程序 [图片]
2021-12-08