Commit 6fc060d8 authored by chaiwei's avatar chaiwei

正式环境修改优化

parent 1205c62c
Pipeline #6058 canceled with stages
...@@ -1246,7 +1246,6 @@ export default { ...@@ -1246,7 +1246,6 @@ export default {
if (data.agentType == 1) { if (data.agentType == 1) {
//法定代表人 //法定代表人
vm.organizationName = data.name; vm.organizationName = data.name;
vm.socialCode = data.idNo; vm.socialCode = data.idNo;
vm.legalRepresentativeName = data.legalName; vm.legalRepresentativeName = data.legalName;
vm.legalRepresentativeCardNumber = data.legalIdNo; vm.legalRepresentativeCardNumber = data.legalIdNo;
......
...@@ -113,7 +113,7 @@ ...@@ -113,7 +113,7 @@
</section> </section>
<input <input
slot="content" slot="content"
v-model="personName1" v-model="personName"
style="text-align: left;font-size:14px" style="text-align: left;font-size:14px"
readonly readonly
/> />
...@@ -127,7 +127,7 @@ ...@@ -127,7 +127,7 @@
</section> </section>
<input <input
slot="content" slot="content"
v-model="identificationNumber1" v-model="identificationNumber"
style="text-align: left;font-size:14px" style="text-align: left;font-size:14px"
readonly readonly
/> />
...@@ -141,7 +141,7 @@ ...@@ -141,7 +141,7 @@
</section> </section>
<input <input
slot="content" slot="content"
v-model="phoneNumber1" v-model="phoneNumber"
style="text-align: left;font-size:14px" style="text-align: left;font-size:14px"
readonly readonly
/> />
...@@ -162,7 +162,7 @@ ...@@ -162,7 +162,7 @@
class="uppic" class="uppic"
disabled disabled
/>--> />-->
<img :src="cardUp1" alt class="pic" @click="previewImage()" /> <img :src="cardUp" alt class="pic" @click="previewImage()" />
</div> </div>
<!-- <div style="border:1px solid #b2b2b2;width:50%;border-radius:5px;position:relative;"> <!-- <div style="border:1px solid #b2b2b2;width:50%;border-radius:5px;position:relative;">
...@@ -212,21 +212,7 @@ export default { ...@@ -212,21 +212,7 @@ export default {
}, },
components: {}, components: {},
activated: function() { activated: function() {
this.status = this.$route.params.status; // this.getUserInfo();
this.cardUp1 = sessionStorage.cardUp1 ? sessionStorage.cardUp1 : "";
this.identificationNumber1 = sessionStorage.identificationNumber
? sessionStorage.identificationNumber
: "";
this.phoneNumber1 = sessionStorage.phoneNumber
? sessionStorage.phoneNumber
: "";
this.personName1 = sessionStorage.personName
? sessionStorage.personName
: "";
// console.log(this.getUrlParams('Regstatus'));
var Request = new this.UrlSearch(); //实例化
this.status = Request.Regstatus;
}, },
updated: function() {}, updated: function() {},
methods: { methods: {
...@@ -298,7 +284,7 @@ export default { ...@@ -298,7 +284,7 @@ export default {
//预览图片 //预览图片
previewImage() { previewImage() {
hlsPopup.showBigPicture({ hlsPopup.showBigPicture({
imgUrl: window.sessionStorage.cardUp1 imgUrl: vm.cardUp
}); });
}, },
uploadToWeixinServer(localId) { uploadToWeixinServer(localId) {
...@@ -330,7 +316,7 @@ export default { ...@@ -330,7 +316,7 @@ export default {
vm.personName = res["姓名"]; vm.personName = res["姓名"];
vm.identificationNumber = res["公民身份号码"]; vm.identificationNumber = res["公民身份号码"];
vm.attchmentId = res["attchmentId"]; vm.attchmentId = res["attchmentId"];
window.sessionStorage.cardUp1 = vm.cardUp =
process.env.rootPath + process.env.rootPath +
"/app/fileViewSvc?attachment_id=" + "/app/fileViewSvc?attachment_id=" +
vm.attchmentId + vm.attchmentId +
...@@ -356,9 +342,6 @@ export default { ...@@ -356,9 +342,6 @@ export default {
vm.hlsPopup.showLongCenter("手机号码有误!"); vm.hlsPopup.showLongCenter("手机号码有误!");
return; return;
} else { } else {
sessionStorage.setItem("personName", vm.personName);
sessionStorage.setItem("identificationNumber", vm.identificationNumber);
sessionStorage.setItem("phoneNumber", vm.phoneNumber);
// alert("验证通过"); // alert("验证通过");
let url = process.env.rootPath + "/auth/api/individual/face"; let url = process.env.rootPath + "/auth/api/individual/face";
let param = { let param = {
...@@ -453,31 +436,51 @@ export default { ...@@ -453,31 +436,51 @@ export default {
console.log(scrollHeight); console.log(scrollHeight);
window.scrollTo(0, Math.max(scrollHeight, 0)); window.scrollTo(0, Math.max(scrollHeight, 0));
}, 100); }, 100);
},
// 获取用户信息
getUserInfo() {
var Request = new this.UrlSearch(); //实例化
this.status = Request.Regstatus;
var contextId = Request.contextId;
var verifycode = Request.verifycode;
var success = Request.passed;
if (this.status == 1) {
this.authResult(contextId, verifycode, success);
}
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) {
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';
}
}
});
} }
}, },
created() { created() {
this.wxConfig(); this.wxConfig();
// wx.hideOptionMenu(); // wx.hideOptionMenu();
var Request = new this.UrlSearch(); //实例化
this.status = Request.Regstatus; // var data = this.$route.params.userInfo;
var contextId = Request.contextId; this.getUserInfo();
var verifycode = Request.verifycode;
var success = Request.passed;
if (this.status == 1) {
this.authResult(contextId, verifycode, success);
}
var data = this.$route.params.userInfo;
if (data) {
this.cardUp =
process.env.rootPath +
"/app/fileViewSvc?attachment_id=" +
data.attachmentId +
"&apiName=download&sysName=HCL_UPLOAD_FILE&access_token=" +
window.localStorage.access_token_rl;
this.identificationNumber = data.idNo;
this.phoneNumber = data.mobile;
this.personName = data.name;
}
} }
}; };
</script> </script>
......
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