examtest_mp/pages/my/index.wxml

151 lines
8.4 KiB
Plaintext

<!-- <view class="page"> -->
<view class="page">
<view class="blueBack"></view>
<view class="absoluteContentWrap">
<view class="userImgWrap" bindtap="register">
<view class="userImg">
<!--<image src="/images/autar.png"></image>-->
<open-data type="userAvatarUrl"></open-data>
</view>
</view>
<view class="infoContent" bindtap="register">
<view style="width: 100%;height: 84rpx;"></view>
<view wx:if="{{userinfo && userinfo.username}}" style="text-align: center;color: #666666;font-size: 30rpx;">
<span>{{userinfo.role_name}}:</span>
<span>{{userinfo.name}}</span>
<view style="color:#aaaaaa;font-size:28rpx">{{userinfo.username}}</view>
</view>
<view wx:else class="weui-media-box__desc" style="text-align: center;color: #666666;">
<view> 昵称:<open-data type="userNickName"></open-data></view>
<navigator url="/pages/login/login">
<span class="loginBtn">去登陆</span>
</navigator>
</view>
<view class="kaoshiWrap">
<view class="kaoshiItem"><text>考试次数</text><text>{{total}}</text></view>
<view class="kaoshiItem"><text>及格率</text><text>{{pass_rate}}</text></view>
<view class="kaoshiItem"><text>平均分</text><text>{{avg_score}}</text></view>
</view>
</view>
<view class="container">
<!-- <button open-type="getUserInfo" bindgetuserinfo="getMyInfo">点击</button> -->
</view>
<view class="totalStatic">
<view style="padding-left: 20rpx;"><text class="boldLine"></text>统计分析</view>
<view class="weui-cells weui-cells_after-title" style="padding:20rpx;box-sizing:border-box">
<navigator url="/pages/workscope/index" class="weui-cell weui-cell_access">
<view class="weui-cell__hd">
<image src="/images/workType.png" style="margin-right: 16px;vertical-align: middle;width:25px; height: 25px;">
</image>
</view>
<view class="weui-cell__bd">工作类别</view>
<view class="weui-cell__ft" style="font-weight:bold;font-size:15px;color:#017748" wx:if="{{userinfo.workscope_name}}">
{{userinfo.workscope_name}}</view>
<view class="weui-cell__ft" style="font-weight:bold;color:#017748" wx:else>无</view>
</navigator>
<navigator url="/pages/exam/total" class="weui-cell weui-cell_access" hover-class="weui-cell_active">
<view class="weui-cell__hd">
<image src="/images/pingjun.png" style="margin-right: 16px;vertical-align: middle;width:25px; height: 25px;"></image>
</view>
<view class="weui-cell__bd">考试统计</view>
<view class="weui-cell__ft weui-cell__ft_in-access" style="color:red"></view>
</navigator>
<navigator url="/pages/my/certificate" class="weui-cell weui-cell_access" hover-class="weui-cell_active">
<view class="weui-cell__hd">
<image src="/images/lianxi.png" style="margin-right: 16px;vertical-align: middle;width:25px; height: 25px;"></image>
</view>
<view class="weui-cell__bd">联系我们</view>
</navigator>
</view>
</view>
<!-- <view class="totalStatic">
<view style="padding-left: 20rpx;"><text class="boldLine"></text>管理员操作台</view>
<view class="weui-cells weui-cells_after-title" style="padding:20rpx;box-sizing:border-box">
<navigator url="/pages/admin/login" class="weui-cell weui-cell_access">
<view class="weui-cell__hd">
<image src="/images/admin.png" style="margin-right: 16px;vertical-align: middle;width:20px; height: 20px;">
</image>
</view>
<view class="weui-cell__bd">管理员入口</view>
<view class="weui-cell__ft weui-cell__ft_in-access" style="color:red"></view>
</navigator>
</view>
</view> -->
</view>
<!-- <view class="page__bd">
<view class="weui-cells weui-cells_after-title" style="margin-top:0px">
<view class="weui-panel__bd">
<view class="weui-media-box weui-media-box_appmsg" hover-class="weui-cell_active" bindtap="register">
<view class="weui-media-box__hd weui-media-box__hd_in-appmsg" style="border-radius:6px;overflow:hidden">
<open-data type="userAvatarUrl"></open-data>
</view>
<view class="weui-media-box__bd weui-media-box__bd_in-appmsg">
<view class="weui-media-box__title" wx:if="{{userinfo && userinfo.username}}">
<span>{{userinfo.role_name}}:</span>
<span style="font-weight:bold;">{{userinfo.name}}</span>
</view>
<view class="weui-media-box__desc" wx:else style="display: flex;justify-content: space-between;color: #666666;">
<view> 昵称:<open-data type="userNickName"></open-data></view>
<navigator url="/pages/login/login">
<span style="position: absolute;top:30rpx;right:20rpx;color:#ffffff;background-color: #7bbd52;padding: 15rpx;border-radius: 10rpx;display: inline-block;">去登陆</span>
</navigator>
</view>
<view class="weui-media-box__desc" style="color: #666666;">单位:
<span wx:if="{{userinfo && userinfo.company_name}}">{{ userinfo.company_name }}</span>
<span vx:else>未录入</span>
</view>
<view style="font-size: 22rpx;color: #999999;padding-top: 15rpx;">如需解绑账号请联系课程顾问</view>
</view>
</view>
</view>
</view>
<view class="weui-cells__title">统计分析</view>
<view class="weui-cells weui-cells_after-title" style="padding:20rpx;box-sizing:border-box">
<navigator url="/pages/workscope/index" class="weui-cell weui-cell_access">
<view class="weui-cell__hd">
<image src="/images/workType.png" style="margin-right: 16px;vertical-align: middle;width:20px; height: 20px;">
</image>
</view>
<view class="weui-cell__bd">工作类别</view>
<view class="weui-cell__ft" style="font-weight:bold;color:#7bbd52" wx:if="{{userinfo.workscope_name}}">
{{userinfo.workscope_name}}</view>
<view class="weui-cell__ft" style="font-weight:bold;color:#7bbd52" wx:else>无</view>
</navigator>
<navigator url="/pages/exam/total" class="weui-cell weui-cell_access" hover-class="weui-cell_active">
<view class="weui-cell__hd">
<image src="/images/pingjun.png" style="margin-right: 16px;vertical-align: middle;width:20px; height: 20px;"></image>
</view>
<view class="weui-cell__bd">考试统计</view>
<view class="weui-cell__ft weui-cell__ft_in-access" style="color:red"></view>
</navigator>
</view>
<view class="weui-cells__title">管理员操作台</view>
<view class="weui-cells weui-cells_after-title">
<navigator url="/pages/admin/login" class="weui-cell weui-cell_access">
<view class="weui-cell__bd">管理员入口</view>
<view class="weui-cell__ft weui-cell__ft_in-access" style="color:red"></view>
</navigator>
</view>
</view> -->
<view class="infoViewWrap" wx:if="{{infoView}}" bindtap="closeView">
<view class="infoView">
<view style="text-align: center;">个人信息</view>
<view class="infoItem" wx:if="{{userinfo.name!==null}}"><view class="itemLeft">用户姓名:</view>{{userinfo.name}}</view>
<view class="infoItem" wx:if="{{userinfo.company_name!==null}}"><view class="itemLeft">就职单位:</view>{{userinfo.company_name}}</view>
<view class="infoItem" wx:if="{{userinfo.deptname!==null}}"><view class="itemLeft">所在部门:</view>{{userinfo.deptname}}</view>
<view class="infoItem" wx:if="{{userinfo.username!==null}}"><view class="itemLeft">联系方式:</view>{{userinfo.username}}</view>
<view class="infoItem" wx:if="{{userinfo.workscope_name!==null}}"><view class="itemLeft">工作类别:</view>{{userinfo.workscope_name}}</view>
<view class="infoItem" wx:if="{{userinfo.role_name!==null}}"><view class="itemLeft">用户类型:</view>{{userinfo.role_name}}</view>
<view class="infoItem" wx:if="{{userinfo.exceed_date!==null}}"><view class="itemLeft">有效期至:</view>{{userinfo.exceed_date}}</view>
<view class="button-container">
<button bindtap="onButtonClick" class="my-button">修改基本信息</button>
</view>
</view>
</view>
</view>