flat: 123

This commit is contained in:
史典卓
2024-10-24 16:28:13 +08:00
parent a4ffe68ec2
commit 29cb92224b
2 changed files with 357 additions and 366 deletions

View File

@@ -1,365 +1,356 @@
<template> <template>
<view class="body"> <view class="body">
<view class="head"> <view class="head">
<view class="userTitle"> <view class="userTitle">
<image v-if="userInfo.avatar" :src="userInfo.avatar" mode=""></image> <image v-if="userInfo.avatar" :src="userInfo.avatar" mode=""></image>
<image v-else src="../../static/img/head.svg" mode=""></image> <image v-else src="../../static/img/head.svg" mode=""></image>
<view class="userRight"> <view class="userRight">
<view class="userTel" v-if="userInfo.user_name"> <view class="userTel" v-if="userInfo.user_name">
{{ auth.authInfo.realName ? auth.authInfo.realName : {{ auth.authInfo.realName ? auth.authInfo.realName : phoneFilter(userInfo.user_name) }}
phoneFilter(userInfo.user_name) }} </view>
</view> <view class="userTel" v-else></view>
<view class="userTel" v-else> </view> <view class="userContent">
<view class="userContent"> <view style="margin-right: 40rpx">
<view style="margin-right: 40rpx;">实名认证{{ auth.realNameState ? '已认证' : '未认证' }}</view> 实名认证{{ auth.realNameState ? '已认证' : '未认证' }}
<!-- <view>银行卡核验{{auth.bankCardState?'已认证':'未认证'}}</view> --> </view>
</view> <!-- <view>银行卡核验{{auth.bankCardState?'已认证':'未认证'}}</view> -->
</view> </view>
</view> </view>
<view class="centerBar"> </view>
<view class="BarList" @click="go('/pages/my/Browsinghistory')"> <view class="centerBar">
<image src="../../static/img/resumeMy.svg" mode=""></image> <view class="BarList" @click="go('/pages/my/Browsinghistory')">
我的邀请 <image src="../../static/img/resumeMy.svg" mode=""></image>
</view> 我的邀请
<view class="BarList" @click="go('/pageMy/myProject/myProject')"> </view>
<image src="../../static/img/job.svg" mode=""></image> <view class="BarList" @click="go('/pageMy/myProject/myProject')">
我的申请 <image src="../../static/img/job.svg" mode=""></image>
</view> 我的申请
<view class="BarList" @click="go('/pageMy/myProject/myCollection')"> </view>
<image src="../../static/img/salary.svg" mode=""></image> <view class="BarList" @click="go('/pageMy/myProject/myCollection')">
我的收藏 <image src="../../static/img/salary.svg" mode=""></image>
</view> 我的收藏
<view class="BarList" @click="go('/pageMy/myProject/browsingHistory')"> </view>
<image src="../../static/img/contract.png" mode=""></image> <view class="BarList" @click="go('/pageMy/myProject/browsingHistory')">
浏览记录 <image src="../../static/img/contract.png" mode=""></image>
</view> 浏览记录
<!-- <view class="BarList" @click="go('/pageMy/myProject/browsingHistory')"> </view>
<image src="../../static/img/contract.png" mode=""></image> <!-- <view class="BarList" @click="go('/pageMy/myProject/browsingHistory')">
我要招工 <image src="../../static/img/contract.png" mode=""></image>
</view> --> 我要招工
</view> </view> -->
</view> </view>
<view style="height: 104rpx;"></view> </view>
<!-- <view class="federation"> <view style="height: 104rpx"></view>
<view>新业态职工工会联合会</view> <!-- <view class="federation">
<view v-if="!federationStatus" class="forMembership" @click="go('/pageMy/federation/forMembership/Notice')">申请入</view> <view>新业态职工工会联合</view>
<view v-else class="forMembership" @click="go('/pageMy/federation/vip/information')">已加入</view> <view v-if="!federationStatus" class="forMembership" @click="go('/pageMy/federation/forMembership/Notice')">申请入会</view>
</view> --> <view v-else class="forMembership" @click="go('/pageMy/federation/vip/information')">已加入</view>
</view> -->
<view class="btn">
<view class="btnList" @click="go('/pages/recruit/recruit')"> <view class="btn">
<image src="../../static/img/zhao_gong.png" mode=""></image> <view class="btnList" @click="go('/pages/recruit/recruit')">
我要招工 <image src="../../static/img/zhao_gong.png" mode=""></image>
<image src="../../static/img/right.svg" mode=""></image> 我要招工
</view> <image src="../../static/img/right.svg" mode=""></image>
<view class="btnList" @click="go('/pageMy/setUserBase/index')"> </view>
<image src="../../static/img/ID.svg" mode=""></image> <view class="btnList" @click="go('/pageMy/setUserBase/index')">
认证信息 <image src="../../static/img/ID.svg" mode=""></image>
<image src="../../static/img/right.svg" mode=""></image> 认证信息
</view> <image src="../../static/img/right.svg" mode=""></image>
<!-- <view class="btnList" @click="navTo('/pageMy/setUserBase/mailbox')"> </view>
<image src="../../static/img/evaluate.png" mode=""></image> <view class="btnList" @click="navTo('/pageMy/setUserBase/mailbox')">
咨询信箱 <image src="../../static/img/evaluate.png" mode=""></image>
<image src="../../static/img/right.svg" mode=""></image> 咨询信箱
</view> --> <image src="../../static/img/right.svg" mode=""></image>
<view class="btnList" @click="navTo('/pageMy/setUserBase/applicationsRecord')"> </view>
<image src="../../static/img/phone.svg" mode=""></image> <view class="btnList" @click="navTo('/pageMy/setUserBase/applicationsRecord')">
问卷调查 <image src="../../static/img/phone.svg" mode=""></image>
<image src="../../static/img/right.svg" mode=""></image> 问卷调查
</view> <image src="../../static/img/right.svg" mode=""></image>
<!-- <view class="btnList" @click="navTo('/pageMy/setUserBase/survey')"> </view>
<image src="../../static/img/phone.svg" mode=""></image> <view class="btnList" @click="navTo('/pageMy/setUserBase/survey')">
用工调研 <image src="../../static/img/phone.svg" mode=""></image>
<image src="../../static/img/right.svg" mode=""></image> 用工调研
</view> --> <image src="../../static/img/right.svg" mode=""></image>
<!-- <view class="btnList" @click="navTo('/pageMy/setUserBase/complain')"> </view>
<image src="../../static/img/vip.svg" mode=""></image> <view class="btnList" @click="navTo('/pageMy/setUserBase/complain')">
投诉建议 <image src="../../static/img/vip.svg" mode=""></image>
<image src="../../static/img/right.svg" mode=""></image> 投诉建议
</view> --> <image src="../../static/img/right.svg" mode=""></image>
<template v-if="user.userIsCms"> </view>
<view class="btnList" @click="navTo('/pageMy/admin/check')"> <template v-if="user.userIsCms">
<image src="../../static/img/check1.png" mode=""></image> <view class="btnList" @click="navTo('/pageMy/admin/check')">
岗位发布审核 <image src="../../static/img/check1.png" mode=""></image>
<image src="../../static/img/right.svg" mode=""></image> 岗位发布审核
</view> <image src="../../static/img/right.svg" mode=""></image>
<view class="btnList" @click="navTo('/pageMy/admin/dengji')"> </view>
<image src="../../static/img/dji.png" mode=""></image> <view class="btnList" @click="navTo('/pageMy/admin/dengji')">
线下服务记录登记 <image src="../../static/img/dji.png" mode=""></image>
<image src="../../static/img/right.svg" mode=""></image> 线下服务记录登记
</view> <image src="../../static/img/right.svg" mode=""></image>
<view class="btnList" @click="navTo('/pageMy/admin/admin')"> </view>
<image src="../../static/img/dji.png" mode=""></image> <view class="btnList" @click="navTo('/pageMy/admin/admin')">
零工人员登记 <image src="../../static/img/dji.png" mode=""></image>
<image src="../../static/img/right.svg" mode=""></image> 零工人员登记
</view> <image src="../../static/img/right.svg" mode=""></image>
</template> </view>
<!-- <view class="btnList" @click="go('/pageMy/apply/applications')"> </template>
<image src="../../static/img/apply.png" mode=""></image> <!-- <view class="btnList" @click="go('/pageMy/apply/applications')">
我的申请 <image src="../../static/img/apply.png" mode=""></image>
<image src="../../static/img/right.svg" mode=""></image> 我的申请
</view> --> <image src="../../static/img/right.svg" mode=""></image>
<!-- <view class="btnList" @click="go('/pageMy/help/help')"> </view> -->
<image src="../../static/img/help.svg" mode=""></image> <!-- <view class="btnList" @click="go('/pageMy/help/help')">
帮助与反馈 <image src="../../static/img/help.svg" mode=""></image>
<image src="../../static/img/right.svg" mode=""></image> 帮助与反馈
</view> --> <image src="../../static/img/right.svg" mode=""></image>
<!-- <view class="btnList" @click="go('/pageMy/my/set')"> </view> -->
<image src="../../static/img/set.svg" mode=""></image> <!-- <view class="btnList" @click="go('/pageMy/my/set')">
设置 <image src="../../static/img/set.svg" mode=""></image>
<image src="../../static/img/right.svg" mode=""></image> 设置
</view> --> <image src="../../static/img/right.svg" mode=""></image>
</view> </view> -->
<!-- <view class="btn-out" @click="logout"> </view>
退出登录 <!-- <view class="btn-out" @click="logout">
</view> --> 退出登录
<view class="bottom" @click="makePhoneCall"> </view> -->
<view>德阳市人社局 电话0838-2505580</view> <view class="bottom" @click="makePhoneCall">
<view>地址德阳市旌阳区天山南路1段-102</view> <view>德阳市人社局 电话0838-2505580</view>
</view> <view>地址德阳市旌阳区天山南路1段-102</view>
<cs-button></cs-button> </view>
</view> <cs-button></cs-button>
</template> </view>
</template>
<script>
import { <script>
GoLogin import { GoLogin } from '@/untils/AxiosUtils.js';
} from '@/untils/AxiosUtils.js'; import { mapState, mapGetters } from 'vuex';
import { import { phoneFilter, stringFilterNum } from '@/untils/format.js';
mapState, import { labourUnionInfo } from '@/api/federation.js';
mapGetters export default {
} from 'vuex' data() {
import { return {
phoneFilter, federationStatus: false,
stringFilterNum };
} from '@/untils/format.js' },
import { onLoad() {
labourUnionInfo // this.$store.dispatch('getMobileIsCms')
} from '@/api/federation.js' // if (this.$api.haslogin() && this.authPass) {
export default { // this.$store.dispatch('getVipCode')
data() { // }
return { },
federationStatus: false onShow() {
} if (/token/g.test(location.href)) {
}, this.$api.sleep(2000).then(() => {
onLoad() { if (!this.$api.haslogin()) {
// this.$store.dispatch('getMobileIsCms') GoLogin();
// if (this.$api.haslogin() && this.authPass) { } else {
// this.$store.dispatch('getVipCode') uni.$emit('newsReadChange');
// } this.$store.dispatch('refreshAuthState');
}, }
onShow() { });
if (/token/g.test(location.href)) { } else {
this.$api.sleep(2000).then(() => { if (!this.$api.haslogin()) {
if (!this.$api.haslogin()) { GoLogin();
GoLogin() } else {
} else { uni.$emit('newsReadChange');
uni.$emit('newsReadChange') this.$store.dispatch('refreshAuthState');
this.$store.dispatch('refreshAuthState') }
} }
}) // this.labourUnionInfoInit()
} else { },
if (!this.$api.haslogin()) { methods: {
GoLogin() labourUnionInfoInit() {
} else { labourUnionInfo().then((e) => {
uni.$emit('newsReadChange') this.federationStatus = e.data.data.joined;
this.$store.dispatch('refreshAuthState') });
} },
} // logout() {
// this.labourUnionInfoInit() // this.$store.dispatch('LogOut').then(() => {
}, // // uni.reLaunch({
methods: { // // url: '/pages/login/login'
labourUnionInfoInit() { // // })
labourUnionInfo().then(e => { // this.$store.dispatch('clearAuthState')
this.federationStatus = e.data.data.joined // this.$store.dispatch('endRefreshNewsTimer')
}) // location.href = "https://dy12333.org.cn/h5/"
}, // })
// logout() { // },
// this.$store.dispatch('LogOut').then(() => { go(url) {
// // uni.reLaunch({ uni.navigateTo({
// // url: '/pages/login/login' url,
// // }) });
// this.$store.dispatch('clearAuthState') },
// this.$store.dispatch('endRefreshNewsTimer') makePhoneCall: function () {
// location.href = "https://dy12333.org.cn/h5/" uni.makePhoneCall({
// }) phoneNumber: '18500206848',
// }, });
go(url) { },
uni.navigateTo({ phoneFilter,
url stringFilterNum,
}) },
}, computed: {
makePhoneCall: function() { ...mapState(['user']),
uni.makePhoneCall({ ...mapGetters(['userInfo', 'auth', 'authPass']),
phoneNumber: "18500206848" },
}) };
}, </script>
phoneFilter,
stringFilterNum <style>
}, page {
computed: { height: 100%;
...mapState(['user']), background: #f6f6f6;
...mapGetters(['userInfo', 'auth', 'authPass']) }
}
} .federation {
</script> height: 48rpx;
border-radius: 10rpx;
<style> padding: 28rpx 30rpx;
page { margin: 30rpx;
height: 100%; font-size: 32rpx;
background: #f6f6f6; font-weight: 400;
} color: #6f5931;
display: flex;
.federation { justify-content: space-between;
height: 48rpx; align-items: center;
border-radius: 10rpx; background: url(../../static/img/my/mybanner.png) no-repeat;
padding: 28rpx 30rpx; background-size: cover;
margin: 30rpx; }
font-size: 32rpx;
font-weight: 400; .forMembership {
color: #6F5931; width: 140rpx;
display: flex; height: 50rpx;
justify-content: space-between; background: linear-gradient(112deg, #efe0bc 0%, #d29a5a 100%, #ddba88 100%);
align-items: center; box-shadow: 0px 0px 2px 1px rgba(231, 174, 85, 0.39);
background: url(../../static/img/my/mybanner.png) no-repeat; border-radius: 25rpx;
background-size: cover; font-size: 26rpx;
} font-weight: 400;
color: #6f5931;
.forMembership { line-height: 48rpx;
width: 140rpx; text-align: center;
height: 50rpx; }
background: linear-gradient(112deg, #EFE0BC 0%, #D29A5A 100%, #DDBA88 100%);
box-shadow: 0px 0px 2px 1px rgba(231, 174, 85, 0.39); .bottom {
border-radius: 25rpx; font-family: PingFangSC-Regular;
font-size: 26rpx; font-size: 24rpx;
font-weight: 400; color: #999999;
color: #6F5931; /* position: absolute; */
line-height: 48rpx; /* bottom: 120rpx; */
text-align: center; /* width: 100%; */
} margin: 120rpx 0;
text-align: center;
.bottom { }
font-family: PingFangSC-Regular;
font-size: 24rpx; .btnList image:last-child {
color: #999999; width: 19rpx;
/* position: absolute; */ height: 32rpx;
/* bottom: 120rpx; */ margin-left: auto;
/* width: 100%; */ margin-right: 0;
margin: 120rpx 0; }
text-align: center;
} .btnList image {
width: 52rpx;
.btnList image:last-child { height: 52rpx;
width: 19rpx; margin-right: 10rpx;
height: 32rpx; }
margin-left: auto;
margin-right: 0; .btnList {
} font-family: PingFangSC-Regular;
font-size: 32rpx;
.btnList image { color: #333333;
width: 52rpx; display: flex;
height: 52rpx; align-items: center;
margin-right: 10rpx; justify-content: flex-start;
} padding: 30rpx 20rpx;
}
.btnList {
font-family: PingFangSC-Regular; .btn {
font-size: 32rpx; width: 690rpx;
color: #333333; margin: 0 auto;
display: flex; border-radius: 15rpx;
align-items: center; background: #fefefe;
justify-content: flex-start; }
padding: 30rpx 20rpx;
} .BarList {
font-family: PingFangSC-Regular;
.btn { font-size: 28rpx;
width: 690rpx; color: #666666;
margin: 0 auto; float: left;
border-radius: 15rpx; width: 25%;
background: #fefefe; text-align: center;
} padding: 30rpx 0rpx;
}
.BarList {
font-family: PingFangSC-Regular; .BarList image {
font-size: 28rpx; width: 52rpx;
color: #666666; height: 52rpx;
float: left; display: block;
width: 25%; margin: 0 auto;
text-align: center; }
padding: 30rpx 0rpx;
} .centerBar {
width: 690rpx;
.BarList image { background-color: #fefefe;
width: 52rpx; border-radius: 15rpx;
height: 52rpx; overflow: hidden;
display: block; position: absolute;
margin: 0 auto; bottom: -70rpx;
} left: 30rpx;
}
.centerBar {
width: 690rpx; .userContent {
background-color: #fefefe; font-family: PingFangSC-Regular;
border-radius: 15rpx; font-size: 26rpx;
overflow: hidden; color: #ffffff;
position: absolute; display: flex;
bottom: -70rpx; }
left: 30rpx;
} .userTel {
font-family: PingFangSC-Medium;
.userContent { font-size: 36rpx;
font-family: PingFangSC-Regular; color: #ffffff;
font-size: 26rpx; }
color: #FFFFFF;
display: flex; .userRight {
} float: left;
height: 50rpx;
.userTel { line-height: 50rpx;
font-family: PingFangSC-Medium; }
font-size: 36rpx;
color: #FFFFFF; .userTitle image {
} width: 100rpx;
height: 100rpx;
.userRight { margin-right: 20rpx;
float: left; float: left;
height: 50rpx; border-radius: 200rpx;
line-height: 50rpx; background-color: rgba(255, 255, 255, 0.3);
} }
.userTitle image { .userTitle {
width: 100rpx; padding: 0 30rpx;
height: 100rpx; }
margin-right: 20rpx;
float: left; .head {
border-radius: 200rpx; background-color: #1b66ff;
background-color: rgba(255, 255, 255, .3); width: 100%;
} height: 200rpx;
padding-top: 200rpx;
.userTitle { position: relative;
padding: 0 30rpx; }
}
.body {
.head { background: #f6f6f6;
background-color: #1B66FF; height: 100%;
width: 100%; position: relative;
height: 200rpx; overflow: auto;
padding-top: 200rpx; }
position: relative;
} /* .btn-out {
background-color: #fefefe;
.body { margin-top: 20rpx;
background: #f6f6f6; padding: 20rpx 0;
height: 100%; text-align: center;
position: relative; font-family: PingFangSC-Regular;
overflow: auto; font-size: 32rpx;
} color: #F46161;
} */
/* .btn-out {
background-color: #fefefe;
margin-top: 20rpx;
padding: 20rpx 0;
text-align: center;
font-family: PingFangSC-Regular;
font-size: 32rpx;
color: #F46161;
} */
</style> </style>

View File

@@ -6,8 +6,8 @@ module.exports = {
port: 1887, port: 1887,
proxy: { proxy: {
'/api': { '/api': {
target: 'http://10.165.0.173:8000', // target: 'http://10.165.0.173:8000',
// target: 'http://192.168.1.115:8000', target: 'http://192.168.1.115:8000',
ws: true, ws: true,
pathRewrite: { pathRewrite: {
'^/api': '/' '^/api': '/'