通过分享进入小程序里面有一个webview页面,然后点右上角胶囊的返回首页就会报以下问题,实测ios和开发者工具没问题,只出现在android上面
不通过分享进去的话,通过搜开发版的二维码进去首页会偶显,通过小程序助手进去没有问题,
然后对首页代码块分块检验,发现只要不引入自定义TabBar就没问题,无论自定义TabBar里面代码写什么或者是空<view>都会有bug,
奇怪的是现在线上跑的正式版是没有问题,我用同样的代码放在开发版、体验版都会有bug.
// 首页代码 <block> <view class= "{{app.globalData.isIPX ? 'index ipx' : 'index'}}" bindtouchstart= "anonymousFunc0" > <view class= "index-header" > <view class= "location ellipsis tj-location-change" bindtap= "switchToWebview" data-e-tap-so= "this" data-e-tap-a-a= "{{locationUrl}}" data-e-tap-a-b= "{{anonymousState__temp}}" >{{cityName}}</view> <view class= "search-box tj-search-box" bindtap= "switchToWebview" data-e-tap-so= "this" data-e-tap-a-a= "{{searchUrl}}" data-e-tap-a-b= "{{anonymousState__temp2}}" > <input type= "text" placeholder= "输入景点/商品名称" disabled= "{{true}}" placeholder-style= "color:#9B9B9B;" /> </view> </view> <view class= "index-body" > <class-icons data= "{{icons}}" __triggerObserer= "{{ _triggerObserer }}" cityId= "{{cityId}}" regionId= "{{regionId}}" bindonswitchtowebview= "switchToWebview" __fn_onSwitchToWebview= "{{true}}" ></class-icons> <image src= "{{banner.img}}" class= "banner tj-banner-box" mode= "aspectFit" bindtap= "switchToWebview" data-e-tap-so= "this" data-e-tap-a-a= "{{banner.url}}" data-e-tap-a-b= "{{anonymousState__temp3}}" ></image> <recommend error= "{{error}}" __triggerObserer= "{{ _triggerObserer }}" recommendList= "{{recommendList}}" more= "{{more}}" showRecommendLoading= "{{showRecommendLoading}}" locationUrl= "{{locationUrl}}" bindonswitchtowebview= "switchToWebview" __fn_onSwitchToWebview= "{{true}}" ></recommend> </view> <block wx: if = "{{isShowPopup}}" > <follow-popup __triggerObserer= "{{ _triggerObserer }}" ></follow-popup> </block> <custom-tab-bar active= "index" __triggerObserer= "{{ _triggerObserer }}" ></custom-tab-bar> </view> </block> // custom-tab-bar代码 <block> <block wx: if = "{{active}}" > <view class= "{{app.globalData.isIPX ? 'custom-tab-bar ipx' : 'custom-tab-bar'}}" > <view class= "{{active !== 'user' ? 'tab-bar-btn active' : 'tab-bar-btn'}}" bindtap= "switchTab" data-e-tap-so= "this" data-e-tap-a-a= "index" >首页</view> <view class= "{{active === 'user' ? 'tab-bar-btn user-btn active' : 'tab-bar-btn user-btn'}}" bindtap= "switchTab" data-e-tap-so= "this" data-e-tap-a-a= "user" >我的</view> </view> </block> </block> |
麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)
https://developers.weixin.qq.com/s/HWqFeImQ7R7K机型 vivo X7plus
微信:7.0.x
https://developers.weixin.qq.com/community/develop/doc/000c2a6e7ecd98dc9b687d8be51000 看下这个帖子看是不是一样的问题?
是的