微信小程序 获取用户信息 的官方对话框

wxml

<view class='topView'>
    <view class='getinfoView right_center colonn'>
        <text class='text padding1'>微信授权</text>
        <view class='iconimg userinfo-avatar'>   
            <open-data type="userAvatarUrl" ></open-data>
        </view>
        <text class='text1 padding1'>酷酷的看风景</text>
        <button hover-class="btn_hover">点击登陆</button>
    </view>
</view>
    

wxss


@import "/pages/style/style.wxss";
page{
  width: 100%;
  height: 100%;
}
.right_center{  
   justify-content: flex-start;
  align-items: center;
}
.text{
  font-size:18px;
}
.text1{
  font-size:15px;
}

.padding1{/* //1 */
    margin-top: 10px;
    margin-bottom: 10px;
}


.topView{                      
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5)
}

.getinfoView{                    
  position: fixed;
  width: 60%;
  margin-left: 20%;
  margin-right: 20%;
  background-color: white;
 padding: 20px 10px 20px 10px;
  border-radius: 10px;
  margin-top: 45%;
}
.iconimg{
  width:70px;
  height:70px;
  border-radius: 70px;
  
}



/* 重写按钮 */
button {
   width: 80%;
  /* padding: 7px 0px 7px 0px; */
  color: red;
  border-radius: 10px;
  border:1px solid red;
  text-align: center;
  font-size: 15px;
  background-color: white;
  margin-top: 10px;
  margin-bottom: 10px;
}
.btn_hover{
  box-shadow: 0 0 3px #f00;
}
.userinfo-avatar {
  overflow:hidden;
  display: block;
  width: 130rpx;
  height: 130rpx;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
}


 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

飞飞翼

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值