Commit ad450498 authored by liwei's avatar liwei

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

parent 2b77c5df
...@@ -36,3 +36,10 @@ export function getOssUrl(id) { ...@@ -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){ ...@@ -23,7 +23,7 @@ export function userDetail(data){
} }
/** /**
* 实名认证 * 修改用户实名信息
*/ */
export function realAuth(data){ export function realAuth(data){
return request({ return request({
...@@ -32,3 +32,14 @@ export function realAuth(data){ ...@@ -32,3 +32,14 @@ export function realAuth(data){
data: data, data: data,
}); });
} }
/**
* 校验实名信息
*/
export function checkRealAuth(data){
return request({
method: "put",
url: '/app/memInfo/checkIdCard/'+ data.businessId,
data: data,
});
}
...@@ -171,7 +171,7 @@ ...@@ -171,7 +171,7 @@
//查看动态详情 //查看动态详情
gotoDetail(item) { gotoDetail(item) {
uni.navigateTo({ uni.navigateTo({
url: '/pagesArticle/articleDetail?userId=' + item.userId url: '/pagesArticle/articleDetail?articleId=' + item.businessId
}) })
}, },
//查看用户详情 //查看用户详情
......
This diff is collapsed.
<template> <template>
<view class="item"> <view class="item">
<view class="left"> <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>
<view class="center"> <view class="center">
<template> <template>
<view class="name"> <view class="name">
<text @click="gotoUserInfo(info)">{{info.nickName}}</text> <text @click="gotoUserInfo(info)">{{info.memNickName}}</text>
<image v-if="info.gender!='MALE'" class="gender" :src="baseUrl+'/user/famale.png'" mode=""> <image v-if="info.gender != '男'" class="gender" :src="baseUrl+'/user/famale.png'" mode="">
</image> </image>
<image v-else class="gender" :src="baseUrl+'/user/male.png'" mode=""></image> <image v-else class="gender" :src="baseUrl+'/user/male.png'" mode=""></image>
</view> </view>
<view class="info"> <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> </view>
</template> </template>
<view class="content"> <view class="content">
...@@ -33,7 +35,7 @@ ...@@ -33,7 +35,7 @@
@close="close"></q-previewImage> @close="close"></q-previewImage>
</view> </view>
<view class="time"> <view class="time">
{{info.time}} {{info.createDate}}
</view> </view>
</view> </view>
</view> </view>
...@@ -60,8 +62,8 @@ ...@@ -60,8 +62,8 @@
watch: { watch: {
info: { info: {
handler(newValue) { handler(newValue) {
if (newValue?.img?.length) { if (newValue?.url?.length) {
this.imgs = newValue.img this.imgs = newValue.url
} }
}, },
deep: true, deep: true,
......
...@@ -48,8 +48,7 @@ ...@@ -48,8 +48,7 @@
ELM ELM
}, },
onShow() { onShow() {
var that = this;
this.getUserIno();
}, },
methods: { methods: {
//身份认证 //身份认证
......
...@@ -47,7 +47,7 @@ ...@@ -47,7 +47,7 @@
</template> </template>
<script> <script>
import ELM from '@/components/elm-toast/index.vue'; import ELM from '@/components/elm-toast/index.vue';
import {realAuth} from "../../api/user"; import {checkRealAuth, realAuth} from "../../api/user";
export default { export default {
data() { data() {
return { return {
...@@ -139,65 +139,21 @@ ...@@ -139,65 +139,21 @@
} }
}, },
async authadd() { async authadd() {
uni.navigateTo({ const userInfo = uni.getStorageSync('userInfo')
url: "/webView/index" const params = {
}) businessId: userInfo.businessId,
// const userInfo = uni.getStorageSync('userInfo') memRealName: this.form.memRealName,
// const params = { memIdcard: this.form.memIdcard
// businessId: userInfo.businessId, }
// memRealName: this.form.memRealName, checkRealAuth(params).then(res => {
// memIdcard: this.form.memIdcard if (res.data.code == 200){
// } uni.navigateTo({
// realAuth(params).then(res => { url: "/webView/index"
// if (res.data.code == 200){ })
// uni.navigateTo({ }else {
// 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() { confirm() {
this.isConfirm=false; this.isConfirm=false;
......
<template> <template>
<view> <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> </view>
</template> </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