You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

80 lines
4.1 KiB

<view class="user-display">
<navigator hidden="{{user.id}}" class="no-login" style="display: flex;align-items: center;" url="/account/pages/account/account?action=login">
<image src="{{imgDir}}blank_info_bg.png"></image>
<text class="color-grey ft14 m12">点击登陆,获取更多内容</text>
</navigator>
<block wx:if="{{user.id}}">
<navigator hover-class="none" url="/account/pages/profile/profile" class="user-info p4">
<image src="{{eduImgDir}}{{user.avatar_url}}" class="avatar fl m4" catchtap="onTapAvatar" data-url="{{user.avatar_url}}"></image>
<view class="user-detail fl">
<text>{{user.name}}</text>
<iconfont catchtap class="auth-tip" type="authentication" color="{{user.authentication?'#00b0f0':'#bbbbbb'}}" size="22" info="{{user.authentication?'已实名认证':'未实名认证'}}" />
<iconfont catchtap type="certification" size="22" color="{{user.professional_certification?'#00b0f0':'#bbbbbb'}}" info="{{user.professional_certification?'已职业认证':'未职业认证'}}" />
</view>
<text class="tip" wx:if="{{!profile_completed}}">完善个人信息</text>
<iconfont type="jinru" color="dimgrey" size="15" class="enter"></iconfont>
</navigator>
<view class="relation-info">
<view class="relation-detail">
<text>经验值</text>
<text>{{user.experience}}</text>
</view>
<view class="relation-detail">
<text>金币</text>
<text>{{user.grade}}</text>
</view>
<view class="relation-detail attendance">
<button class="attendance" type="cap" plain="{{user.attendance_signed}}" size="mini" disabled="{{user.attendance_signed}}" bindtap="attendance">{{user.attendance_signed?'已签到':'签到'}}</button>
<switch class="auto-attendance" color="#00b0f0" checked="{{auto_attendance}}" bindtap="tapAutoAttendence">自动签到</switch>
</view>
</view>
</block>
</view>
<view class="nav-list" bindtap="enterPage">
<navigator target="miniProgram" app-id="wx2402d86a6b534f77" class="nav gap educoder">
<image src="{{attachDir}}872467" class="icon"></image>
EduCoder云网
<text class="tip">推荐使用</text>
<iconfont type="jinru" color="dimgrey" size="15" class="enter"/>
</navigator>
<view class="nav enter" data-path="change_password">
<iconfont class="icon" type="xiugaimima" size="21" />修改密码
<iconfont type="jinru" color="dimgrey" size="15" class="enter"></iconfont>
</view>
<!--view class="nav" data-path="authentication">
<iconfont class="icon" type="shimingrenzheng" size="21" />实名认证
<iconfont type="jinru" color="dimgrey" size="15" class="enter"></iconfont>
</view-->
<view class="nav gap" data-path="pro_authentication">
<iconfont class="icon" type="wode-zhiyerenzheng" size="21" />职业认证
<iconfont type="jinru" color="dimgrey" size="15" class="enter"></iconfont>
</view>
<button open-type="feedback" class="nav" style="width:auto">
<iconfont class="icon" type="fankui" size="21" />小程序反馈
<iconfont type="jinru" color="dimgrey" size="15" class="enter"></iconfont>
</button>
<button open-type="contact" class="nav" style="width:auto">
<iconfont class="icon" type="kefu" size="21" />小程序客服
<iconfont type="jinru" color="dimgrey" size="15" class="enter"></iconfont>
</button>
<navigator url="/account/pages/about/about" class="nav about gap">
<iconfont class="icon" type="guanyu" size="21" />关于
<iconfont type="jinru" color="dimgrey" size="15" class="enter"></iconfont>
</navigator>
<navigator class="nav" url="/account/pages/accounts/accounts">
<iconfont class="icon" size="21" type="qiehuanzhanghao" />切换账号
<text class="tip">{{currentLogin}}</text>
<iconfont type="jinru" color="dimgrey" size="15" class="enter"></iconfont>
</navigator>
</view>
<view>
<button class="login" type="main" wx:if="{{!user.id||user.id==2}}" bindtap="enter_login">登录</button>
<button class="login logout" wx:elif="{{user.id!=2}}" bindtap="logout">退出登录</button>
</view>
<view class="version">
<text catchtap="onTapVersion" bindlongpress="enterUserinfo">当前版本:{{version}}</text>
</view>