This commit is contained in:
dengxin
2024-03-28 19:45:03 +08:00
parent f28aa3317c
commit 880396f213
8 changed files with 5005 additions and 5003 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -72,7 +72,11 @@
computed: { computed: {
...mapGetters(['auth', 'authInfo']), ...mapGetters(['auth', 'authInfo']),
birthday() { birthday() {
if (!!this.authInfo.birthday) {
return dateFormat(new Date(this.authInfo.birthday.replace(/\-/g, "/").replace('T', ' ')), "yyyy-MM"); return dateFormat(new Date(this.authInfo.birthday.replace(/\-/g, "/").replace('T', ' ')), "yyyy-MM");
} else {
return "暂无"
}
} }
}, },
onShow() { }, onShow() { },

View File

@@ -141,7 +141,7 @@
</view> </view>
</view> </view>
</picker> </picker>
<picker :range="insureList" @change="insureChange" :value="indexBao"> <!-- <picker :range="insureList" @change="insureChange" :value="indexBao">
<view class="list"> <view class="list">
<view class="listLeft"> <view class="listLeft">
<view class="name"> <view class="name">
@@ -157,7 +157,7 @@
<image src="@/static/img/right.svg" mode=""></image> <image src="@/static/img/right.svg" mode=""></image>
</view> </view>
</view> </view>
</picker> </picker> -->
<view v-if="auth.realNameState"></view> <view v-if="auth.realNameState"></view>
<view class="btn nocheck" v-else-if="loading"> <view class="btn nocheck" v-else-if="loading">
<view class="bottombtn"> <view class="bottombtn">
@@ -304,6 +304,7 @@
}, },
idNumberFilter, idNumberFilter,
identityChange(val) { identityChange(val) {
console.log("val",val);
uni.showLoading(); uni.showLoading();
this.$store.dispatch('authLabor').then(() => { this.$store.dispatch('authLabor').then(() => {
this.realIndex = val.detail.value; this.realIndex = val.detail.value;

View File

@@ -6,7 +6,8 @@
<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">
{{phoneFilter(userInfo.user_name)}} {{ auth.authInfo.realName ? stringFilterNum(auth.authInfo.realName, 1) :
phoneFilter(userInfo.user_name) }}
</view> </view>
<view class="userTel" v-else> </view> <view class="userTel" v-else> </view>
<view class="userContent"> <view class="userContent">
@@ -103,7 +104,7 @@
mapGetters mapGetters
} from 'vuex' } from 'vuex'
import { import {
phoneFilter phoneFilter, stringFilterNum
} from '@/untils/format.js' } from '@/untils/format.js'
import { labourUnionInfo } from '@/api/federation.js' import { labourUnionInfo } from '@/api/federation.js'
export default { export default {
@@ -154,7 +155,7 @@
phoneNumber: "18500206848" phoneNumber: "18500206848"
}) })
}, },
phoneFilter phoneFilter,stringFilterNum
}, },
computed: { computed: {
...mapGetters(['userInfo', 'auth', 'authPass']) ...mapGetters(['userInfo', 'auth', 'authPass'])
@@ -167,6 +168,7 @@
height: 100%; height: 100%;
background: #f6f6f6; background: #f6f6f6;
} }
.federation { .federation {
height: 48rpx; height: 48rpx;
border-radius: 10rpx; border-radius: 10rpx;
@@ -181,6 +183,7 @@
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;
@@ -308,6 +311,7 @@
position: relative; position: relative;
overflow: auto; overflow: auto;
} }
/* .btn-out { /* .btn-out {
background-color: #fefefe; background-color: #fefefe;
margin-top: 20rpx; margin-top: 20rpx;

View File

@@ -9,9 +9,10 @@
<view class="content"> <view class="content">
<view class="typeButtonWrapper"> <view class="typeButtonWrapper">
<view class="typeButtonLeft"> <view class="typeButtonLeft">
<view v-for="(item, index) in nonReactiveArray" :key="index"
<view v-for="(item, index) in nonReactiveArray" :key="index" v-show="(activeTab!=2)&&(index==1||index==0)" v-show="(activeTab != 2) && (index == activeTab)"
:class="['typeButton', index == activeTab ? 'activeButton' : '']" @click="changeTab(index)">{{ item :class="['typeButton', index == activeTab ? 'activeButton' : '']" @click="changeTab(index)">{{
item
}}</view> }}</view>
</view> </view>
<!-- 筛选 --> <!-- 筛选 -->
@@ -77,7 +78,9 @@
完善技能 完善技能
</view> </view>
</view> --> </view> -->
<view v-for="(item, index) in policyContentList" :key="index" style="width: 90%;height: 100rpx;background-color: #fff;border-radius: 10rpx;margin:20rpx 5% 20rpx 5%;display: flex;align-items: center" @click="goPolicyInfo(item.id)"> <view v-for="(item, index) in policyContentList" :key="index"
style="width: 90%;height: 100rpx;background-color: #fff;border-radius: 10rpx;margin:20rpx 5% 20rpx 5%;display: flex;align-items: center"
@click="goPolicyInfo(item.id)">
<image :src="item.headPic" style="width: 60rpx;height: 60rpx;margin: 0 20rpx;"></image> <image :src="item.headPic" style="width: 60rpx;height: 60rpx;margin: 0 20rpx;"></image>
<view style="font-size: 26rpx;">{{ item.articleTitle }}</view> <view style="font-size: 26rpx;">{{ item.articleTitle }}</view>
</view> </view>

View File

@@ -45,7 +45,6 @@ const auth = {
findAuth().then((res) => { findAuth().then((res) => {
const data = res.data.data; const data = res.data.data;
const authValue = data.authValue const authValue = data.authValue
commit('SET_AUTH_LABOR', convert(authValue[0])) commit('SET_AUTH_LABOR', convert(authValue[0]))
commit('SET_AUTH_REALNAME', convert(authValue[1])) commit('SET_AUTH_REALNAME', convert(authValue[1]))
commit('SET_AUTH_BANKCARD', convert(authValue[2])) commit('SET_AUTH_BANKCARD', convert(authValue[2]))

View File

@@ -75,6 +75,10 @@ export function dateFormat(date, format = 'yyyy-MM-dd') {
return ''; return '';
} }
export function stringFilterNum(val,num) {
return val.substring(0, num) + '**' + val.substring(7)
}
export function phoneFilter(val) { export function phoneFilter(val) {
return val.substring(0, 3) + '****' + val.substring(7) return val.substring(0, 3) + '****' + val.substring(7)
} }

View File

@@ -3,7 +3,7 @@ module.exports = {
port: 1887, port: 1887,
proxy: { proxy: {
'/api': { '/api': {
target: 'http://localhost:8000', // 本地服务接口地址 target: 'http://10.165.0.173:8000', // 本地服务接口地址
ws: true, ws: true,
pathRewrite: { pathRewrite: {
'^/api': '/' '^/api': '/'