Commit 0f2e43ec authored by 5359's avatar 5359

历史注册用户调整

parent 6470fb64
......@@ -78,7 +78,7 @@
组织机构名称:
</div>
<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 class="info_list" v-if="orgAuthStatus !='SUCCESS'">
......@@ -91,7 +91,7 @@
组织机构名称:
</div>
<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 class="info_list" v-if="orgAuthStatus =='SUCCESS'">
......@@ -104,7 +104,7 @@
统一社会信用代码:
</div>
<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 class="info_list" v-if="orgAuthStatus !='SUCCESS'">
......@@ -117,14 +117,14 @@
统一社会信用代码:
</div>
<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 class="info_list" style="border-bottom:none;">
<div class="list_left2">请上传营业执照照片</div>
</div>
<div class="bus-license">
<img :src="busLic" alt class="pic" @click="uploadBusLic()" />
<img :src="busLic" alt class="pic" @click="uploadBusLic()"/>
</div>
<div class="info_list" v-if="faceAuthStatus =='SUCCESS'">
<div class="list_left" style="width:43%;">
......@@ -136,7 +136,7 @@
法定代表人姓名:
</div>
<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 class="info_list" v-if="faceAuthStatus !='SUCCESS'">
......@@ -149,7 +149,7 @@
法定代表人姓名:
</div>
<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 class="info_list" v-if="faceAuthStatus =='SUCCESS'">
......@@ -180,7 +180,7 @@
法定代表人身份证号码:
</div>
<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 class="info_list">
......@@ -210,7 +210,7 @@
<div
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 style="height:100px;margin-top:30px" v-if="faceAuthStatus =='SUCCESS'">
......@@ -229,7 +229,8 @@
position: relative;
left: 50%;"
@click="next_step()"
>下一步</button>
>下一步
</button>
<p/>
<button v-if="showStatus== 1"
@click="go_forword()"
......@@ -251,7 +252,7 @@
经办人姓名:
</div>
<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 class="info_list" v-if="faceAuthStatus !='SUCCESS'">
......@@ -264,7 +265,7 @@
经办人姓名:
</div>
<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>
......@@ -278,7 +279,7 @@
经办人身份证号:
</div>
<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 class="info_list" v-if="faceAuthStatus !='SUCCESS'">
......@@ -291,7 +292,7 @@
经办人身份证号:
</div>
<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 class="info_list">
......@@ -320,7 +321,7 @@
<div
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 style="height:100px;margin-top:30px" v-if="faceAuthStatus =='SUCCESS'">
......@@ -341,7 +342,7 @@
组织机构名称:
</div>
<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 class="info_list" v-if="orgAuthStatus !='SUCCESS'">
......@@ -354,7 +355,7 @@
组织机构名称:
</div>
<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 class="info_list" v-if="orgAuthStatus =='SUCCESS'">
......@@ -367,7 +368,7 @@
统一社会信用代码:
</div>
<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 class="info_list" v-if="orgAuthStatus !='SUCCESS'">
......@@ -380,14 +381,14 @@
统一社会信用代码:
</div>
<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 class="info_list" style="border-bottom:none;">
<div class="list_left2">请上传营业执照照片</div>
</div>
<div class="bus-license">
<img :src="busLic1" alt class="pic" @click="uploadBusLic1()" />
<img :src="busLic1" alt class="pic" @click="uploadBusLic1()"/>
</div>
<div class="info_list">
<div class="list_left" style="width:43%;">
......@@ -490,7 +491,7 @@
组织机构名称:
</div>
<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 class="info_list">
......@@ -503,7 +504,7 @@
统一社会信用代码:
</div>
<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 class="info_list" style="border-bottom:none;">
......@@ -519,7 +520,7 @@
class="uppic"
disabled
/>-->
<img :src="busLic2" alt class="pic" @click="previewImage(authOrgAttachmentId)" />
<img :src="busLic2" alt class="pic" @click="previewImage(authOrgAttachmentId)"/>
</div>
<div class="info_list">
<div class="list_left" style="width:43%;">
......@@ -531,7 +532,7 @@
法定代表人姓名:
</div>
<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 class="info_list">
......@@ -544,7 +545,7 @@
法定代表人身份证号码:
</div>
<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 class="info_list">
......@@ -557,7 +558,7 @@
手机号码:
</div>
<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 style="margin: 10px 0 0 14px;color:#636363">
......@@ -576,7 +577,7 @@
class="uppic"
disabled
/>-->
<img :src="cardUp2" alt class="pic" @click="previewImage(authAttachmentId)" />
<img :src="cardUp2" alt class="pic" @click="previewImage(authAttachmentId)"/>
</div>
</div>
<p style="margin-top:10px;text-align:center;color:#636363">正面</p>
......@@ -584,7 +585,8 @@
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%;"
@click="logout()"
>注销</button>
>注销
</button>
</div>
<!-- 组织其他员工 -->
<div v-if="staffType ==='组织其他员工'">
......@@ -598,7 +600,7 @@
经办人姓名:
</div>
<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>
......@@ -612,7 +614,7 @@
经办人身份证号:
</div>
<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 class="info_list">
......@@ -625,7 +627,7 @@
手机号码:
</div>
<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 style="margin: 10px 0 0 14px;color:#636363">
......@@ -644,7 +646,7 @@
class="uppic"
disabled
/>-->
<img :src="cardUp3" alt class="pic" @click="previewImage(authAttachmentId)" />
<img :src="cardUp3" alt class="pic" @click="previewImage(authAttachmentId)"/>
</div>
</div>
<p style="margin-top:10px;text-align:center;color:#636363">正面</p>
......@@ -658,7 +660,7 @@
组织机构名称:
</div>
<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 class="info_list">
......@@ -671,7 +673,7 @@
统一社会信用代码:
</div>
<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 class="info_list" style="border-bottom:none;">
......@@ -687,7 +689,7 @@
class="uppic"
disabled
/>-->
<img :src="busLic3" alt class="pic" @click="previewImage(authOrgAttachmentId)" />
<img :src="busLic3" alt class="pic" @click="previewImage(authOrgAttachmentId)"/>
</div>
<div class="info_list">
<div class="list_left" style="width:43%;">
......@@ -699,7 +701,7 @@
法定代表人姓名:
</div>
<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 class="info_list">
......@@ -712,14 +714,15 @@
法定代表人身份证号码:
</div>
<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>
<button
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%;"
@click="logout()"
>注销</button>
>注销
</button>
</div>
</list-item>
</h-content>
......@@ -727,760 +730,766 @@
</template>
<script>
// import { Grid, GridItem } from "vux";
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: "", //法定代表人身份证号码
// import { Grid, GridItem } from "vux";
import {getUrlParam} from "@/scripts/utils";
legalPhoneNumber2: "",
// 11111
attachmentId: "",
attachmentId1: "",
attachmentId2: "",
attachmentId3: "",
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: "", //法定代表人身份证号码
// 用户信息
userInfo: null,
faceAuthStatus: "",
orgAuthStatus: "",
authAttachmentId: "",
authOrgAttachmentId: "",
showStatus: "",
};
},
legalPhoneNumber2: "",
// 11111
attachmentId: "",
attachmentId1: "",
attachmentId2: "",
attachmentId3: "",
created() {
this.wxConfig();
this.getUserInfo();
},
activated: function() {
this.status = ""; //判断请求是否成功的状态
},
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
// 用户信息
userInfo: null,
faceAuthStatus: "",
orgAuthStatus: "",
authAttachmentId: "",
authOrgAttachmentId: "",
showStatus: "",
};
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() {
console.log(this.staffType);
created() {
this.wxConfig();
this.getUserInfo();
},
// 图片上传
uploadUpImg() {
//身份证正面
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");
}
});
activated: function () {
this.status = ""; //判断请求是否成功的状态
},
uploadUpImg1() {
//身份证正面
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");
}
});
mounted() {
},
uploadBusLic() {
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");
}
});
updated: function () {
},
uploadBusLic1() {
//上传营业执照
let self = this;
wx.chooseImage({
count: 1, //张数, 默认9
sizeType: ["compressed"], //建议压缩图
sourceType: ["album", "camera"], // 来源是相册、相机
success: function(res) {
self.busLic1 = res.localIds[0];
self.uploadToWeixinServer(res.localIds[0], "busLic1");
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;
}
});
},
// 上传到微信服务器
uploadToWeixinServer(localId, type) {
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);
}
if (isIOS) {
//这个是ios操作系统
console.log("机型:ios");
clientUrl = location.href.split("#")[0];
}
});
},
// 上传到业务系统并且进行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 =
// 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() {
console.log(this.staffType);
},
// 图片上传
uploadUpImg() {
//身份证正面
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() {
//身份证正面
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() {
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() {
//上传营业执照
let self = this;
wx.chooseImage({
count: 1, //张数, 默认9
sizeType: ["compressed"], //建议压缩图
sourceType: ["album", "camera"], // 来源是相册、相机
success: function (res) {
self.busLic1 = res.localIds[0];
self.uploadToWeixinServer(res.localIds[0], "busLic1");
}
});
},
// 上传到微信服务器
uploadToWeixinServer(localId, type) {
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);
}
}
});
},
// 上传到业务系统并且进行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 +
"/app/fileViewSvc?attachment_id=" +
vm.attachmentId3 +
id +
"&apiName=download&sysName=HCL_UPLOAD_FILE&access_token=" +
window.localStorage.access_token_rl;
});
},
//预览图片
previewImage(id) {
let vm = this;
var preview_url =
process.env.rootPath +
"/app/fileViewSvc?attachment_id=" +
id +
"&apiName=download&sysName=HCL_UPLOAD_FILE&access_token=" +
window.localStorage.access_token_rl;
// window.open(url,"_self");
hlsPopup.showBigPicture({
imgUrl: preview_url
});
},
// 下一步
next_step() {
let vm = this;
if (
!vm.organizationName ||
!vm.socialCode ||
!vm.legalRepresentativeName ||
!vm.legalRepresentativeCardNumber ||
!vm.legalPhoneNumber
// window.open(url,"_self");
hlsPopup.showBigPicture({
imgUrl: preview_url
});
},
// 下一步
next_step() {
let vm = this;
if (
!vm.organizationName ||
!vm.socialCode ||
!vm.legalRepresentativeName ||
!vm.legalRepresentativeCardNumber ||
!vm.legalPhoneNumber
// ||
// !vm.cardUp ||
// !vm.busLic
) {
vm.hlsPopup.showLongCenter("必输字端不能为空!");
return;
}
if (vm.hlsUtil.isCardID(vm.legalRepresentativeCardNumber)) {
vm.hlsPopup.showLongCenter("法定代表人身份证号有误");
return;
} else {
sessionStorage.setItem("organizationName_leg", vm.organizationName);
sessionStorage.setItem("cardUp_leg", vm.cardUp);
sessionStorage.setItem("busLic_leg", vm.busLic);
sessionStorage.setItem("socialCode_leg", vm.socialCode);
sessionStorage.setItem(
"legalRepresentativeName_leg",
vm.legalRepresentativeName
);
sessionStorage.setItem(
"legalRepresentativeCardNumber_leg",
vm.legalRepresentativeCardNumber
);
sessionStorage.setItem("legalPhoneNumber_leg", vm.legalPhoneNumber);
) {
vm.hlsPopup.showLongCenter("必输字端不能为空!");
return;
}
if (vm.hlsUtil.isCardID(vm.legalRepresentativeCardNumber)) {
vm.hlsPopup.showLongCenter("法定代表人身份证号有误");
return;
} else {
sessionStorage.setItem("organizationName_leg", vm.organizationName);
sessionStorage.setItem("cardUp_leg", vm.cardUp);
sessionStorage.setItem("busLic_leg", vm.busLic);
sessionStorage.setItem("socialCode_leg", vm.socialCode);
sessionStorage.setItem(
"legalRepresentativeName_leg",
vm.legalRepresentativeName
);
sessionStorage.setItem(
"legalRepresentativeCardNumber_leg",
vm.legalRepresentativeCardNumber
);
sessionStorage.setItem("legalPhoneNumber_leg", vm.legalPhoneNumber);
// alert("验证通过");
// 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";
// alert("验证通过");
// 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.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 = {
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"
openId: window.localStorage.openId
};
vm.hlsPopup.showLoading("请稍等");
vm.$post(url, param).then(function(res) {
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");
}
window.open(
"http://lease.hitachics.com/www/#/UserRegister",
"_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";
},
// 认证结果返回给接口
authResult(id, code, suc) {
let vm = this;
let url = "http://lease.hitachics.com/core/api/public/listen/auth/result";
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"
contextId: id,
verifycode: code,
success: suc
};
vm.hlsPopup.showLoading("请稍等");
vm.$post(url, param).then(function(res) {
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 = {
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;
let url = "http://lease.hitachics.com/core/api/public/listen/auth/result";
let param = {
contextId: id,
verifycode: code,
success: suc
};
vm.hlsPopup.showLoading("请稍等");
vm.$post(url, param).then(function(res) {
vm.hlsPopup.hideLoading();
});
},
// 键盘消失,页面返回顶部
goTop() {
setTimeout(function() {
var scrollHeight =
document.documentElement.scrollTop || document.body.scrollTop || 0;
console.log(scrollHeight);
window.scrollTo(0, Math.max(scrollHeight, 0));
}, 100);
},
// 查询用户信息
getUserInfo() {
var Request = new this.UrlSearch(); //实例化
var status = Request.Regstatus;
var contextId = Request.contextId;
var verifycode = Request.verifycode;
var success = Request.passed;
// console.log('wwwwww',status)
let vm = this;
let url =
process.env.rootPath +
"/sign/info/hclc/query/by/openid?openId=" +
window.localStorage.openId;
// let url =
// process.env.rootPath +
// "/sign/info/hclc/query/by/openid?openId=" +
// // "oBdoRwFp6UN_KzchaPIEPynR9poM"
// "oBdoRwI9gj9Brbe9iqlDCg5G2dDc";
vm.hlsPopup.showLoading("请稍等");
vm.$post(url).then(function(res) {
vm.hlsPopup.hideLoading();
// console.log(res.rows.length);
if (res.rows) {
if (res.rows.length > 0) {
var data = res.rows[0];
vm.userInfo = data;
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) {
//法定代表人
vm.organizationName = data.name;
vm.socialCode = data.idNo;
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);
// 跳转到注销页面
},
// 键盘消失,页面返回顶部
goTop() {
setTimeout(function () {
var scrollHeight =
document.documentElement.scrollTop || document.body.scrollTop || 0;
console.log(scrollHeight);
window.scrollTo(0, Math.max(scrollHeight, 0));
}, 100);
},
// 查询用户信息
getUserInfo() {
var Request = new this.UrlSearch(); //实例化
var status = Request.Regstatus;
var contextId = Request.contextId;
var verifycode = Request.verifycode;
var success = Request.passed;
// console.log('wwwwww',status)
let vm = this;
let url =
process.env.rootPath +
"/sign/info/hclc/query/by/openid?openId=" +
window.localStorage.openId;
// let url =
// process.env.rootPath +
// "/sign/info/hclc/query/by/openid?openId=" +
// // "oBdoRwFp6UN_KzchaPIEPynR9poM"
// "oBdoRwI9gj9Brbe9iqlDCg5G2dDc";
vm.hlsPopup.showLoading("请稍等");
vm.$post(url).then(function (res) {
vm.hlsPopup.hideLoading();
// console.log(res.rows.length);
if (res.rows) {
if (res.rows.length > 0) {
var data = res.rows[0];
var historyFlag = data.historyFlag;
if (historyFlag == 'N') {
vm.userInfo = data;
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) {
//法定代表人
vm.organizationName = data.name;
vm.socialCode = data.idNo;
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>
<style lang="less" type="text/less" scoped>
@import "../../../styles/vue-1px.less";
@import "../../../styles/vue-1px.less";
.companyRegister {
.reg-content {
padding: 20px 10px;
font-size: 14px;
.repre-type {
padding: 10px;
border-bottom: 1px solid #d0d0d0;
color: #11111187;
font-size: 16px;
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;
.companyRegister {
.reg-content {
padding: 20px 10px;
font-size: 14px;
.repre-type {
padding: 10px;
border-bottom: 1px solid #d0d0d0;
color: #11111187;
font-size: 16px;
font-weight: 700;
}
.list_right {
// width: auto;
// margin-right: 3%;
height: 50px;
color: #636363;
line-height: 50px;
// float: right;
.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 {
// 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%;
color: #898989;
font-family: "微软雅黑";
font-size: 14px;
border: none;
margin: 0 auto;
opacity: 0;
z-index: 1000;
position: absolute;
}
.list_left2 {
width: 97%;
margin-left: 3%;
height: 50px;
font-family: "微软雅黑";
font-size: 14px;
color: #636363;
line-height: 50px;
// float: left;
.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%;
}
}
.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适配
@media (device-width: 375px) and (device-height: 812px) and (-webkit-min-device-pixel-ratio: 3) {
.platform-ios {
#home {
// iPhoneX适配
@media (device-width: 375px) and (device-height: 812px) and (-webkit-min-device-pixel-ratio: 3) {
.platform-ios {
#home {
}
}
}
}
// iPhoneX Max适配
@media (device-width: 414px) and (device-height: 896px) {
.platform-ios {
// iPhoneX Max适配
@media (device-width: 414px) and (device-height: 896px) {
.platform-ios {
#home {
.platform-ios {
#home {
}
}
}
}
}
</style>
......@@ -492,19 +492,22 @@
if (res.rows) {
if (res.rows.length > 0) {
var data = res.rows[0];
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.identificationNumber = data.idNo;
vm.phoneNumber = data.mobile;
vm.personName = data.name;
// vm.identificationNumber = '22222222222222222';
// vm.phoneNumber = '18230982828';
// vm.personName = 'chaiwei';
vm.showStatus = "1";
var historyFlag=data.historyFlag;
if(historyFlag=='N'){
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.identificationNumber = data.idNo;
vm.phoneNumber = data.mobile;
vm.personName = data.name;
// vm.identificationNumber = '22222222222222222';
// vm.phoneNumber = '18230982828';
// vm.personName = 'chaiwei';
vm.showStatus = "1";
}
}
}
});
......
......@@ -8,19 +8,19 @@
:class="['item-entry',{'add-bg-color':isClick1}]"
@click="goPersonalPage()"
>
<img src="../../../assets/userRegister/people.png" v-show="isHighLight" />
<img src="../../../assets/userRegister/people-light.png" v-show="!isHighLight" />
<img src="../../../assets/userRegister/people.png" v-show="isHighLight"/>
<img src="../../../assets/userRegister/people-light.png" v-show="!isHighLight"/>
<span class="text-entry">个人</span>
</div>
<div :class="['item-entry',{'add-bg-color':isClick2}]" @click="goCompanyPage()">
<img src="../../../assets/userRegister/company.png" v-show="isHighLight1" />
<img src="../../../assets/userRegister/company-light.png" v-show="!isHighLight1" />
<img src="../../../assets/userRegister/company.png" v-show="isHighLight1"/>
<img src="../../../assets/userRegister/company-light.png" v-show="!isHighLight1"/>
<span class="text-entry">企业</span>
</div>
</div>
<div class="tips">
<p class="tips-item">
<img src="../../../assets/userRegister/tips.png" alt />
<img src="../../../assets/userRegister/tips.png" alt/>
<span>温馨提示:</span>
</p>
<p class="tips-item">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;您可选择用户类型进行用户信息注册及实名认证。</p>
......@@ -32,285 +32,290 @@
</template>
<script>
import { getUrlParam } from "@/scripts/utils";
export default {
data() {
return {
isClick1: false,
isClick2: false,
isHighLight: true,
isHighLight1: true,
isReadOnlyPersonal: false,
isReadOnlyCompany: false,
userInfo: null,
userInfo1: null,
ctitype: ""
};
},
components: {},
activated: function() {
// console.log(1111111111111111111111)
// if (window.localStorage.openId) {
// this.getUserInfo('1111');
// };
},
created() {
this.wxConfig();
if (window.localStorage.openId) {
this.getUserInfo();
}
},
updated: function() {},
methods: {
// 获取token
// getToken() {
// let vm = this;
// let url = process.env.loginPathRl + "admin";
// 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;
// let url = process.env.basePathRl + "getOpenId";
// let param = {
// apiKey: "handexinxi",
// code: code
// };
// vm.hlsHttp.post(url, param).then(function(res) {
// // console.log(1111111)
// // window.localStorage.openId = "oBdoRwI9gj9Brbe9iqlDCg5G2dDc";
// // window.localStorage.openId = "oBdoRwFp6UN_KzchaPIEPynR9poM"
// // if(window.localStorage.openId){
// // vm.getUserInfo();
// // }
// if (res.resultCode == "00") {
// window.localStorage.openId = res.result;
// if (window.localStorage.openId) {
// vm.getUserInfo();
// }
// } else {
// return;
// }
// });
// },
goPersonalPage() {
this.isClick1 = true;
this.isClick2 = false;
this.isHighLight = false;
this.isHighLight1 = true;
// console.log('hddhhshshshsh',this.isReadOnlyPersonal)
if (this.ctitype) {
if (this.ctitype == 1) {
if (this.isReadOnlyPersonal) {
this.$router.push({
name: "ReadonlyPersonalReg",
params: {
userInfo: this.userInfo
}
});
} else {
import {getUrlParam} from "@/scripts/utils";
export default {
data() {
return {
isClick1: false,
isClick2: false,
isHighLight: true,
isHighLight1: true,
isReadOnlyPersonal: false,
isReadOnlyCompany: false,
userInfo: null,
userInfo1: null,
ctitype: ""
};
},
components: {},
activated: function () {
// console.log(1111111111111111111111)
// if (window.localStorage.openId) {
// this.getUserInfo('1111');
// };
},
created() {
this.wxConfig();
if (window.localStorage.openId) {
this.getUserInfo();
}
},
updated: function () {
},
methods: {
// 获取token
// getToken() {
// let vm = this;
// let url = process.env.loginPathRl + "admin";
// 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;
// let url = process.env.basePathRl + "getOpenId";
// let param = {
// apiKey: "handexinxi",
// code: code
// };
// vm.hlsHttp.post(url, param).then(function(res) {
// // console.log(1111111)
// // window.localStorage.openId = "oBdoRwI9gj9Brbe9iqlDCg5G2dDc";
// // window.localStorage.openId = "oBdoRwFp6UN_KzchaPIEPynR9poM"
// // if(window.localStorage.openId){
// // vm.getUserInfo();
// // }
// if (res.resultCode == "00") {
// window.localStorage.openId = res.result;
// if (window.localStorage.openId) {
// vm.getUserInfo();
// }
// } else {
// return;
// }
// });
// },
goPersonalPage() {
this.isClick1 = true;
this.isClick2 = false;
this.isHighLight = false;
this.isHighLight1 = true;
// console.log('hddhhshshshsh',this.isReadOnlyPersonal)
if (this.ctitype) {
if (this.ctitype == 1) {
if (this.isReadOnlyPersonal) {
this.$router.push({
name: "ReadonlyPersonalReg",
params: {
userInfo: this.userInfo
}
});
} else {
this.$router.push({
name: "PersonalRegister",
params: {
userInfo: this.userInfo
}
});
}
} else if (this.ctitype == null) {
this.$router.push({
name: "PersonalRegister",
params: {
userInfo: this.userInfo
}
});
} else {
return;
}
} else if (this.ctitype == null) {
} else {
this.$router.push({
name: "PersonalRegister",
params: {
userInfo: this.userInfo
}
name: "PersonalRegister"
});
} else {
return;
}
} else {
this.$router.push({
name: "PersonalRegister"
});
}
},
goCompanyPage() {
this.isClick2 = true;
this.isClick1 = false;
this.isHighLight1 = false;
this.isHighLight = true;
if (this.ctitype) {
if (this.ctitype == 2) {
if (this.isReadOnlyCompany) {
this.$router.push({
name: "ReadonlyCompanyReg",
params: {
userInfo: this.userInfo1
}
});
} else {
},
goCompanyPage() {
this.isClick2 = true;
this.isClick1 = false;
this.isHighLight1 = false;
this.isHighLight = true;
if (this.ctitype) {
if (this.ctitype == 2) {
if (this.isReadOnlyCompany) {
this.$router.push({
name: "ReadonlyCompanyReg",
params: {
userInfo: this.userInfo1
}
});
} else {
this.$router.push({
name: "CompanyRegister"
});
}
} else if (this.ctitype == null) {
this.$router.push({
name: "CompanyRegister"
});
} else {
return;
}
} else if (this.ctitype == null) {
} else {
this.$router.push({
name: "CompanyRegister"
});
} else {
return;
}
} else {
this.$router.push({
name: "CompanyRegister"
});
}
},
getUserInfo() {
let vm = this;
let url =
process.env.rootPath +
"/sign/info/hclc/query/by/openid?openId=" +
window.localStorage.openId;
vm.hlsPopup.showLoading("请稍等");
vm.$post(url).then(function(res) {
vm.hlsPopup.hideLoading();
if (res.rows) {
if (res.rows.length > 0) {
console.log(res.rows);
var results = res.rows[0];
vm.ctitype = results.ctitype;
if (results.ctitype == 1) {
vm.userInfo = results;
} else if (results.ctitype == 2) {
vm.userInfo1 = results;
}
if (results.ctitype == 1 && results.faceAuthStatus == "SUCCESS") {
vm.isReadOnlyPersonal = true;
} else if (
results.ctitype == 2 &&
results.faceAuthStatus == "SUCCESS" &&
results.orgAuthStatus == "SUCCESS"
) {
vm.isReadOnlyCompany = true;
} else {
return;
},
getUserInfo() {
let vm = this;
let url =
process.env.rootPath +
"/sign/info/hclc/query/by/openid?openId=" +
window.localStorage.openId;
vm.hlsPopup.showLoading("请稍等");
vm.$post(url).then(function (res) {
vm.hlsPopup.hideLoading();
if (res.rows) {
if (res.rows.length > 0) {
console.log(res.rows);
var results = res.rows[0];
var historyFlag = data.historyFlag;
if (historyFlag == 'N') {
vm.ctitype = results.ctitype;
if (results.ctitype == 1) {
vm.userInfo = results;
} else if (results.ctitype == 2) {
vm.userInfo1 = results;
}
if (results.ctitype == 1 && results.faceAuthStatus == "SUCCESS") {
vm.isReadOnlyPersonal = true;
} else if (
results.ctitype == 2 &&
results.faceAuthStatus == "SUCCESS" &&
results.orgAuthStatus == "SUCCESS"
) {
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>
<style lang="less" type="text/less">
@import "../../../styles/vue-1px.less";
@import "../../../styles/vue-1px.less";
.userRegister {
.reg-content {
padding: 20px;
padding-top: 150px;
.reg-entry {
display: -webkit-flex;
display: flex;
.add-bg-color {
background-color: #999999;
color: #fffff !important;
}
.item-entry {
width: 50%;
border: 1px solid #ddd;
position: relative;
border-radius: 5px;
img {
width: 50px;
height: 50px;
margin: 10px;
.userRegister {
.reg-content {
padding: 20px;
padding-top: 150px;
.reg-entry {
display: -webkit-flex;
display: flex;
.add-bg-color {
background-color: #999999;
color: #fffff !important;
}
.text-entry {
position: absolute;
top: 30px;
right: 30%;
.item-entry {
width: 50%;
border: 1px solid #ddd;
position: relative;
border-radius: 5px;
img {
width: 50px;
height: 50px;
margin: 10px;
}
.text-entry {
position: absolute;
top: 30px;
right: 30%;
}
}
}
}
.tips {
margin-top: 70px;
margin-left: 30px;
color: #999999;
font-size: 12px;
.tips-item {
line-height: 24px;
}
img {
width: 22px;
height: 22px;
margin-right: 15px;
.tips {
margin-top: 70px;
margin-left: 30px;
color: #999999;
font-size: 12px;
.tips-item {
line-height: 24px;
}
img {
width: 22px;
height: 22px;
margin-right: 15px;
}
}
}
}
}
// iPhoneX适配
@media (device-width: 375px) and (device-height: 812px) and (-webkit-min-device-pixel-ratio: 3) {
.platform-ios {
#home {
// iPhoneX适配
@media (device-width: 375px) and (device-height: 812px) and (-webkit-min-device-pixel-ratio: 3) {
.platform-ios {
#home {
}
}
}
}
// iPhoneX Max适配
@media (device-width: 414px) and (device-height: 896px) {
.platform-ios {
// iPhoneX Max适配
@media (device-width: 414px) and (device-height: 896px) {
.platform-ios {
#home {
.platform-ios {
#home {
}
}
}
}
}
</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