This commit is contained in:
parent
9dc605192f
commit
9d870dbc00
|
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<view class="page">
|
<view class="page">
|
||||||
<u-navbar leftIcon="" title="首页" placeholder />
|
<u-navbar title="首页" placeholder @leftClick="leftClick" />
|
||||||
<view class="search">
|
<view class="search">
|
||||||
<uni-icons type="scan" size="24" style="margin-right: 2vw; color: #bababa" @click="toggleScan"></uni-icons>
|
<uni-icons type="scan" size="24" style="margin-right: 2vw; color: #bababa" @click="toggleScan"></uni-icons>
|
||||||
<uni-easyinput
|
<uni-easyinput
|
||||||
|
|
@ -196,6 +196,19 @@ export default {
|
||||||
url: `/pages/YNEduApp/learnProj/learnProjDetail?id=${id}`
|
url: `/pages/YNEduApp/learnProj/learnProjDetail?id=${id}`
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
// 返回
|
||||||
|
leftClick() {
|
||||||
|
console.log('返回')
|
||||||
|
// 退出登录
|
||||||
|
uni.removeStorageSync('access_token')
|
||||||
|
uni.removeStorageSync('userId')
|
||||||
|
uni.removeStorageSync('userName')
|
||||||
|
uni.removeStorageSync('className')
|
||||||
|
uni.removeStorageSync('facePath')
|
||||||
|
uni.reLaunch({
|
||||||
|
url: '/pages/gzt/index'
|
||||||
|
})
|
||||||
|
}
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
/* getNoticeAnnoByUserId({
|
/* getNoticeAnnoByUserId({
|
||||||
|
|
|
||||||
|
|
@ -5,33 +5,38 @@
|
||||||
<h2 style="margin-bottom: 15rpx">{{ name }}</h2>
|
<h2 style="margin-bottom: 15rpx">{{ name }}</h2>
|
||||||
<span style="font-size: 12px; color: #b0b0b0">合格标准:{{ eligibility }}</span>
|
<span style="font-size: 12px; color: #b0b0b0">合格标准:{{ eligibility }}</span>
|
||||||
<view class="user-info">
|
<view class="user-info">
|
||||||
<view class="info-lef">
|
<div style="font-size: 18px">{{ createUserName }}</div>
|
||||||
|
<div class="training-content">
|
||||||
|
<div style="width: 80px">培训内容:</div>
|
||||||
|
<span class="content">{{ listStageContentNum }}</span>
|
||||||
|
</div>
|
||||||
|
<!-- <view class="info-lef">
|
||||||
<view class="avatar">
|
<view class="avatar">
|
||||||
<!-- <image src="/static/eduImg/avatar.jpg"></image> -->
|
<image src="/static/eduImg/avatar.jpg"></image>
|
||||||
<span style="font-size: 18px">{{ createUserName }}</span>
|
<div style="font-size: 18px">{{ createUserName }}</div>
|
||||||
</view>
|
</view>
|
||||||
<!-- <view style="display: flex; align-items: center">
|
<view style="display: flex; align-items: center">
|
||||||
<l-starRate v-model="starRate" :disabled="true" style="margin-right: 1vw"></l-starRate>
|
<l-starRate v-model="starRate" :disabled="true" style="margin-right: 1vw"></l-starRate>
|
||||||
<span style="color: #ffca3e">{{ starRate }}.0</span>
|
<span style="color: #ffca3e">{{ starRate }}.0</span>
|
||||||
</view> -->
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="info-rig">
|
<view class="info-rig">
|
||||||
<view class="rig-up">
|
<view class="rig-up">
|
||||||
<view>
|
<view>
|
||||||
培训内容
|
培训内容
|
||||||
<span>{{ listStageContentNum }}</span>
|
<span>{{ 'listStageContentNum' }}</span>
|
||||||
</view>
|
</view>
|
||||||
<!-- <view style="margin-left: 2vw">
|
<view style="margin-left: 2vw">
|
||||||
观看记录
|
观看记录
|
||||||
<span>28</span>
|
<span>28</span>
|
||||||
<uni-icons style="color: #b0b0b0" type="right" size="12"></uni-icons>
|
<uni-icons style="color: #b0b0b0" type="right" size="12"></uni-icons>
|
||||||
</view> -->
|
|
||||||
</view>
|
</view>
|
||||||
<!-- <view class="rig-dn">
|
</view>
|
||||||
|
<view class="rig-dn">
|
||||||
去评分
|
去评分
|
||||||
<uni-icons style="color: #b0b0b0" type="right" size="12"></uni-icons>
|
<uni-icons style="color: #b0b0b0" type="right" size="12"></uni-icons>
|
||||||
</view> -->
|
|
||||||
</view>
|
</view>
|
||||||
|
</view> -->
|
||||||
</view>
|
</view>
|
||||||
<!-- <view class="tip">已开启进度同步,其他途径的学习进度已自动同步</view> -->
|
<!-- <view class="tip">已开启进度同步,其他途径的学习进度已自动同步</view> -->
|
||||||
<u-collapse>
|
<u-collapse>
|
||||||
|
|
@ -360,16 +365,22 @@ export default {
|
||||||
|
|
||||||
.user-info {
|
.user-info {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 8vh;
|
/* height: 8vh; */
|
||||||
display: flex;
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
margin-top: 2vh;
|
margin-top: 2vh;
|
||||||
|
margin-bottom: 2vh;
|
||||||
|
|
||||||
|
.training-content {
|
||||||
|
word-wrap: break-word; // 允许长单词换行
|
||||||
|
white-space: normal;
|
||||||
|
}
|
||||||
|
|
||||||
.info-lef {
|
.info-lef {
|
||||||
width: 35%;
|
width: 35%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
justify-content: space-around;
|
|
||||||
|
|
||||||
.avatar {
|
.avatar {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
|
||||||
|
|
@ -58,10 +58,10 @@ export default {
|
||||||
allDuration: 0,
|
allDuration: 0,
|
||||||
value: 0, //
|
value: 0, //
|
||||||
secList: [
|
secList: [
|
||||||
{ id: 1, title: '切换门户', src: '/static/eduImg/changeGate.png', path: 'changeGate' },
|
// { id: 1, title: '切换门户', src: '/static/eduImg/changeGate.png', path: 'changeGate' },
|
||||||
{ id: 2, title: '人脸识别', src: '/static/eduImg/faceScan.png', path: 'faceScan' },
|
{ id: 2, title: '人脸识别', src: '/static/eduImg/faceScan.png', path: 'faceScan' },
|
||||||
{ id: 3, title: '我的消息', src: '/static/eduImg/myMsg.png', path: 'myMsg' },
|
{ id: 3, title: '我的消息', src: '/static/eduImg/myMsg.png', path: 'myMsg' },
|
||||||
{ id: 4, title: '设置', src: '/static/eduImg/settings.png', path: 'settings' }
|
// { id: 4, title: '设置', src: '/static/eduImg/settings.png', path: 'settings' }
|
||||||
],
|
],
|
||||||
token: uni.getStorageSync('access_token')
|
token: uni.getStorageSync('access_token')
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -19,7 +19,7 @@
|
||||||
<view class="yy-box">
|
<view class="yy-box">
|
||||||
<view class="bt">我的应用</view>
|
<view class="bt">我的应用</view>
|
||||||
<view class="yy-list">
|
<view class="yy-list">
|
||||||
<view class="yy-one" @click="gotoYy" v-for="(item,index) in myApp" :key="index">
|
<view class="yy-one" @click="gotoYy(item.appName)" v-for="(item,index) in myApp" :key="index">
|
||||||
<view class="yy-img">
|
<view class="yy-img">
|
||||||
<image :src="item.base64Url"></image>
|
<image :src="item.base64Url"></image>
|
||||||
</view>
|
</view>
|
||||||
|
|
|
||||||
|
|
@ -165,7 +165,7 @@
|
||||||
// globalConfig: getApp().globalData.config,
|
// globalConfig: getApp().globalData.config,
|
||||||
selectTab: 1,
|
selectTab: 1,
|
||||||
loginForm: {
|
loginForm: {
|
||||||
phone: 15856165378,
|
phone: '15856165378',
|
||||||
pd: 'YNsbd@123456',//YNsbd@123456
|
pd: 'YNsbd@123456',//YNsbd@123456
|
||||||
},
|
},
|
||||||
loginForm0: {
|
loginForm0: {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue