小程序
小游戏
企业微信
微信支付
扫描小程序码分享
在cover-view中嵌套了button但是在真机上不显示,查找了资料都说老问题一直没解决,怎么办?
2 个回答
加粗
标红
插入代码
插入链接
插入图片
上传视频
在Button里面再放一个cover-view
<button> <cover-view></cover-view> </button>
你好,麻烦通过点击下方“反馈信息”按钮,提供出现问题的。
<map class="map" subkey="YKPBZ-BRK36-W4RSL-E3OCL-2SMUH-LGFVF" longitude="{{longitude}}" latitude="{{latitude}}" scale="17" markers="{{marker}}" bindcallouttap="bindcallouttap"> <!-- 展开tabBar --> <cover-view class="cu-bar tabbar margin-bottom-xl bg-white" wx:if="{{btnOpen}}"> <cover-view class="action text-gray add-action"> <cover-view class="flex flex-wrap justify-around"> <button class="cu-btn cuIcon-right bg-blue animation-slide-right margin-sm basis-sm shadow" bindtap="change" data-class="slide-right"></button> </cover-view> </cover-view> </cover-view> <!-- tabBar功能栏 --> <cover-view class="cu-bar tabbar margin-bottom-xl bg-white" wx:if="{{btnClose}}"> <cover-view class="action text-gray add-action" wx:for="{{list}}" wx:key="index"> <cover-view class="flex flex-wrap justify-around"> <button class="cu-btn cuIcon-{{item.icon}} bg-blue animation-slide-left margin-sm basis-sm shadow" bindtap="{{item.function}}" data-class="slide-left" style="animation-delay: {{(index+1)*0.1}}s;"></button> </cover-view> </cover-view> </cover-view> </map>
关注后,可在微信内接收相应的重要提醒。
请使用微信扫描二维码关注 “微信开放社区” 公众号
在Button里面再放一个cover-view
<button> <cover-view></cover-view> </button>
<map class="map" subkey="YKPBZ-BRK36-W4RSL-E3OCL-2SMUH-LGFVF" longitude="{{longitude}}" latitude="{{latitude}}" scale="17" markers="{{marker}}" bindcallouttap="bindcallouttap"> <!-- 展开tabBar --> <cover-view class="cu-bar tabbar margin-bottom-xl bg-white" wx:if="{{btnOpen}}"> <cover-view class="action text-gray add-action"> <cover-view class="flex flex-wrap justify-around"> <button class="cu-btn cuIcon-right bg-blue animation-slide-right margin-sm basis-sm shadow" bindtap="change" data-class="slide-right"></button> </cover-view> </cover-view> </cover-view> <!-- tabBar功能栏 --> <cover-view class="cu-bar tabbar margin-bottom-xl bg-white" wx:if="{{btnClose}}"> <cover-view class="action text-gray add-action" wx:for="{{list}}" wx:key="index"> <cover-view class="flex flex-wrap justify-around"> <button class="cu-btn cuIcon-{{item.icon}} bg-blue animation-slide-left margin-sm basis-sm shadow" bindtap="{{item.function}}" data-class="slide-left" style="animation-delay: {{(index+1)*0.1}}s;"></button> </cover-view> </cover-view> </cover-view> </map>