|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<div>
|
|
|
- <common @asynCallBack="asynCallBack" :projectCheck="false"></common>
|
|
|
+ <common @asynCallBack="asynCallBack" ></common>
|
|
|
<top-header :pageTitle="pageTitle" :leftShow="false"></top-header>
|
|
|
|
|
|
<div class="mui-content">
|
|
@@ -85,7 +85,7 @@
|
|
|
this.subForm.name = this.person_temp.name;
|
|
|
this.subForm.phone = this.person_temp.phone;
|
|
|
}
|
|
|
-
|
|
|
+ //console.log(this.$route.query.companyName)
|
|
|
if (!this.project) {
|
|
|
this.project = Dictionaries.getProject(0);
|
|
|
}
|
|
@@ -170,6 +170,7 @@
|
|
|
openId: openid,
|
|
|
telephone: this.subForm.phone,
|
|
|
}).then(response => {
|
|
|
+
|
|
|
if (response.token) {
|
|
|
this.set_token(response.token);
|
|
|
if (response.personInfo.faceImageUrl) {
|
|
@@ -186,8 +187,11 @@
|
|
|
})
|
|
|
}
|
|
|
} else {
|
|
|
+
|
|
|
//注册
|
|
|
- this.confirmRegister();
|
|
|
+ this.confirmRegister();
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
|
|
|
this.isLoading = false;
|
|
@@ -203,13 +207,35 @@
|
|
|
var btnArray = ['否', '是'];
|
|
|
mui.confirm('当前用户不存在,是否立即注册?', '提示', btnArray, function(e) {
|
|
|
if (e.index == 1) {
|
|
|
- _this.$router.push({
|
|
|
- name: 'RegisterHome',
|
|
|
- query: {
|
|
|
- telephone: _this.subForm.phone,
|
|
|
- project: _this.$route.query.project
|
|
|
- }
|
|
|
- })
|
|
|
+
|
|
|
+
|
|
|
+ if(_this.$route.query.sceneId){
|
|
|
+
|
|
|
+ var obj= {"sceneId":_this.$route.query.sceneId,"sceneName":"工厂园区",
|
|
|
+ "personRoleId":"1","roleName":"员工","name":"",
|
|
|
+ "personId":"","companyId":_this.$route.query.companyId,"companyName":_this.$route.query.companyName,
|
|
|
+ "companyStructureId":"","serviceCompanyId":_this.$route.query.companyId,
|
|
|
+ "serviceCompanyName":_this.$route.query.companyName,"selectCompanyStructureList":[],
|
|
|
+ "telephone": _this.subForm.phone,
|
|
|
+ "address":"","idCard":"","faceImageUrl":"","popularizePersonId":""}
|
|
|
+
|
|
|
+ _this.set_register_form_data(obj);
|
|
|
+ _this.$router.push({
|
|
|
+ name: 'RegisterBusinessStep4'
|
|
|
+ })
|
|
|
+
|
|
|
+ }else{
|
|
|
+ _this.$router.push({
|
|
|
+ name: 'RegisterHome',
|
|
|
+ query: {
|
|
|
+ telephone: _this.subForm.phone,
|
|
|
+ project: _this.$route.query.project,
|
|
|
+
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@@ -225,7 +251,9 @@
|
|
|
},
|
|
|
...mapMutations({
|
|
|
set_token: types.SET_TOKEN,
|
|
|
- })
|
|
|
+
|
|
|
+ set_register_form_data: types.SET_REGISTER_FORM_DATA,
|
|
|
+ }),
|
|
|
},
|
|
|
mounted() {
|
|
|
document.body.style.backgroundColor = '#fff';
|
|
@@ -233,6 +261,7 @@
|
|
|
destroyed() {
|
|
|
document.body.style.backgroundColor = '';
|
|
|
},
|
|
|
+
|
|
|
computed: {
|
|
|
...mapGetters({
|
|
|
openId: 'wx_openid',
|