flat: 暂存
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
<template>
|
||||
<view class="app-container">
|
||||
<view class="mine-AI">AI+就业服务程序</view>
|
||||
<view class="mine-userinfo">
|
||||
<AppLayout title="我的" back-gorund-color="#F4F4F4">
|
||||
<view class="mine-userinfo btn-feel" @click="navTo('/packageA/pages/myResume/myResume')">
|
||||
<view class="userindo-head">
|
||||
<image class="userindo-head-img" v-if="userInfo.age === '0'" src="/static/icon/boy.png"></image>
|
||||
<image class="userindo-head-img" v-if="userInfo.sex === '0'" src="/static/icon/boy.png"></image>
|
||||
<image class="userindo-head-img" v-else src="/static/icon/girl.png"></image>
|
||||
</view>
|
||||
<view class="userinfo-ls">
|
||||
@@ -14,46 +13,90 @@
|
||||
<view class="userinfo-ls-resume" v-else>简历完成度 {{ Completion }}</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="mine-tab">
|
||||
<view class="tab-item" @click="navTo('/packageA/pages/myResume/myResume')">
|
||||
<image class="item-img" src="/static/icon/resume.png"></image>
|
||||
<view class="item-text">我的简历</view>
|
||||
<view class="mini-number">
|
||||
<view class="numbe-item button-click" @click="navTo('/packageA/pages/Intendedposition/Intendedposition')">
|
||||
<view class="mini-num">{{ counts.applyCount }}</view>
|
||||
<view class="mini-text">投递</view>
|
||||
</view>
|
||||
<view class="tab-item" @click="navTo('/packageA/pages/collection/collection')">
|
||||
<image class="item-img" src="/static/icon/collect.png"></image>
|
||||
<view class="item-text">我的收藏</view>
|
||||
<view class="numbe-item button-click" @click="navTo('/packageA/pages/collection/collection')">
|
||||
<view class="mini-num">{{ counts.collectionCount }}</view>
|
||||
<view class="mini-text">收藏</view>
|
||||
</view>
|
||||
<view class="tab-item" @click="navTo('/packageA/pages/browseJob/browseJob')">
|
||||
<image class="item-img" src="/static/icon/browse.png"></image>
|
||||
<view class="item-text">我的浏览</view>
|
||||
<view class="numbe-item button-click" @click="navTo('/packageA/pages/browseJob/browseJob')">
|
||||
<view class="mini-num">{{ counts.jobReviewCount }}</view>
|
||||
<view class="mini-text">足迹</view>
|
||||
</view>
|
||||
<view class="tab-item" @click="navTo('/packageA/pages/Intendedposition/Intendedposition')">
|
||||
<image class="item-img" src="/static/icon/quaters.png"></image>
|
||||
<view class="item-text">意向岗位</view>
|
||||
<view class="numbe-item button-click" @click="navTo('/packageA/pages/reservation/reservation')">
|
||||
<view class="mini-num">{{ counts.fairCollecitonCount }}</view>
|
||||
<view class="mini-text">预约</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="mine-options">
|
||||
<view class="mine-options-item">实名认证</view>
|
||||
<view class="mine-options-item">素质测评</view>
|
||||
<view class="mine-options-item">AI面试</view>
|
||||
<!-- <view class="mine-options-item">账号与安全</view> -->
|
||||
<view class="mine-options-item">通知与提醒</view>
|
||||
<view class="mine-logout" @click="logOut">退出登录</view>
|
||||
<view class="mini-cards">
|
||||
<view class="card-top btn-feel">
|
||||
<view class="top-title line_1">
|
||||
<text>{{ userInfo.name || '暂无用户名' }}</text>
|
||||
|
|
||||
<dict-Label dictType="education" :value="userInfo.education"></dict-Label>
|
||||
</view>
|
||||
<view class="top-subTitle line_1">
|
||||
<text v-for="(item, index) in userInfo.jobTitle" :key="index">
|
||||
{{ item }}
|
||||
<text v-if="userInfo.jobTitle.length - 1 !== index">|</text>
|
||||
</text>
|
||||
</view>
|
||||
<view class="top-btn button-click" @click="navTo('/packageA/pages/personalInfo/personalInfo')">
|
||||
修改简历
|
||||
</view>
|
||||
</view>
|
||||
<view class="card-main">
|
||||
<view class="main-title">服务专区</view>
|
||||
<view class="main-row btn-feel">
|
||||
<view class="row-left">
|
||||
<image class="left-img" src="@/static/icon/server1.png"></image>
|
||||
<text class="left-text">实名认证</text>
|
||||
</view>
|
||||
<view class="row-right">已认证</view>
|
||||
</view>
|
||||
<view class="main-row btn-feel">
|
||||
<view class="row-left">
|
||||
<image class="left-img" src="@/static/icon/server2.png"></image>
|
||||
<text class="left-text">素质测评</text>
|
||||
</view>
|
||||
<view class="row-right">
|
||||
<uni-icons color="#909090" type="right" size="14"></uni-icons>
|
||||
</view>
|
||||
</view>
|
||||
<view class="main-row btn-feel">
|
||||
<view class="row-left">
|
||||
<image class="left-img" src="@/static/icon/server3.png"></image>
|
||||
<text class="left-text">AI面试</text>
|
||||
</view>
|
||||
<view class="row-right">
|
||||
<uni-icons color="#909090" type="right" size="14"></uni-icons>
|
||||
</view>
|
||||
</view>
|
||||
<view class="main-row btn-feel">
|
||||
<view class="row-left">
|
||||
<image class="left-img" src="@/static/icon/server4.png"></image>
|
||||
<text class="left-text">通知与提醒</text>
|
||||
</view>
|
||||
<view class="row-right">已开启</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="card-back button-click" @click="logOut">退出登录</view>
|
||||
<uni-popup ref="popup" type="dialog">
|
||||
<uni-popup-dialog
|
||||
mode="base"
|
||||
title="确定退出登录吗?"
|
||||
type="info"
|
||||
:duration="2000"
|
||||
:before-close="true"
|
||||
@confirm="confirm"
|
||||
@close="close"
|
||||
></uni-popup-dialog>
|
||||
</uni-popup>
|
||||
</view>
|
||||
<uni-popup ref="popup" type="dialog">
|
||||
<uni-popup-dialog
|
||||
mode="base"
|
||||
title="确定退出登录吗?"
|
||||
type="info"
|
||||
:duration="2000"
|
||||
:before-close="true"
|
||||
@confirm="confirm"
|
||||
@close="close"
|
||||
></uni-popup-dialog>
|
||||
</uni-popup>
|
||||
<!-- 自定义tabbar -->
|
||||
<!-- <tabbar-custom :currentpage="4"></tabbar-custom> -->
|
||||
</view>
|
||||
</AppLayout>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
@@ -64,10 +107,13 @@ const { $api, navTo } = inject('globalFunction');
|
||||
import useUserStore from '@/stores/useUserStore';
|
||||
const popup = ref(null);
|
||||
const { userInfo, Completion } = storeToRefs(useUserStore());
|
||||
|
||||
const counts = ref({});
|
||||
function logOut() {
|
||||
popup.value.open();
|
||||
}
|
||||
onShow(() => {
|
||||
getUserstatistics();
|
||||
});
|
||||
|
||||
function close() {
|
||||
popup.value.close();
|
||||
@@ -78,120 +124,180 @@ function confirm() {
|
||||
}
|
||||
|
||||
const isAbove90 = (percent) => parseFloat(percent) < 90;
|
||||
|
||||
function getUserstatistics() {
|
||||
$api.createRequest('/app/user/statistics').then((resData) => {
|
||||
console.log(resData);
|
||||
counts.value = resData.data;
|
||||
});
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="stylus" scoped>
|
||||
.app-container
|
||||
width: 100%;
|
||||
min-height: calc(100vh - var(--window-top) - var(--status-bar-height) - var(--window-bottom));
|
||||
background: linear-gradient( 180deg, #4778EC 0%, #002979 100%);
|
||||
|
||||
.card-top {
|
||||
transition: transform 0.3s ease;
|
||||
transform-style: preserve-3d;
|
||||
}
|
||||
|
||||
.card-top.tilt {
|
||||
transform: perspective(600px) rotateY(8deg) rotateX(4deg);
|
||||
}
|
||||
.mini-cards{
|
||||
padding: 28rpx
|
||||
.card-top{
|
||||
background-image: url('@/static/icon/backAI2.png'), linear-gradient(to left, #9E74FD 0%, #256BFA 63%, #4180FF 100%);
|
||||
background-repeat: no-repeat, no-repeat;
|
||||
background-position: right top, center;
|
||||
background-size: 396rpx 212rpx, cover;
|
||||
padding: 36rpx 36rpx 64rpx 36rpx
|
||||
border-radius: 20rpx 20rpx 0rpx 0rpx;
|
||||
position: relative
|
||||
.top-title{
|
||||
font-weight: 500;
|
||||
font-size: 32rpx;
|
||||
color: #FFFFFF;
|
||||
width: 452rpx;
|
||||
}
|
||||
.top-subTitle{
|
||||
margin-top: 8rpx;
|
||||
font-weight: 500;
|
||||
font-size: 32rpx;
|
||||
color: #FFFFFF;
|
||||
width: 400rpx;
|
||||
}
|
||||
.top-btn{
|
||||
width: 164rpx;
|
||||
height: 64rpx;
|
||||
background: radial-gradient( 0% 24% at 57% 42%, rgba(255,255,255,0) 0%, rgba(255,255,255,0.27) 100%);
|
||||
box-shadow: 0rpx 8rpx 40rpx 0rpx rgba(210,210,210,0.14);
|
||||
border-radius: 80rpx 80rpx 80rpx 80rpx;
|
||||
border: 2rpx solid #D2D2D2;
|
||||
text-align: center
|
||||
line-height: 64rpx
|
||||
font-weight: 500;
|
||||
font-size: 28rpx;
|
||||
color: #FFFFFF;
|
||||
position: absolute
|
||||
right: 44rpx
|
||||
top: 50rpx
|
||||
}
|
||||
}
|
||||
.card-main{
|
||||
background: #FFFFFF;
|
||||
border-radius: 20rpx 20rpx 20rpx 20rpx;
|
||||
position: relative;
|
||||
top: -28rpx
|
||||
padding: 26rpx 60rpx 0 32rpx
|
||||
.main-title{
|
||||
font-weight: 600;
|
||||
font-size: 32rpx;
|
||||
color: #000000;
|
||||
}
|
||||
.main-row{
|
||||
display: flex
|
||||
align-items: center
|
||||
justify-content: space-between
|
||||
.row-left{
|
||||
display: flex
|
||||
align-items: center
|
||||
.left-img{
|
||||
width: 44rpx;
|
||||
height: 44rpx;
|
||||
margin: 32rpx 16rpx 32rpx 10rpx
|
||||
}
|
||||
.left-text{
|
||||
font-weight: 500;
|
||||
font-size: 28rpx;
|
||||
color: #333333;
|
||||
}
|
||||
}
|
||||
.row-right{
|
||||
color: #6E6E6E;
|
||||
font-size: 28rpx;
|
||||
}
|
||||
}
|
||||
.main-row:last-child{
|
||||
margin: 0
|
||||
}
|
||||
}
|
||||
.card-back{
|
||||
height: 96rpx;
|
||||
background: #FFFFFF;
|
||||
border-radius: 20rpx 20rpx 20rpx 20rpx;
|
||||
text-align: center;
|
||||
line-height: 96rpx
|
||||
font-size: 28rpx;
|
||||
color: #256BFA;
|
||||
}
|
||||
}
|
||||
.mini-number{
|
||||
padding: 24rpx
|
||||
display: flex
|
||||
justify-content: space-around
|
||||
.numbe-item{
|
||||
display: flex
|
||||
flex-direction: column
|
||||
justify-content: center
|
||||
align-items: center
|
||||
.mini-num{
|
||||
font-weight: 500;
|
||||
font-size: 44rpx;
|
||||
color: #333333;
|
||||
}
|
||||
.mini-text{
|
||||
font-weight: 400;
|
||||
font-size: 28rpx;
|
||||
color: #6C7282;
|
||||
}
|
||||
}
|
||||
}
|
||||
.mine-userinfo
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
.mine-AI
|
||||
height: 42rpx;
|
||||
font-family: Inter, Inter;
|
||||
font-weight: 400;
|
||||
font-size: 35rpx;
|
||||
color: #FFFFFF;
|
||||
line-height: 41rpx;
|
||||
padding: 85rpx 0 0 30rpx;
|
||||
.mine-userinfo
|
||||
display: flex;
|
||||
justify-content: flex-start;
|
||||
align-items: center;
|
||||
padding: 64rpx;
|
||||
.userindo-head
|
||||
width: 101rpx;
|
||||
height: 101rpx;
|
||||
background: #D9D9D9;
|
||||
border-radius: 50%
|
||||
overflow: hidden
|
||||
margin-right: 40rpx;
|
||||
.userindo-head-img
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
.userinfo-ls
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
.userinfo-ls-name
|
||||
font-size: 42rpx;
|
||||
color: #FFFFFF;
|
||||
.userinfo-ls-resume
|
||||
font-size: 21rpx;
|
||||
color: #D9D9D9;
|
||||
.mine-tab
|
||||
margin: 0 30rpx;
|
||||
height: calc(155rpx - 30rpx);
|
||||
background: #FFFFFF;
|
||||
border-radius: 17rpx 17rpx 17rpx 17rpx;
|
||||
display: flex;
|
||||
padding: 15rpx;
|
||||
.tab-item
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
width: calc(100% / 4);
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
position: relative;
|
||||
.item-img
|
||||
height: 55rpx;
|
||||
width: 50rpx;
|
||||
.item-text
|
||||
font-size: 21rpx;
|
||||
color: #000000;
|
||||
line-height: 25rpx;
|
||||
text-align: center;
|
||||
margin-top: 10rpx;
|
||||
.tab-item::after
|
||||
position: absolute;
|
||||
right: 0;
|
||||
content: '';
|
||||
width: 0rpx;
|
||||
height: 96rpx;
|
||||
border-radius: 0rpx 0rpx 0rpx 0rpx;
|
||||
border-right: 2rpx solid #4778EC;
|
||||
.tab-item:last-child::after
|
||||
border-right: 0;
|
||||
.tab-item:nth-child(2)>.item-img
|
||||
width: 51rpx;
|
||||
height: 45rpx;
|
||||
margin-top: 6rpx;
|
||||
margin-bottom: 4rpx;
|
||||
.tab-item:nth-child(3)>.item-img
|
||||
width: 62rpx;
|
||||
height: 41rpx;
|
||||
margin-top: 6rpx
|
||||
margin-bottom: 10rpx;
|
||||
.tab-item:nth-child(4)>.item-img
|
||||
width: 45rpx;
|
||||
height: 47rpx;
|
||||
margin-bottom: 8rpx;
|
||||
.mine-options
|
||||
margin: 43rpx 30rpx;
|
||||
min-height: 155rpx;
|
||||
background: #FFFFFF;
|
||||
border-radius: 17rpx 17rpx 17rpx 17rpx;
|
||||
display: flex;
|
||||
padding: 24rpx 45rpx;
|
||||
justify-content: flex-start;
|
||||
align-items: center;
|
||||
padding: 30rpx;
|
||||
position: relative;
|
||||
.userindo-head
|
||||
width: 101rpx;
|
||||
height: 101rpx;
|
||||
overflow: hidden
|
||||
border-radius: 50%
|
||||
margin-right: 22rpx;
|
||||
.userindo-head-img
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
.userinfo-ls
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
min-height: min-content;
|
||||
.mine-options-item
|
||||
height: 80rpx;
|
||||
align-items: flex-start;
|
||||
.userinfo-ls-name
|
||||
font-weight: 600;
|
||||
font-size: 40rpx;
|
||||
color: #333333;
|
||||
border-radius: 50%
|
||||
.userinfo-ls-resume
|
||||
font-weight: 400;
|
||||
font-size: 28rpx;
|
||||
color: #000000;
|
||||
line-height: 80rpx;
|
||||
border-bottom: 2rpx solid #4778EC;
|
||||
padding: 0 30rpx;
|
||||
.mine-logout
|
||||
margin: 250rpx auto 0 auto;
|
||||
width: 399rpx;
|
||||
height: 96rpx;
|
||||
background: #FFAD47;
|
||||
border-radius: 17rpx 17rpx 17rpx 17rpx;
|
||||
text-align: center;
|
||||
line-height: 96rpx;
|
||||
color: #FFFFFF;
|
||||
font-size: 35rpx;
|
||||
color: #6C7282;
|
||||
.mine-userinfo::before
|
||||
position: absolute;
|
||||
right: 40rpx;
|
||||
top: 50%;
|
||||
content: '';
|
||||
width: 4rpx;
|
||||
height: 18rpx;
|
||||
border-radius: 2rpx
|
||||
background: #A2A2A2;
|
||||
transform: translate(0, -50%) rotate(-45deg);
|
||||
.mine-userinfo::after
|
||||
position: absolute;
|
||||
right: 40rpx;
|
||||
top: calc(50% + 1rpx);
|
||||
content: '';
|
||||
width: 4rpx;
|
||||
height: 18rpx;
|
||||
border-radius: 2rpx
|
||||
background: #A2A2A2;
|
||||
transform: rotate(45deg)
|
||||
</style>
|
||||
|
Reference in New Issue
Block a user