212 lines
6.8 KiB
Plaintext
212 lines
6.8 KiB
Plaintext
<!-- pages/dashouzhongxin/dashouzhongxin.wxml -->
|
||
<view class="page-container unregistered-page" wx:if="{{!isDashou}}">
|
||
<!-- 未注册部分完全不变 -->
|
||
<view class="status-tip">您还未解锁此功能,请输入邀请码解锁</view>
|
||
|
||
<view class="input-container">
|
||
<input
|
||
class="invite-input"
|
||
type="text"
|
||
placeholder="请输入100位以内邀请码"
|
||
maxlength="100"
|
||
value="{{inviteCode}}"
|
||
bindinput="onInviteCodeInput"
|
||
placeholder-class="placeholder"
|
||
/>
|
||
</view>
|
||
|
||
<view class="register-view-btn" bindtap="onRegister">
|
||
<text class="register-text">输入邀请码注册</text>
|
||
<view class="register-glow"></view>
|
||
</view>
|
||
|
||
<view class="quick-register-btn" bindtap="quickRegisterAsPlatform">
|
||
|
||
<view class="quick-register-glow"></view>
|
||
</view>
|
||
</view>
|
||
|
||
<!-- 已注册状态 -->
|
||
<view class="page-container registered-page" wx:else>
|
||
<!-- 刷新按钮 -->
|
||
<view class="refresh-btn" bindtap="refreshDashouInfo">
|
||
<text class="refresh-icon">↻</text>
|
||
</view>
|
||
|
||
<!-- 头像区域 -->
|
||
<view class="avatar-section">
|
||
<view class="avatar-info">
|
||
<image
|
||
class="avatar-img"
|
||
src="{{avatarUrl}}"
|
||
mode="aspectFill"
|
||
bindtap="previewAvatar"
|
||
/>
|
||
<view class="user-info">
|
||
<!-- 昵称行:去掉原称号标签 -->
|
||
<view class="nickname-row">
|
||
<text class="dashou-nicheng">{{dashouNicheng || '打手昵称'}}</text>
|
||
<!-- 原称号标签已移除 -->
|
||
</view>
|
||
|
||
<view class="uid-row">
|
||
<text class="uid-label">UID:</text>
|
||
<text class="uid-value">{{uid || '未获取'}}</text>
|
||
<view class="copy-btn" bindtap="copyUid">
|
||
<text class="copy-icon">⎘</text>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
|
||
<!-- 🆕 称号标签展示区(自适应两行,超出可滑动) -->
|
||
<view class="badge-area" wx:if="{{chenghaoList.length > 0}}">
|
||
<scroll-view class="badge-scroll" scroll-y="true" enable-flex>
|
||
<view class="badge-grid">
|
||
<view class="badge-item" wx:for="{{chenghaoList}}" wx:key="index">
|
||
<chenghao-tag
|
||
mingcheng="{{item.mingcheng}}"
|
||
texiaoJson="{{item.texiao_json}}"
|
||
/>
|
||
</view>
|
||
</view>
|
||
</scroll-view>
|
||
</view>
|
||
|
||
<!-- 其余部分完全不变 -->
|
||
<!-- 资产区域 -->
|
||
<view class="assets-section">
|
||
<view class="black-card">
|
||
<view class="card-header">
|
||
<text class="card-title">资产总览</text>
|
||
</view>
|
||
|
||
<view class="yongjin-row">
|
||
<view class="yongjin-info">
|
||
<text class="asset-label">我的佣金</text>
|
||
<view class="asset-value-container">
|
||
<text class="asset-value">{{yongjin || '0.00'}}</text>
|
||
<text class="asset-unit">元</text>
|
||
</view>
|
||
</view>
|
||
|
||
<view class="withdraw-view-btn" bindtap="goToWithdraw">
|
||
<text class="withdraw-text">提现</text>
|
||
<view class="withdraw-glow"></view>
|
||
</view>
|
||
</view>
|
||
|
||
<view class="assets-bottom">
|
||
<view class="bottom-item">
|
||
<text class="bottom-label">积分</text>
|
||
<text class="bottom-value">{{jinfen || '0'}}</text>
|
||
</view>
|
||
|
||
<view class="vertical-divider"></view>
|
||
|
||
<view class="bottom-item">
|
||
<text class="bottom-label">保证金</text>
|
||
<text class="bottom-value">{{yajin || '0.00'}}元</text>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
|
||
<!-- 功能区域 -->
|
||
<view class="function-section">
|
||
<view class="main-function" bindtap="goToReceiveOrder">
|
||
<text class="main-function-icon">🎮</text>
|
||
<text class="main-function-text">抢单大厅</text>
|
||
<view class="main-function-glow"></view>
|
||
</view>
|
||
|
||
<view class="function-grid-second">
|
||
<view class="function-item-second" bindtap="goToRecharge">
|
||
<text class="function-icon-second">💳</text>
|
||
<text class="function-text-second">充值会员保证金</text>
|
||
</view>
|
||
|
||
<view class="function-item-second" bindtap="goToMyOrders">
|
||
<text class="function-icon-second">📦</text>
|
||
<text class="function-text-second">我的订单</text>
|
||
</view>
|
||
</view>
|
||
|
||
<view class="function-grid-third">
|
||
<view class="function-item-third" bindtap="goToMyPunishment">
|
||
<text class="function-icon-third">⚖️</text>
|
||
<text class="function-text-third">我的处罚</text>
|
||
</view>
|
||
|
||
<view class="function-item-third" bindtap="goToRanking">
|
||
<text class="function-icon-third">🏆</text>
|
||
<text class="function-text-third">排行榜</text>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
|
||
<!-- 其他功能区域 (邀请人等) 保持原样 -->
|
||
|
||
<view class="other-section">
|
||
<view class="other-list">
|
||
|
||
|
||
|
||
<view class="other-item" wx:if="{{inviterCache && inviterCache.uid}}">
|
||
<view class="other-item-left" bindtap="contactInviter">
|
||
<image class="inviter-avatar" src="{{inviterCache.avatar}}" mode="aspectFill" />
|
||
<view class="inviter-text-info">
|
||
<text class="other-text">邀请人:{{inviterCache.nicheng || '未知'}}</text>
|
||
<text class="inviter-uid-text">ID: {{inviterCache.uid}}</text>
|
||
</view>
|
||
</view>
|
||
<view class="contact-badge" bindtap="contactInviter">联系</view>
|
||
</view>
|
||
<view class="other-item" wx:else bindtap="contactInviter">
|
||
|
||
<view class="other-item-left">
|
||
<text class="other-icon">🤝</text>
|
||
<text class="other-text">联系邀请人</text>
|
||
</view>
|
||
<text class="arrow-icon">›</text>
|
||
</view>
|
||
|
||
<!-- 考核金牌(新增,放在最上面) -->
|
||
<view class="other-item" bindtap="goToKaohe">
|
||
<view class="other-item-left">
|
||
<text class="other-icon">🏅</text>
|
||
<text class="other-text">考核金牌</text>
|
||
</view>
|
||
<text class="arrow-icon">›</text>
|
||
</view>
|
||
|
||
<view class="other-item" bindtap="goToModifyInfo">
|
||
<view class="other-item-left">
|
||
<text class="other-icon">✏️</text>
|
||
<text class="other-text">修改个人信息</text>
|
||
</view>
|
||
<text class="arrow-icon">›</text>
|
||
</view>
|
||
|
||
<view class="other-item" bindtap="goToRules">
|
||
<view class="other-item-left">
|
||
<text class="other-icon">📖</text>
|
||
<text class="other-text">用户规则</text>
|
||
</view>
|
||
<text class="arrow-icon">›</text>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
|
||
<!-- 加载提示保持不变 -->
|
||
<view class="loading-mask" wx:if="{{isLoading}}">
|
||
<view class="loading-content">
|
||
<view class="loading-spinner"></view>
|
||
<text class="loading-text">加载中...</text>
|
||
</view>
|
||
</view>
|
||
<global-notification id="global-notification" />
|
||
<custom-tab-bar />
|
||
<popup-notice id="popupNotice" /> |