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.

45 lines
2.2 KiB

5 years ago
<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>
5 years ago
<text class="color-grey ft14 m12">点击登陆,获取更多内容</text>
</navigator>
<block wx:if="{{user.id}}">
<navigator hover-class="none" class="user-info p4">
5 years ago
<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>
</view>
</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>
5 years ago
</view>
</view>
</block>
</view>
<view class="nav-list" bindtap="enterPage">
<view class="nav" data-path="change_password">修改密码</view>
<view class="nav addclass" catchtap="showModal">加入课程</view>
<view class="nav createclass" data-path="course_setting">创建课程</view>
5 years ago
<button open-type="feedback" class="nav" style="width:auto">小程序反馈</button>
<button open-type="contact" class="nav" style="width:auto">小程序客服</button>
<view class="nav" catchtap="onTapVersion">当前版本:{{version}}</view>
5 years ago
<navigator url="/account/pages/about/about" class="nav about">关于</navigator>
</view>
5 years ago
<view>
<button class="login" type="main" wx:if="{{!user.id||user.id==2}}" bindtap="enter_login">登录</button>
<button class="logout" wx:elif="{{user.id!=2}}" bindtap="logout">退出登录</button>
</view>
<join-course-modal hidden="{{!showModal}}" />