weui 的dialog为什么不是弹出在中间,什么问题?
发布于 4 年前 作者 guiying30 7841 次浏览 来自 问答
<!--pages/authorization/index.wxml-->
<import src="../../templates/navigation/navigation.wxml" />
<template is="navigationStyle" data="{{...navigation}}"></template>

<view class="page">
    <mp-dialog title="提示" show="{{showOneButtonDialog}}" buttons="{{oneButton}}" bindbuttontap="tapDialogButton">
        <view>需要通过授权才能继续,请重新点击的授权</view>
    </mp-dialog>

    <view class="page__hd">
    </view>
    <view class="page__bd">
        <view class="page__logo">
            <view class="logo">
                <image src=""></image>
            </view>
        </view>
        <text class="tip">请完成微信授权以继续使用</text>
        <view class="btn-area">
            <button class="btn" style="  width:90%;" open-type="getUserInfo" bindgetuserinfo="bindGetUserInfo">微信授权用户信息</button>
        </view>
    </view>
</view>

回到顶部