Commit c8b30b6d authored by 罗林杰's avatar 罗林杰

修改实名认证

parent 1dc18a62
...@@ -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": {
......
...@@ -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
......
...@@ -12,13 +12,23 @@ ...@@ -12,13 +12,23 @@
<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>
<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>
<ELM ref="elm" :msg="tipMsg" :isConfirm="isConfirm" ></ELM> <ELM ref="elm" :msg="tipMsg" :isConfirm="isConfirm" ></ELM>
</view> </view>
</template> </template>
...@@ -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>
......
...@@ -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,13 +148,21 @@ ...@@ -148,13 +148,21 @@
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>
<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 class="w690 p30 bcfff br20 mt30 ml30 p30"> <view class="w690 p30 bcfff br20 mt30 ml30 p30">
...@@ -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) {
......
<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>
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