Commit ad450498 authored by liwei's avatar liwei

完善了实名认证相关页面,修改了动态详情页面

parent 2b77c5df
......@@ -36,3 +36,10 @@ export function getOssUrl(id) {
})
}
//查看动态详情
export function articleDetail(articleId){
return request({
url: '/opmarticle/detail/' + articleId,
method: 'GET',
})
}
......@@ -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,
});
}
......@@ -171,7 +171,7 @@
//查看动态详情
gotoDetail(item) {
uni.navigateTo({
url: '/pagesArticle/articleDetail?userId=' + item.userId
url: '/pagesArticle/articleDetail?articleId=' + item.businessId
})
},
//查看用户详情
......
This diff is collapsed.
<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.nickName}}</text>
<image v-if="info.gender!='MALE'" class="gender" :src="baseUrl+'/user/famale.png'" mode="">
<text @click="gotoUserInfo(info)">{{info.memNickName}}</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.time}}
{{info.createDate}}
</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,
......
......@@ -48,8 +48,7 @@
ELM
},
onShow() {
var that = this;
this.getUserIno();
},
methods: {
//身份认证
......
......@@ -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;
......
<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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment