Commit e7d28d9a authored by liwei's avatar liwei

修改了实名认证

parent eca83fb6
...@@ -78,20 +78,23 @@ ...@@ -78,20 +78,23 @@
methods: { methods: {
async authadd() { async authadd() {
const userInfo = uni.getStorageSync('userInfo') const userInfo = uni.getStorageSync('userInfo')
const params = { uni.navigateTo({
businessId: userInfo.businessId, url: "/webView/index?userId=" + userInfo.businessId + '&memRealName=' + this.form.memRealName + '&memIdcard=' +this.form.memIdcard
memRealName: this.form.memRealName,
memIdcard: this.form.memIdcard
}
checkRealAuth(params).then(res => {
if (res.data.code == 200){
uni.navigateTo({
url: "/webView/index"
})
} else {
this.errorAuthMessage = res.data.message
}
}) })
// 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?businessId=" + userInfo.businessId + '&memRealName=' + this.form.memRealName + '&memIdcard=' +this.form.memIdcard
// })
// } else {
// this.errorAuthMessage = res.data.message
// }
// })
}, },
} }
} }
......
<template> <template>
<view> <view>
<!-- <web-view :src="'http://106.3.97.198:20163/realAuth.html?token='+token"></web-view>--> <!-- <web-view :src="'http://106.3.97.198:20163/realAuth.html?token='+token"></web-view>-->
<web-view :src="webUrl+'/realAuth.html?token='+token" @message="receiveMessage"></web-view> <web-view :src="webUrl+'/realAuth.html?token='+token + '&userId=' + userId + '&memIdcard=' + memIdcard + '&memRealName=' + memRealName" @message="receiveMessage"></web-view>
</view> </view>
</template> </template>
...@@ -14,10 +14,15 @@ export default { ...@@ -14,10 +14,15 @@ export default {
return { return {
webUrl:this.$WEBVIEW_URL, webUrl:this.$WEBVIEW_URL,
token:uni.getStorageSync('token'), token:uni.getStorageSync('token'),
userId: null,
memIdcard:'',
memRealName:''
}; };
}, },
onLoad() { onLoad(params) {
this.userId = params.userId
this.memIdcard = params.memIdcard
this.memRealName = params.memRealName
}, },
methods: { methods: {
receiveMessage(event){ receiveMessage(event){
......
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