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
ad450498
Commit
ad450498
authored
Jan 14, 2025
by
liwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善了实名认证相关页面,修改了动态详情页面
parent
2b77c5df
Changes
8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
206 additions
and
195 deletions
+206
-195
index.js
api/article/index.js
+7
-0
index.js
api/user/index.js
+12
-1
Item.vue
pages/components/article/Item.vue
+1
-1
articleDetail.vue
pagesArticle/articleDetail.vue
+160
-124
articleItem.vue
pagesArticle/components/articleItem.vue
+9
-7
doubleauth.vue
pagesme/me/doubleauth.vue
+1
-2
identityauthentication.vue
pagesme/me/identityauthentication.vue
+15
-59
index.vue
webView/index.vue
+1
-1
No files found.
api/article/index.js
View file @
ad450498
...
...
@@ -36,3 +36,10 @@ export function getOssUrl(id) {
})
}
//查看动态详情
export
function
articleDetail
(
articleId
){
return
request
({
url
:
'/opmarticle/detail/'
+
articleId
,
method
:
'GET'
,
})
}
api/user/index.js
View file @
ad450498
...
...
@@ -23,7 +23,7 @@ export function userDetail(data){
}
/**
*
实名认证
*
修改用户实名信息
*/
export
function
realAuth
(
data
){
return
request
({
...
...
@@ -32,3 +32,14 @@ export function realAuth(data){
data
:
data
,
});
}
/**
* 校验实名信息
*/
export
function
checkRealAuth
(
data
){
return
request
({
method
:
"put"
,
url
:
'/app/memInfo/checkIdCard/'
+
data
.
businessId
,
data
:
data
,
});
}
pages/components/article/Item.vue
View file @
ad450498
...
...
@@ -171,7 +171,7 @@
//查看动态详情
gotoDetail
(
item
)
{
uni
.
navigateTo
({
url
:
'/pagesArticle/articleDetail?
userId='
+
item
.
user
Id
url
:
'/pagesArticle/articleDetail?
articleId='
+
item
.
business
Id
})
},
//查看用户详情
...
...
pagesArticle/articleDetail.vue
View file @
ad450498
This diff is collapsed.
Click to expand it.
pagesArticle/components/articleItem.vue
View file @
ad450498
<
template
>
<view
class=
"item"
>
<view
class=
"left"
>
<image
@
click=
"gotoUserInfo(info)"
:src=
"info.
headPortrait
"
mode=
"aspectFill"
></image>
<image
@
click=
"gotoUserInfo(info)"
:src=
"info.
memAvatar
"
mode=
"aspectFill"
></image>
</view>
<view
class=
"center"
>
<template>
<view
class=
"name"
>
<text
@
click=
"gotoUserInfo(info)"
>
{{
info
.
n
ickName
}}
</text>
<image
v-if=
"info.gender
!='MALE
'"
class=
"gender"
:src=
"baseUrl+'/user/famale.png'"
mode=
""
>
<text
@
click=
"gotoUserInfo(info)"
>
{{
info
.
memN
ickName
}}
</text>
<image
v-if=
"info.gender
!= '男
'"
class=
"gender"
:src=
"baseUrl+'/user/famale.png'"
mode=
""
>
</image>
<image
v-else
class=
"gender"
:src=
"baseUrl+'/user/male.png'"
mode=
""
></image>
</view>
<view
class=
"info"
>
<text
decode=
"true"
style=
"color: #434343;"
>
{{
info
.
information
}}
</text>
<text
decode=
"true"
style=
"color: #434343;"
>
{{
info
.
memAge
}}
·
{{
info
.
city
}}
·
{{
info
.
memMaxEducation
}}
·
{{
info
.
memCareer
}}
</text>
</view>
</
template
>
<view
class=
"content"
>
...
...
@@ -33,7 +35,7 @@
@
close=
"close"
></q-previewImage>
</view>
<view
class=
"time"
>
{{info.
tim
e}}
{{info.
createDat
e}}
</view>
</view>
</view>
...
...
@@ -60,8 +62,8 @@
watch
:
{
info
:
{
handler
(
newValue
)
{
if
(
newValue
?.
img
?.
length
)
{
this
.
imgs
=
newValue
.
img
if
(
newValue
?.
url
?.
length
)
{
this
.
imgs
=
newValue
.
url
}
},
deep
:
true
,
...
...
pagesme/me/doubleauth.vue
View file @
ad450498
...
...
@@ -48,8 +48,7 @@
ELM
},
onShow
()
{
var
that
=
this
;
this
.
getUserIno
();
},
methods
:
{
//身份认证
...
...
pagesme/me/identityauthentication.vue
View file @
ad450498
...
...
@@ -47,7 +47,7 @@
</
template
>
<
script
>
import
ELM
from
'@/components/elm-toast/index.vue'
;
import
{
realAuth
}
from
"../../api/user"
;
import
{
checkRealAuth
,
realAuth
}
from
"../../api/user"
;
export
default
{
data
()
{
return
{
...
...
@@ -139,65 +139,21 @@
}
},
async
authadd
()
{
uni
.
navigateTo
({
url
:
"/webView/index"
})
// const userInfo = uni.getStorageSync('userInfo')
// const params = {
// businessId: userInfo.businessId,
// memRealName: this.form.memRealName,
// memIdcard: this.form.memIdcard
// }
// realAuth(params).then(res => {
// if (res.data.code == 200){
// uni.navigateTo({
// url: "/webView/index"
// })
// }else {
//
// }
// })
const
userInfo
=
uni
.
getStorageSync
(
'userInfo'
)
const
params
=
{
businessId
:
userInfo
.
businessId
,
memRealName
:
this
.
form
.
memRealName
,
memIdcard
:
this
.
form
.
memIdcard
}
checkRealAuth
(
params
).
then
(
res
=>
{
if
(
res
.
data
.
code
==
200
){
uni
.
navigateTo
({
url
:
"/webView/index"
})
}
else
{
// var that = this;
// var imgList = [];
// if (!that.updatezImg) {
// this.tipMsg = "请上传正面照片";
// this.$refs.elm.showDialog();
// return false;
// } else {
// imgList.push(that.updatezImg)
// }
// if (!that.updatefImg) {
// this.tipMsg = "请上传反面照片";
// this.$refs.elm.showDialog();
// return false;
// } else {
// imgList.push(that.updatefImg)
// }
// var data = {
// "authType": "IdentityAuth",
// "imgList": imgList
// }
// uni.showLoading({
// title: "提交中"
// })
// const res = await that.$myRequest({
// url: '/nostalgia/fruserauth/add',
// withToken: true,
// data: data,
// method: 'POST',
// });
// uni.hideLoading();
// if (res.data.code == 200) {
// this.isConfirm=true;
// this.tipMsg = "提交成功";
// this.$refs.elm.showDialog();
//
// } else {
// this.tipMsg = res.data.msg;
// this.$refs.elm.showDialog();
// }
}
})
},
confirm
()
{
this
.
isConfirm
=
false
;
...
...
webView/index.vue
View file @
ad450498
<
template
>
<view>
<web-view
:src=
"'http://
localhost:8080/test
.html?token='+token"
></web-view>
<web-view
:src=
"'http://
106.3.97.198:20162/realAuth
.html?token='+token"
></web-view>
</view>
</
template
>
...
...
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