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

@@ -6,7 +6,7 @@
姓名 姓名
</view> </view>
<view class="user_Right"> <view class="user_Right">
{{auth.authInfo.realName}} {{ auth.authInfo.realName }}
</view> </view>
</view> </view>
<view class="userBaseList"> <view class="userBaseList">
@@ -14,7 +14,7 @@
性别 性别
</view> </view>
<view class="user_Right"> <view class="user_Right">
{{auth.authInfo.sex===1?'男':'女'}} {{ auth.authInfo.sex === 1 ? '男' : '女' }}
</view> </view>
</view> </view>
<view class="userBaseList"> <view class="userBaseList">
@@ -22,7 +22,7 @@
出生年月 出生年月
</view> </view>
<view class="user_Right"> <view class="user_Right">
{{birthday}} {{ birthday }}
</view> </view>
</view> </view>
<view class="userBaseList"> <view class="userBaseList">
@@ -30,7 +30,7 @@
手机号 手机号
</view> </view>
<view class="user_Right"> <view class="user_Right">
{{auth.authInfo.telphone}} {{ auth.authInfo.telphone }}
</view> </view>
</view> </view>
<view class="userBaseList"> <view class="userBaseList">
@@ -53,17 +53,17 @@
</template> </template>
<script> <script>
import { import {
userInfo userInfo
} from '@/api/resume.js'; } from '@/api/resume.js';
import { import {
dateFormat dateFormat
} from "../../untils/format.js"; } from "../../untils/format.js";
import { import {
mapGetters mapGetters
} from 'vuex' } from 'vuex'
export default { export default {
data() { data() {
return { return {
userInfo: {} userInfo: {}
@@ -72,69 +72,73 @@
computed: { computed: {
...mapGetters(['auth', 'authInfo']), ...mapGetters(['auth', 'authInfo']),
birthday() { birthday() {
return dateFormat(new Date(this.authInfo.birthday.replace(/\-/g, "/").replace('T',' ')), "yyyy-MM"); if (!!this.authInfo.birthday) {
return dateFormat(new Date(this.authInfo.birthday.replace(/\-/g, "/").replace('T', ' ')), "yyyy-MM");
} else {
return "暂无"
}
} }
}, },
onShow() {}, onShow() { },
methods: { methods: {
goSetUserBase: function() { goSetUserBase: function () {
uni.navigateTo({ uni.navigateTo({
url: '../setUserBase/index' url: '../setUserBase/index'
}) })
} }
} }
} }
</script> </script>
<style> <style>
.nothingText text { .nothingText text {
color: #1B66FF; color: #1B66FF;
} }
.nothingText { .nothingText {
text-align: center; text-align: center;
font-family: PingFangSC-Regular; font-family: PingFangSC-Regular;
font-size: 28rpx; font-size: 28rpx;
color: #666666; color: #666666;
margin-top: 20rpx; margin-top: 20rpx;
} }
.nothing { .nothing {
display: block; display: block;
margin: 0 auto; margin: 0 auto;
width: 400rpx; width: 400rpx;
height: 200rpx; height: 200rpx;
margin-top: 50%; margin-top: 50%;
} }
.user_Right { .user_Right {
font-family: PingFangSC-Regular; font-family: PingFangSC-Regular;
font-size: 28rpx; font-size: 28rpx;
color: #999999; color: #999999;
} }
.user_left { .user_left {
font-family: PingFangSC-Regular; font-family: PingFangSC-Regular;
font-size: 32rpx; font-size: 32rpx;
color: #333333; color: #333333;
} }
.userBaseList { .userBaseList {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
padding: 30rpx; padding: 30rpx;
padding-left: 0; padding-left: 0;
border-bottom: 1rpx solid #dddddd; border-bottom: 1rpx solid #dddddd;
} }
.userBase { .userBase {
background-color: #fefefe; background-color: #fefefe;
padding-left: 30rpx; padding-left: 30rpx;
margin-top: 30rpx; margin-top: 30rpx;
} }
page { page {
background-color: #fff; background-color: #fff;
} }
</style> </style>

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,11 +6,12 @@
<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">
<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>
@@ -99,14 +100,14 @@
</template> </template>
<script> <script>
import { import {
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 {
data() { data() {
return { return {
federationStatus: false federationStatus: false
@@ -129,8 +130,8 @@
// 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
}) })
}, },
@@ -149,25 +150,26 @@
url url
}) })
}, },
makePhoneCall: function() { makePhoneCall: function () {
uni.makePhoneCall({ uni.makePhoneCall({
phoneNumber: "18500206848" phoneNumber: "18500206848"
}) })
}, },
phoneFilter phoneFilter,stringFilterNum
}, },
computed: { computed: {
...mapGetters(['userInfo', 'auth', 'authPass']) ...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;
@@ -180,8 +182,9 @@
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%);
@@ -192,9 +195,9 @@
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;
@@ -203,22 +206,22 @@
/* 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;
@@ -226,16 +229,16 @@
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;
@@ -243,16 +246,16 @@
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;
@@ -260,55 +263,56 @@
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, .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;

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>
@@ -99,7 +102,7 @@ import {
recommendMission, recommendMission,
nearMission nearMission
} from '@/api/mission.js'; } from '@/api/mission.js';
import {getPolicyContent} from '@/api/newIndex.js' import { getPolicyContent } from '@/api/newIndex.js'
import { import {
getcoder getcoder
} from "@/api/map.js"; } from "@/api/map.js";
@@ -149,7 +152,7 @@ export default {
} }
}, },
onLoad: function (option) { onLoad: function (option) {
if(option.tabIndex) { if (option.tabIndex) {
this.activeTab = option.tabIndex this.activeTab = option.tabIndex
} }
this.getData() this.getData()
@@ -249,9 +252,9 @@ export default {
url: '../mapSeach/mapSeach' url: '../mapSeach/mapSeach'
}) })
}, },
getPolicy(){ getPolicy() {
getPolicyContent(1).then(res=>{ getPolicyContent(1).then(res => {
this.policyContentList=res.data.data.records this.policyContentList = res.data.data.records
}) })
}, },
changeTab: function (e) { changeTab: function (e) {
@@ -270,16 +273,16 @@ export default {
} }
}) })
}, },
goPolicyInfo(data){ goPolicyInfo(data) {
if(data){ if (data) {
// var val=encodeURIComponent(data) // var val=encodeURIComponent(data)
uni.navigateTo({ uni.navigateTo({
url:`/pages/user/policyContent?id=${data}` url: `/pages/user/policyContent?id=${data}`
}) })
} }
else{ else {
// uni.showToast({ // uni.showToast({
// title:'暂无内容', // title:'暂无内容',
// icon:'none' // icon:'none'
@@ -396,8 +399,8 @@ export default {
closePopUp() { closePopUp() {
this.showPopUp = false this.showPopUp = false
}, },
subMitPopUp({submitData,areaModal,industryModal}) { subMitPopUp({ submitData, areaModal, industryModal }) {
console.log(submitData,areaModal,industryModal,"------确定"); console.log(submitData, areaModal, industryModal, "------确定");
this.showPopUp = false this.showPopUp = false
} }
} }

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