点击button获取用户信息,多次弹窗
发布于 5 年前 作者 ping87 7015 次浏览 来自 问答
  • 提供一个最简复现 Demo

git 地址: https://gitee.com/zhtop/wxmini.git

- 当前 Bug 的表现

第一次点击出现一次弹框,第二次点击出现2次弹框,第三次点击出现三次弹框,以此类推

测试机:OPPO A83

andriod: 7.1.1

复现视频:[复现视频](https://web.ehoo100.com/static/WeChat_20190402145037.mp4)

html:

<div class=“update-info” v-if=“isUpdateDate”>

            更新资料>

            <button v-show=“isShowUser” open-type=“getUserInfo” lang=“zh_CN” @click=“updateDate” @getuserinfo=“onGotUserInfo”>更新资料</button>

          </div>

 

css:      

.update-info{

          width: 144rpx;

          height: 40rpx;

          line-height: 40rpx;

          font-size: 24rpx;

          background: #ffffff;

          border-radius: 20rpx;

          margin: 15rpx;

          opacity: 0.8;

          color: #000;

          display:inline-block;

          text-align: center;

          position: relative;

          button{

            position: absolute;

            top:0;

            left: 0;

            width: 100%;

            height:100%;

            opacity: 0;

          }

        }

2 回复

有什么解决方案吗?我目前遇到相同的问题。

回到顶部