用户模块-修改提交高级认证成功后的提示语

master
luzhaofeng 6 years ago
parent edab662149
commit 606dba1e0d
  1. 63
      mine/html/my/advanced_identity.html

@ -98,7 +98,8 @@
<header class="mui-bar mui-bar-nav app-header app-header-darkly"> <header class="mui-bar mui-bar-nav app-header app-header-darkly">
<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a> <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
<h1 class="mui-title">{{langue.AdvancedIdentityTitle}}</h1> <h1 class="mui-title">{{langue.AdvancedIdentityTitle}}</h1>
<a class=" mui-pull-right mui-icon-right-nav" style="font-size: .24rem; color: #333333;" v-if="userLocalStorage.highAuth == 'F'" @click="rejection">{{langue.reject}}</a> <a class=" mui-pull-right mui-icon-right-nav" style="font-size: .24rem; color: #333333;" v-if="userLocalStorage.highAuth == 'F'"
@click="rejection">{{langue.reject}}</a>
</header> </header>
<div class="mui-content"> <div class="mui-content">
<div class="example-box"> <div class="example-box">
@ -133,7 +134,7 @@
AdvancedIdentityTitle: "高级认证", AdvancedIdentityTitle: "高级认证",
AdvancedIdentityExplain: "上传手持证件和声明书,声明书请在白纸上写:", AdvancedIdentityExplain: "上传手持证件和声明书,声明书请在白纸上写:",
AdvancedIdentityTime: "1.日期", AdvancedIdentityTime: "1.日期",
AdvancedIdentityWormhole: "2.焰火网", AdvancedIdentityWormhole: "2.智信链",
AdvancedIdentityText: "*请确保证件和声明书清晰可见,并将证件和声明书上的文字完整露出、避免遮挡", AdvancedIdentityText: "*请确保证件和声明书清晰可见,并将证件和声明书上的文字完整露出、避免遮挡",
AdvancedIdentityCommitment: "我承诺所提供的资料为我本人所有,不存在盗用他人资料的情况", AdvancedIdentityCommitment: "我承诺所提供的资料为我本人所有,不存在盗用他人资料的情况",
AdvancedIdentitySubmit: "提交", AdvancedIdentitySubmit: "提交",
@ -150,14 +151,14 @@
reject: "驳回原因", reject: "驳回原因",
rejectTitle: "驳回原因", rejectTitle: "驳回原因",
sure: "确定", sure: "确定",
AlertMsg: "提示" AlertMsg: "提示",
authenticationSuccess: "认证成功!",
}, },
zh_HK: { zh_HK: {
AdvancedIdentityTitle: "高級認證", AdvancedIdentityTitle: "高級認證",
AdvancedIdentityExplain: "上傳手持證件和聲明書,聲明書請在白紙上寫:", AdvancedIdentityExplain: "上傳手持證件和聲明書,聲明書請在白紙上寫:",
AdvancedIdentityTime: "1.日期", AdvancedIdentityTime: "1.日期",
AdvancedIdentityWormhole: "2.焰火網", AdvancedIdentityWormhole: "2.智信鏈",
AdvancedIdentityText: "*請確保證件和聲明書清晰可見,並將證件和聲明書上的文字完整露出、避免遮擋", AdvancedIdentityText: "*請確保證件和聲明書清晰可見,並將證件和聲明書上的文字完整露出、避免遮擋",
AdvancedIdentityCommitment: "我承諾所提供的資料為我本人所有,不存在盜用他人資料的情況", AdvancedIdentityCommitment: "我承諾所提供的資料為我本人所有,不存在盜用他人資料的情況",
AdvancedIdentitySubmit: "提交", AdvancedIdentitySubmit: "提交",
@ -174,13 +175,14 @@
reject: "駁回原因", reject: "駁回原因",
rejectTitle: "駁回原因", rejectTitle: "駁回原因",
sure: "確定", sure: "確定",
AlertMsg: "提示" AlertMsg: "提示",
authenticationSuccess: "認證成功!",
}, },
en_US: { en_US: {
AdvancedIdentityTitle: "Advanced Certification", AdvancedIdentityTitle: "Advanced Certification",
AdvancedIdentityExplain: "Transfer hand-held documents and declarations, please write on the white paper:", AdvancedIdentityExplain: "Transfer hand-held documents and declarations, please write on the white paper:",
AdvancedIdentityTime: "1. Date", AdvancedIdentityTime: "1. Date",
AdvancedIdentityWormhole: "2. Flame", AdvancedIdentityWormhole: "2. ZhiXin",
AdvancedIdentityText: "*Please make sure that the documents and declarations are clearly visible and that the text on the documents and declarations are completely exposed to avoid obscuration", AdvancedIdentityText: "*Please make sure that the documents and declarations are clearly visible and that the text on the documents and declarations are completely exposed to avoid obscuration",
AdvancedIdentityCommitment: "I promise that the information provided is owned by me and there is no misappropriation of other people's information.", AdvancedIdentityCommitment: "I promise that the information provided is owned by me and there is no misappropriation of other people's information.",
AdvancedIdentitySubmit: "Submit", AdvancedIdentitySubmit: "Submit",
@ -197,7 +199,8 @@
reject: "Reject reason", reject: "Reject reason",
rejectTitle: "Reject reason", rejectTitle: "Reject reason",
sure: "Sure", sure: "Sure",
AlertMsg: "Hint" AlertMsg: "Hint",
authenticationSuccess: 'Authentication success!',
} }
} }
</script> </script>
@ -213,24 +216,24 @@
}, },
methods: { methods: {
rejection: function() { rejection: function() {
mui.alert(this.reject, this.langue.rejectTitle, this.langue.sure,function() {}); mui.alert(this.reject, this.langue.rejectTitle, this.langue.sure, function() {});
} }
} }
}) })
var data_img_src = null; var data_img_src = null;
mui.plusReady(function() { mui.plusReady(function() {
if(v.userLocalStorage.highAuth == 'F') { if (v.userLocalStorage.highAuth == 'F') {
selecthighmaskStatus(); selecthighmaskStatus();
} }
//点击下一页 //点击下一页
document.getElementById("next").addEventListener("tap", function() { document.getElementById("next").addEventListener("tap", function() {
if(!document.getElementById("agree-radio").checked) { if (!document.getElementById("agree-radio").checked) {
mui.toast(v.langue.AdvancedIdentityExampleText1) mui.toast(v.langue.AdvancedIdentityExampleText1)
return; return;
} }
console.log("data_img_src: " + data_img_src); console.log("data_img_src: " + data_img_src);
if(data_img_src == null) { if (data_img_src == null) {
mui.toast(v.langue.AdvancedIdentityExampleText2); mui.toast(v.langue.AdvancedIdentityExampleText2);
return; return;
} }
@ -254,19 +257,19 @@
type: myAjaxJs.AJAX_HIGH_AUTH.getType, //HTTP请求类型 type: myAjaxJs.AJAX_HIGH_AUTH.getType, //HTTP请求类型
timeout: 10000, timeout: 10000,
success: function(data) { success: function(data) {
if(data.code == "200") { if (data.code == "200") {
plus.nativeUI.closeWaiting(); plus.nativeUI.closeWaiting();
var userData = app.getUserLocalStorage(); var userData = app.getUserLocalStorage();
userData.highAuth = 'W'; userData.highAuth = 'W';
app.setUserLocalStorage(userData); app.setUserLocalStorage(userData);
mui.toast(v.langue.SubmitSuccessMsg, v.langue.AlertMsg); mui.toast(v.langue.authenticationSuccess, v.langue.AlertMsg);
var realname_identity = plus.webview.getWebviewById("mine/html/my/realname_identity.html"); var realname_identity = plus.webview.getWebviewById("mine/html/my/realname_identity.html");
realname_identity.evalJS("saveUserInfoData();"); realname_identity.evalJS("saveUserInfoData();");
realname_identity.show(); realname_identity.show();
var _opener = self.opener(); var _opener = self.opener();
self.close(); self.close();
_opener.close(); _opener.close();
} else if(data.code == "201" || data.code == "202") { //未登录 } else if (data.code == "201" || data.code == "202") { //未登录
plus.nativeUI.closeWaiting(); plus.nativeUI.closeWaiting();
mui.openWindow({ mui.openWindow({
id: "mine/html/wallet_login.html", id: "mine/html/wallet_login.html",
@ -298,7 +301,7 @@
} }
] ]
}, function(b) { /*actionSheet 按钮点击事件*/ }, function(b) { /*actionSheet 按钮点击事件*/
switch(b.index) { switch (b.index) {
case 0: case 0:
break; break;
case 1: case 1:
@ -347,16 +350,16 @@
console.log("-----src: " + src); console.log("-----src: " + src);
data_img_src = src; data_img_src = src;
data_img_src = src.replace('data:base64', 'data:image/jpeg;base64'); data_img_src = src.replace('data:base64', 'data:image/jpeg;base64');
// var roundedCanvas = getRoundedCanvas(imgObj); // var roundedCanvas = getRoundedCanvas(imgObj);
// var imgBase64 = roundedCanvas.toDataURL("image/jpeg", 0.7).replace("data:image/jpeg;base64,", ""); // var imgBase64 = roundedCanvas.toDataURL("image/jpeg", 0.7).replace("data:image/jpeg;base64,", "");
// console.log("111"+ imgBase64) // console.log("111"+ imgBase64)
// uploadStringImgFile(imgBase64); // uploadStringImgFile(imgBase64);
setTimeout(function(){ setTimeout(function() {
var roundedCanvas = getRoundedCanvas(imgObj); var roundedCanvas = getRoundedCanvas(imgObj);
var imgBase64 = roundedCanvas.toDataURL("image/jpeg", 1).replace("data:image/jpeg;base64,", ""); var imgBase64 = roundedCanvas.toDataURL("image/jpeg", 1).replace("data:image/jpeg;base64,", "");
console.log("111"+ imgBase64) console.log("111" + imgBase64)
uploadStringImgFile(imgBase64); uploadStringImgFile(imgBase64);
},1000); }, 1000);
} }
// 上传服务器 // 上传服务器
@ -375,10 +378,10 @@
type: myAjaxJs.AJAX_UPLOAD_HIGH_AUTHFILE.getType, //HTTP请求类型 type: myAjaxJs.AJAX_UPLOAD_HIGH_AUTHFILE.getType, //HTTP请求类型
timeout: 10000, timeout: 10000,
success: function(data) { success: function(data) {
if(data.code == "200") { if (data.code == "200") {
plus.nativeUI.closeWaiting(); plus.nativeUI.closeWaiting();
v.imgsUrl = data.data; v.imgsUrl = data.data;
console.log("22"+v.imgsUrl) console.log("22" + v.imgsUrl)
} else { } else {
plus.nativeUI.closeWaiting(); plus.nativeUI.closeWaiting();
mui.toast(data.msg); mui.toast(data.msg);
@ -424,7 +427,7 @@
dataType: 'json', //服务器返回json格式数据 dataType: 'json', //服务器返回json格式数据
timeout: 5000, timeout: 5000,
success: function(data) { success: function(data) {
if("200" == data.code) { if ("200" == data.code) {
v.reject = data.data; v.reject = data.data;
console.log(v.reject); console.log(v.reject);
} }
@ -439,4 +442,4 @@
window.addEventListener('switchLangueData', function(e) { window.addEventListener('switchLangueData', function(e) {
dataInfo.langue = langues[e.detail]; dataInfo.langue = langues[e.detail];
}); });
</script> </script>

Loading…
Cancel
Save