From 6e8d2563d5df97293d826ec31bddbf2ec290fb14 Mon Sep 17 00:00:00 2001
From: unknown <573515615@qq.com>
Date: Sat, 1 Nov 2025 07:56:04 +0800
Subject: [PATCH] =?UTF-8?q?'=E5=B7=A5=E4=BD=9C=E8=AF=81'?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
components/CustomTabBar.vue | 7 +-
pages/index/index.vue | 51 ++++++--
pages/mine/apply.vue | 234 +++++++++++++++++++++++-------------
pages/mine/mine.vue | 123 ++++++++++++++++++-
4 files changed, 314 insertions(+), 101 deletions(-)
diff --git a/components/CustomTabBar.vue b/components/CustomTabBar.vue
index 862a2a7..d835258 100644
--- a/components/CustomTabBar.vue
+++ b/components/CustomTabBar.vue
@@ -64,9 +64,10 @@ export default{
});
},
linkOrder(){
- uni.navigateTo({
- url: '/pages/type/type'
- });
+ // uni.navigateTo({
+ // url: '/pages/type/type'
+ // });
+ this.$emit('centerClick','')
}
},
mounted(){
diff --git a/pages/index/index.vue b/pages/index/index.vue
index 1da1966..8be93a9 100644
--- a/pages/index/index.vue
+++ b/pages/index/index.vue
@@ -13,7 +13,7 @@
-
+
{{cityText||'选择城市'}}
@@ -249,25 +249,27 @@
好的
-
-
+
+
工作证
- 张天辰
- 工号:GH02301~
-
+ {{personInfo.realname}}
+
+
人身保险
- 已上传
+ 已上传
+ 待上传
健康证
- 已上传
+ 已上传
+ 待上传
- 高空作业证
+
@@ -329,7 +331,7 @@
-
+
@@ -352,6 +354,8 @@
export default {
data() {
return {
+ userinfo: {},
+ personInfo: {},
jscode:'',
// limit:3,
typelist: [],
@@ -467,6 +471,7 @@
onHide() {
},
onLoad() {
+ this.getauth()
// this.getdata()
// this.getquestion()
// this.recycleOrderList()
@@ -510,6 +515,21 @@
}
},
methods: {
+ centerClick(val){
+ console.log(val,'fff')
+ this.pop2Show = true;
+ },
+ getauth(){
+ var _this = this;
+ _this.$api.userInfo({},res=>{
+ if(res.code == '1'){
+ _this.userinfo = res.data.user
+ _this.personInfo = res.data.person
+ _this.cityText = res.data.person.city_ids_show
+ }else{
+ }
+ })
+ },
back_city(res){
if(res){
this.cityText = res.cityName;
@@ -1489,5 +1509,16 @@
color: #333333;
line-height: 36rpx;
}
+ .rightText2{
+ width: 115rpx;
+ height: 48rpx;
+ line-height: 48rpx;
+ text-align: center;
+ background: rgba(251,143,12,0.1);
+ border-radius: 10rpx;
+ font-weight: 400;
+ font-size: 30rpx;
+ color: #FB8F0C;
+ }
diff --git a/pages/mine/apply.vue b/pages/mine/apply.vue
index 4be664c..ca57417 100644
--- a/pages/mine/apply.vue
+++ b/pages/mine/apply.vue
@@ -1,98 +1,113 @@
-
-
-
- 身份证信息
- 上传本人身份证照片,保持图片清晰完整
-
-
-
-
-
-
-
-
-
+
+
+
+
+ 身份证信息
+ 上传本人身份证照片,保持图片清晰完整
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
- 真实姓名
-
-
+
+
+ 真实姓名
+
+
+
+
+
+ 身份证号
+
+
+
+
+
+ 有效日期
+
+ {{id_card_start_date||'开始时间'}}
+
+ 至
+ {{id_card_end_date||'结束时间'}}
+
+
+
+
+
+
+ 证件地址
+
+
+
+
+
+ 联系电话
+
+
+
+
+
+ 代理区域
+
+
+ {{provinceName||'请选择省份'}}
+ -
+ {{cityName||'请选择城市'}}
+
+
-
- 身份证号
-
-
-
+
+
+
+ Tips:我们会在3个工作日内审核并与您联系,请注意接听电话。
-
- 有效日期
-
- {{id_card_start_date||'开始时间'}}
-
- 至
- {{id_card_end_date||'结束时间'}}
-
-
-
-
-
-
- 证件地址
-
-
-
-
-
- 联系电话
-
-
-
-
-
- 代理区域
-
-
- {{provinceName||'请选择省份'}}
- -
- {{cityName||'请选择城市'}}
-
+
+
+
+ 提交申请
-
-
-
- Tips:我们会在3个工作日内审核并与您联系,请注意接听电话。
-
-
-
-
- 提交申请
+
+ 已经申请加盟
+
+
+ 姓名
+ {{userinfo.realname}}
+
+
+ 身份证号
+ {{userinfo.id_card_number}}
+
@@ -105,6 +120,7 @@
export default {
data() {
return {
+ userinfo: {},
showStartDate: false,
showEndDate: false,
dateStart: Number(new Date()),
@@ -129,12 +145,38 @@
imgUpload
},
onLoad() {
+ this.getauth()
this.allarealist()
},
onShow() {
},
methods: {
+ getauth(){
+ var _this = this;
+
+ let obj = uni.getStorageSync('personInfo');
+ obj.realname = this.maskName(obj.realname)
+ obj.id_card_number = this.maskName(obj.id_card_number);
+ _this.userinfo = obj;
+ // _this.$api.userInfo({},res=>{
+ // if(res.code == '1'){
+ // _this.userinfo = res.data.person
+ // }else{
+ // }
+ // })
+ },
+ maskName(name) {
+ if (name.length > 1) {
+ return name.slice(0, 1) + '*'.repeat(name.length - 1);
+ } else {
+ return name; // 如果名字只有一个字,则不替换
+ }
+ },
+ maskIdCard(idCard) {
+ if (idCard.length <= 2) return idCard; // 如果身份证号长度小于等于2,直接返回
+ return idCard.slice(0, 1) + '*'.repeat(idCard.length - 2) + idCard.slice(-1);
+ },
confirmProvince(val){
console.log(val,val.value[0],val.value[0].children)
this.cityList = val.value[0].children
@@ -313,4 +355,30 @@
line-height: 36rpx;
}
}
+
+ .userBox{
+ padding-top: 100rpx;
+ display: flex;
+ flex-direction: column;
+ justify-content: center;
+ align-items: center;
+ .userTitle{
+ font-size: 36rpx;
+ font-weight: bold;
+ }
+ .userContent{
+ background: #fff;
+ width: 700rpx;
+ margin-top: 100rpx;
+ padding: 30rpx;
+ border-radius: 20rpx;
+ .userName{
+ border-bottom: 1rpx solid #F5F5FA;
+ padding-bottom: 30rpx;
+ }
+ .userID{
+ margin-top: 30rpx;
+ }
+ }
+ }
\ No newline at end of file
diff --git a/pages/mine/mine.vue b/pages/mine/mine.vue
index 9b348bb..40474ad 100644
--- a/pages/mine/mine.vue
+++ b/pages/mine/mine.vue
@@ -275,8 +275,32 @@
/>
-->
-
-
+
+
+
+
+
+ 工作证
+ {{personInfo.realname}}
+
+
+
+
+ 人身保险
+ 已上传
+ 待上传
+
+
+ 健康证
+ 已上传
+ 待上传
+
+
+
+
+
+
+
@@ -291,7 +315,8 @@
user_money:0,
person_money:0,
exchange_shop:'',
- userinfo:{},
+ userinfo:{},
+ personInfo: {},
headflag:false,
nickname:'微信用户',
person:{},
@@ -303,7 +328,8 @@
passwordShow: false,
eyeOpen: false,
chargeShow: false,
- chargeNum: ''
+ chargeNum: '',
+ pop2Show: false
}
},
components:{
@@ -334,6 +360,10 @@
},
methods: {
+ centerClick(val){
+ console.log(val,'fff')
+ this.pop2Show = true;
+ },
createRecharge(){
console.log(this.person)
let data = {
@@ -400,12 +430,15 @@
if(res.data.user.avatar){
_this.avatar = res.data.user.avatar
}
+ _this.userinfo = res.data.user
+ _this.personInfo = res.data.person
// console.log(res.data.user)
_this.nickname = res.data.user.nickname
_this.point = res.data.user.user_point
_this.user_money = res.data.user.money
_this.person_money = res.data.user.person_money
- _this.person = res.data.person
+ _this.person = res.data.person
+ uni.setStorageSync('personInfo', res.data.person);
}else if(res.code == '0'){
_this.avatar = '/static/img/t2.png';
@@ -948,5 +981,85 @@ button::after{
font-weight: 500;
font-size: 28rpx;
color: #FFFFFF;
+ }
+
+ .popBoxTwo{
+ width: 520rpx;
+ height: 800rpx;
+ .popTwoImg{
+ position: absolute;
+ left: 0;
+ top: 0;
+ width: 100%;
+ height: 100%;
+ z-index: 1;
+ }
+ .popContent{
+ position: absolute;
+ left: 0;
+ top: 0;
+ width: 100%;
+ height: 100%;
+ z-index: 2;
+ display: flex;
+ flex-direction: column;
+ justify-content: flex-start;
+ align-items: center;
+ .popTwoText1{
+ font-weight: bold;
+ font-size: 48rpx;
+ color: #7F5C2A;
+ line-height: 60rpx;
+ margin-top: 106rpx;
+ }
+ .popTwoText2{
+ font-weight: bold;
+ font-size: 36rpx;
+ color: #4F3D24;
+ margin-top: 29rpx;
+ }
+ .popTwoText3{
+ font-weight: 400;
+ font-size: 24rpx;
+ color: #B8A58B;
+ }
+ .popTwoText4{
+ width: 420rpx;
+ height: 60rpx;
+ line-height: 60rpx;
+ padding-left: 27rpx;
+ background: rgba(255,141,96,0.1);
+ border-radius: 10rpx;
+ // opacity: 0.1;
+ font-weight: 400;
+ font-size: 24rpx;
+ color: #C56742;
+ margin-top: 15rpx;
+ }
+ .popTowHeadImg{
+ width: 300rpx;
+ height: 300rpx;
+ background: #FCA30D;
+ border-radius: 30rpx;
+ margin-top: 23rpx;
+ }
+ .text1{
+ font-weight: 500;
+ font-size: 24rpx;
+ color: #000000;
+ }
+ .status{
+ width: 80rpx;
+ height: 36rpx;
+ line-height: 36rpx;
+ background: #FF8D60;
+ border-radius: 10rpx;
+ font-weight: 500;
+ font-size: 20rpx;
+ color: #FFFFFF;
+ margin-left: 9rpx;
+ text-align: center;
+ }
+ }
}
\ No newline at end of file