Commit 0f2e43ec authored by 5359's avatar 5359

历史注册用户调整

parent 6470fb64
...@@ -78,7 +78,7 @@ ...@@ -78,7 +78,7 @@
组织机构名称: 组织机构名称:
</div> </div>
<div class="list_right" style="width:61%;"> <div class="list_right" style="width:61%;">
<input type="text" class="edit" v-model="organizationName" @blur="goTop()" /> <input type="text" class="edit" v-model="organizationName" @blur="goTop()"/>
</div> </div>
</div> </div>
<div class="info_list" v-if="orgAuthStatus !='SUCCESS'"> <div class="info_list" v-if="orgAuthStatus !='SUCCESS'">
...@@ -91,7 +91,7 @@ ...@@ -91,7 +91,7 @@
组织机构名称: 组织机构名称:
</div> </div>
<div class="list_right" style="width:61%;"> <div class="list_right" style="width:61%;">
<input type="text" class="edit" v-model="organizationName" readonly /> <input type="text" class="edit" v-model="organizationName" readonly/>
</div> </div>
</div> </div>
<div class="info_list" v-if="orgAuthStatus =='SUCCESS'"> <div class="info_list" v-if="orgAuthStatus =='SUCCESS'">
...@@ -104,7 +104,7 @@ ...@@ -104,7 +104,7 @@
统一社会信用代码: 统一社会信用代码:
</div> </div>
<div class="list_right" style="width:52%;"> <div class="list_right" style="width:52%;">
<input type="text" class="edit" v-model="socialCode" @blur="goTop()" /> <input type="text" class="edit" v-model="socialCode" @blur="goTop()"/>
</div> </div>
</div> </div>
<div class="info_list" v-if="orgAuthStatus !='SUCCESS'"> <div class="info_list" v-if="orgAuthStatus !='SUCCESS'">
...@@ -117,14 +117,14 @@ ...@@ -117,14 +117,14 @@
统一社会信用代码: 统一社会信用代码:
</div> </div>
<div class="list_right" style="width:52%;"> <div class="list_right" style="width:52%;">
<input type="text" class="edit" v-model="socialCode" readonly /> <input type="text" class="edit" v-model="socialCode" readonly/>
</div> </div>
</div> </div>
<div class="info_list" style="border-bottom:none;"> <div class="info_list" style="border-bottom:none;">
<div class="list_left2">请上传营业执照照片</div> <div class="list_left2">请上传营业执照照片</div>
</div> </div>
<div class="bus-license"> <div class="bus-license">
<img :src="busLic" alt class="pic" @click="uploadBusLic()" /> <img :src="busLic" alt class="pic" @click="uploadBusLic()"/>
</div> </div>
<div class="info_list" v-if="faceAuthStatus =='SUCCESS'"> <div class="info_list" v-if="faceAuthStatus =='SUCCESS'">
<div class="list_left" style="width:43%;"> <div class="list_left" style="width:43%;">
...@@ -136,7 +136,7 @@ ...@@ -136,7 +136,7 @@
法定代表人姓名: 法定代表人姓名:
</div> </div>
<div class="list_right" style="width:57%;"> <div class="list_right" style="width:57%;">
<input type="text" class="edit" v-model="legalRepresentativeName" @blur="goTop()" /> <input type="text" class="edit" v-model="legalRepresentativeName" @blur="goTop()"/>
</div> </div>
</div> </div>
<div class="info_list" v-if="faceAuthStatus !='SUCCESS'"> <div class="info_list" v-if="faceAuthStatus !='SUCCESS'">
...@@ -149,7 +149,7 @@ ...@@ -149,7 +149,7 @@
法定代表人姓名: 法定代表人姓名:
</div> </div>
<div class="list_right" style="width:57%;"> <div class="list_right" style="width:57%;">
<input type="text" class="edit" v-model="legalRepresentativeName" readonly /> <input type="text" class="edit" v-model="legalRepresentativeName" readonly/>
</div> </div>
</div> </div>
<div class="info_list" v-if="faceAuthStatus =='SUCCESS'"> <div class="info_list" v-if="faceAuthStatus =='SUCCESS'">
...@@ -180,7 +180,7 @@ ...@@ -180,7 +180,7 @@
法定代表人身份证号码: 法定代表人身份证号码:
</div> </div>
<div class="list_right" style="width:46%;"> <div class="list_right" style="width:46%;">
<input type="text" class="edit" v-model="legalRepresentativeCardNumber" readonly /> <input type="text" class="edit" v-model="legalRepresentativeCardNumber" readonly/>
</div> </div>
</div> </div>
<div class="info_list"> <div class="info_list">
...@@ -210,7 +210,7 @@ ...@@ -210,7 +210,7 @@
<div <div
style="border:1px solid #b2b2b2;width:140px;height:100px;margin:0 auto;border-radius:5px;position:relative;" style="border:1px solid #b2b2b2;width:140px;height:100px;margin:0 auto;border-radius:5px;position:relative;"
> >
<img :src="cardUp" alt class="pic" @click="uploadUpImg()" /> <img :src="cardUp" alt class="pic" @click="uploadUpImg()"/>
</div> </div>
</div> </div>
<!-- <div style="height:100px;margin-top:30px" v-if="faceAuthStatus =='SUCCESS'"> <!-- <div style="height:100px;margin-top:30px" v-if="faceAuthStatus =='SUCCESS'">
...@@ -229,7 +229,8 @@ ...@@ -229,7 +229,8 @@
position: relative; position: relative;
left: 50%;" left: 50%;"
@click="next_step()" @click="next_step()"
>下一步</button> >下一步
</button>
<p/> <p/>
<button v-if="showStatus== 1" <button v-if="showStatus== 1"
@click="go_forword()" @click="go_forword()"
...@@ -251,7 +252,7 @@ ...@@ -251,7 +252,7 @@
经办人姓名: 经办人姓名:
</div> </div>
<div class="list_right" style="width:61%;"> <div class="list_right" style="width:61%;">
<input type="text" class="edit" v-model="jbName" @blur="goTop()" /> <input type="text" class="edit" v-model="jbName" @blur="goTop()"/>
</div> </div>
</div> </div>
<div class="info_list" v-if="faceAuthStatus !='SUCCESS'"> <div class="info_list" v-if="faceAuthStatus !='SUCCESS'">
...@@ -264,7 +265,7 @@ ...@@ -264,7 +265,7 @@
经办人姓名: 经办人姓名:
</div> </div>
<div class="list_right" style="width:61%;"> <div class="list_right" style="width:61%;">
<input type="text" class="edit" v-model="jbName" readonly /> <input type="text" class="edit" v-model="jbName" readonly/>
</div> </div>
</div> </div>
...@@ -278,7 +279,7 @@ ...@@ -278,7 +279,7 @@
经办人身份证号: 经办人身份证号:
</div> </div>
<div class="list_right" style="width:59%;"> <div class="list_right" style="width:59%;">
<input type="text" class="edit" v-model="jbIdNumber" @blur="goTop()" /> <input type="text" class="edit" v-model="jbIdNumber" @blur="goTop()"/>
</div> </div>
</div> </div>
<div class="info_list" v-if="faceAuthStatus !='SUCCESS'"> <div class="info_list" v-if="faceAuthStatus !='SUCCESS'">
...@@ -291,7 +292,7 @@ ...@@ -291,7 +292,7 @@
经办人身份证号: 经办人身份证号:
</div> </div>
<div class="list_right" style="width:59%;"> <div class="list_right" style="width:59%;">
<input type="text" class="edit" v-model="jbIdNumber" readonly /> <input type="text" class="edit" v-model="jbIdNumber" readonly/>
</div> </div>
</div> </div>
<div class="info_list"> <div class="info_list">
...@@ -320,7 +321,7 @@ ...@@ -320,7 +321,7 @@
<div <div
style="border:1px solid #b2b2b2;width:140px;height:100px;margin:0 auto;border-radius:5px;position:relative;" style="border:1px solid #b2b2b2;width:140px;height:100px;margin:0 auto;border-radius:5px;position:relative;"
> >
<img :src="cardUp1" alt class="pic" @click="uploadUpImg1()" /> <img :src="cardUp1" alt class="pic" @click="uploadUpImg1()"/>
</div> </div>
</div> </div>
<!-- <div style="height:100px;margin-top:30px" v-if="faceAuthStatus =='SUCCESS'"> <!-- <div style="height:100px;margin-top:30px" v-if="faceAuthStatus =='SUCCESS'">
...@@ -341,7 +342,7 @@ ...@@ -341,7 +342,7 @@
组织机构名称: 组织机构名称:
</div> </div>
<div class="list_right" style="width:61%;"> <div class="list_right" style="width:61%;">
<input type="text" class="edit" v-model="organizationName1" @blur="goTop()" /> <input type="text" class="edit" v-model="organizationName1" @blur="goTop()"/>
</div> </div>
</div> </div>
<div class="info_list" v-if="orgAuthStatus !='SUCCESS'"> <div class="info_list" v-if="orgAuthStatus !='SUCCESS'">
...@@ -354,7 +355,7 @@ ...@@ -354,7 +355,7 @@
组织机构名称: 组织机构名称:
</div> </div>
<div class="list_right" style="width:61%;"> <div class="list_right" style="width:61%;">
<input type="text" class="edit" v-model="organizationName1" readonly /> <input type="text" class="edit" v-model="organizationName1" readonly/>
</div> </div>
</div> </div>
<div class="info_list" v-if="orgAuthStatus =='SUCCESS'"> <div class="info_list" v-if="orgAuthStatus =='SUCCESS'">
...@@ -367,7 +368,7 @@ ...@@ -367,7 +368,7 @@
统一社会信用代码: 统一社会信用代码:
</div> </div>
<div class="list_right" style="width:52%;"> <div class="list_right" style="width:52%;">
<input type="text" class="edit" v-model="socialCode1" @blur="goTop()" /> <input type="text" class="edit" v-model="socialCode1" @blur="goTop()"/>
</div> </div>
</div> </div>
<div class="info_list" v-if="orgAuthStatus !='SUCCESS'"> <div class="info_list" v-if="orgAuthStatus !='SUCCESS'">
...@@ -380,14 +381,14 @@ ...@@ -380,14 +381,14 @@
统一社会信用代码: 统一社会信用代码:
</div> </div>
<div class="list_right" style="width:52%;"> <div class="list_right" style="width:52%;">
<input type="text" class="edit" v-model="socialCode1" readonly /> <input type="text" class="edit" v-model="socialCode1" readonly/>
</div> </div>
</div> </div>
<div class="info_list" style="border-bottom:none;"> <div class="info_list" style="border-bottom:none;">
<div class="list_left2">请上传营业执照照片</div> <div class="list_left2">请上传营业执照照片</div>
</div> </div>
<div class="bus-license"> <div class="bus-license">
<img :src="busLic1" alt class="pic" @click="uploadBusLic1()" /> <img :src="busLic1" alt class="pic" @click="uploadBusLic1()"/>
</div> </div>
<div class="info_list"> <div class="info_list">
<div class="list_left" style="width:43%;"> <div class="list_left" style="width:43%;">
...@@ -490,7 +491,7 @@ ...@@ -490,7 +491,7 @@
组织机构名称: 组织机构名称:
</div> </div>
<div class="list_right" style="width:61%;"> <div class="list_right" style="width:61%;">
<input type="text" class="edit" v-model="organizationName" readonly /> <input type="text" class="edit" v-model="organizationName" readonly/>
</div> </div>
</div> </div>
<div class="info_list"> <div class="info_list">
...@@ -503,7 +504,7 @@ ...@@ -503,7 +504,7 @@
统一社会信用代码: 统一社会信用代码:
</div> </div>
<div class="list_right" style="width:52%;"> <div class="list_right" style="width:52%;">
<input type="text" class="edit" v-model="socialCode" readonly /> <input type="text" class="edit" v-model="socialCode" readonly/>
</div> </div>
</div> </div>
<!-- <div class="info_list" style="border-bottom:none;"> <!-- <div class="info_list" style="border-bottom:none;">
...@@ -519,7 +520,7 @@ ...@@ -519,7 +520,7 @@
class="uppic" class="uppic"
disabled disabled
/>--> />-->
<img :src="busLic2" alt class="pic" @click="previewImage(authOrgAttachmentId)" /> <img :src="busLic2" alt class="pic" @click="previewImage(authOrgAttachmentId)"/>
</div> </div>
<div class="info_list"> <div class="info_list">
<div class="list_left" style="width:43%;"> <div class="list_left" style="width:43%;">
...@@ -531,7 +532,7 @@ ...@@ -531,7 +532,7 @@
法定代表人姓名: 法定代表人姓名:
</div> </div>
<div class="list_right" style="width:57%;"> <div class="list_right" style="width:57%;">
<input type="text" class="edit" v-model="legalRepresentativeName" readonly /> <input type="text" class="edit" v-model="legalRepresentativeName" readonly/>
</div> </div>
</div> </div>
<div class="info_list"> <div class="info_list">
...@@ -544,7 +545,7 @@ ...@@ -544,7 +545,7 @@
法定代表人身份证号码: 法定代表人身份证号码:
</div> </div>
<div class="list_right" style="width:46%;"> <div class="list_right" style="width:46%;">
<input type="text" class="edit" v-model="legalRepresentativeCardNumber" readonly /> <input type="text" class="edit" v-model="legalRepresentativeCardNumber" readonly/>
</div> </div>
</div> </div>
<div class="info_list"> <div class="info_list">
...@@ -557,7 +558,7 @@ ...@@ -557,7 +558,7 @@
手机号码: 手机号码:
</div> </div>
<div class="list_right" style="width:70%;"> <div class="list_right" style="width:70%;">
<input type="text" class="edit" v-model="legalPhoneNumber" readonly /> <input type="text" class="edit" v-model="legalPhoneNumber" readonly/>
</div> </div>
</div> </div>
<!-- <div style="margin: 10px 0 0 14px;color:#636363"> <!-- <div style="margin: 10px 0 0 14px;color:#636363">
...@@ -576,7 +577,7 @@ ...@@ -576,7 +577,7 @@
class="uppic" class="uppic"
disabled disabled
/>--> />-->
<img :src="cardUp2" alt class="pic" @click="previewImage(authAttachmentId)" /> <img :src="cardUp2" alt class="pic" @click="previewImage(authAttachmentId)"/>
</div> </div>
</div> </div>
<p style="margin-top:10px;text-align:center;color:#636363">正面</p> <p style="margin-top:10px;text-align:center;color:#636363">正面</p>
...@@ -584,7 +585,8 @@ ...@@ -584,7 +585,8 @@
class="next_step" class="next_step"
style="width:120px;height:30px;border-radius:15px;background-color:#09bb07;color:#FFFFFF;margin:100px 0 0 -60px;position:relative;left:50%;" style="width:120px;height:30px;border-radius:15px;background-color:#09bb07;color:#FFFFFF;margin:100px 0 0 -60px;position:relative;left:50%;"
@click="logout()" @click="logout()"
>注销</button> >注销
</button>
</div> </div>
<!-- 组织其他员工 --> <!-- 组织其他员工 -->
<div v-if="staffType ==='组织其他员工'"> <div v-if="staffType ==='组织其他员工'">
...@@ -598,7 +600,7 @@ ...@@ -598,7 +600,7 @@
经办人姓名: 经办人姓名:
</div> </div>
<div class="list_right" style="width:61%;"> <div class="list_right" style="width:61%;">
<input type="text" class="edit" v-model="jbName" readonly /> <input type="text" class="edit" v-model="jbName" readonly/>
</div> </div>
</div> </div>
...@@ -612,7 +614,7 @@ ...@@ -612,7 +614,7 @@
经办人身份证号: 经办人身份证号:
</div> </div>
<div class="list_right" style="width:52%;"> <div class="list_right" style="width:52%;">
<input type="text" class="edit" v-model="jbIdNumber" readonly /> <input type="text" class="edit" v-model="jbIdNumber" readonly/>
</div> </div>
</div> </div>
<div class="info_list"> <div class="info_list">
...@@ -625,7 +627,7 @@ ...@@ -625,7 +627,7 @@
手机号码: 手机号码:
</div> </div>
<div class="list_right" style="width:70%;"> <div class="list_right" style="width:70%;">
<input type="text" class="edit" v-model="jbPhoneNumber" readonly /> <input type="text" class="edit" v-model="jbPhoneNumber" readonly/>
</div> </div>
</div> </div>
<!-- <div style="margin: 10px 0 0 14px;color:#636363"> <!-- <div style="margin: 10px 0 0 14px;color:#636363">
...@@ -644,7 +646,7 @@ ...@@ -644,7 +646,7 @@
class="uppic" class="uppic"
disabled disabled
/>--> />-->
<img :src="cardUp3" alt class="pic" @click="previewImage(authAttachmentId)" /> <img :src="cardUp3" alt class="pic" @click="previewImage(authAttachmentId)"/>
</div> </div>
</div> </div>
<p style="margin-top:10px;text-align:center;color:#636363">正面</p> <p style="margin-top:10px;text-align:center;color:#636363">正面</p>
...@@ -658,7 +660,7 @@ ...@@ -658,7 +660,7 @@
组织机构名称: 组织机构名称:
</div> </div>
<div class="list_right" style="width:61%;"> <div class="list_right" style="width:61%;">
<input type="text" class="edit" v-model="organizationName1" readonly /> <input type="text" class="edit" v-model="organizationName1" readonly/>
</div> </div>
</div> </div>
<div class="info_list"> <div class="info_list">
...@@ -671,7 +673,7 @@ ...@@ -671,7 +673,7 @@
统一社会信用代码: 统一社会信用代码:
</div> </div>
<div class="list_right" style="width:52%;"> <div class="list_right" style="width:52%;">
<input type="text" class="edit" v-model="socialCode1" readonly /> <input type="text" class="edit" v-model="socialCode1" readonly/>
</div> </div>
</div> </div>
<!-- <div class="info_list" style="border-bottom:none;"> <!-- <div class="info_list" style="border-bottom:none;">
...@@ -687,7 +689,7 @@ ...@@ -687,7 +689,7 @@
class="uppic" class="uppic"
disabled disabled
/>--> />-->
<img :src="busLic3" alt class="pic" @click="previewImage(authOrgAttachmentId)" /> <img :src="busLic3" alt class="pic" @click="previewImage(authOrgAttachmentId)"/>
</div> </div>
<div class="info_list"> <div class="info_list">
<div class="list_left" style="width:43%;"> <div class="list_left" style="width:43%;">
...@@ -699,7 +701,7 @@ ...@@ -699,7 +701,7 @@
法定代表人姓名: 法定代表人姓名:
</div> </div>
<div class="list_right" style="width:57%;"> <div class="list_right" style="width:57%;">
<input type="text" class="edit" v-model="legalRepresentativeName1" readonly /> <input type="text" class="edit" v-model="legalRepresentativeName1" readonly/>
</div> </div>
</div> </div>
<div class="info_list"> <div class="info_list">
...@@ -712,14 +714,15 @@ ...@@ -712,14 +714,15 @@
法定代表人身份证号码: 法定代表人身份证号码:
</div> </div>
<div class="list_right" style="width:46%;"> <div class="list_right" style="width:46%;">
<input type="text" class="edit" v-model="legalRepresentativeCardNumber1" readonly /> <input type="text" class="edit" v-model="legalRepresentativeCardNumber1" readonly/>
</div> </div>
</div> </div>
<button <button
class="next_step" class="next_step"
style="width:120px;height:30px;border-radius:15px;background-color:#09bb07;color:#FFFFFF;margin:100px 0 0 -60px;position:relative;left:50%;" style="width:120px;height:30px;border-radius:15px;background-color:#09bb07;color:#FFFFFF;margin:100px 0 0 -60px;position:relative;left:50%;"
@click="logout()" @click="logout()"
>注销</button> >注销
</button>
</div> </div>
</list-item> </list-item>
</h-content> </h-content>
...@@ -727,760 +730,766 @@ ...@@ -727,760 +730,766 @@
</template> </template>
<script> <script>
// import { Grid, GridItem } from "vux"; // import { Grid, GridItem } from "vux";
import { getUrlParam } from "@/scripts/utils"; import {getUrlParam} from "@/scripts/utils";
export default {
data() {
return {
// agentType: "Y",
staffType: "法定代表人",
cardUp: require("../../../assets/userRegister/camear.png"), //身份证照片url
busLic: require("../../../assets/userRegister/camear.png"), //营业执照照片url
organizationName: "", //组织机构名称
socialCode: "", //统一社会信用代码
legalRepresentativeName: "", //法定代表人姓名
legalRepresentativeCardNumber: "", //法定代表人身份证号码
legalPhoneNumber: "", //法定代表人电话号码
jbName: "", //经办人姓名
jbPhoneNumber: "", //经办人手机号码
jbIdNumber: "", //经办人身份证号码
status: "",
cardUp1: require("../../../assets/userRegister/camear.png"), //身份证照片url
busLic1: require("../../../assets/userRegister/camear.png"), //营业执照照片url
organizationName1: "", //组织机构名称
socialCode1: "", //统一社会信用代码
legalRepresentativeName1: "", //法定代表人姓名
legalRepresentativeCardNumber1: "", //法定代表人身份证号码
//认证成功后
cardUp2: "", //身份证照片url
busLic2: "", //营业执照照片url
organizationName2: "", //组织机构名称
socialCode2: "", //统一社会信用代码
legalRepresentativeName2: "", //法定代表人姓名
legalRepresentativeCardNumber2: "", //法定代表人身份证号码
jbName2: "", //经办人姓名
jbPhoneNumber2: "", //经办人手机号码
jbIdNumber2: "", //经办人身份证号码
cardUp3: "", //身份证照片url
busLic3: "", //营业执照照片url
organizationName3: "", //组织机构名称
socialCode3: "", //统一社会信用代码
legalRepresentativeName3: "", //法定代表人姓名
legalRepresentativeCardNumber3: "", //法定代表人身份证号码
legalPhoneNumber2: "", export default {
// 11111 data() {
attachmentId: "", return {
attachmentId1: "", // agentType: "Y",
attachmentId2: "", staffType: "法定代表人",
attachmentId3: "", cardUp: require("../../../assets/userRegister/camear.png"), //身份证照片url
busLic: require("../../../assets/userRegister/camear.png"), //营业执照照片url
organizationName: "", //组织机构名称
socialCode: "", //统一社会信用代码
legalRepresentativeName: "", //法定代表人姓名
legalRepresentativeCardNumber: "", //法定代表人身份证号码
legalPhoneNumber: "", //法定代表人电话号码
jbName: "", //经办人姓名
jbPhoneNumber: "", //经办人手机号码
jbIdNumber: "", //经办人身份证号码
status: "",
cardUp1: require("../../../assets/userRegister/camear.png"), //身份证照片url
busLic1: require("../../../assets/userRegister/camear.png"), //营业执照照片url
organizationName1: "", //组织机构名称
socialCode1: "", //统一社会信用代码
legalRepresentativeName1: "", //法定代表人姓名
legalRepresentativeCardNumber1: "", //法定代表人身份证号码
//认证成功后
cardUp2: "", //身份证照片url
busLic2: "", //营业执照照片url
organizationName2: "", //组织机构名称
socialCode2: "", //统一社会信用代码
legalRepresentativeName2: "", //法定代表人姓名
legalRepresentativeCardNumber2: "", //法定代表人身份证号码
jbName2: "", //经办人姓名
jbPhoneNumber2: "", //经办人手机号码
jbIdNumber2: "", //经办人身份证号码
cardUp3: "", //身份证照片url
busLic3: "", //营业执照照片url
organizationName3: "", //组织机构名称
socialCode3: "", //统一社会信用代码
legalRepresentativeName3: "", //法定代表人姓名
legalRepresentativeCardNumber3: "", //法定代表人身份证号码
// 用户信息 legalPhoneNumber2: "",
userInfo: null, // 11111
faceAuthStatus: "", attachmentId: "",
orgAuthStatus: "", attachmentId1: "",
authAttachmentId: "", attachmentId2: "",
authOrgAttachmentId: "", attachmentId3: "",
showStatus: "",
};
},
created() { // 用户信息
this.wxConfig(); userInfo: null,
this.getUserInfo(); faceAuthStatus: "",
}, orgAuthStatus: "",
activated: function() { authAttachmentId: "",
this.status = ""; //判断请求是否成功的状态 authOrgAttachmentId: "",
}, showStatus: "",
mounted() {},
updated: function() {},
methods: {
// 是否是代理店
// isAgent() {
// console.log(this.agentType);
// // window.localStorage.agentType = this.agentType;
// if (this.agentType == "N") {
// this.staffType = "法定代表人";
// }
// },
// 调用微信接口的基础配置
wxConfig() {
let clientUrl = "";
let u = navigator.userAgent;
let isAndroid = u.indexOf("Android") > -1 || u.indexOf("Linux") > -1; //g
let isIOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
if (isAndroid) {
//这个是安卓操作系统
console.log("机型:android");
clientUrl = location.href;
}
if (isIOS) {
//这个是ios操作系统
console.log("机型:ios");
clientUrl = location.href.split("#")[0];
}
// let url = $config.rootPath + '/js/sdk/getWxConfig?wxCode=' + $config.wxCode + '&clientUrl=' + clientUrl
let url = process.env.basePathRl + "getSignature";
let param = {
apiKey: "handexinxi",
url: clientUrl
}; };
hlsHttp.post(url, param).then(function(res) {
wx.config({
beta: true,
debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
appId: res.result.appId, // 必填,公众号的唯一标识
timestamp: res.result.timestamp, // 必填,生成签名的时间戳
nonceStr: res.result.nonceStr, // 必填,生成签名的随机串
signature: res.result.signature, // 必填,签名,见附录1
jsApiList: [
"chooseImage",
"previewImage",
"downloadImage",
"getLocalImgData",
"uploadImage",
"hideOptionMenu"
] // 必填,需要使用的JS接口列表,所有JS接口列表见附录2
});
wx.ready(function() {
wx.hideOptionMenu();
});
});
}, },
// 法人和其他人切换状态
getRadioVal() { created() {
console.log(this.staffType); this.wxConfig();
this.getUserInfo();
}, },
// 图片上传 activated: function () {
uploadUpImg() { this.status = ""; //判断请求是否成功的状态
//身份证正面
let self = this;
wx.chooseImage({
count: 1, //张数, 默认9
sizeType: ["compressed"], //建议压缩图
sourceType: ["album", "camera"], // 来源是相册、相机
success: function(res) {
self.cardUp = res.localIds[0];
self.uploadToWeixinServer(res.localIds[0], "cardUp");
}
});
}, },
uploadUpImg1() { mounted() {
//身份证正面
let self = this;
wx.chooseImage({
count: 1, //张数, 默认9
sizeType: ["compressed"], //建议压缩图
sourceType: ["album", "camera"], // 来源是相册、相机
success: function(res) {
self.cardUp1 = res.localIds[0];
self.uploadToWeixinServer(res.localIds[0], "cardUp1");
}
});
}, },
uploadBusLic() { updated: function () {
let self = this;
wx.chooseImage({
count: 1, //张数, 默认9
sizeType: ["compressed"], //建议压缩图
sourceType: ["album", "camera"], // 来源是相册、相机
success: function(res) {
self.busLic = res.localIds[0];
self.uploadToWeixinServer(res.localIds[0], "busLic");
}
});
}, },
uploadBusLic1() { methods: {
//上传营业执照 // 是否是代理店
let self = this; // isAgent() {
wx.chooseImage({ // console.log(this.agentType);
count: 1, //张数, 默认9 // // window.localStorage.agentType = this.agentType;
sizeType: ["compressed"], //建议压缩图 // if (this.agentType == "N") {
sourceType: ["album", "camera"], // 来源是相册、相机 // this.staffType = "法定代表人";
success: function(res) { // }
self.busLic1 = res.localIds[0]; // },
self.uploadToWeixinServer(res.localIds[0], "busLic1");
// 调用微信接口的基础配置
wxConfig() {
let clientUrl = "";
let u = navigator.userAgent;
let isAndroid = u.indexOf("Android") > -1 || u.indexOf("Linux") > -1; //g
let isIOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
if (isAndroid) {
//这个是安卓操作系统
console.log("机型:android");
clientUrl = location.href;
} }
}); if (isIOS) {
}, //这个是ios操作系统
// 上传到微信服务器 console.log("机型:ios");
uploadToWeixinServer(localId, type) { clientUrl = location.href.split("#")[0];
let self = this;
wx.uploadImage({
localId: localId,
isShowProgressTips: 1, // 默认为1,显示进度提示
success: function(res) {
if (type == "cardUp") {
self.uploadCardToserver(res.serverId);
} else if (type == "cardUp1") {
self.uploadCard1Toserver(res.serverId);
} else if (type == "busLic") {
self.uploadBusLicToserver(res.serverId);
} else if (type == "busLic1") {
self.uploadBusLic1Toserver(res.serverId);
}
} }
}); // let url = $config.rootPath + '/js/sdk/getWxConfig?wxCode=' + $config.wxCode + '&clientUrl=' + clientUrl
}, let url = process.env.basePathRl + "getSignature";
// 上传到业务系统并且进行ocr识别 let param = {
uploadCardToserver(serverId) { apiKey: "handexinxi",
console.log("mediaId", serverId); url: clientUrl
let vm = this; };
let url = process.env.rootPath + "/auth/upload/image/hls/from/wx"; hlsHttp.post(url, param).then(function (res) {
let param = { wx.config({
openId: window.localStorage.openId, beta: true,
mediaId: serverId, debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
sourceType: "app_file_id_card", appId: res.result.appId, // 必填,公众号的唯一标识
fileName: new Date().getTime() + ".jpg" timestamp: res.result.timestamp, // 必填,生成签名的时间戳
}; nonceStr: res.result.nonceStr, // 必填,生成签名的随机串
vm.hlsPopup.showLoading("请稍等"); signature: res.result.signature, // 必填,签名,见附录1
vm.$post(url, param).then(function(res) { jsApiList: [
vm.hlsPopup.hideLoading(); "chooseImage",
vm.legalRepresentativeName = res["姓名"]; "previewImage",
vm.legalRepresentativeCardNumber = res["公民身份号码"]; "downloadImage",
vm.attachmentId = res["attchmentId"]; "getLocalImgData",
window.sessionStorage.cardUp2_leg = "uploadImage",
process.env.rootPath + "hideOptionMenu"
"/app/fileViewSvc?attachment_id=" + ] // 必填,需要使用的JS接口列表,所有JS接口列表见附录2
vm.attachmentId + });
"&apiName=download&sysName=HCL_UPLOAD_FILE&access_token=" + wx.ready(function () {
window.localStorage.access_token_rl; wx.hideOptionMenu();
}); });
}, });
uploadCard1Toserver(serverId) { },
let vm = this; // 法人和其他人切换状态
let url = process.env.rootPath + "/auth/upload/image/hls/from/wx"; getRadioVal() {
let param = { console.log(this.staffType);
openId: window.localStorage.openId, },
mediaId: serverId, // 图片上传
sourceType: "app_file_id_card", uploadUpImg() {
fileName: new Date().getTime() + ".jpg" //身份证正面
}; let self = this;
vm.hlsPopup.showLoading("请稍等"); wx.chooseImage({
vm.$post(url, param).then(function(res) { count: 1, //张数, 默认9
vm.hlsPopup.hideLoading(); sizeType: ["compressed"], //建议压缩图
vm.jbName = res["姓名"]; sourceType: ["album", "camera"], // 来源是相册、相机
vm.jbIdNumber = res["公民身份号码"]; success: function (res) {
vm.attachmentId1 = res["attchmentId"]; self.cardUp = res.localIds[0];
window.sessionStorage.cardUp3_oth = self.uploadToWeixinServer(res.localIds[0], "cardUp");
process.env.rootPath + }
"/app/fileViewSvc?attachment_id=" + });
vm.attachmentId1 + },
"&apiName=download&sysName=HCL_UPLOAD_FILE&access_token=" + uploadUpImg1() {
window.localStorage.access_token_rl; //身份证正面
}); let self = this;
}, wx.chooseImage({
uploadBusLicToserver(serverId) { count: 1, //张数, 默认9
let vm = this; sizeType: ["compressed"], //建议压缩图
let url = process.env.rootPath + "/auth/upload/image/hls/from/wx"; sourceType: ["album", "camera"], // 来源是相册、相机
let param = { success: function (res) {
openId: window.localStorage.openId, self.cardUp1 = res.localIds[0];
mediaId: serverId, self.uploadToWeixinServer(res.localIds[0], "cardUp1");
sourceType: "app_file_bus_lic", }
fileName: new Date().getTime() + ".jpg" });
}; },
vm.hlsPopup.showLoading("请稍等"); uploadBusLic() {
vm.$post(url, param).then(function(res) { let self = this;
vm.hlsPopup.hideLoading(); wx.chooseImage({
vm.socialCode = res["社会信用代码"]; count: 1, //张数, 默认9
vm.organizationName = res["单位名称"]; sizeType: ["compressed"], //建议压缩图
vm.attachmentId2 = res["attchmentId"]; sourceType: ["album", "camera"], // 来源是相册、相机
window.sessionStorage.busLic2_leg = success: function (res) {
process.env.rootPath + self.busLic = res.localIds[0];
"/app/fileViewSvc?attachment_id=" + self.uploadToWeixinServer(res.localIds[0], "busLic");
vm.attachmentId2 + }
"&apiName=download&sysName=HCL_UPLOAD_FILE&access_token=" + });
window.localStorage.access_token_rl; },
}); uploadBusLic1() {
}, //上传营业执照
uploadBusLic1Toserver(serverId) { let self = this;
let vm = this; wx.chooseImage({
let url = process.env.rootPath + "/auth/upload/image/hls/from/wx"; count: 1, //张数, 默认9
let param = { sizeType: ["compressed"], //建议压缩图
openId: window.localStorage.openId, sourceType: ["album", "camera"], // 来源是相册、相机
mediaId: serverId, success: function (res) {
sourceType: "app_file_bus_lic", self.busLic1 = res.localIds[0];
fileName: new Date().getTime() + ".jpg" self.uploadToWeixinServer(res.localIds[0], "busLic1");
}; }
vm.hlsPopup.showLoading("请稍等"); });
vm.$post(url, param).then(function(res) { },
vm.hlsPopup.hideLoading(); // 上传到微信服务器
vm.socialCode1 = res["社会信用代码"]; uploadToWeixinServer(localId, type) {
vm.organizationName1 = res["单位名称"]; let self = this;
vm.attachmentId3 = res["attchmentId"]; wx.uploadImage({
window.sessionStorage.busLic3_oth = localId: localId,
isShowProgressTips: 1, // 默认为1,显示进度提示
success: function (res) {
if (type == "cardUp") {
self.uploadCardToserver(res.serverId);
} else if (type == "cardUp1") {
self.uploadCard1Toserver(res.serverId);
} else if (type == "busLic") {
self.uploadBusLicToserver(res.serverId);
} else if (type == "busLic1") {
self.uploadBusLic1Toserver(res.serverId);
}
}
});
},
// 上传到业务系统并且进行ocr识别
uploadCardToserver(serverId) {
console.log("mediaId", serverId);
let vm = this;
let url = process.env.rootPath + "/auth/upload/image/hls/from/wx";
let param = {
openId: window.localStorage.openId,
mediaId: serverId,
sourceType: "app_file_id_card",
fileName: new Date().getTime() + ".jpg"
};
vm.hlsPopup.showLoading("请稍等");
vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading();
vm.legalRepresentativeName = res["姓名"];
vm.legalRepresentativeCardNumber = res["公民身份号码"];
vm.attachmentId = res["attchmentId"];
window.sessionStorage.cardUp2_leg =
process.env.rootPath +
"/app/fileViewSvc?attachment_id=" +
vm.attachmentId +
"&apiName=download&sysName=HCL_UPLOAD_FILE&access_token=" +
window.localStorage.access_token_rl;
});
},
uploadCard1Toserver(serverId) {
let vm = this;
let url = process.env.rootPath + "/auth/upload/image/hls/from/wx";
let param = {
openId: window.localStorage.openId,
mediaId: serverId,
sourceType: "app_file_id_card",
fileName: new Date().getTime() + ".jpg"
};
vm.hlsPopup.showLoading("请稍等");
vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading();
vm.jbName = res["姓名"];
vm.jbIdNumber = res["公民身份号码"];
vm.attachmentId1 = res["attchmentId"];
window.sessionStorage.cardUp3_oth =
process.env.rootPath +
"/app/fileViewSvc?attachment_id=" +
vm.attachmentId1 +
"&apiName=download&sysName=HCL_UPLOAD_FILE&access_token=" +
window.localStorage.access_token_rl;
});
},
uploadBusLicToserver(serverId) {
let vm = this;
let url = process.env.rootPath + "/auth/upload/image/hls/from/wx";
let param = {
openId: window.localStorage.openId,
mediaId: serverId,
sourceType: "app_file_bus_lic",
fileName: new Date().getTime() + ".jpg"
};
vm.hlsPopup.showLoading("请稍等");
vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading();
vm.socialCode = res["社会信用代码"];
vm.organizationName = res["单位名称"];
vm.attachmentId2 = res["attchmentId"];
window.sessionStorage.busLic2_leg =
process.env.rootPath +
"/app/fileViewSvc?attachment_id=" +
vm.attachmentId2 +
"&apiName=download&sysName=HCL_UPLOAD_FILE&access_token=" +
window.localStorage.access_token_rl;
});
},
uploadBusLic1Toserver(serverId) {
let vm = this;
let url = process.env.rootPath + "/auth/upload/image/hls/from/wx";
let param = {
openId: window.localStorage.openId,
mediaId: serverId,
sourceType: "app_file_bus_lic",
fileName: new Date().getTime() + ".jpg"
};
vm.hlsPopup.showLoading("请稍等");
vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading();
vm.socialCode1 = res["社会信用代码"];
vm.organizationName1 = res["单位名称"];
vm.attachmentId3 = res["attchmentId"];
window.sessionStorage.busLic3_oth =
process.env.rootPath +
"/app/fileViewSvc?attachment_id=" +
vm.attachmentId3 +
"&apiName=download&sysName=HCL_UPLOAD_FILE&access_token=" +
window.localStorage.access_token_rl;
});
},
//预览图片
previewImage(id) {
let vm = this;
var preview_url =
process.env.rootPath + process.env.rootPath +
"/app/fileViewSvc?attachment_id=" + "/app/fileViewSvc?attachment_id=" +
vm.attachmentId3 + id +
"&apiName=download&sysName=HCL_UPLOAD_FILE&access_token=" + "&apiName=download&sysName=HCL_UPLOAD_FILE&access_token=" +
window.localStorage.access_token_rl; window.localStorage.access_token_rl;
}); // window.open(url,"_self");
}, hlsPopup.showBigPicture({
//预览图片 imgUrl: preview_url
previewImage(id) { });
let vm = this; },
var preview_url = // 下一步
process.env.rootPath + next_step() {
"/app/fileViewSvc?attachment_id=" + let vm = this;
id + if (
"&apiName=download&sysName=HCL_UPLOAD_FILE&access_token=" + !vm.organizationName ||
window.localStorage.access_token_rl; !vm.socialCode ||
// window.open(url,"_self"); !vm.legalRepresentativeName ||
hlsPopup.showBigPicture({ !vm.legalRepresentativeCardNumber ||
imgUrl: preview_url !vm.legalPhoneNumber
});
},
// 下一步
next_step() {
let vm = this;
if (
!vm.organizationName ||
!vm.socialCode ||
!vm.legalRepresentativeName ||
!vm.legalRepresentativeCardNumber ||
!vm.legalPhoneNumber
// || // ||
// !vm.cardUp || // !vm.cardUp ||
// !vm.busLic // !vm.busLic
) { ) {
vm.hlsPopup.showLongCenter("必输字端不能为空!"); vm.hlsPopup.showLongCenter("必输字端不能为空!");
return; return;
} }
if (vm.hlsUtil.isCardID(vm.legalRepresentativeCardNumber)) { if (vm.hlsUtil.isCardID(vm.legalRepresentativeCardNumber)) {
vm.hlsPopup.showLongCenter("法定代表人身份证号有误"); vm.hlsPopup.showLongCenter("法定代表人身份证号有误");
return; return;
} else { } else {
sessionStorage.setItem("organizationName_leg", vm.organizationName); sessionStorage.setItem("organizationName_leg", vm.organizationName);
sessionStorage.setItem("cardUp_leg", vm.cardUp); sessionStorage.setItem("cardUp_leg", vm.cardUp);
sessionStorage.setItem("busLic_leg", vm.busLic); sessionStorage.setItem("busLic_leg", vm.busLic);
sessionStorage.setItem("socialCode_leg", vm.socialCode); sessionStorage.setItem("socialCode_leg", vm.socialCode);
sessionStorage.setItem( sessionStorage.setItem(
"legalRepresentativeName_leg", "legalRepresentativeName_leg",
vm.legalRepresentativeName vm.legalRepresentativeName
); );
sessionStorage.setItem( sessionStorage.setItem(
"legalRepresentativeCardNumber_leg", "legalRepresentativeCardNumber_leg",
vm.legalRepresentativeCardNumber vm.legalRepresentativeCardNumber
); );
sessionStorage.setItem("legalPhoneNumber_leg", vm.legalPhoneNumber); sessionStorage.setItem("legalPhoneNumber_leg", vm.legalPhoneNumber);
// alert("验证通过"); // alert("验证通过");
// let url = 'http://101.133.225.167:8096/core/r/api?sysName=HLS_APP&apiName=' + 'getOpenId';//获取openId的接口 // let url = 'http://101.133.225.167:8096/core/r/api?sysName=HLS_APP&apiName=' + 'getOpenId';//获取openId的接口
let url = process.env.rootPath + "/auth/api/individual/face/Organ"; let url = process.env.rootPath + "/auth/api/individual/face/Organ";
let param = {
openId: window.localStorage.openId,
idNo: vm.socialCode,
name: vm.organizationName,
agentIdNo: vm.legalRepresentativeCardNumber,
agentName: vm.legalRepresentativeName,
mobile: vm.legalPhoneNumber,
legalName: vm.legalRepresentativeName,
legalIdNo: vm.legalRepresentativeCardNumber,
agentType: "1",
// dealerFlag: vm.agentType,
redirectUrl:
"http://lease.hitachics.com/www/#/UserRegister/CompanyRegister?Regstatus=1"
};
vm.hlsPopup.showLoading("请稍等");
vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading();
if (res.code == 0) {
vm.$vux.toast.text(res.message, "middle");
if (res.url) {
window.open(res.url, "_self");
}
} else {
vm.$vux.toast.text(res.message, "middle");
}
});
}
},
next_step_oth() {
let vm = this;
if (
!vm.organizationName1 ||
!vm.socialCode1 ||
!vm.legalRepresentativeName1 ||
!vm.legalRepresentativeCardNumber1 ||
!vm.jbName ||
!vm.jbPhoneNumber ||
!vm.jbIdNumber
// !vm.cardUp1 ||
// !vm.busLic1
) {
vm.hlsPopup.showLongCenter("必输字端不能为空!");
return;
}
if (vm.hlsUtil.isCardID(vm.legalRepresentativeCardNumber1)) {
vm.hlsPopup.showLongCenter("身份证号有误");
return;
} else {
sessionStorage.setItem("organizationName_oth", vm.organizationName1);
sessionStorage.setItem("cardUp_oth", vm.cardUp1);
sessionStorage.setItem("busLic_oth", vm.busLic1);
sessionStorage.setItem("socialCode_oth", vm.socialCode1);
sessionStorage.setItem(
"legalRepresentativeName_oth",
vm.legalRepresentativeName1
);
sessionStorage.setItem(
"legalRepresentativeCardNumber_oth",
vm.legalRepresentativeCardNumber1
);
sessionStorage.setItem("jbName_oth", vm.jbName);
sessionStorage.setItem("jbPhoneNumber_oth", vm.jbPhoneNumber);
sessionStorage.setItem("jbIdNumber_oth", vm.jbIdNumber);
// let url = 'http://101.133.225.167:8096/core/r/api?sysName=HLS_APP&apiName=' + 'getOpenId';//获取openId的接口
let url = process.env.rootPath + "/auth/api/individual/face/Organ";
let param = {
openId: window.localStorage.openId,
idNo: vm.socialCode1,
agentIdNo: vm.jbIdNumber,
agentName: vm.jbName,
mobile: vm.jbPhoneNumber,
name: vm.organizationName1,
legalName: vm.legalRepresentativeName1,
legalIdNo: vm.legalRepresentativeCardNumber1,
agentType: "2",
redirectUrl:
"http://lease.hitachics.com/www/#/UserRegister/CompanyRegister?Regstatus=2"
};
vm.hlsPopup.showLoading("请稍等");
vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading();
if (res.code == 0) {
vm.$vux.toast.text(res.message, "middle");
if (res.url) {
window.open(res.url, "_self");
}
} else {
vm.$vux.toast.text(res.message, "middle");
}
});
}
},
UrlSearch() {
var name, value;
var str = window.location.href; //取得整个地址栏
var num = str.indexOf("?");
str = str.substr(num + 1); //取得所有参数 stringvar.substr(start [, length ]
var arr = str.split("&"); //各个参数放到数组里
for (var i = 0; i < arr.length; i++) {
num = arr[i].indexOf("=");
if (num > 0) {
name = arr[i].substring(0, num);
value = arr[i].substr(num + 1);
this[name] = value;
}
}
},
logout() {
let vm = this;
hlsPopup.showConfirm({
title: "提示",
content: "请确认合同是否都已下载完成,注销后无法下载,请知悉,谢谢!",
onConfirm: function (index) {
if (index === 1) {
let url =
process.env.rootPath + "/organizations/outerOrgans/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");
}
});
}
// console.log(index);
}
});
},
// 退出
go_forword() {
let vm = this;
let url = process.env.rootPath + "/accounts/outerAccounts/delete";
let param = { let param = {
openId: window.localStorage.openId, openId: window.localStorage.openId
idNo: vm.socialCode,
name: vm.organizationName,
agentIdNo: vm.legalRepresentativeCardNumber,
agentName: vm.legalRepresentativeName,
mobile: vm.legalPhoneNumber,
legalName: vm.legalRepresentativeName,
legalIdNo: vm.legalRepresentativeCardNumber,
agentType: "1",
// dealerFlag: vm.agentType,
redirectUrl:
"http://lease.hitachics.com/www/#/UserRegister/CompanyRegister?Regstatus=1"
}; };
vm.hlsPopup.showLoading("请稍等"); vm.hlsPopup.showLoading("请稍等");
vm.$post(url, param).then(function(res) { vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading(); vm.hlsPopup.hideLoading();
if (res.code == 0) { if (res.code == 0) {
vm.$vux.toast.text(res.message, "middle"); vm.$vux.toast.text(res.message, "middle");
if (res.url) { window.open(
window.open(res.url, "_self"); "http://lease.hitachics.com/www/#/UserRegister",
} "_self"
);
} else { } else {
vm.$vux.toast.text(res.message, "middle"); vm.$vux.toast.text(res.message, "middle");
} }
}); });
} },
}, // 认证结果返回给接口
next_step_oth() { authResult(id, code, suc) {
let vm = this; let vm = this;
if ( let url = "http://lease.hitachics.com/core/api/public/listen/auth/result";
!vm.organizationName1 ||
!vm.socialCode1 ||
!vm.legalRepresentativeName1 ||
!vm.legalRepresentativeCardNumber1 ||
!vm.jbName ||
!vm.jbPhoneNumber ||
!vm.jbIdNumber
// !vm.cardUp1 ||
// !vm.busLic1
) {
vm.hlsPopup.showLongCenter("必输字端不能为空!");
return;
}
if (vm.hlsUtil.isCardID(vm.legalRepresentativeCardNumber1)) {
vm.hlsPopup.showLongCenter("身份证号有误");
return;
} else {
sessionStorage.setItem("organizationName_oth", vm.organizationName1);
sessionStorage.setItem("cardUp_oth", vm.cardUp1);
sessionStorage.setItem("busLic_oth", vm.busLic1);
sessionStorage.setItem("socialCode_oth", vm.socialCode1);
sessionStorage.setItem(
"legalRepresentativeName_oth",
vm.legalRepresentativeName1
);
sessionStorage.setItem(
"legalRepresentativeCardNumber_oth",
vm.legalRepresentativeCardNumber1
);
sessionStorage.setItem("jbName_oth", vm.jbName);
sessionStorage.setItem("jbPhoneNumber_oth", vm.jbPhoneNumber);
sessionStorage.setItem("jbIdNumber_oth", vm.jbIdNumber);
// let url = 'http://101.133.225.167:8096/core/r/api?sysName=HLS_APP&apiName=' + 'getOpenId';//获取openId的接口
let url = process.env.rootPath + "/auth/api/individual/face/Organ";
let param = { let param = {
openId: window.localStorage.openId, contextId: id,
idNo: vm.socialCode1, verifycode: code,
agentIdNo: vm.jbIdNumber, success: suc
agentName: vm.jbName,
mobile: vm.jbPhoneNumber,
name: vm.organizationName1,
legalName: vm.legalRepresentativeName1,
legalIdNo: vm.legalRepresentativeCardNumber1,
agentType: "2",
redirectUrl:
"http://lease.hitachics.com/www/#/UserRegister/CompanyRegister?Regstatus=2"
}; };
vm.hlsPopup.showLoading("请稍等"); vm.hlsPopup.showLoading("请稍等");
vm.$post(url, param).then(function(res) { vm.$post(url, param).then(function (res) {
vm.hlsPopup.hideLoading(); vm.hlsPopup.hideLoading();
if (res.code == 0) {
vm.$vux.toast.text(res.message, "middle");
if (res.url) {
window.open(res.url, "_self");
}
} else {
vm.$vux.toast.text(res.message, "middle");
}
}); });
} },
}, // 键盘消失,页面返回顶部
UrlSearch() { goTop() {
var name, value; setTimeout(function () {
var str = window.location.href; //取得整个地址栏 var scrollHeight =
var num = str.indexOf("?"); document.documentElement.scrollTop || document.body.scrollTop || 0;
str = str.substr(num + 1); //取得所有参数 stringvar.substr(start [, length ] console.log(scrollHeight);
var arr = str.split("&"); //各个参数放到数组里 window.scrollTo(0, Math.max(scrollHeight, 0));
for (var i = 0; i < arr.length; i++) { }, 100);
num = arr[i].indexOf("="); },
if (num > 0) { // 查询用户信息
name = arr[i].substring(0, num); getUserInfo() {
value = arr[i].substr(num + 1); var Request = new this.UrlSearch(); //实例化
this[name] = value; var status = Request.Regstatus;
} var contextId = Request.contextId;
} var verifycode = Request.verifycode;
}, var success = Request.passed;
logout() { // console.log('wwwwww',status)
let vm = this; let vm = this;
hlsPopup.showConfirm({ let url =
title: "提示", process.env.rootPath +
content: "请确认合同是否都已下载完成,注销后无法下载,请知悉,谢谢!", "/sign/info/hclc/query/by/openid?openId=" +
onConfirm: function(index) { window.localStorage.openId;
if (index === 1) { // let url =
let url = // process.env.rootPath +
process.env.rootPath + "/organizations/outerOrgans/delete"; // "/sign/info/hclc/query/by/openid?openId=" +
let param = { // // "oBdoRwFp6UN_KzchaPIEPynR9poM"
openId: window.localStorage.openId // "oBdoRwI9gj9Brbe9iqlDCg5G2dDc";
}; vm.hlsPopup.showLoading("请稍等");
vm.hlsPopup.showLoading("请稍等"); vm.$post(url).then(function (res) {
vm.$post(url, param).then(function(res) { vm.hlsPopup.hideLoading();
vm.hlsPopup.hideLoading(); // console.log(res.rows.length);
if (res.code == 0) { if (res.rows) {
vm.$vux.toast.text(res.message, "middle"); if (res.rows.length > 0) {
window.open( var data = res.rows[0];
"http://lease.hitachics.com/www/#/UserRegister", var historyFlag = data.historyFlag;
"_self" if (historyFlag == 'N') {
); vm.userInfo = data;
} else { vm.faceAuthStatus = data.faceAuthStatus;
vm.$vux.toast.text(res.message, "middle"); vm.orgAuthStatus = data.orgAuthStatus;
} vm.agentType = data.dealerFlag ? data.dealerFlag : "Y";
}); vm.showStatus = "1";
} if (data.ctitype == 2) {
// console.log(index); if (data.agentType == 1) {
} //法定代表人
}); vm.organizationName = data.name;
}, vm.socialCode = data.idNo;
// 退出 vm.legalRepresentativeName = data.legalName;
go_forword() { vm.legalRepresentativeCardNumber = data.legalIdNo;
let vm = this; vm.legalPhoneNumber = data.mobile;
let url = process.env.rootPath + "/accounts/outerAccounts/delete"; vm.authAttachmentId = data.attachmentId;
let param = { vm.authOrgAttachmentId = data.orgAttachmentId;
openId: window.localStorage.openId vm.cardUp =
}; process.env.rootPath +
vm.hlsPopup.showLoading("请稍等"); "/app/fileViewSvc?attachment_id=" +
vm.$post(url, param).then(function (res) { data.attachmentId +
vm.hlsPopup.hideLoading(); "&apiName=download&sysName=HCL_UPLOAD_FILE&access_token=" +
if (res.code == 0) { window.localStorage.access_token_rl;
vm.$vux.toast.text(res.message, "middle"); vm.cardUp2 =
window.open( process.env.rootPath +
"http://lease.hitachics.com/www/#/UserRegister", "/app/fileViewSvc?attachment_id=" +
"_self" data.attachmentId +
); "&apiName=download&sysName=HCL_UPLOAD_FILE&access_token=" +
} else { window.localStorage.access_token_rl;
vm.$vux.toast.text(res.message, "middle"); vm.busLic =
} process.env.rootPath +
}); "/app/fileViewSvc?attachment_id=" +
}, data.orgAttachmentId +
// 认证结果返回给接口 "&apiName=download&sysName=HCL_UPLOAD_FILE&access_token=" +
authResult(id, code, suc) { window.localStorage.access_token_rl;
let vm = this; vm.busLic2 =
let url = "http://lease.hitachics.com/core/api/public/listen/auth/result"; process.env.rootPath +
let param = { "/app/fileViewSvc?attachment_id=" +
contextId: id, data.orgAttachmentId +
verifycode: code, "&apiName=download&sysName=HCL_UPLOAD_FILE&access_token=" +
success: suc window.localStorage.access_token_rl;
}; if (
vm.hlsPopup.showLoading("请稍等"); data.faceAuthStatus == "SUCCESS" &&
vm.$post(url, param).then(function(res) { data.orgAuthStatus == "SUCCESS"
vm.hlsPopup.hideLoading(); ) {
}); vm.status = "成功";
}, vm.authResult(contextId, verifycode, success);
// 键盘消失,页面返回顶部 // 跳转到注销页面
goTop() { }
setTimeout(function() { } else if (data.agentType == 2) {
var scrollHeight = //组织机构其他员工
document.documentElement.scrollTop || document.body.scrollTop || 0; vm.staffType = "组织其他员工";
console.log(scrollHeight); vm.jbName = data.agentName;
window.scrollTo(0, Math.max(scrollHeight, 0)); vm.jbPhoneNumber = data.mobile;
}, 100); vm.jbIdNumber = data.agentIdNo;
}, vm.organizationName1 = data.name;
// 查询用户信息 vm.socialCode1 = data.idNo;
getUserInfo() { vm.legalRepresentativeName1 = data.legalName;
var Request = new this.UrlSearch(); //实例化 vm.legalRepresentativeCardNumber1 = data.legalIdNo;
var status = Request.Regstatus; vm.authAttachmentId = data.attachmentId;
var contextId = Request.contextId; vm.authOrgAttachmentId = data.orgAttachmentId;
var verifycode = Request.verifycode; vm.cardUp1 =
var success = Request.passed; process.env.rootPath +
// console.log('wwwwww',status) "/app/fileViewSvc?attachment_id=" +
let vm = this; data.attachmentId +
let url = "&apiName=download&sysName=HCL_UPLOAD_FILE&access_token=" +
process.env.rootPath + window.localStorage.access_token_rl;
"/sign/info/hclc/query/by/openid?openId=" + vm.busLic1 =
window.localStorage.openId; process.env.rootPath +
// let url = "/app/fileViewSvc?attachment_id=" +
// process.env.rootPath + data.orgAttachmentId +
// "/sign/info/hclc/query/by/openid?openId=" + "&apiName=download&sysName=HCL_UPLOAD_FILE&access_token=" +
// // "oBdoRwFp6UN_KzchaPIEPynR9poM" window.localStorage.access_token_rl;
// "oBdoRwI9gj9Brbe9iqlDCg5G2dDc"; vm.cardUp3 =
vm.hlsPopup.showLoading("请稍等"); process.env.rootPath +
vm.$post(url).then(function(res) { "/app/fileViewSvc?attachment_id=" +
vm.hlsPopup.hideLoading(); data.attachmentId +
// console.log(res.rows.length); "&apiName=download&sysName=HCL_UPLOAD_FILE&access_token=" +
if (res.rows) { window.localStorage.access_token_rl;
if (res.rows.length > 0) { vm.busLic3 =
var data = res.rows[0]; process.env.rootPath +
vm.userInfo = data; "/app/fileViewSvc?attachment_id=" +
vm.faceAuthStatus = data.faceAuthStatus; data.orgAttachmentId +
vm.orgAuthStatus = data.orgAuthStatus; "&apiName=download&sysName=HCL_UPLOAD_FILE&access_token=" +
vm.agentType = data.dealerFlag ? data.dealerFlag : "Y"; window.localStorage.access_token_rl;
vm.showStatus = "1"; if (
if (data.ctitype == 2) { data.faceAuthStatus == "SUCCESS" &&
if (data.agentType == 1) { data.orgAuthStatus == "SUCCESS"
//法定代表人 ) {
vm.organizationName = data.name; vm.status = "成功";
vm.socialCode = data.idNo; vm.authResult(contextId, verifycode, success);
vm.legalRepresentativeName = data.legalName; // 跳转到注销页面
vm.legalRepresentativeCardNumber = data.legalIdNo; }
vm.legalPhoneNumber = data.mobile; }
vm.authAttachmentId = data.attachmentId;
vm.authOrgAttachmentId = data.orgAttachmentId;
vm.cardUp =
process.env.rootPath +
"/app/fileViewSvc?attachment_id=" +
data.attachmentId +
"&apiName=download&sysName=HCL_UPLOAD_FILE&access_token=" +
window.localStorage.access_token_rl;
vm.cardUp2 =
process.env.rootPath +
"/app/fileViewSvc?attachment_id=" +
data.attachmentId +
"&apiName=download&sysName=HCL_UPLOAD_FILE&access_token=" +
window.localStorage.access_token_rl;
vm.busLic =
process.env.rootPath +
"/app/fileViewSvc?attachment_id=" +
data.orgAttachmentId +
"&apiName=download&sysName=HCL_UPLOAD_FILE&access_token=" +
window.localStorage.access_token_rl;
vm.busLic2 =
process.env.rootPath +
"/app/fileViewSvc?attachment_id=" +
data.orgAttachmentId +
"&apiName=download&sysName=HCL_UPLOAD_FILE&access_token=" +
window.localStorage.access_token_rl;
if (
data.faceAuthStatus == "SUCCESS" &&
data.orgAuthStatus == "SUCCESS"
) {
vm.status = "成功";
vm.authResult(contextId, verifycode, success);
// 跳转到注销页面
}
} else if (data.agentType == 2) {
//组织机构其他员工
vm.staffType = "组织其他员工";
vm.jbName = data.agentName;
vm.jbPhoneNumber = data.mobile;
vm.jbIdNumber = data.agentIdNo;
vm.organizationName1 = data.name;
vm.socialCode1 = data.idNo;
vm.legalRepresentativeName1 = data.legalName;
vm.legalRepresentativeCardNumber1 = data.legalIdNo;
vm.authAttachmentId = data.attachmentId;
vm.authOrgAttachmentId = data.orgAttachmentId;
vm.cardUp1 =
process.env.rootPath +
"/app/fileViewSvc?attachment_id=" +
data.attachmentId +
"&apiName=download&sysName=HCL_UPLOAD_FILE&access_token=" +
window.localStorage.access_token_rl;
vm.busLic1 =
process.env.rootPath +
"/app/fileViewSvc?attachment_id=" +
data.orgAttachmentId +
"&apiName=download&sysName=HCL_UPLOAD_FILE&access_token=" +
window.localStorage.access_token_rl;
vm.cardUp3 =
process.env.rootPath +
"/app/fileViewSvc?attachment_id=" +
data.attachmentId +
"&apiName=download&sysName=HCL_UPLOAD_FILE&access_token=" +
window.localStorage.access_token_rl;
vm.busLic3 =
process.env.rootPath +
"/app/fileViewSvc?attachment_id=" +
data.orgAttachmentId +
"&apiName=download&sysName=HCL_UPLOAD_FILE&access_token=" +
window.localStorage.access_token_rl;
if (
data.faceAuthStatus == "SUCCESS" &&
data.orgAuthStatus == "SUCCESS"
) {
vm.status = "成功";
vm.authResult(contextId, verifycode, success);
// 跳转到注销页面
} }
} }
} }
} }
} });
}); }
} }
} };
};
</script> </script>
<style lang="less" type="text/less" scoped> <style lang="less" type="text/less" scoped>
@import "../../../styles/vue-1px.less"; @import "../../../styles/vue-1px.less";
.companyRegister { .companyRegister {
.reg-content { .reg-content {
padding: 20px 10px; padding: 20px 10px;
font-size: 14px; font-size: 14px;
.repre-type { .repre-type {
padding: 10px; padding: 10px;
border-bottom: 1px solid #d0d0d0; border-bottom: 1px solid #d0d0d0;
color: #11111187; color: #11111187;
font-size: 16px; font-size: 16px;
font-weight: 700; font-weight: 700;
}
.info_list {
width: 100%;
// height: 48px;
// border-bottom: 1px solid #f2f2f2;
border-bottom: 1px solid #d0d0d0;
display: flex;
display: -webkit-flex;
.list_left {
width: 35%;
// margin-left: 3%;
height: 50px;
font-family: "微软雅黑";
font-size: 14px;
color: #636363;
line-height: 50px;
// float: left;
} }
.list_right { .info_list {
// width: auto; width: 100%;
// margin-right: 3%; // height: 48px;
height: 50px; // border-bottom: 1px solid #f2f2f2;
color: #636363; border-bottom: 1px solid #d0d0d0;
line-height: 50px; display: flex;
// float: right; display: -webkit-flex;
.list_left {
width: 35%;
// margin-left: 3%;
height: 50px;
font-family: "微软雅黑";
font-size: 14px;
color: #636363;
line-height: 50px;
// float: left;
}
.list_right {
// width: auto;
// margin-right: 3%;
height: 50px;
color: #636363;
line-height: 50px;
// float: right;
}
.edit {
width: 100%;
color: #898989;
font-family: "微软雅黑";
font-size: 14px;
border: none;
}
.list_left2 {
width: 97%;
margin-left: 3%;
height: 50px;
font-family: "微软雅黑";
font-size: 14px;
color: #636363;
line-height: 50px;
// float: left;
}
} }
.edit { .uppic {
height: 100%;
width: 100%; width: 100%;
color: #898989; margin: 0 auto;
font-family: "微软雅黑"; opacity: 0;
font-size: 14px; z-index: 1000;
border: none; position: absolute;
} }
.list_left2 { .pic {
width: 97%; width: 100%;
margin-left: 3%; height: 100%;
height: 50px; position: absolute;
font-family: "微软雅黑"; }
font-size: 14px; .bus-license {
color: #636363; width: 140px;
line-height: 50px; height: 100px;
// float: left; margin: 10px auto;
border: 1px solid #b2b2b2;
border-radius: 8px;
position: relative;
}
.next-step {
width: 120px;
height: 30px;
border-radius: 15px;
background-color: #09bb07;
color: #ffffff;
cursor: pointer;
margin: 100px 0 0 -60px;
position: relative;
left: 50%;
} }
}
.uppic {
height: 100%;
width: 100%;
margin: 0 auto;
opacity: 0;
z-index: 1000;
position: absolute;
}
.pic {
width: 100%;
height: 100%;
position: absolute;
}
.bus-license {
width: 140px;
height: 100px;
margin: 10px auto;
border: 1px solid #b2b2b2;
border-radius: 8px;
position: relative;
}
.next-step {
width: 120px;
height: 30px;
border-radius: 15px;
background-color: #09bb07;
color: #ffffff;
cursor: pointer;
margin: 100px 0 0 -60px;
position: relative;
left: 50%;
} }
} }
}
// iPhoneX适配 // iPhoneX适配
@media (device-width: 375px) and (device-height: 812px) and (-webkit-min-device-pixel-ratio: 3) { @media (device-width: 375px) and (device-height: 812px) and (-webkit-min-device-pixel-ratio: 3) {
.platform-ios { .platform-ios {
#home { #home {
}
} }
} }
}
// iPhoneX Max适配 // iPhoneX Max适配
@media (device-width: 414px) and (device-height: 896px) { @media (device-width: 414px) and (device-height: 896px) {
.platform-ios {
.platform-ios { .platform-ios {
#home { .platform-ios {
#home {
}
} }
} }
} }
}
</style> </style>
...@@ -492,19 +492,22 @@ ...@@ -492,19 +492,22 @@
if (res.rows) { if (res.rows) {
if (res.rows.length > 0) { if (res.rows.length > 0) {
var data = res.rows[0]; var data = res.rows[0];
vm.cardUp = var historyFlag=data.historyFlag;
process.env.rootPath + if(historyFlag=='N'){
"/app/fileViewSvc?attachment_id=" + vm.cardUp =
data.attachmentId + process.env.rootPath +
"&apiName=download&sysName=HCL_UPLOAD_FILE&access_token=" + "/app/fileViewSvc?attachment_id=" +
window.localStorage.access_token_rl; data.attachmentId +
vm.identificationNumber = data.idNo; "&apiName=download&sysName=HCL_UPLOAD_FILE&access_token=" +
vm.phoneNumber = data.mobile; window.localStorage.access_token_rl;
vm.personName = data.name; vm.identificationNumber = data.idNo;
// vm.identificationNumber = '22222222222222222'; vm.phoneNumber = data.mobile;
// vm.phoneNumber = '18230982828'; vm.personName = data.name;
// vm.personName = 'chaiwei'; // vm.identificationNumber = '22222222222222222';
vm.showStatus = "1"; // vm.phoneNumber = '18230982828';
// vm.personName = 'chaiwei';
vm.showStatus = "1";
}
} }
} }
}); });
......
...@@ -8,19 +8,19 @@ ...@@ -8,19 +8,19 @@
:class="['item-entry',{'add-bg-color':isClick1}]" :class="['item-entry',{'add-bg-color':isClick1}]"
@click="goPersonalPage()" @click="goPersonalPage()"
> >
<img src="../../../assets/userRegister/people.png" v-show="isHighLight" /> <img src="../../../assets/userRegister/people.png" v-show="isHighLight"/>
<img src="../../../assets/userRegister/people-light.png" v-show="!isHighLight" /> <img src="../../../assets/userRegister/people-light.png" v-show="!isHighLight"/>
<span class="text-entry">个人</span> <span class="text-entry">个人</span>
</div> </div>
<div :class="['item-entry',{'add-bg-color':isClick2}]" @click="goCompanyPage()"> <div :class="['item-entry',{'add-bg-color':isClick2}]" @click="goCompanyPage()">
<img src="../../../assets/userRegister/company.png" v-show="isHighLight1" /> <img src="../../../assets/userRegister/company.png" v-show="isHighLight1"/>
<img src="../../../assets/userRegister/company-light.png" v-show="!isHighLight1" /> <img src="../../../assets/userRegister/company-light.png" v-show="!isHighLight1"/>
<span class="text-entry">企业</span> <span class="text-entry">企业</span>
</div> </div>
</div> </div>
<div class="tips"> <div class="tips">
<p class="tips-item"> <p class="tips-item">
<img src="../../../assets/userRegister/tips.png" alt /> <img src="../../../assets/userRegister/tips.png" alt/>
<span>温馨提示:</span> <span>温馨提示:</span>
</p> </p>
<p class="tips-item">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;您可选择用户类型进行用户信息注册及实名认证。</p> <p class="tips-item">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;您可选择用户类型进行用户信息注册及实名认证。</p>
...@@ -32,285 +32,290 @@ ...@@ -32,285 +32,290 @@
</template> </template>
<script> <script>
import { getUrlParam } from "@/scripts/utils"; import {getUrlParam} from "@/scripts/utils";
export default {
data() { export default {
return { data() {
isClick1: false, return {
isClick2: false, isClick1: false,
isHighLight: true, isClick2: false,
isHighLight1: true, isHighLight: true,
isReadOnlyPersonal: false, isHighLight1: true,
isReadOnlyCompany: false, isReadOnlyPersonal: false,
userInfo: null, isReadOnlyCompany: false,
userInfo1: null, userInfo: null,
ctitype: "" userInfo1: null,
}; ctitype: ""
}, };
components: {}, },
activated: function() { components: {},
// console.log(1111111111111111111111) activated: function () {
// if (window.localStorage.openId) { // console.log(1111111111111111111111)
// this.getUserInfo('1111'); // if (window.localStorage.openId) {
// }; // this.getUserInfo('1111');
}, // };
created() { },
this.wxConfig(); created() {
if (window.localStorage.openId) { this.wxConfig();
this.getUserInfo(); if (window.localStorage.openId) {
} this.getUserInfo();
}, }
updated: function() {}, },
methods: { updated: function () {
// 获取token },
// getToken() { methods: {
// let vm = this; // 获取token
// let url = process.env.loginPathRl + "admin"; // getToken() {
// let param = {}; // let vm = this;
// return vm.hlsHttp.post(url, param).then(function(res) { // let url = process.env.loginPathRl + "admin";
// window.localStorage.setItem("access_token_rl", res.access_token); // let param = {};
// }); // return vm.hlsHttp.post(url, param).then(function(res) {
// }, // window.localStorage.setItem("access_token_rl", res.access_token);
// 获取openId // });
// getOpenId(code) { // },
// let vm = this; // 获取openId
// let url = process.env.basePathRl + "getOpenId"; // getOpenId(code) {
// let param = { // let vm = this;
// apiKey: "handexinxi", // let url = process.env.basePathRl + "getOpenId";
// code: code // let param = {
// }; // apiKey: "handexinxi",
// vm.hlsHttp.post(url, param).then(function(res) { // code: code
// // console.log(1111111) // };
// // window.localStorage.openId = "oBdoRwI9gj9Brbe9iqlDCg5G2dDc"; // vm.hlsHttp.post(url, param).then(function(res) {
// // window.localStorage.openId = "oBdoRwFp6UN_KzchaPIEPynR9poM" // // console.log(1111111)
// // if(window.localStorage.openId){ // // window.localStorage.openId = "oBdoRwI9gj9Brbe9iqlDCg5G2dDc";
// // vm.getUserInfo(); // // window.localStorage.openId = "oBdoRwFp6UN_KzchaPIEPynR9poM"
// // } // // if(window.localStorage.openId){
// if (res.resultCode == "00") { // // vm.getUserInfo();
// window.localStorage.openId = res.result; // // }
// if (window.localStorage.openId) { // if (res.resultCode == "00") {
// vm.getUserInfo(); // window.localStorage.openId = res.result;
// } // if (window.localStorage.openId) {
// } else { // vm.getUserInfo();
// return; // }
// } // } else {
// }); // return;
// }, // }
goPersonalPage() { // });
this.isClick1 = true; // },
this.isClick2 = false; goPersonalPage() {
this.isHighLight = false; this.isClick1 = true;
this.isHighLight1 = true; this.isClick2 = false;
// console.log('hddhhshshshsh',this.isReadOnlyPersonal) this.isHighLight = false;
if (this.ctitype) { this.isHighLight1 = true;
if (this.ctitype == 1) { // console.log('hddhhshshshsh',this.isReadOnlyPersonal)
if (this.isReadOnlyPersonal) { if (this.ctitype) {
this.$router.push({ if (this.ctitype == 1) {
name: "ReadonlyPersonalReg", if (this.isReadOnlyPersonal) {
params: { this.$router.push({
userInfo: this.userInfo name: "ReadonlyPersonalReg",
} params: {
}); userInfo: this.userInfo
} else { }
});
} else {
this.$router.push({
name: "PersonalRegister",
params: {
userInfo: this.userInfo
}
});
}
} else if (this.ctitype == null) {
this.$router.push({ this.$router.push({
name: "PersonalRegister", name: "PersonalRegister",
params: { params: {
userInfo: this.userInfo userInfo: this.userInfo
} }
}); });
} else {
return;
} }
} else if (this.ctitype == null) { } else {
this.$router.push({ this.$router.push({
name: "PersonalRegister", name: "PersonalRegister"
params: {
userInfo: this.userInfo
}
}); });
} else {
return;
} }
} else { },
this.$router.push({ goCompanyPage() {
name: "PersonalRegister" this.isClick2 = true;
}); this.isClick1 = false;
} this.isHighLight1 = false;
}, this.isHighLight = true;
goCompanyPage() { if (this.ctitype) {
this.isClick2 = true; if (this.ctitype == 2) {
this.isClick1 = false; if (this.isReadOnlyCompany) {
this.isHighLight1 = false; this.$router.push({
this.isHighLight = true; name: "ReadonlyCompanyReg",
if (this.ctitype) { params: {
if (this.ctitype == 2) { userInfo: this.userInfo1
if (this.isReadOnlyCompany) { }
this.$router.push({ });
name: "ReadonlyCompanyReg", } else {
params: { this.$router.push({
userInfo: this.userInfo1 name: "CompanyRegister"
} });
}); }
} else { } else if (this.ctitype == null) {
this.$router.push({ this.$router.push({
name: "CompanyRegister" name: "CompanyRegister"
}); });
} else {
return;
} }
} else if (this.ctitype == null) { } else {
this.$router.push({ this.$router.push({
name: "CompanyRegister" name: "CompanyRegister"
}); });
} else {
return;
} }
} else { },
this.$router.push({ getUserInfo() {
name: "CompanyRegister" let vm = this;
}); let url =
} process.env.rootPath +
}, "/sign/info/hclc/query/by/openid?openId=" +
getUserInfo() { window.localStorage.openId;
let vm = this; vm.hlsPopup.showLoading("请稍等");
let url = vm.$post(url).then(function (res) {
process.env.rootPath + vm.hlsPopup.hideLoading();
"/sign/info/hclc/query/by/openid?openId=" + if (res.rows) {
window.localStorage.openId; if (res.rows.length > 0) {
vm.hlsPopup.showLoading("请稍等"); console.log(res.rows);
vm.$post(url).then(function(res) { var results = res.rows[0];
vm.hlsPopup.hideLoading(); var historyFlag = data.historyFlag;
if (res.rows) { if (historyFlag == 'N') {
if (res.rows.length > 0) { vm.ctitype = results.ctitype;
console.log(res.rows); if (results.ctitype == 1) {
var results = res.rows[0]; vm.userInfo = results;
vm.ctitype = results.ctitype; } else if (results.ctitype == 2) {
if (results.ctitype == 1) { vm.userInfo1 = results;
vm.userInfo = results; }
} else if (results.ctitype == 2) { if (results.ctitype == 1 && results.faceAuthStatus == "SUCCESS") {
vm.userInfo1 = results; vm.isReadOnlyPersonal = true;
} } else if (
if (results.ctitype == 1 && results.faceAuthStatus == "SUCCESS") { results.ctitype == 2 &&
vm.isReadOnlyPersonal = true; results.faceAuthStatus == "SUCCESS" &&
} else if ( results.orgAuthStatus == "SUCCESS"
results.ctitype == 2 && ) {
results.faceAuthStatus == "SUCCESS" && vm.isReadOnlyCompany = true;
results.orgAuthStatus == "SUCCESS" } else {
) { return;
vm.isReadOnlyCompany = true; }
} else { }
return;
} }
} }
}
});
},
// 调用微信接口的基础配置
wxConfig() {
let clientUrl = "";
let u = navigator.userAgent;
let isAndroid = u.indexOf("Android") > -1 || u.indexOf("Linux") > -1; //g
let isIOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
if (isAndroid) {
//这个是安卓操作系统
console.log("机型:android");
clientUrl = location.href;
}
if (isIOS) {
//这个是ios操作系统
console.log("机型:ios");
clientUrl = location.href.split("#")[0];
}
// let url = $config.rootPath + '/js/sdk/getWxConfig?wxCode=' + $config.wxCode + '&clientUrl=' + clientUrl
let url = process.env.basePathRl + "getSignature";
let param = {
apiKey: "handexinxi",
url: clientUrl
};
hlsHttp.post(url, param).then(function(res) {
wx.config({
beta: true,
debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
appId: res.result.appId, // 必填,公众号的唯一标识
timestamp: res.result.timestamp, // 必填,生成签名的时间戳
nonceStr: res.result.nonceStr, // 必填,生成签名的随机串
signature: res.result.signature, // 必填,签名,见附录1
jsApiList: [
"chooseImage",
"previewImage",
"downloadImage",
"getLocalImgData",
"uploadImage",
"hideOptionMenu"
] // 必填,需要使用的JS接口列表,所有JS接口列表见附录2
}); });
wx.ready(function() { },
wx.hideOptionMenu(); // 调用微信接口的基础配置
wxConfig() {
let clientUrl = "";
let u = navigator.userAgent;
let isAndroid = u.indexOf("Android") > -1 || u.indexOf("Linux") > -1; //g
let isIOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
if (isAndroid) {
//这个是安卓操作系统
console.log("机型:android");
clientUrl = location.href;
}
if (isIOS) {
//这个是ios操作系统
console.log("机型:ios");
clientUrl = location.href.split("#")[0];
}
// let url = $config.rootPath + '/js/sdk/getWxConfig?wxCode=' + $config.wxCode + '&clientUrl=' + clientUrl
let url = process.env.basePathRl + "getSignature";
let param = {
apiKey: "handexinxi",
url: clientUrl
};
hlsHttp.post(url, param).then(function (res) {
wx.config({
beta: true,
debug: false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
appId: res.result.appId, // 必填,公众号的唯一标识
timestamp: res.result.timestamp, // 必填,生成签名的时间戳
nonceStr: res.result.nonceStr, // 必填,生成签名的随机串
signature: res.result.signature, // 必填,签名,见附录1
jsApiList: [
"chooseImage",
"previewImage",
"downloadImage",
"getLocalImgData",
"uploadImage",
"hideOptionMenu"
] // 必填,需要使用的JS接口列表,所有JS接口列表见附录2
});
wx.ready(function () {
wx.hideOptionMenu();
});
}); });
}); }
} }
} };
};
</script> </script>
<style lang="less" type="text/less"> <style lang="less" type="text/less">
@import "../../../styles/vue-1px.less"; @import "../../../styles/vue-1px.less";
.userRegister { .userRegister {
.reg-content { .reg-content {
padding: 20px; padding: 20px;
padding-top: 150px; padding-top: 150px;
.reg-entry { .reg-entry {
display: -webkit-flex; display: -webkit-flex;
display: flex; display: flex;
.add-bg-color { .add-bg-color {
background-color: #999999; background-color: #999999;
color: #fffff !important; color: #fffff !important;
}
.item-entry {
width: 50%;
border: 1px solid #ddd;
position: relative;
border-radius: 5px;
img {
width: 50px;
height: 50px;
margin: 10px;
} }
.text-entry { .item-entry {
position: absolute; width: 50%;
top: 30px; border: 1px solid #ddd;
right: 30%; position: relative;
border-radius: 5px;
img {
width: 50px;
height: 50px;
margin: 10px;
}
.text-entry {
position: absolute;
top: 30px;
right: 30%;
}
} }
} }
} .tips {
.tips { margin-top: 70px;
margin-top: 70px; margin-left: 30px;
margin-left: 30px; color: #999999;
color: #999999; font-size: 12px;
font-size: 12px; .tips-item {
.tips-item { line-height: 24px;
line-height: 24px; }
} img {
img { width: 22px;
width: 22px; height: 22px;
height: 22px; margin-right: 15px;
margin-right: 15px; }
} }
} }
} }
}
// iPhoneX适配 // iPhoneX适配
@media (device-width: 375px) and (device-height: 812px) and (-webkit-min-device-pixel-ratio: 3) { @media (device-width: 375px) and (device-height: 812px) and (-webkit-min-device-pixel-ratio: 3) {
.platform-ios { .platform-ios {
#home { #home {
}
} }
} }
}
// iPhoneX Max适配 // iPhoneX Max适配
@media (device-width: 414px) and (device-height: 896px) { @media (device-width: 414px) and (device-height: 896px) {
.platform-ios {
.platform-ios { .platform-ios {
#home { .platform-ios {
#home {
}
} }
} }
} }
}
</style> </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