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.
44 lines
2.3 KiB
44 lines
2.3 KiB
<view class="user-display">
|
|
<navigator wx:if="{{!user.id}}" class="user-info no-login" style="display: flex;align-items: center;" url="/account/pages/account/account?action=login">
|
|
<image src="{{imgDir}}blank_info_bg.png" style="width: 50px; height:50px; padding:12px"></image>
|
|
<text class="color-grey ft14 m12">点击登陆,获取更多内容</text>
|
|
</navigator>
|
|
|
|
<block wx:else>
|
|
<navigator hover-class="none" class="user-info p4" url="/account/pages/profile/profile">
|
|
<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>
|
|
</view>
|
|
</view>
|
|
</block>
|
|
</view>
|
|
|
|
<view class="nav-list">
|
|
<navigator class="nav" url="/account/pages/change_password/change_password">修改密码</navigator>
|
|
<view class="nav addclass" bindtap="show_join_course_modal">加入课程</view>
|
|
<navigator url="/course/pages/course_setting/course_setting?intent=create" class="nav createclass">创建课程</navigator>
|
|
<button open-type="feedback" class="nav" style="width:auto">小程序反馈</button>
|
|
<button open-type="contact" class="nav" style="width:auto">小程序客服</button>
|
|
<view class="nav" bindtap="update">当前版本:{{version}}</view>
|
|
<navigator url="/account/pages/about/about" class="nav about">关于</navigator>
|
|
</view>
|
|
<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="{{!show_join_course_modal}}" /> |