Commit 1cedf6a1 authored by 5359's avatar 5359

增加用户注册校验和注册信息清除

parent 6fc060d8
Pipeline #6288 canceled with stages
......@@ -3,11 +3,11 @@
<h-content v-if="status != '成功'">
<list-item class="reg-content">
<!-- <div class="repre-type" v-if="faceAuthStatus != 'SUCCESS'">
<input type="radio" name="agent" v-model="agentType" @change="isAgent" value="Y" />
代理店
<input
style="margin-left:32px"
type="radio"
......@@ -230,6 +230,13 @@
left: 50%;"
@click="next_step()"
>下一步</button>
<p/>
<button v-if="showStatus== 1"
@click="go_forword()"
class="next-step"
style="margin-top:20px"
>退出
</button>
</div>
<!-- 组织其他员工 -->
......@@ -421,6 +428,13 @@
</div>
</div>
<button class="next-step" @click="next_step_oth()">下一步</button>
<p/>
<button v-if="showStatus== 1"
@click="go_forword()"
class="next-step"
style="margin-top:20px"
>退出
</button>
</div>
</list-item>
</h-content>
......@@ -766,7 +780,8 @@ export default {
faceAuthStatus: "",
orgAuthStatus: "",
authAttachmentId: "",
authOrgAttachmentId: ""
authOrgAttachmentId: "",
showStatus: "",
};
},
......@@ -1190,6 +1205,27 @@ export default {
}
});
},
// 退出
go_forword() {
let vm = this;
let url = process.env.rootPath + "/accounts/outerAccounts/delete";
let param = {
openId: window.localStorage.openId
};
vm.hlsPopup.showLoading("请稍等");
vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading();
if (res.code == 0) {
vm.$vux.toast.text(res.message, "middle");
window.open(
"http://lease.hitachics.com/www/#/UserRegister",
"_self"
);
} else {
vm.$vux.toast.text(res.message, "middle");
}
});
},
// 认证结果返回给接口
authResult(id, code, suc) {
let vm = this;
......@@ -1242,6 +1278,7 @@ export default {
vm.faceAuthStatus = data.faceAuthStatus;
vm.orgAuthStatus = data.orgAuthStatus;
vm.agentType = data.dealerFlag ? data.dealerFlag : "Y";
vm.showStatus = "1";
if (data.ctitype == 2) {
if (data.agentType == 1) {
//法定代表人
......
......@@ -40,7 +40,7 @@ export default {
isClick2: false,
isHighLight: true,
isHighLight1: true,
isReadOnlyPersonal: true,
isReadOnlyPersonal: false,
isReadOnlyCompany: false,
userInfo: null,
userInfo1: null,
......
This diff is collapsed.
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