flat: 123
This commit is contained in:
425
pages/my/my.vue
425
pages/my/my.vue
@@ -6,12 +6,13 @@
|
|||||||
<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;">实名认证:{{ auth.realNameState ? '已认证' : '未认证' }}</view>
|
<view style="margin-right: 40rpx">
|
||||||
|
实名认证:{{ auth.realNameState ? '已认证' : '未认证' }}
|
||||||
|
</view>
|
||||||
<!-- <view>银行卡核验:{{auth.bankCardState?'已认证':'未认证'}}</view> -->
|
<!-- <view>银行卡核验:{{auth.bankCardState?'已认证':'未认证'}}</view> -->
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -39,7 +40,7 @@
|
|||||||
</view> -->
|
</view> -->
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view style="height: 104rpx;"></view>
|
<view style="height: 104rpx"></view>
|
||||||
<!-- <view class="federation">
|
<!-- <view class="federation">
|
||||||
<view>新业态职工工会联合会</view>
|
<view>新业态职工工会联合会</view>
|
||||||
<view v-if="!federationStatus" class="forMembership" @click="go('/pageMy/federation/forMembership/Notice')">申请入会</view>
|
<view v-if="!federationStatus" class="forMembership" @click="go('/pageMy/federation/forMembership/Notice')">申请入会</view>
|
||||||
@@ -57,26 +58,26 @@
|
|||||||
认证信息
|
认证信息
|
||||||
<image src="../../static/img/right.svg" mode=""></image>
|
<image src="../../static/img/right.svg" mode=""></image>
|
||||||
</view>
|
</view>
|
||||||
<!-- <view class="btnList" @click="navTo('/pageMy/setUserBase/mailbox')">
|
<view class="btnList" @click="navTo('/pageMy/setUserBase/mailbox')">
|
||||||
<image src="../../static/img/evaluate.png" mode=""></image>
|
<image src="../../static/img/evaluate.png" mode=""></image>
|
||||||
咨询信箱
|
咨询信箱
|
||||||
<image src="../../static/img/right.svg" mode=""></image>
|
<image src="../../static/img/right.svg" mode=""></image>
|
||||||
</view> -->
|
</view>
|
||||||
<view class="btnList" @click="navTo('/pageMy/setUserBase/applicationsRecord')">
|
<view class="btnList" @click="navTo('/pageMy/setUserBase/applicationsRecord')">
|
||||||
<image src="../../static/img/phone.svg" mode=""></image>
|
<image src="../../static/img/phone.svg" mode=""></image>
|
||||||
问卷调查
|
问卷调查
|
||||||
<image src="../../static/img/right.svg" mode=""></image>
|
<image src="../../static/img/right.svg" mode=""></image>
|
||||||
</view>
|
</view>
|
||||||
<!-- <view class="btnList" @click="navTo('/pageMy/setUserBase/survey')">
|
<view class="btnList" @click="navTo('/pageMy/setUserBase/survey')">
|
||||||
<image src="../../static/img/phone.svg" mode=""></image>
|
<image src="../../static/img/phone.svg" mode=""></image>
|
||||||
用工调研
|
用工调研
|
||||||
<image src="../../static/img/right.svg" mode=""></image>
|
<image src="../../static/img/right.svg" mode=""></image>
|
||||||
</view> -->
|
</view>
|
||||||
<!-- <view class="btnList" @click="navTo('/pageMy/setUserBase/complain')">
|
<view class="btnList" @click="navTo('/pageMy/setUserBase/complain')">
|
||||||
<image src="../../static/img/vip.svg" mode=""></image>
|
<image src="../../static/img/vip.svg" mode=""></image>
|
||||||
投诉建议
|
投诉建议
|
||||||
<image src="../../static/img/right.svg" mode=""></image>
|
<image src="../../static/img/right.svg" mode=""></image>
|
||||||
</view> -->
|
</view>
|
||||||
<template v-if="user.userIsCms">
|
<template v-if="user.userIsCms">
|
||||||
<view class="btnList" @click="navTo('/pageMy/admin/check')">
|
<view class="btnList" @click="navTo('/pageMy/admin/check')">
|
||||||
<image src="../../static/img/check1.png" mode=""></image>
|
<image src="../../static/img/check1.png" mode=""></image>
|
||||||
@@ -122,238 +123,228 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import {
|
import { GoLogin } from '@/untils/AxiosUtils.js';
|
||||||
GoLogin
|
import { mapState, mapGetters } from 'vuex';
|
||||||
} from '@/untils/AxiosUtils.js';
|
import { phoneFilter, stringFilterNum } from '@/untils/format.js';
|
||||||
import {
|
import { labourUnionInfo } from '@/api/federation.js';
|
||||||
mapState,
|
export default {
|
||||||
mapGetters
|
data() {
|
||||||
} from 'vuex'
|
return {
|
||||||
import {
|
federationStatus: false,
|
||||||
phoneFilter,
|
};
|
||||||
stringFilterNum
|
},
|
||||||
} from '@/untils/format.js'
|
onLoad() {
|
||||||
import {
|
// this.$store.dispatch('getMobileIsCms')
|
||||||
labourUnionInfo
|
// if (this.$api.haslogin() && this.authPass) {
|
||||||
} from '@/api/federation.js'
|
// this.$store.dispatch('getVipCode')
|
||||||
export default {
|
// }
|
||||||
data() {
|
},
|
||||||
return {
|
onShow() {
|
||||||
federationStatus: false
|
if (/token/g.test(location.href)) {
|
||||||
}
|
this.$api.sleep(2000).then(() => {
|
||||||
},
|
|
||||||
onLoad() {
|
|
||||||
// this.$store.dispatch('getMobileIsCms')
|
|
||||||
// if (this.$api.haslogin() && this.authPass) {
|
|
||||||
// this.$store.dispatch('getVipCode')
|
|
||||||
// }
|
|
||||||
},
|
|
||||||
onShow() {
|
|
||||||
if (/token/g.test(location.href)) {
|
|
||||||
this.$api.sleep(2000).then(() => {
|
|
||||||
if (!this.$api.haslogin()) {
|
|
||||||
GoLogin()
|
|
||||||
} else {
|
|
||||||
uni.$emit('newsReadChange')
|
|
||||||
this.$store.dispatch('refreshAuthState')
|
|
||||||
}
|
|
||||||
})
|
|
||||||
} else {
|
|
||||||
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');
|
||||||
}
|
}
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
if (!this.$api.haslogin()) {
|
||||||
|
GoLogin();
|
||||||
|
} else {
|
||||||
|
uni.$emit('newsReadChange');
|
||||||
|
this.$store.dispatch('refreshAuthState');
|
||||||
}
|
}
|
||||||
// this.labourUnionInfoInit()
|
|
||||||
},
|
|
||||||
methods: {
|
|
||||||
labourUnionInfoInit() {
|
|
||||||
labourUnionInfo().then(e => {
|
|
||||||
this.federationStatus = e.data.data.joined
|
|
||||||
})
|
|
||||||
},
|
|
||||||
// logout() {
|
|
||||||
// this.$store.dispatch('LogOut').then(() => {
|
|
||||||
// // uni.reLaunch({
|
|
||||||
// // url: '/pages/login/login'
|
|
||||||
// // })
|
|
||||||
// this.$store.dispatch('clearAuthState')
|
|
||||||
// this.$store.dispatch('endRefreshNewsTimer')
|
|
||||||
// location.href = "https://dy12333.org.cn/h5/"
|
|
||||||
// })
|
|
||||||
// },
|
|
||||||
go(url) {
|
|
||||||
uni.navigateTo({
|
|
||||||
url
|
|
||||||
})
|
|
||||||
},
|
|
||||||
makePhoneCall: function() {
|
|
||||||
uni.makePhoneCall({
|
|
||||||
phoneNumber: "18500206848"
|
|
||||||
})
|
|
||||||
},
|
|
||||||
phoneFilter,
|
|
||||||
stringFilterNum
|
|
||||||
},
|
|
||||||
computed: {
|
|
||||||
...mapState(['user']),
|
|
||||||
...mapGetters(['userInfo', 'auth', 'authPass'])
|
|
||||||
}
|
}
|
||||||
}
|
// this.labourUnionInfoInit()
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
labourUnionInfoInit() {
|
||||||
|
labourUnionInfo().then((e) => {
|
||||||
|
this.federationStatus = e.data.data.joined;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
// logout() {
|
||||||
|
// this.$store.dispatch('LogOut').then(() => {
|
||||||
|
// // uni.reLaunch({
|
||||||
|
// // url: '/pages/login/login'
|
||||||
|
// // })
|
||||||
|
// this.$store.dispatch('clearAuthState')
|
||||||
|
// this.$store.dispatch('endRefreshNewsTimer')
|
||||||
|
// location.href = "https://dy12333.org.cn/h5/"
|
||||||
|
// })
|
||||||
|
// },
|
||||||
|
go(url) {
|
||||||
|
uni.navigateTo({
|
||||||
|
url,
|
||||||
|
});
|
||||||
|
},
|
||||||
|
makePhoneCall: function () {
|
||||||
|
uni.makePhoneCall({
|
||||||
|
phoneNumber: '18500206848',
|
||||||
|
});
|
||||||
|
},
|
||||||
|
phoneFilter,
|
||||||
|
stringFilterNum,
|
||||||
|
},
|
||||||
|
computed: {
|
||||||
|
...mapState(['user']),
|
||||||
|
...mapGetters(['userInfo', 'auth', 'authPass']),
|
||||||
|
},
|
||||||
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
page {
|
page {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
background: #f6f6f6;
|
background: #f6f6f6;
|
||||||
}
|
}
|
||||||
|
|
||||||
.federation {
|
.federation {
|
||||||
height: 48rpx;
|
height: 48rpx;
|
||||||
border-radius: 10rpx;
|
border-radius: 10rpx;
|
||||||
padding: 28rpx 30rpx;
|
padding: 28rpx 30rpx;
|
||||||
margin: 30rpx;
|
margin: 30rpx;
|
||||||
font-size: 32rpx;
|
font-size: 32rpx;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
color: #6F5931;
|
color: #6f5931;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
background: url(../../static/img/my/mybanner.png) no-repeat;
|
background: url(../../static/img/my/mybanner.png) no-repeat;
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
}
|
}
|
||||||
|
|
||||||
.forMembership {
|
.forMembership {
|
||||||
width: 140rpx;
|
width: 140rpx;
|
||||||
height: 50rpx;
|
height: 50rpx;
|
||||||
background: linear-gradient(112deg, #EFE0BC 0%, #D29A5A 100%, #DDBA88 100%);
|
background: linear-gradient(112deg, #efe0bc 0%, #d29a5a 100%, #ddba88 100%);
|
||||||
box-shadow: 0px 0px 2px 1px rgba(231, 174, 85, 0.39);
|
box-shadow: 0px 0px 2px 1px rgba(231, 174, 85, 0.39);
|
||||||
border-radius: 25rpx;
|
border-radius: 25rpx;
|
||||||
font-size: 26rpx;
|
font-size: 26rpx;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
color: #6F5931;
|
color: #6f5931;
|
||||||
line-height: 48rpx;
|
line-height: 48rpx;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.bottom {
|
.bottom {
|
||||||
font-family: PingFangSC-Regular;
|
font-family: PingFangSC-Regular;
|
||||||
font-size: 24rpx;
|
font-size: 24rpx;
|
||||||
color: #999999;
|
color: #999999;
|
||||||
/* position: absolute; */
|
/* position: absolute; */
|
||||||
/* bottom: 120rpx; */
|
/* bottom: 120rpx; */
|
||||||
/* width: 100%; */
|
/* width: 100%; */
|
||||||
margin: 120rpx 0;
|
margin: 120rpx 0;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btnList image:last-child {
|
.btnList image:last-child {
|
||||||
width: 19rpx;
|
width: 19rpx;
|
||||||
height: 32rpx;
|
height: 32rpx;
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btnList image {
|
.btnList image {
|
||||||
width: 52rpx;
|
width: 52rpx;
|
||||||
height: 52rpx;
|
height: 52rpx;
|
||||||
margin-right: 10rpx;
|
margin-right: 10rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btnList {
|
.btnList {
|
||||||
font-family: PingFangSC-Regular;
|
font-family: PingFangSC-Regular;
|
||||||
font-size: 32rpx;
|
font-size: 32rpx;
|
||||||
color: #333333;
|
color: #333333;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: flex-start;
|
justify-content: flex-start;
|
||||||
padding: 30rpx 20rpx;
|
padding: 30rpx 20rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.btn {
|
.btn {
|
||||||
width: 690rpx;
|
width: 690rpx;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
border-radius: 15rpx;
|
border-radius: 15rpx;
|
||||||
background: #fefefe;
|
background: #fefefe;
|
||||||
}
|
}
|
||||||
|
|
||||||
.BarList {
|
.BarList {
|
||||||
font-family: PingFangSC-Regular;
|
font-family: PingFangSC-Regular;
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
color: #666666;
|
color: #666666;
|
||||||
float: left;
|
float: left;
|
||||||
width: 25%;
|
width: 25%;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
padding: 30rpx 0rpx;
|
padding: 30rpx 0rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.BarList image {
|
.BarList image {
|
||||||
width: 52rpx;
|
width: 52rpx;
|
||||||
height: 52rpx;
|
height: 52rpx;
|
||||||
display: block;
|
display: block;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
.centerBar {
|
.centerBar {
|
||||||
width: 690rpx;
|
width: 690rpx;
|
||||||
background-color: #fefefe;
|
background-color: #fefefe;
|
||||||
border-radius: 15rpx;
|
border-radius: 15rpx;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: -70rpx;
|
bottom: -70rpx;
|
||||||
left: 30rpx;
|
left: 30rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.userContent {
|
.userContent {
|
||||||
font-family: PingFangSC-Regular;
|
font-family: PingFangSC-Regular;
|
||||||
font-size: 26rpx;
|
font-size: 26rpx;
|
||||||
color: #FFFFFF;
|
color: #ffffff;
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
|
|
||||||
.userTel {
|
.userTel {
|
||||||
font-family: PingFangSC-Medium;
|
font-family: PingFangSC-Medium;
|
||||||
font-size: 36rpx;
|
font-size: 36rpx;
|
||||||
color: #FFFFFF;
|
color: #ffffff;
|
||||||
}
|
}
|
||||||
|
|
||||||
.userRight {
|
.userRight {
|
||||||
float: left;
|
float: left;
|
||||||
height: 50rpx;
|
height: 50rpx;
|
||||||
line-height: 50rpx;
|
line-height: 50rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.userTitle image {
|
.userTitle image {
|
||||||
width: 100rpx;
|
width: 100rpx;
|
||||||
height: 100rpx;
|
height: 100rpx;
|
||||||
margin-right: 20rpx;
|
margin-right: 20rpx;
|
||||||
float: left;
|
float: left;
|
||||||
border-radius: 200rpx;
|
border-radius: 200rpx;
|
||||||
background-color: rgba(255, 255, 255, .3);
|
background-color: rgba(255, 255, 255, 0.3);
|
||||||
}
|
}
|
||||||
|
|
||||||
.userTitle {
|
.userTitle {
|
||||||
padding: 0 30rpx;
|
padding: 0 30rpx;
|
||||||
}
|
}
|
||||||
|
|
||||||
.head {
|
.head {
|
||||||
background-color: #1B66FF;
|
background-color: #1b66ff;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 200rpx;
|
height: 200rpx;
|
||||||
padding-top: 200rpx;
|
padding-top: 200rpx;
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
|
||||||
.body {
|
.body {
|
||||||
background: #f6f6f6;
|
background: #f6f6f6;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
position: relative;
|
position: relative;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* .btn-out {
|
/* .btn-out {
|
||||||
background-color: #fefefe;
|
background-color: #fefefe;
|
||||||
margin-top: 20rpx;
|
margin-top: 20rpx;
|
||||||
padding: 20rpx 0;
|
padding: 20rpx 0;
|
||||||
|
|||||||
@@ -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': '/'
|
||||||
|
|||||||
Reference in New Issue
Block a user