cover-view嵌入button,真机(安卓、ios)都不显示?
发布于 4 年前 作者 fxu 7015 次浏览 来自 官方Issues

需求:下层组件是canvas,上层是cover-view,并在cover-view嵌入button,然后通过button的open-type=getphonenumber手机号授权。

出现问题:cover-view上button无法显示,安卓、ios,都不显示

5 回复

麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html

把样式全部去掉再试试,再一条条加上去,我碰到过某类样式一加上去就不显示了

我也遇到了同样的情况!

cover-view 放 button 调用客服点击无效

<cover-view class='service box left'>

    <button class='serviceBtn' open-type='contact'></button>

        <cover-image class='img bottomBtnImg serviceBtnImg' style='' src='../img/service.png'                     mode='aspectFit'></cover-image>

    <cover-view class='display'>客服</cover-view>

</cover-view>

我的也是不显示,点击事件无效,有人说button里面加内容就可以,但是我的还是不行

覆盖在原生组件之上的文本视图。

可覆盖的原生组件包括 mapvideocanvascameralive-playerlive-pusher

只支持嵌套 cover-viewcover-image,可在 cover-view 中使用 button

回到顶部