274 lines
12 KiB
Plaintext
274 lines
12 KiB
Plaintext
<!-- 打手端个人中心 - 逍遥梦布局,逻辑/事件不变 -->
|
||
|
||
<!-- 未注册 / 未登录 / 封禁踢出:只保留邀请码输入(可选)+ 一键登录 -->
|
||
<block wx:if="{{forceLoginView || (!isDashou && !isGuanshi && !isZuzhang && !isKaoheguan)}}">
|
||
<view class="user-page unreg-page">
|
||
<view class="page-header">
|
||
<view class="status-bar" style="height:{{statusBar}}px"></view>
|
||
<view class="nav-bar" style="height:{{navBar - statusBar}}px"><text class="nav-title">我的</text></view>
|
||
</view>
|
||
<view class="unreg-area">
|
||
<view class="panel shadow unreg-card">
|
||
<text class="unreg-title">{{isAutoRegistering ? '正在登录...' : '接单员登录'}}</text>
|
||
<text class="unreg-tip unreg-tip-warn" wx:if="{{loginPageHint && !isAutoRegistering}}">{{loginPageHint}}</text>
|
||
<text class="unreg-tip" wx:if="{{isAutoRegistering}}">请稍候</text>
|
||
<text class="unreg-tip" wx:elif="{{showInviteForm && !loginPageHint}}">可填写邀请码,不填则用默认邀请码</text>
|
||
<text class="unreg-tip" wx:elif="{{!showInviteForm && !loginPageHint}}">请点击一键登录</text>
|
||
|
||
<input
|
||
wx:if="{{showInviteForm && !isAutoRegistering}}"
|
||
class="unreg-input"
|
||
type="text"
|
||
placeholder="邀请码(可选)"
|
||
maxlength="100"
|
||
value="{{inviteCode}}"
|
||
bindinput="onInviteCodeInput"
|
||
placeholder-class="ph"
|
||
/>
|
||
|
||
<view class="btn-bg unreg-btn" bindtap="handleWechatLogin" wx:if="{{!isAutoRegistering}}">
|
||
<text class="unreg-btn-text">一键登录</text>
|
||
</view>
|
||
<view class="unreg-link" bindtap="clearCache" wx:if="{{!isAutoRegistering}}"><text>清除缓存</text></view>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
</block>
|
||
|
||
<!-- 已注册 -->
|
||
<block wx:else>
|
||
<view class="user-page xym-user">
|
||
<view class="page-header">
|
||
<view class="status-bar" style="height:{{statusBar}}px"></view>
|
||
<view class="nav-bar" style="height:{{navBar - statusBar}}px">
|
||
<view class="nav-tousu" catchtap="goToComplaintCreate">投诉</view>
|
||
<text class="nav-title">我的</text>
|
||
</view>
|
||
</view>
|
||
|
||
<scroll-view
|
||
class="content"
|
||
scroll-y
|
||
enhanced
|
||
show-scrollbar="{{false}}"
|
||
refresher-enabled="{{true}}"
|
||
refresher-threshold="80"
|
||
refresher-default-style="black"
|
||
refresher-background="#fff8e1"
|
||
refresher-triggered="{{scrollViewRefreshing}}"
|
||
bindrefresherrefresh="onPullDownRefresh"
|
||
>
|
||
<view class="user-info flexb">
|
||
<view class="flex">
|
||
<image class="avatar" src="{{avatarUrl || imgUrls.avatarDefault}}" mode="aspectFill" bindtap="previewAvatar"/>
|
||
<view class="user-text-col">
|
||
<view class="nickname-row">
|
||
<text class="nickname">{{dashouNicheng || '接单员'}}</text>
|
||
<view class="deposit-tag" wx:if="{{yajin && yajin != '0' && yajin != '0.00'}}">保证金</view>
|
||
<view class="role-tags">
|
||
<text class="role-tag">接单员</text>
|
||
<text class="role-tag" wx:if="{{isGuanshi}}">管事</text>
|
||
<text class="role-tag" wx:if="{{isZuzhang}}">组长</text>
|
||
<text class="role-tag role-tag-ban" wx:if="{{accountBanned}}" bindtap="onTapBanBanner">已封禁</text>
|
||
</view>
|
||
</view>
|
||
<view class="sn-row flex" bindtap="copyUid">
|
||
<text class="sn">ID: {{uid || '--'}}</text>
|
||
<image class="copy-ico" src="{{imgUrls.iconCopy}}" mode="aspectFit"/>
|
||
</view>
|
||
<view class="ban-banner" wx:if="{{accountBanned}}" bindtap="onTapBanBanner">
|
||
<text class="ban-banner-text">账号已封禁,点击查看原因</text>
|
||
</view>
|
||
<view
|
||
class="ban-banner ban-banner-role"
|
||
wx:for="{{roleBanTips}}"
|
||
wx:key="role"
|
||
data-item="{{item}}"
|
||
bindtap="onTapRoleBanTip"
|
||
>
|
||
<text class="ban-banner-text">{{item.role}}身份已封禁,点击查看原因</text>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
<view class="user-header-actions">
|
||
<image class="header-action-ico" src="{{imgUrls.iconRefresh}}" mode="aspectFit" bindtap="onTapRefresh"/>
|
||
<image class="setting-ico" src="{{imgUrls.iconEdit}}" mode="aspectFit" bindtap="goToModifyInfo"/>
|
||
</view>
|
||
</view>
|
||
|
||
<view class="badge-zone" wx:if="{{chenghaoList.length > 0 || (isGuanshi && guanshiChenghaoList.length > 0) || identityTagList.length > 0}}">
|
||
<scroll-view scroll-x class="badge-scroll" wx:if="{{chenghaoList.length > 0}}">
|
||
<view class="badge-tag-wrap" wx:for="{{chenghaoList}}" wx:key="index">
|
||
<chenghao-tag mingcheng="{{item.mingcheng}}" texiaoJson="{{item.texiao_json}}"/>
|
||
</view>
|
||
</scroll-view>
|
||
<scroll-view scroll-x class="badge-scroll" wx:if="{{isGuanshi && guanshiChenghaoList.length > 0}}">
|
||
<view class="badge-tag-wrap" wx:for="{{guanshiChenghaoList}}" wx:key="index">
|
||
<chenghao-tag mingcheng="{{item.mingcheng}}" texiaoJson="{{item.texiao_json}}"/>
|
||
</view>
|
||
</scroll-view>
|
||
<scroll-view scroll-x class="badge-scroll identity-tag-scroll" wx:if="{{identityTagList.length > 0}}">
|
||
<view class="badge-tag-wrap" wx:for="{{identityTagList}}" wx:key="id">
|
||
<chenghao-tag mingcheng="{{item.mingcheng}}" texiaoJson="{{item.texiao_json}}"/>
|
||
</view>
|
||
</scroll-view>
|
||
</view>
|
||
|
||
<view class="wallet-card flexb">
|
||
<view bindtap="goToWalletDetail">
|
||
<view class="w-label">我的佣金(元)</view>
|
||
<view class="w-num">¥{{totalAssets}}</view>
|
||
<view class="w-sub">
|
||
可提现 ¥{{yongjin || '0.00'}}
|
||
<text wx:if="{{showDongjieHint}}"> · 冻结 ¥{{totalDongjie}}</text>
|
||
· 查看
|
||
</view>
|
||
</view>
|
||
<view class="wallet-btns flex">
|
||
<view class="btn-outline" catchtap="goToRecharge">充值</view>
|
||
<view class="btn-outline" catchtap="goToTotalWithdraw">去提现</view>
|
||
</view>
|
||
</view>
|
||
|
||
<view class="dongjie-bar flexb" wx:if="{{showDongjieHint}}">
|
||
<view class="dongjie-left">
|
||
<view class="dongjie-title-row flex">
|
||
<text class="dongjie-title">冻结保障金</text>
|
||
<view class="help-q" catchtap="onFreezeHelpTap">?</view>
|
||
</view>
|
||
<text class="dongjie-desc">不可提现,解冻后自动到账</text>
|
||
</view>
|
||
<view class="dongjie-right flex">
|
||
<text class="dongjie-amt">¥{{totalDongjie}}</text>
|
||
</view>
|
||
</view>
|
||
|
||
<view wx:if="{{showFreezeHelp}}" class="help-mask" catchtap="onCloseFreezeHelp">
|
||
<view class="help-dialog" catchtap="stopPropagation">
|
||
<view class="help-dialog-title">什么是冻结保障金?</view>
|
||
<text class="help-dialog-body">{{freezeDisplayReason}}</text>
|
||
<view class="help-dialog-btn" bindtap="onCloseFreezeHelp">知道了</view>
|
||
</view>
|
||
</view>
|
||
|
||
<view class="banner-row flex" wx:if="{{showRechargeBanners}}">
|
||
<image wx:if="{{imgUrls.bannerVip}}" class="banner-img" src="{{imgUrls.bannerVip}}" mode="widthFix" bindtap="goToRechargeMember"/>
|
||
<image wx:if="{{imgUrls.bannerDeposit}}" class="banner-img" src="{{imgUrls.bannerDeposit}}" mode="widthFix" bindtap="goToRechargeDeposit"/>
|
||
</view>
|
||
<view class="recharge-text-row flex" wx:else>
|
||
<view class="recharge-text-btn" catchtap="goToRechargeMember">充值会员</view>
|
||
<view class="recharge-text-btn" catchtap="goToRechargeDeposit">充值保证金</view>
|
||
</view>
|
||
|
||
<view class="qiepian-wrap" bindtap="onQiepianTap">
|
||
<image class="qiepian-banner" src="{{qiepianBanner}}" mode="widthFix"/>
|
||
</view>
|
||
|
||
<view class="freeze-row flexa">
|
||
<view class="freeze-col flexmc">
|
||
<text class="freeze-num">{{jinfen || '0'}}</text>
|
||
<text class="freeze-lbl">积分</text>
|
||
</view>
|
||
<view class="freeze-col flexmc">
|
||
<text class="freeze-num">{{yajin || '0.00'}}</text>
|
||
<text class="freeze-lbl">保证金</text>
|
||
</view>
|
||
<view class="freeze-col flexmc">
|
||
<text class="freeze-num">{{yongjin || '0.00'}}</text>
|
||
<text class="freeze-lbl">佣金</text>
|
||
</view>
|
||
</view>
|
||
|
||
<view wx:if="{{pendingPenaltyCount > 0}}" class="tip-bar flexb" bindtap="goToMyPunishment">
|
||
<view class="flex">
|
||
<image class="tip-ico" src="{{penaltyTipIcon}}" mode="aspectFit"/>
|
||
<text>你有{{pendingPenaltyCount}}条罚单待处理, 前往处理</text>
|
||
</view>
|
||
<text class="tip-arrow">›</text>
|
||
</view>
|
||
|
||
<view class="my-box shadow order-nav-box">
|
||
<view class="panel-title flexb" bindtap="goToAllOrders">
|
||
<text class="lg">我的订单</text>
|
||
<text class="muted">全部订单 ›</text>
|
||
</view>
|
||
<view class="order-nav">
|
||
<view wx:for="{{orderNavXym}}" wx:key="name" class="nav-item" data-status="{{item.statusKey}}" bindtap="goToOrdersWithStatus">
|
||
<view class="icon-wrap">
|
||
<view wx:if="{{item.showBadge && item.badge > 0}}" class="nav-badge">{{item.badge}}</view>
|
||
<image class="nav-icon" src="{{item.icon}}" mode="aspectFit"/>
|
||
</view>
|
||
<text class="sm">{{item.name}}</text>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
|
||
<view class="my-box shadow trade-box">
|
||
<view class="section-hd">交易明细</view>
|
||
<view class="trade-list">
|
||
<view wx:for="{{tradeNavXym}}" wx:key="name" class="trade-item" data-type="{{item.type}}" bindtap="goToTradeNav">
|
||
<view class="trade-icon-wrap">
|
||
<view wx:if="{{item.showBadge && item.badge > 0}}" class="nav-badge">{{item.badge > 99 ? '99+' : item.badge}}</view>
|
||
<image class="trade-icon" src="{{item.icon}}" mode="aspectFit"/>
|
||
</view>
|
||
<text class="sm">{{item.name}}</text>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
|
||
<view class="my-box shadow invite-box">
|
||
<view class="section-hd">好友邀请</view>
|
||
<view class="invite-row">
|
||
<view wx:for="{{inviteNavXym}}" wx:key="name" class="invite-item" data-action="{{item.action}}" bindtap="onInviteNavTap">
|
||
<image class="invite-icon" src="{{item.icon}}" mode="aspectFit"/>
|
||
<text class="sm">{{item.name}}</text>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
|
||
<view class="my-box shadow more-box">
|
||
<view class="section-hd">更多功能</view>
|
||
<view class="func-list">
|
||
<view
|
||
wx:for="{{moreFuncList}}"
|
||
wx:key="action"
|
||
class="func-item-xym"
|
||
bindtap="onMoreFuncTap"
|
||
data-action="{{item.action}}"
|
||
data-auth-type="{{item.authType}}"
|
||
data-rank-type="{{item.rankType}}"
|
||
>
|
||
<view class="func-icon-wrap"><image class="func-icon-xym" src="{{item.icon}}" mode="aspectFit"/></view>
|
||
<text class="func-txt-xym">{{item.name}}</text>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
|
||
<view class="load-tip">— 已加载全部 —</view>
|
||
<view class="content-bottom"></view>
|
||
</scroll-view>
|
||
|
||
<view class="follow-kuaishou {{followClass}}" bindtap="toggleFollowKuaishou" wx:if="{{false}}">
|
||
<image class="ks-icon" src="{{ksIcon}}" mode="aspectFit"/>
|
||
<text wx:if="{{followExpanded}}" class="ks-text" catchtap="goToGuanzhuKs">关注快手</text>
|
||
</view>
|
||
|
||
<tab-bar/>
|
||
<tousu-float />
|
||
</view>
|
||
</block>
|
||
|
||
<view class="loading-mask" wx:if="{{isLoading}}">
|
||
<view class="loading-spinner"></view>
|
||
</view>
|
||
|
||
<global-notification id="global-notification"/>
|
||
<popup-notice id="popupNotice"/>
|
||
<pindao-modal
|
||
visible="{{pindaoVisible}}"
|
||
title="{{pindaoTitle}}"
|
||
channelNo="{{pindaoChannelNo}}"
|
||
images="{{pindaoImages}}"
|
||
bind:close="closePindaoModal"
|
||
/>
|