myHeader.wxml
1.9 KB
<view class="header_box data-v-10bc8fad"><block wx:if="{{!token}}"><view class="userInfo data-v-10bc8fad"><u-avatar vue-id="2fa9d2b5-1" src size="108rpx" class="data-v-10bc8fad" bind:__l="__l"></u-avatar><view data-event-opts="{{[['tap',[['goRouter',['/pages/login/index']]]]]}}" class="right data-v-10bc8fad" bindtap="__e"><view class="username data-v-10bc8fad">登录/注册</view></view></view></block><block wx:else><view class="userInfo data-v-10bc8fad"><u-avatar vue-id="2fa9d2b5-2" src="{{userInfo.avatar}}" size="108rpx" class="data-v-10bc8fad" bind:__l="__l"></u-avatar><view class="right data-v-10bc8fad"><view class="username data-v-10bc8fad">{{userInfo.nickName}}</view><view class="intro data-v-10bc8fad"><text class="data-v-10bc8fad">我的场馆二维码:</text><image style="width:28rpx;" src="/static/homeImg/QRCode.png" mode="widthFix" data-event-opts="{{[['tap',[['e0',['$event']]]]]}}" bindtap="__e" class="data-v-10bc8fad"></image></view></view></view></block><view data-event-opts="{{[['tap',[['goRouter',['/pages_my/arenaControl/arenaControl']]]]]}}" class="pay_pitch data-v-10bc8fad" bindtap="__e"><image class="pay_icon data-v-10bc8fad" src="/static/myImg/diamond.png" mode="widthFix"></image><text class="col-primary f-28 data-v-10bc8fad">{{isPay?'续租场地':'购买场地'}}</text></view><text hidden="{{!(isPay)}}" class="over_time data-v-10bc8fad">2025-04-29到期</text><u-popup vue-id="2fa9d2b5-3" show="{{showQRcode}}" round="20" mode="center" closeable="{{true}}" overlayOpacity="0" data-event-opts="{{[['^close',[['e1']]]]}}" bind:close="__e" class="data-v-10bc8fad" bind:__l="__l" vue-slots="{{['default']}}"><view class="QRcode_box data-v-10bc8fad"><view class="QRCoce_img data-v-10bc8fad"><image style="width:270rpx;height:270rpx;" src="/static/homeImg/big_QRCode.png" mode="widthFix" class="data-v-10bc8fad"></image></view><view class="btn data-v-10bc8fad">保存二维码</view></view></u-popup></view>