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

@@ -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,25 +123,15 @@
</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,
mapGetters
} from 'vuex'
import {
phoneFilter,
stringFilterNum
} from '@/untils/format.js'
import {
labourUnionInfo
} from '@/api/federation.js'
export default { export default {
data() { data() {
return { return {
federationStatus: false federationStatus: false,
} };
}, },
onLoad() { onLoad() {
// this.$store.dispatch('getMobileIsCms') // this.$store.dispatch('getMobileIsCms')
@@ -152,27 +143,27 @@
if (/token/g.test(location.href)) { if (/token/g.test(location.href)) {
this.$api.sleep(2000).then(() => { 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');
} }
}) });
} else { } 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');
} }
} }
// this.labourUnionInfoInit() // this.labourUnionInfoInit()
}, },
methods: { methods: {
labourUnionInfoInit() { labourUnionInfoInit() {
labourUnionInfo().then(e => { labourUnionInfo().then((e) => {
this.federationStatus = e.data.data.joined this.federationStatus = e.data.data.joined;
}) });
}, },
// logout() { // logout() {
// this.$store.dispatch('LogOut').then(() => { // this.$store.dispatch('LogOut').then(() => {
@@ -186,22 +177,22 @@
// }, // },
go(url) { go(url) {
uni.navigateTo({ uni.navigateTo({
url url,
}) });
}, },
makePhoneCall: function () { makePhoneCall: function () {
uni.makePhoneCall({ uni.makePhoneCall({
phoneNumber: "18500206848" phoneNumber: '18500206848',
}) });
}, },
phoneFilter, phoneFilter,
stringFilterNum stringFilterNum,
}, },
computed: { computed: {
...mapState(['user']), ...mapState(['user']),
...mapGetters(['userInfo', 'auth', 'authPass']) ...mapGetters(['userInfo', 'auth', 'authPass']),
} },
} };
</script> </script>
<style> <style>
@@ -217,7 +208,7 @@
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;
@@ -228,12 +219,12 @@
.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;
} }
@@ -309,14 +300,14 @@
.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 {
@@ -331,7 +322,7 @@
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 {
@@ -339,7 +330,7 @@
} }
.head { .head {
background-color: #1B66FF; background-color: #1b66ff;
width: 100%; width: 100%;
height: 200rpx; height: 200rpx;
padding-top: 200rpx; padding-top: 200rpx;

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': '/'