<view class="page {{active?'page1':''}}">
    <view class="title" style="top:{{btnInfo.top + 5}}px">我的</view>
    <view class="topBoxs flex">
        <view class="le flex">
            <image src="{{userInfo.avatar?userInfo.avatar:'https://636c-cloud1-7g2wlwzh596f43b6-1306306616.tcb.qcloud.la/%E5%9C%86%E5%BD%A2logo%403x.png?sign=9c634e6a925c92259459f604a261bc6b&t=1645864304'}}" class="userPicture"></image>
            <view class="dd">
                <view  wx:if="{{hasUserInfo}}">
                <text class="phone">{{userInfo.wx_nickname}}</text>
                 </view>
            <view wx:else>
                <text class="phone" bindtap="getUserProfile">请点击登录</text>
            </view>
                <button class="phone" bindgetphonenumber="getPhoneNumber">{{userInfo
                .phone!=0?userInfo
                .phone:'点击获取手机号'}}</button>
                <!-- <text class="phone" style="    margin-top: 15rpx;"> </text> -->
           </view>
            <wxs src="/utils/handle.wxs" module="handle"></wxs>
        </view>

        <image src="/image/my/bg.png" class="bg"></image>
    </view>


    <!-- 无活动 -->
    <view class="menuBoxs " wx:if="{{!active}}">
        <van-grid border="{{false}}">
            <van-grid-item use-slot wx:for="{{menuList}}" wx:key="*this" bindtap="toUrl" data-url="{{item.url}}">
                <view class="menuItem">
                    <image src="{{item.icon}}" class="icon"></image>
                    <view class="tit">{{item.text}}</view>
                    <dot num="3张" offset="{{[-20,-20]}}" radius="19rpx 19rpx 19rpx 0rpx;" wx:if="{{item.text == '优惠券'}}"></dot>
                </view>

            </van-grid-item>
        </van-grid>

    </view>
    <!-- 有活动 -->
    <view class="active" wx:else>
        <view class="message flex ju-a">
            <view class="le" bindtap="toUrl" data-url="/pages/my/account/account">
                <view class="num">{{yue}}</view>
                <view class="tips">余额（元）</view>
            </view>
            <view class="line"></view>
            <view class="lr" bindtap="toUrl33" data-url="/pages/my/coupon/coupon">
                <view class="num">0</view>
                <view class="tips">优惠券（张）</view>
            </view>
        </view>

        <view class="contioner">
            <view class="titText">我的服务</view>
            <view class="menuBoxs2">
                <van-grid border="{{false}}">
                    <van-grid-item use-slot  wx:if="{{item.text!='客服热线'}}" wx:for="{{menuList}}" wx:key="*this" bindtap="toUrl" data-url="{{item.url}}">
                        <view class="menuItem">
                            <image src="{{item.icon}}" class="icon"></image>
                            <view class="tit">{{item.text}}</view>
                            <dot num="3张" offset="{{[-20,-20]}}" radius="19rpx 19rpx 19rpx 0rpx;" wx:if="{{item.text == '优惠券'}}"></dot>
                            
                        </view>
                    </van-grid-item>
                    <van-grid-item use-slot  wx:if="{{item.text=='客服热线'}}" wx:for="{{menuList}}" wx:key="*this" class="kf">
                        <view class="menuItem">
                            <image src="{{item.icon}}" class="icon"></image>
                            <view class="tit">{{item.text}}</view>
                            <dot num="3张" offset="{{[-20,-20]}}" radius="19rpx 19rpx 19rpx 0rpx;" wx:if="{{item.text == '优惠券'}}"></dot>
                          
                        </view>
                        <button open-type="contact"></button>
                    </van-grid-item>
                    
                </van-grid>

            </view>
        </view>

        <!-- <taskOrder value="3" bind:rightClick="rightClick"></taskOrder> -->
    </view>
</view>