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.
164 lines
8.2 KiB
164 lines
8.2 KiB
<view class="profile-display">
|
|
<navigator hidden="{{!user.id}}" class="user-info-display" hover-class="none" url="/account/pages/profile/profile">
|
|
<image class="user-avatar" src="{{eduImgDir}}{{user.avatar_url}}"
|
|
catchtap="onTapAvatar" data-url="{{user.avatar_url}}"/>
|
|
<view class="user-info-mid">
|
|
<view class="single-line user-name">{{user.name}}</view>
|
|
<view class="flex-row authentication-display">
|
|
<iconfont catchtap class="authentication-tip" type="authentication"
|
|
showtype="toast" color="{{user.authentication?'white':'#ffffff55'}}"
|
|
size="26" info="{{user.authentication?'已实名认证':'未实名认证'}}" />
|
|
<iconfont catchtap type="certification" showtype="toast"
|
|
size="26" color="{{user.professional_certification?'white':'#ffffff55'}}"
|
|
info="{{user.professional_certification?'已职业认证':'未职业认证'}}" />
|
|
<text class="complete-profile-tip" wx:if="{{!profile_completed}}">完善信息</text>
|
|
</view>
|
|
</view>
|
|
<view class="user-info-left">
|
|
<iconfont type="jinru" color="white" size="15" class="enter"></iconfont>
|
|
</view>
|
|
</navigator>
|
|
<navigator hover-class="none" wx:if="{{!user.id}}" class="user-info-display require-login" url="/account/pages/account/account?action=login">
|
|
<image src="{{imgDir}}blank_info_bg.png"></image>
|
|
<text class="ft14 m12">点击登陆,获取更多内容</text>
|
|
</navigator>
|
|
<view class="experience-display flex-row">
|
|
<view class="flex-col experience-item">
|
|
<view class="key">经验值</view>
|
|
<view class="value">{{user.experience||0}}</view>
|
|
|
|
</view>
|
|
<view class="flex-col experience-item">
|
|
<view class="key attendance" bindtap="attendance">金币</view>
|
|
<view class="value attendance" bindtap="attendance">
|
|
{{user.grade||0}}
|
|
<iconfont class="attendance-icon" type="qiandao" color="{{user.attendance_signed?'#ffffff77':'#FEB532'}}" />
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
<view class="box">
|
|
<view class="box-background"></view>
|
|
<view class="whitebox">
|
|
<navigator hover-class="btn-hover" url="/mooc_case/pages/mooc_cases/mooc_cases"
|
|
class="box_context">
|
|
<view class="left-content">
|
|
<view><iconfont class="icon-button" color="#FEB532" type="anli" size="30" /> </view>
|
|
<view>
|
|
<view>教学案例</view>
|
|
<view class="red-tip">查看获奖案例</view>
|
|
</view>
|
|
</view>
|
|
<view class="right"> <iconfont type="jinru" color="lightgrey" size="15" class="enter"></iconfont> </view>
|
|
</navigator>
|
|
<navigator hover-class="btn-hover" url="/competition/pages/competitions/competitions" class="box_context">
|
|
<view class="left-content">
|
|
<view> <iconfont class="icon-button" color="#FEB532" type="jingsai" size="30" /> </view>
|
|
<view>
|
|
<view>在线竞赛</view>
|
|
<view class="red-tip">绿色计算大赛</view>
|
|
</view>
|
|
</view>
|
|
<view class="right"> <iconfont type="jinru" color="lightgrey" size="15" class="enter"></iconfont> </view>
|
|
</navigator>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
<!--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 educoder">
|
|
<image src="{{attachDir}}872467" class="icon"></image>
|
|
EduCoder云网
|
|
<text class="tip">推荐使用</text>
|
|
<iconfont type="jinru" color="lightgrey" size="15" class="enter"/>
|
|
</navigator-->
|
|
<!--navigator url="/mooc_case/pages/mooc_cases/mooc_cases" class="nav">
|
|
<iconfont class="icon" type="anli" size="21" />教学案例
|
|
<iconfont type="jinru" color="lightgrey" size="15" class="enter"></iconfont>
|
|
</navigator>
|
|
<navigator url="/competition/pages/competitions/competitions" class="nav gap">
|
|
<iconfont class="icon" type="jingsai" size="21" />在线竞赛
|
|
<iconfont type="jinru" color="lightgrey" size="15" class="enter"></iconfont>
|
|
</navigator-->
|
|
<view class="nav enter" data-path="change_password">
|
|
<iconfont class="icon" color="#0080f0" type="xiugaimima" size="21" />修改密码
|
|
<iconfont type="jinru" color="lightgrey" size="15" class="enter"></iconfont>
|
|
</view>
|
|
<!--view class="nav" data-path="authentication">
|
|
<iconfont class="icon" type="shimingrenzheng" size="21" />实名认证
|
|
<iconfont type="jinru" color="lightgrey" size="15" class="enter"></iconfont>
|
|
</view-->
|
|
<view class="nav gap" data-path="pro_authentication">
|
|
<iconfont class="icon" color="#0080f0" type="wode-zhiyerenzheng" size="21" />职业认证
|
|
<iconfont type="jinru" color="lightgrey" size="15" class="enter"></iconfont>
|
|
</view>
|
|
|
|
<button open-type="feedback" class="nav" style="width:auto">
|
|
<iconfont class="icon" color="#0080f0" type="fankui" size="21" />小程序反馈
|
|
<text class="tip">有问题,来反馈</text>
|
|
<iconfont type="jinru" color="lightgrey" size="15" class="enter"></iconfont>
|
|
</button>
|
|
<button open-type="contact" class="nav" style="width:auto">
|
|
<iconfont class="icon" color="#0080f0" type="kefu" size="21" />小程序客服
|
|
<iconfont type="jinru" color="lightgrey" size="15" class="enter"></iconfont>
|
|
</button>
|
|
<navigator bindlongpress="onTapVersion" class="nav gap" url="/setting/pages/setting/setting">
|
|
<iconfont type="shezhi" color="#0080f0" class="icon" size="21"/>设置
|
|
<text class="tip">v{{version}}</text>
|
|
<iconfont type="jinru" color="lightgrey" size="15" class="enter"/>
|
|
</navigator>
|
|
<!--navigator url="/markdown/account/about/about" class="nav about gap">
|
|
<iconfont class="icon" type="guanyu" size="21" />关于
|
|
<iconfont type="jinru" color="lightgrey" size="15" class="enter"></iconfont>
|
|
</navigator-->
|
|
<navigator class="nav" bindlongpress="enterUserinfo" url="/account/pages/accounts/accounts">
|
|
<iconfont class="icon" color="#0080f0" size="21" type="qiehuanzhanghao" />切换账号
|
|
<text class="tip">{{currentLogin}}</text>
|
|
<iconfont type="jinru" color="lightgrey" 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" type="error" wx:elif="{{user.id!=2}}" bindtap="logout">退出登录</button>
|
|
</view>
|
|
|
|
<view class="version-wrp">
|
|
<view bindtap="enterGitrepo" class="git-repo">
|
|
<iconfont class="icon" type="git" size="14"/>参与开源
|
|
</view>
|
|
</view> |