- webview嵌入的H5会挡住上面弹出的窗口的内容?
我有个问题我想问问,index页面直接webview的时候,还需要有两个弹出窗口,webview的页面的层级各种降级都没用,我想到最笨的解决方案就是把H5的第一个页面做成微信原生,后面的接入H5,我想问问有没有更简单的方法解决呢? <!--index.wxml - 简化版本--> <navigation-bar title="Weixin" back="{{false}}" color="black" background="#FFF"></navigation-bar> <view class="page-container"> <!-- 调试按钮区域(仅开发环境显示) --> <view class="debug-panel" wx:if="{{isDebugMode}}"> <button class="debug-btn" bindtap="checkCurrentState">检查状态</button> <button class="debug-btn" bindtap="forceShowGarminAuth">强制佳明弹窗</button> <button class="debug-btn" bindtap="checkUserAuthStatus">检查授权状态</button> </view> <scroll-view class="scrollarea" scroll-y type="list"> <view class="container"> <web-view class="webview-container" src="{{webViewUrl}}"></web-view> </view> </scroll-view> </view> <!-- 授权弹窗容器 --> <cover-view class="cover-container"> <!-- 佳明授权弹窗 --> <cover-view class="cover-modal-mask" wx:if="{{showGarminAuthModal && !showAuthModal}}" bindtap="handleCloseGarminAuthModal"></cover-view> <cover-view class="cover-garmin-auth-modal" wx:if="{{showGarminAuthModal && !showAuthModal}}"> <cover-view class="cover-garmin-modal-content"> <cover-view class="cover-garmin-modal-body"> <cover-view class="cover-garmin-modal-title">佳明授权</cover-view> <cover-view class="cover-garmin-modal-desc">为了同步您的运动数据,请授权连接您的佳明账号</cover-view> </cover-view> <cover-view class="cover-garmin-modal-footer"> <cover-view class="cover-garmin-btn-confirm" hover-class="cover-garmin-btn-confirm-hover" bindtap="handleGarminAuth">去授权</cover-view> </cover-view> </cover-view> </cover-view> <!-- 微信授权弹窗 --> <cover-view class="cover-modal-mask" wx:if="{{showAuthModal}}"></cover-view> <cover-view class="cover-auth-modal" wx:if="{{showAuthModal}}"> <cover-view class="cover-auth-modal-content"> <cover-view class="cover-auth-modal-body"> <cover-view class="cover-title">微信授权</cover-view> <cover-view class="cover-auth-desc">运动健康服务申请获取以下权限 获得你的公开信息(昵称、头像等)</cover-view> </cover-view> <cover-view class="cover-auth-modal-footer"> <cover-view class="cover-auth-btn-cancel" hover-class="cover-auth-btn-cancel-hover" bindtap="handleCancelAuth">不允许</cover-view> <cover-view class="cover-auth-btn-confirm" hover-class="cover-auth-btn-confirm-hover" bindtap="handleAuth">授权登陆</cover-view> </cover-view> </cover-view> </cover-view> </cover-view>
3小时前 - uniapp发行小程序之后本地微信开发者工具都能跑通,上传体验版本不能登录,这个如何解决?
uniapp 打包小程序 之后 本地跑都能通,上传体验版本不能登录了为什么?我已经勾选了不校验这些内容,实际域名地址我也更换成了https的域名,加了request里面,为什么还是不能登录呢?
2021-07-29 - 关于web-view的组件问题,获取到src的地址并打印出来,而页面仍旧是空白输出?
HTML: <view> <web-view src="{{ src }}"></web-view> </view> JS: Page({ onLoad: function (options) { console.log('options.pdfpath', options.pdfpath) this.data.src = 'https://xch3.com/Home/viewer?file=' + decodeURIComponent(options.pdfpath); console.log('src',this.data.src) debugger; this.setData({ src: this.data.src }); } }); 为什么我打印出来的时候,网址已经获取到,而页面就是没有渲染出来?[图片] [图片]
2019-11-21