Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cust-app
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李伟
cust-app
Commits
c8b30b6d
Commit
c8b30b6d
authored
Mar 19, 2025
by
罗林杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改实名认证
parent
1dc18a62
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
222 additions
and
14 deletions
+222
-14
pages.json
pages.json
+10
-1
my.vue
pages/tab/my.vue
+6
-3
doubleauth.vue
pagesme/me/doubleauth.vue
+20
-4
updateInformation.vue
pagesme/me/updateInformation.vue
+14
-6
workcertification.vue
pagesme/me/workcertification.vue
+172
-0
No files found.
pages.json
View file @
c8b30b6d
...
@@ -263,7 +263,7 @@
...
@@ -263,7 +263,7 @@
{
{
"path"
:
"me/doubleauth"
,
"path"
:
"me/doubleauth"
,
"style"
:
{
"style"
:
{
"navigationBarTitleText"
:
"
双重
认证"
,
"navigationBarTitleText"
:
"
实名
认证"
,
"backgroundColor"
:
"#ffffff"
,
"backgroundColor"
:
"#ffffff"
,
"backgroundColorTop"
:
"#ffffff"
,
"backgroundColorTop"
:
"#ffffff"
,
"navigationBarBackgroundColor"
:
"#ffffff"
,
"navigationBarBackgroundColor"
:
"#ffffff"
,
...
@@ -279,6 +279,15 @@
...
@@ -279,6 +279,15 @@
"navigationBarBackgroundColor"
:
"#ffffff"
"navigationBarBackgroundColor"
:
"#ffffff"
}
}
},
},
{
"path"
:
"me/workcertification"
,
"style"
:
{
"navigationBarTitleText"
:
"工作认证"
,
"backgroundColor"
:
"#ffffff"
,
"backgroundColorTop"
:
"#ffffff"
,
"navigationBarBackgroundColor"
:
"#ffffff"
}
},
{
{
"path"
:
"me/editAbout"
,
"path"
:
"me/editAbout"
,
"style"
:
{
"style"
:
{
...
...
pages/tab/my.vue
View file @
c8b30b6d
...
@@ -100,10 +100,10 @@
...
@@ -100,10 +100,10 @@
<view
class=
"content-1"
>
<view
class=
"content-1"
>
<view
class=
"double-auth"
v-if=
"authShow"
>
<view
class=
"double-auth"
v-if=
"authShow"
>
<view
class=
"double-auth-title"
style=
"margin-left: 42rpx;"
>
<view
class=
"double-auth-title"
style=
"margin-left: 42rpx;"
>
双重
认证
实名
认证
</view>
</view>
<view
class=
"double-auth-text"
style=
"width: 88rpx;margin-left: 0rpx;"
>
<view
class=
"double-auth-text"
style=
"width: 88rpx;margin-left: 0rpx;"
>
(
{{
info
.
memAuthCount
}}
/
2
)
(
{{
info
.
memAuthCount
}}
/
3
)
</view>
</view>
<view
class=
"double-auth-text"
style=
"margin-left: 0rpx;"
>
<view
class=
"double-auth-text"
style=
"margin-left: 0rpx;"
>
配对成功率提升200%
配对成功率提升200%
...
@@ -522,7 +522,10 @@ import {activityList, userActivityList} from "../../api/activity";
...
@@ -522,7 +522,10 @@ import {activityList, userActivityList} from "../../api/activity";
if
(
this
.
info
.
memEducationAuthen
===
'1'
){
if
(
this
.
info
.
memEducationAuthen
===
'1'
){
this
.
info
.
memAuthCount
+=
1
this
.
info
.
memAuthCount
+=
1
}
}
if
(
this
.
info
.
memAuthCount
==
2
){
if
(
this
.
info
.
memWorkAuthen
===
'1'
){
this
.
info
.
memAuthCount
+=
1
}
if
(
this
.
info
.
memAuthCount
==
3
){
this
.
authShow
=
false
this
.
authShow
=
false
}
}
this
.
button
[
0
].
num
=
this
.
info
.
goldCoinsCount
this
.
button
[
0
].
num
=
this
.
info
.
goldCoinsCount
...
...
pagesme/me/doubleauth.vue
View file @
c8b30b6d
...
@@ -12,12 +12,22 @@
...
@@ -12,12 +12,22 @@
<view
class=
"auth-item"
>
<view
class=
"auth-item"
>
<image
class=
"auth-img"
:src=
"baseUrl+'/user/xlauth.png'"
></image>
<image
class=
"auth-img"
:src=
"baseUrl+'/user/xlauth.png'"
></image>
<view
class=
"auth-con"
>
<view
class=
"auth-con"
>
<view
class=
"auth-con-1"
>
学历
认证
</view>
<view
class=
"auth-con-1"
>
学历
上传
</view>
<view
class=
"auth-con-2"
style=
"color: #4093fa"
v-if=
"userInfo.memEducationAuthen=='1'"
>
已
认证
</view>
<view
class=
"auth-con-2"
style=
"color: #4093fa"
v-if=
"userInfo.memEducationAuthen=='1'"
>
已
上传
</view>
<view
class=
"auth-con-2"
v-else
>
未
认证
</view>
<view
class=
"auth-con-2"
v-else
>
未
上传
</view>
</view>
</view>
<view
class=
"auth-btn"
@
click=
"goEducationAuth()"
v-if=
"userInfo.memEducationAuthen=='1'"
>
查看
</view>
<view
class=
"auth-btn"
@
click=
"goEducationAuth()"
v-if=
"userInfo.memEducationAuthen=='1'"
>
查看
</view>
<view
class=
"auth-btn"
@
click=
"goEducationAuth()"
v-else
>
立即认证
</view>
<view
class=
"auth-btn"
@
click=
"goEducationAuth()"
v-else
>
立即上传
</view>
</view>
<view
class=
"auth-item"
>
<image
class=
"auth-img"
:src=
"baseUrl+'/user/xlauth.png'"
></image>
<view
class=
"auth-con"
>
<view
class=
"auth-con-1"
>
工作上传
</view>
<view
class=
"auth-con-2"
style=
"color: #4093fa"
v-if=
"userInfo.memWorkAuthen=='1'"
>
已上传
</view>
<view
class=
"auth-con-2"
v-else
>
未上传
</view>
</view>
<view
class=
"auth-btn"
@
click=
"goWorkAuth()"
v-if=
"userInfo.memWorkAuthen=='1'"
>
查看
</view>
<view
class=
"auth-btn"
@
click=
"goWorkAuth()"
v-else
>
立即上传
</view>
</view>
</view>
<ELM
ref=
"elm"
:msg=
"tipMsg"
:isConfirm=
"isConfirm"
></ELM>
<ELM
ref=
"elm"
:msg=
"tipMsg"
:isConfirm=
"isConfirm"
></ELM>
</view>
</view>
...
@@ -61,6 +71,12 @@
...
@@ -61,6 +71,12 @@
url
:
"/pagesme/me/educationcertification"
url
:
"/pagesme/me/educationcertification"
})
})
},
},
//工作认证
goWorkAuth
()
{
uni
.
navigateTo
({
url
:
"/pagesme/me/workcertification"
})
},
}
}
}
}
</
script
>
</
script
>
...
...
pagesme/me/updateInformation.vue
View file @
c8b30b6d
...
@@ -137,7 +137,7 @@
...
@@ -137,7 +137,7 @@
<view
class=
"w690 p30 bcfff br20 mt30 ml30 p30"
>
<view
class=
"w690 p30 bcfff br20 mt30 ml30 p30"
>
<view
class=
"rowic"
>
<view
class=
"rowic"
>
<image
class=
"w30 h30"
:src=
"baseUrl+'/user/xiugai.png'"
mode=
"aspectFill"
></image>
<image
class=
"w30 h30"
:src=
"baseUrl+'/user/xiugai.png'"
mode=
"aspectFill"
></image>
<view
style=
"color: #434343;"
class=
"fs28 fwb ml10"
>
双重认证(
{{
numtwo
}}
/2
)
</view>
<view
style=
"color: #434343;"
class=
"fs28 fwb ml10"
>
实名认证(
{{
numtwo
}}
/3
)
</view>
</view>
</view>
<view
class=
"rowjbic mt25"
>
<view
class=
"rowjbic mt25"
>
<view
class=
"fs28 fwb"
style=
"color: #434343;"
>
实名认证
</view>
<view
class=
"fs28 fwb"
style=
"color: #434343;"
>
实名认证
</view>
...
@@ -148,12 +148,20 @@
...
@@ -148,12 +148,20 @@
style=
"color: #434343; background-color: #F5F6FA;"
@
click=
"gotomation()"
>
未认证
</view>
style=
"color: #434343; background-color: #F5F6FA;"
@
click=
"gotomation()"
>
未认证
</view>
</view>
</view>
<view
class=
"rowjbic mt30"
>
<view
class=
"rowjbic mt30"
>
<view
class=
"fs28 fwb"
style=
"color: #434343;"
>
学历
认证
</view>
<view
class=
"fs28 fwb"
style=
"color: #434343;"
>
学历
上传
</view>
<view
class=
"fs24"
v-if=
"userInfo.memEducationAuthen=='1'"
style=
"color: #434343;"
>
认证
后可查看修改
</view>
<view
class=
"fs24"
v-if=
"userInfo.memEducationAuthen=='1'"
style=
"color: #434343;"
>
上传
后可查看修改
</view>
<view
v-if=
"userInfo.memEducationAuthen=='1'"
class=
"w120 h52 lh52 tc br100 fs28"
<view
v-if=
"userInfo.memEducationAuthen=='1'"
class=
"w120 h52 lh52 tc br100 fs28"
style=
"color: #4093fa; background-color: #F5F6FA;"
@
click=
"gotoeducation()"
>
已
认证
</view>
style=
"color: #4093fa; background-color: #F5F6FA;"
@
click=
"gotoeducation()"
>
已
上传
</view>
<view
v-else
class=
"w120 h52 lh52 tc br100 fs28"
<view
v-else
class=
"w120 h52 lh52 tc br100 fs28"
style=
"color: #434343; background-color: #F5F6FA;"
@
click=
"gotoeducation()"
>
未认证
</view>
style=
"color: #434343; background-color: #F5F6FA;"
@
click=
"gotoeducation()"
>
未上传
</view>
</view>
<view
class=
"rowjbic mt30"
>
<view
class=
"fs28 fwb"
style=
"color: #434343;"
>
工作上传
</view>
<view
class=
"fs24"
v-if=
"userInfo.memWorkAuthen=='1'"
style=
"color: #434343;"
>
上传后可查看修改
</view>
<view
v-if=
"userInfo.memWorkAuthen=='1'"
class=
"w120 h52 lh52 tc br100 fs28"
style=
"color: #4093fa; background-color: #F5F6FA;"
@
click=
"gotoeducation()"
>
已上传
</view>
<view
v-else
class=
"w120 h52 lh52 tc br100 fs28"
style=
"color: #434343; background-color: #F5F6FA;"
@
click=
"gotoeducation()"
>
未上传
</view>
</view>
</view>
</view>
</view>
<!-- 关于我自己-->
<!-- 关于我自己-->
...
@@ -260,7 +268,7 @@ import {getOssUrl} from "../../api/article";
...
@@ -260,7 +268,7 @@ import {getOssUrl} from "../../api/article";
},
},
computed
:
{
computed
:
{
numtwo
()
{
numtwo
()
{
return
+
this
.
userInfo
.
memRealAuthen
+
+
this
.
userInfo
.
memEducationAuthen
;
return
+
this
.
userInfo
.
memRealAuthen
+
+
this
.
userInfo
.
memEducationAuthen
+
+
this
.
userInfo
.
memWorkAuthen
;
}
}
},
},
onLoad
(
option
)
{
onLoad
(
option
)
{
...
...
pagesme/me/workcertification.vue
0 → 100644
View file @
c8b30b6d
<
template
>
<view
class=
"content"
>
<view
@
click=
"showSingleNoPopup"
v-if=
"educationPictureUrl != null "
>
<image
style=
"width: 300rpx;height: 300rpx;border-radius: 24rpx;background: #eee;"
:src=
"educationPictureUrl"
mode=
"aspectFill"
>
</image>
</view>
<block
v-else
class=
"fs0"
>
<view
@
click=
"chooseImg"
class=
"add"
>
+
</view>
</block>
<!-- 单列不滚动 -->
<u-popup
:show=
"singleNoShow"
@
close=
"singleNoClose"
mode=
"bottom"
>
<view
class=
"singleNo"
style=
"border-radius: 24rpx 24rpx 0px 0px;"
>
<view
class=
"singleNo-item"
@
click=
"chooseImg"
>
替换
</view>
<view
class=
"linkage-close"
@
click=
"singleNoClose"
>
取消
</view>
</view>
</u-popup>
<ELM
ref=
"elm"
:msg=
"tipMsg"
:isConfirm=
"isConfirm"
:isCancel=
"false"
@
confirm=
"confirm"
></ELM>
</view>
</
template
>
<
script
>
import
ELM
from
'@/components/elm-toast/index.vue'
;
import
{
updateUser
,
userDetail
}
from
"../../api/user"
;
import
{
getOssUrl
}
from
"../../api/article"
;
export
default
{
data
()
{
return
{
newImageSrc
:
""
,
showList
:
[],
type
:
0
,
singleIndex
:
0
,
singleNoShow
:
false
,
tipMsg
:
''
,
isConfirm
:
false
,
educationPictureUrl
:
null
}
},
components
:
{
ELM
},
onShow
()
{
this
.
loadPage
();
},
methods
:
{
singleNoClose
()
{
this
.
singleNoShow
=
false
;
},
showSingleNoPopup
()
{
this
.
singleNoShow
=
true
;
},
loadPage
()
{
userDetail
(
uni
.
getStorageSync
(
'userInfo'
).
memberId
).
then
(
res
=>
{
//处理图片
if
(
res
.
data
.
data
.
memWorkPictureId
!==
null
&&
res
.
data
.
data
.
memWorkPictureId
!==
''
){
getOssUrl
(
res
.
data
.
data
.
memWorkPictureId
).
then
(
imgRes
=>
{
if
(
imgRes
.
data
.
data
!=
null
)
{
imgRes
.
data
.
data
=
imgRes
.
data
.
data
.
replace
(
/
\\
/g
,
"/"
);
this
.
educationPictureUrl
=
imgRes
.
data
.
data
}
})
}
})
},
chooseImg
()
{
uni
.
chooseImage
({
count
:
1
,
success
:
(
res
)
=>
{
res
.
tempFilePaths
.
forEach
((
i
)
=>
{
uni
.
showLoading
({
title
:
"图片上传中"
})
uni
.
uploadFile
({
url
:
this
.
$BASE_URL
+
'/common/fileUpload'
,
filePath
:
i
,
formData
:
{
file
:
i
,
temp
:
'opmArticle'
,
bucket
:
'cust-91isoft'
},
header
:
{
Authorization
:
'Bearer '
+
uni
.
getStorageSync
(
"token"
),
},
name
:
'file'
,
success
:
(
uploadFileRes
)
=>
{
let
res
=
JSON
.
parse
(
uploadFileRes
.
data
)
this
.
updateImage
(
res
.
data
.
businessId
);
},
});
});
}
});
},
async
updateImage
(
businessId
)
{
var
params
=
{
wxOpenid
:
uni
.
getStorageSync
(
'userInfo'
).
wxOpenid
,
memWorkPictureId
:
businessId
,
memWorkAuthen
:
'1'
}
updateUser
(
params
).
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
)
{
this
.
isConfirm
=
true
;
this
.
tipMsg
=
"上传成功"
;
this
.
singleNoClose
();
this
.
loadPage
();
this
.
$refs
.
elm
.
showDialog
();
}
else
{
this
.
tipMsg
=
res
.
data
.
msg
;
this
.
$refs
.
elm
.
showDialog
();
}
})
},
confirm
()
{
this
.
isConfirm
=
false
;
}
}
}
</
script
>
<
style
lang=
"scss"
>
.content
{
width
:
100%
;
box-sizing
:
border-box
;
padding
:
0
32rpx
;
}
// 单列不滚动
.singleNo
{
width
:
100%
;
height
:
auto
;
background-color
:
#F7F7F7
;
.singleNo-item
{
width
:
100%
;
height
:
108rpx
;
background-color
:
#fff
;
line-height
:
108rpx
;
text-align
:
center
;
font-weight
:
400
;
color
:
#000000
;
font-size
:
32rpx
;
border-bottom
:
2rpx
solid
#f7f7f7
;
// -webkit-background-clip: text;
}
.linkage-close
{
width
:
750rpx
;
height
:
108rpx
;
text-align
:
center
;
line-height
:
108rpx
;
font-size
:
32rpx
;
font-weight
:
400
;
background-color
:
#fff
;
margin-top
:
16rpx
;
}
}
.add
{
color
:
#D5D5D5
;
background-color
:
#EBEBEB
;
width
:
300rpx
;
font-size
:
99rpx
;
text-align
:
center
;
height
:
300rpx
;
line-height
:
280rpx
;
border-radius
:
24rpx
;
}
</
style
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment