login-button.ttml 532 Bytes
<!--component/login-button/login-button.wxml-->
<view class="btn-bg">
    <button tt:if="{{plain}}"
            class="login-class"
            bindgetphonenumber='getPhoneNumber'
            bindgetuserinfo='getUserInfo'
            bindtap='getUserInfo'
            plain>
        <slot></slot>
    </button>
    <button tt:else
            class="login-class"
            bindgetphonenumber='getPhoneNumber'
            bindgetuserinfo='getUserInfo'
            bindtap='getUserInfo'>
        <slot></slot>
    </button>
</view>