Commit 6fc060d8 authored by chaiwei's avatar chaiwei

正式环境修改优化

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