tradeweb.capital.com.tw
Open in
urlscan Pro
210.242.108.201
Public Scan
Submitted URL: http://tradeweb.capital.com.tw/
Effective URL: https://tradeweb.capital.com.tw/
Submission: On October 09 via manual from GB — Scanned from GB
Effective URL: https://tradeweb.capital.com.tw/
Submission: On October 09 via manual from GB — Scanned from GB
Form analysis
1 forms found in the DOMPOST ./
<form method="post" action="./" id="form1">
<div class="aspNetHidden">
<input type="hidden" name="__VIEWSTATE" id="__VIEWSTATE" value="4N78+k/A7igFpok3Z347LWho4QG3etJon7ledgmEmsDvPEf/dBrK4FJEdDb+4rYidYmuppM8dvcdvbWsvS5KNyvUg2I=">
</div>
<div class="aspNetHidden">
<input type="hidden" name="__VIEWSTATEGENERATOR" id="__VIEWSTATEGENERATOR" value="C2EE9ABB">
</div>
<div class="index">
<!-- header -->
<header class="maincolor">
<a href="#">
<picture>
<source id="capitalLogo1" srcset="/Public/Index/img/svg/capital_logo.svg" media="(min-width: 481px)">
<source srcset="/Public/Index/img/svg/logo.svg" media="(max-width: 480px)">
<img id="capitalLogo2" src="/Public/Index/img/svg/capital_logo.svg" alt="群益網上發">
</picture>
</a>
<nav style="display: block;">
<ul style="left: auto;">
<li>
<a href="/Password/ExportImportCert.aspx" class="d-inline-block" style="cursor:pointer;" target="_blank">匯入憑證</a>
<a href="/Password/PassWord.aspx" class="d-inline-block" style="cursor:pointer;" target="_blank">密碼專區</a>
<a class="d-inline-block popup" style="cursor:pointer;"><i class="navicon icon-ico-logout login-btn"></i>登入</a>
</li>
</ul>
</nav>
<div class="navctrl">
<div></div>
</div>
</header>
<div class="main">
<h1>
<img id="mainLogo" src="/Public/Index/img/TSWeb.png" alt="群益網上發-立即體驗全新感受">
<button type="button" class="button-full popup login_btn">登入</button>
<button class="button-full" type="button" onclick="window.open('/Password/PassWord.aspx')">密碼專區</button>
<div class="mt-5"></div>
</h1>
<div class="announce-twofactor" id="Announcement">
<button type="button" class="button-full popupTwoFactor">登入前請具備有效憑證</button>
<div class="explain">為保障您的電子交易安全,登入時將加驗證電子憑證,方可使用新網上發下單系統。若您尚未申請憑證,建議您本次登入後依步驟申請,謝謝。</div>
<div class="explain" style="color:black;">客戶服務專線:412-8878(手機請加02)</div>
</div>
</div>
<!-- 登入視窗 popup-->
<div class="mask"></div>
<div class="popupbox">
<section style="height:550px;">
<a class="close" href="#"></a>
<div class="popupimg">
<img id="popupLogo" src="/Public/Index/img/popupimg1.png" alt="登入群益數位開戶系統">
</div>
<div class="popupcontent loginbox">
<div class="login-id">
<input type="text" placeholder="請輸入您的身分證字號" maxlength="10" name="account" id="account" autocomplete="">
<i class="icon-ico-user"></i>
</div>
<div class="login-password">
<input type="password" name="pass" id="pass" placeholder="請輸入您的密碼" style="padding-right: 40px;" autocomplete="off">
<i class="icon-ico-lock"></i>
<div class="showPassword" onclick="hideShowPsw()">
<i class="icon-ico-eye-blocked"></i>
<i class="icon-ico-eye" style="display:none;"></i>
</div>
</div>
<div class="login-password">
<input type="text" name="validateCode" id="validateCode" placeholder="請輸入驗證碼" style="padding-right: 40px;width: 65%;">
<i class="icon-ico-lock"></i>
<div class="verification">
<img id="imgCode" src="/Public/Ajax/ValidateCode.ashx?v=20241009053153" onclick="refresh()">
</div>
<!--<div onclick="refresh()" class="refresh-icon">
<span class="icon-ico-reset"></span>
</div>-->
<div onclick="speech()" class="refresh-icon">
<span class="speaker"></span>
</div>
</div>
<div>
</div>
<div class="clear">
<span>
<input id="rememberme" type="checkbox" name="remember-me" class="remember-me">
<label for="rememberme">記住身分證</label>
</span>
</div>
<p><a href="" onclick="fnacctclick(); return false;">若您尚未開戶,請點此線上開戶</a></p>
<p><a href="https://www.capital.com.tw/web/#/question/%E7%BE%A4%E7%9B%8A%E7%B6%B2%E4%B8%8A%E7%99%BC" target="_blank">網路下單系統無法正常運作時應變措施</a></p>
<button type="button" class="button-full" id="login-btn">登入</button>
</div>
</section>
</div>
<!--憑證密碼輸入視窗-->
<div class="CertPWmask"></div>
<div class="SetFilePW" id="SetFilePWDiv" style="display:none;top:40%;">
<div class="SetFilePW-title">設定憑證檔案密碼</div>
<div style="margin-top: 10px">
<span>憑證檔案密碼</span><input type="password" id="Certpw" autocomplete="off" style="width: 150px;">
</div>
<div style="color:red;font-size:16px;">請輸入您匯出此張憑證時所設定的密碼</div>
<div style="padding: 10px">
<a class="clickBtn" style="color: white;background:#2161AC;font-size: 16px;" onclick="ImportOK()">確定</a>
<a class="clickBtn" style="color: white;background:gray;margin-left: 15px;font-size: 16px;" onclick="$('#SetFilePWDiv').hide();$('.CertPWmask').hide();">取消</a>
</div>
</div>
<input type="file" id="uploadButton" hidden="">
<!--雙因子說明視窗 popup-->
<div class="TwoFactorbox">
<a class="TwoFactorbox-close" href="javascript:popupTwoFactorClose();void(0)"></a>
<iframe class="TwoFactorbox-iframe" style="" src="https://www.capital.com.tw//event/develop/pair/"></iframe>
</div>
<link rel="stylesheet" href="/Public/index/css/sweetalert2.css">
<script src="/Public/index/js/sweetalert2.js?v=20241009053153" "="" type=" text/javascript" charset="utf-8"></script>
<script src="/Public/index/js/promise.min.js"></script>
<script type="text/javascript">
var loginaccount = '';
var pass = '';
var validateCode = '';
var isRemember = '';
var afterChooseFile = function() {
$('#SetFilePWDiv').show();
$('.CertPWmask').show();
document.getElementById("Certpw").value = '';
}
var demoInput = document.getElementById("pass");
try {
sessionStorage.setItem("stockoversea", "");
sessionStorage.setItem("os_Self", "");
} catch (e) {
console.log(e);
}
function hideShowPsw() {
if (demoInput.type == "password") {
demoInput.type = "text";
$('.icon-ico-eye-blocked').css('display', 'none');
$('.icon-ico-eye').css('display', 'block');
} else {
demoInput.type = "password";
$('.icon-ico-eye').css('display', 'none');
$('.icon-ico-eye-blocked').css('display', 'block');
}
}
function refresh() {
$("#imgCode").attr("src", "/Public/Ajax/ValidateCode.ashx?" + Date.now());
}
function detectZoom() {
var ratio = 0,
screen = window.screen,
ua = navigator.userAgent.toLowerCase();
if (window.devicePixelRatio !== undefined) {
ratio = window.devicePixelRatio;
} else if (~ua.indexOf('msie')) {
if (screen.deviceXDPI && screen.logicalXDPI) {
ratio = screen.deviceXDPI / screen.logicalXDPI;
}
} else if (window.outerWidth !== undefined && window.innerWidth !== undefined) {
ratio = window.outerWidth / window.innerWidth;
}
if (ratio) {
ratio = Math.round(ratio * 100);
}
return ratio;
}
if (navigator.userAgent.indexOf("Line") > -1 && location.href.indexOf('openExternalBrowser') == -1) {
if (location.href.indexOf('?') > -1) location.href = location.href + "&openExternalBrowser=1";
else location.href = location.href + "?openExternalBrowser=1";
}
// Internet Explorer 6-11 detection
var isIE = /*@cc_on!@*/ false || !!document.documentMode;
function fnpwdclick() {
if (isIE == false) alert('請使用IE瀏覽器開啟');
else {
window.open('https://www.capital.com.tw/Password/Default.asp', '_blank' // <- This is what makes it open in a new window.
);
}
}
function fnacctclick() {
if (navigator.userAgent.match(/Android/i) || navigator.userAgent.match(/webOS/i) || navigator.userAgent.match(/iPhone/i) || navigator.userAgent.match(/iPad/i) || navigator.userAgent.match(/iPod/i) || navigator.userAgent.match(
/BlackBerry/i) || navigator.userAgent.match(/Windows Phone/i)) { //手機
var u = navigator.userAgent;
var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Adr') > -1; //android
var isiOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios
//alert("Android: " + isAndroid + "IOS: " + isiOS);
if (isAndroid) {
window.open("https://play.google.com/store/apps/details?id=com.capital.capitalmobiwizard&hl=zh_TW", "AndroidNew");
} else if (isiOS) {
window.open("https://apps.apple.com/tw/app/%E7%BE%A4%E7%9B%8Ago-%E7%B7%9A%E4%B8%8A%E6%9C%8D%E5%8B%99/id1069752783", "IOSNew");
}
} else { //PC
window.open('https://www.capital.com.tw/event/stock/20190821/default.asp', '_blank');
}
}
var tmpaccount = "";
$(document).ready(function() {
Public.setCookie("PrecheckData", "", 0);
sessionStorage.removeItem("Precheck");
if (location.href.toLowerCase().indexOf("action=stockoversea/index.aspx") > -1) {
$("#mainLogo").attr('src', '/Public/Index/img/TSWeb2.png');
$("#mainLogo").attr('alt', '群益複委託-立即體驗全新感受');
$("#popupLogo").attr('src', '/Public/Index/img/popupimg2.png');
$("#titleText").html("群益金鼎複委託 | 登入");
}
//進到登入頁先產生LoginKey
Public.setCookie("LoginKey", generateGUID());
loginmessage();
if (navigator.userAgent.match(/Android/i) || navigator.userAgent.match(/webOS/i) || navigator.userAgent.match(/iPhone/i) || navigator.userAgent.match(/iPad/i) || navigator.userAgent.match(/iPod/i) || navigator.userAgent.match(
/BlackBerry/i) || navigator.userAgent.match(/Windows Phone/i)) { //手機
$('#Announcement').css('margin', '-220px auto')
}
tmpaccount = Public.getCookie("Capital_Web_Account");
if (tmpaccount != "") {
$('input[name="account"]').val(tmpaccount.slice(0, tmpaccount.length - 4) + "●●●●");
$('input[name="remember-me"]').prop('checked', true);
}
if ('L1' == 'E') $('.mask, .popupbox').show();
if ('' != '') $('.mask, .popupbox').show();
//login popup
$('.popup').click(function() {
$('.mask, .popupbox').fadeIn(300);
$("#imgCode").click();
if (tmpaccount != "") $("#pass").focus();
else $("#account").focus();
return false;
});
$('.popupTwoFactor').click(function() {
$('.mask, .TwoFactorbox').fadeIn(300);
return false;
});
function popupClose() {
$('.mask, .popupbox').fadeOut(300);
return false;
}
$('.close, .closebutton').click(popupClose);
$('input[name="pass"]').keypress(function(e) {
code = (e.keyCode ? e.keyCode : e.which);
if (code == 13) {
$('#login-btn').trigger('click');
}
});
$('input[name="account"]').keypress(function(e) {
code = (e.keyCode ? e.keyCode : e.which);
if (code == 13) {
$('#login-btn').trigger('click');
}
});
$('input[name="account"]').focus(function(e) {
if ($('input[name="account"]').val().indexOf("●●●●") >= 0 && tmpaccount.length > 0) {
this.select()
}
});
$('input[name="account"]').keydown(function(e) {
if ($('input[name="account"]').val().indexOf("●●●●") >= 0 && tmpaccount.length > 0) {
tmpaccount = "";
$('input[name="account"]').val('')
}
});
$('input[name="validateCode"]').keypress(function(e) {
code = (e.keyCode ? e.keyCode : e.which);
if (code == 13) {
$('#login-btn').trigger('click');
}
});
$('#login-btn').click(function() {
//set Cookie
sessionStorage.setItem('FirstVisit', 'Y')
isRemember = $('input[name="remember-me"]').prop('checked');
var account = $('input[name="account"]').val().indexOf("●●●●") >= 0 && tmpaccount.length > 0 ? tmpaccount : $.trim($('input[name="account"]').val());
loginaccount = $('input[name="account"]').val().indexOf("●●●●") >= 0 && tmpaccount.length > 0 ? tmpaccount : $.trim($('input[name="account"]').val()).toUpperCase();
pass = $.trim($('input[name="pass"]').val());
validateCode = $.trim($('input[name="validateCode"]').val());
var isgo = true;
var errmsg = "";
if (validateCode == "") {
isgo = false;
errmsg += "請輸入驗證碼\n";
alert(errmsg);
$("#validateCode").focus();
return false;
}
if (account == "") {
isgo = false;
errmsg += "請輸入帳號\n";
alert(errmsg);
$("#account").focus();
return false;
}
if (pass == "") {
isgo = false;
errmsg += "請輸入密碼";
alert(errmsg);
$("#pass").focus();
return false;
}
/*if (!isgo) {
alert(errmsg);
return false;
}*/
account = account.toUpperCase();
localStorage.removeItem("QuotaSetting");
localStorage.removeItem("quotaSettings" + account);
localStorage.removeItem("tradingview_settings");
var url = $(location).attr("href");
//阻擋AP、SUB帳號登入
if (account.indexOf("AP") > -1) {
if (location.href.toLowerCase().indexOf("action=account/getfuturesnoncoverforinvestors.aspx") > -1) {} else if (account.indexOf("APS") > -1) {
if (location.href.toLowerCase().indexOf("action=stockoversea/index.aspx") == -1) {
swal("目前暫不提供特殊帳號登入(例如開頭為AP、APS....等帳號)");
return false;
}
} else {
swal("目前暫不提供特殊帳號登入(例如開頭為AP、APS....等帳號)");
return false;
}
}
/*if (account.indexOf("SUB") > -1) {
swal("目前暫不提供SUB帳號登入");
return false;
}*/
let CheckNormalID = /^[A-Z]{1}[0-9]{9}$/.test(account); //使用正規運算式判斷是否是一般身份證,因為可能會有法人戶(8碼數字)和SUB戶
let CheckRecipeID = /^[0-9]{8}$/.test(account); // 使用正規運算式判斷是否是法人戶
if (CheckNormalID) {
let checkID = "";
let Esum = 0;
let Nsum = 0;
let count = 0;
// 宣告一個陣列放入A~Z相對應數字的順序
let country = ["A", "B", "C", "D", "E", "F", "G", "H", "J", "K", "L", "M", "N", "P", "Q", "R", "S", "T", "U", "V", "X", "Y", "W", "Z", "I", "O"];
for (let index = 0; index < country.length; index++) {
if (account.substring(0, 1) === country[index]) {
index += 10; // A是從10開始編碼,每個英文的碼都跟index差異10,先加回來
Esum = (((index % 10) * 9) + Math.floor(index / 10)); // 英文轉成的數字, 個位數(把數字/10取餘數)乘9再加上十位數
// 加上十位數(數字/10,因為是整數,後面會直接捨去)
break;
}
}
for (let i = 1; i < 9; i++) {
// 從第二個數字開始跑,每個數字*相對應權重
Nsum += parseInt(account[i]) * (9 - i);
}
count = 10 - ((Esum + Nsum) % 10); // 把上述的總和加起來,取餘數後,10-該餘數為檢查碼,要等於最後一個數字
if (count == parseInt(account[9])) { // 判斷計算總和是不是等於檢查碼
checkID = "身分證字號正確" + count + '==' + account[9];
console.log(checkID);
} else if (((Esum + Nsum) % 10 == 0)) //當餘數為0時,代表檢查碼為0,直接判斷餘數是否等於0即可
{
checkID = "身分證字號正確" + ((Esum + Nsum) % 10) + '==' + account[9];
console.log(checkID);
} else {
checkID = "身份證格式錯誤" + account;
var result = confirm("身份證格式可能有誤,確定要繼續登入嗎?");
if (result) {} else {
isgo = false;
$("#account").focus();
return false;
}
}
} else if (CheckRecipeID) {
console.log("法人戶");
} else if (account.indexOf("SUB") > -1) {
console.log("SUB戶");
} else {
var result = confirm("身份證格式可能有誤,確定要繼續登入嗎?");
if (result) {} else {
isgo = false;
$("#account").focus();
return false;
}
}
var rawdata = "Login_" + account + "_TradeWeb";
var CN = "",
SN = "",
Sign = "";
var LoginEvent = function() {
var form = $('<form/>').attr('action', url).attr('method', 'post').appendTo($('body'));
var input_account = $('<input/>').attr('type', 'hidden').attr('name', 'account').val(account.toUpperCase()).appendTo(form);
var input_pass = $('<input/>').attr('type', 'hidden').attr('name', 'pass').val(pass).appendTo(form);
var input_pass = $('<input/>').attr('type', 'hidden').attr('name', 'validateCode').val(validateCode).appendTo(form);
var input_isRemember = $('<input/>').attr('type', 'hidden').attr('name', 'isRemember').val(isRemember ? "Y" : "N").appendTo(form);
$('<input/>').attr('type', 'hidden').attr('name', 'TranType').val("85").appendTo(form);
$('<input/>').attr('type', 'hidden').attr('name', 'CertType').val("E").appendTo(form);
$('<input/>').attr('type', 'hidden').attr('name', 'CN').val(CN).appendTo(form);
$('<input/>').attr('type', 'hidden').attr('name', 'CertID').val(SN).appendTo(form);
$('<input/>').attr('type', 'hidden').attr('name', 'RawData').val(rawdata).appendTo(form);
$('<input/>').attr('type', 'hidden').attr('name', 'Sign').val(Sign).appendTo(form);
form.submit();
}
ReadIndexedDBWebCA(account, "", function() {
var filter = "//S_CN=" + account + "//";
WebCAQueryCertState(account, filter, function(code, msg, token, data) {
if (code === 0 && data) {
suggestAction = JSON.parse(data).suggestAction;
if (suggestAction == "ApplyCert") {
//LoginEvent();
swal('為保障您的電子交易安全,請點選【申請憑證】,若無憑證將無法繼續登入作業。');
IsHalfYearLogin(account.toUpperCase(), '', 'ReissueCert', '');
} else if (suggestAction == 'RenewCert') {
//抓取到期日
var expireddate = '';
var certdata = JSON.parse(localStorage.getItem('TWCACertIdxRef'));
for (var item in certdata) {
if (certdata[item].cn.split('-')[0] == account) {
expireddate = certdata[item].notAfter.substring(0, 4) + '-' + certdata[item].notAfter.substring(4, 6) + '-' + certdata[item].notAfter.substring(6, 8);
}
}
swal('您的憑證即將於' + expireddate + '到期,請問是否展延?');
IsHalfYearLogin(account.toUpperCase(), '', 'ReNewCert', '');
} else {
GoLogin();
}
}
})
})
//$('#login-form').submit();
});
});
function loginmessage() {
//$('#swal2-title').css('font-size', '20px');
if (sessionStorage.getItem('FirstVisit') == 'Y') return;
GetAnnounce('newalert', '2', '20241009', '217.138.196.105')
}
function IsHalfYearLogin(ID, IP, IsMandatory, URL) {
var NoShowChkBox = '';
var GoOnBtn = '';
var ReNewPwdBtn = ' <button type="button" class="swal2-confirm swal2-styled" aria-label="" style="background-color: red;" onclick="GoToURL(\'/Password/Reissue.aspx\',\'' + ID + '\',\'' + IP + '\')">前往變更密碼</button>'
$('.swal2-modal').css('min-height', '231px');
$('#swal2-title').css('font-size', '20px');
$('#swal2-title').css('text-align', 'left');
if (IsMandatory == "N") {
NoShowChkBox = '<div style="font-size:18px"><input type="checkbox" id= "NoShowChkBox" class="mr-1"><b>不再顯示</b></div>'
GoOnBtn = ' <button type="button" class="swal2-confirm swal2-styled mr-3" aria-label="" style="background-color: rgb(48, 133, 214); border-left-color: rgb(48, 133, 214); border-right-color: rgb(48, 133, 214);" onclick="GoToURL(\'' + URL +
'\',\'' + ID + ' \',\'' + IP + '\') ">繼續登入</button>'
} else if (IsMandatory == "N1") {
GoOnBtn = ' <button type="button" class="swal2-confirm swal2-styled mr-3" aria-label="" style="background-color: rgb(48, 133, 214); border-left-color: rgb(48, 133, 214); border-right-color: rgb(48, 133, 214);" onclick="GoToURL(\'' + URL +
'\',\'' + ID + ' \',\'' + IP + '\') ">繼續登入</button>'
} else if (IsMandatory == "ReissueCert") {
ReNewPwdBtn = ' <button type="button" class="swal2-confirm swal2-styled" aria-label="" style="background-color: red;" onclick="GoToReissueCert(\'/Password/ReissueCert.aspx\',\'' + ID + '\',\'' + IP + '\')">前往申請憑證</button>' +
'<button type="button" class="swal2-confirm swal2-styled" aria-label="" style="background-color: #2161AC;" id="ImportBtn" onclick="ImportCert(\'' + '217.138.196.105' + '\', \'L1\', afterChooseFile);swal.close();">匯入憑證</button>';
$('#swal2-title').css('font-size', '20px');
$('#swal2-title').css('text-align', 'center');
} else if (IsMandatory == "ReNewCert") {
ReNewPwdBtn = ' <button type="button" class="swal2-confirm swal2-styled" aria-label="" style="background-color: red;" onclick="GoToReissueCert(\'/Password/ReNewCert.aspx\',\'' + ID + '\',\'' + IP + '\')">前往展延憑證</button>' +
'<button type="button" class="swal2-confirm swal2-styled" aria-label="" style="background-color: #2161AC;" id="ImportBtn" onclick="GoLogin();swal.close();">下次再說</button>';
$('#swal2-title').css('font-size', '20px');
$('#swal2-title').css('text-align', 'center');
}
$('.swal2-buttonswrapper').html(NoShowChkBox + GoOnBtn + ReNewPwdBtn);
}
function PasswordWaring(ID, IP, URL, Month) {
var WaringMsg = '<div style="font-size:18px;color:red;text-align:left;"><b>*定期變更密碼較能避免非法存取行為</b></div>';
var ReNewPwdBtn = '<div><button type="button" class="swal2-confirm swal2-styled" aria-label="" style="background-color: red;" onclick="GoToURL(\'/Password/Reissue.aspx\',\'' + ID + '\',\'' + IP + '\')">前往變更密碼</button></div>';
var GoOnBtn = '<div><button type="button" class="swal2-confirm swal2-styled mr-3" aria-label="" style="background-color: rgb(48, 133, 214); border-left-color: rgb(48, 133, 214); border-right-color: rgb(48, 133, 214);" onclick="GoToURL(\'' +
URL + '\',\'' + ID + ' \',\'' + IP + '\',true)">沿用舊密碼,' + Month + '個月後再提醒</button></div>';
$('.swal2-modal').css('min-height', '231px');
$('#swal2-title').css('font-size', '20px');
$('#swal2-title').css('text-align', 'left');
$('.swal2-buttonswrapper').html(WaringMsg + GoOnBtn + ReNewPwdBtn);
}
function DelCertMsg() {
var GoDelCert = '<button type="button" class="swal2-confirm swal2-styled" aria-label="" style="background-color: red;" onclick="GoToDelCert()">確定</button>';
$('.swal2-buttonswrapper').html(GoDelCert);
}
function GoToDelCert() {
window.location.href = "/Password/delcert.aspx";
}
function GoToURL(Url, ID, IP, WarnPassLast) {
ID = ID.trim()
var certFilter = "//S_CN=" + ID + "//";
twcaLib.SelectSignerEx(certFilter, "", "", ID, "", 0x04 | 0x08, 0, null, function(code, msg, token, data) {
if (code === 0 && data) {
var certData = JSON.parse(data);
SN = certData.sn;
if (($('#NoShowChkBox').length > 0 && $('#NoShowChkBox')[0].checked) || WarnPassLast) {
var Data = {
Program: 'Common/Login/WarnPassLastTime',
APGW_Type: '2',
APGW_URL: 'NEWSRV_QUERY',
IDNO: ID,
VerifyID: SN,
ClientIP: IP,
Source: 'L1'
}
$.ajax({
type: "POST",
url: "/Public/ajax/APGW.ashx",
data: JSON.stringify(Data),
dataType: "json",
success: function(data) {}
})
}
NewLoginKey(ID);
window.location.href = Url;
} else {
NewLoginKey(ID);
window.location.href = Url;
}
});
}
//傳給GW紀錄新的一組LoginKey
function NewLoginKey(IDNO) {
var key = generateGUID();
try {
var obj = {
Program: 'Common/Tools/LoginLog',
APGW_Type: '2',
APGW_URL: 'NEWSRV_QUERY',
URL: 'Login_Start',
IDNO: IDNO,
LoginKey: key,
Source: 'L1',
ClientIP: '217.138.196.105'
};
$.ajax({
type: "POST",
url: "/Public/ajax/APGW.ashx",
data: JSON.stringify(obj),
dataType: "json",
success: function(data) {}
})
} catch (e) {
console.log(e);
}
}
function GoToReissueCert(Url, ID, IP) {
var form = $('<form/>').attr('action', Url).attr('method', 'post').appendTo($('body'));
var input_account = $('<input/>').attr('type', 'hidden').attr('name', 'IDNO').val(ID.toUpperCase()).appendTo(form);
var input_account = $('<input/>').attr('type', 'hidden').attr('name', 'TranType').val("85").appendTo(form);
var input_account = $('<input/>').attr('type', 'hidden').attr('name', 'RawData').val("Login_" + ID.toUpperCase() + "_TradeWeb").appendTo(form);
var input_account = $('<input/>').attr('type', 'hidden').attr('name', 'ReturnWord').val("立即登入新網上發").appendTo(form);
var input_account = $('<input/>').attr('type', 'hidden').attr('name', 'ReturnUrl').val(location.href).appendTo(form);
form.submit();
}
function popupTwoFactorClose() {
$('.mask, .TwoFactorbox').fadeOut(300);
return false;
}
function speakWeb(txt) {
if (window.SpeechSynthesisUtterance != null) {
var newSpeech = new SpeechSynthesisUtterance('');
newSpeech.lang = 'zh-TW';
newSpeech.volume = 0.7;
newSpeech.rate = 0.6;
if (txt.toString().length == 4) {
txt = txt[0] + ' ' + txt[1] + ' ' + txt[2] + ' ' + txt[3];
}
newSpeech.text = txt;
window.speechSynthesis.speak(newSpeech);
}
}
function speech() {
speakWeb('');
try {
$.ajax({
type: 'POST',
url: '/Public/Ajax/Voice.ashx',
success: function(data) {
console.log(data);
},
error: function(jqXHR, textStatus, errorThrown) {
console.log(errorThrown);
}
});
} catch (e) {
console.log(e);
}
}
function ImportOK() {
if (!document.getElementById('Certpw').value) {
alert("請輸入密碼");
return;
}
$('#SetFilePWDiv').hide();
$('.CertPWmask').hide();
//驗證碼清空
document.getElementById('validateCode').value = '';
postFile();
}
function GoLogin() {
var certFilter = "//S_CN=" + loginaccount + "//";
var rawdata = "Login_" + loginaccount + "_TradeWeb";
var CN = "",
SN = "",
Sign = "";
var url = $(location).attr("href");
var LoginEvent = function() {
var form = $('<form/>').attr('action', url).attr('method', 'post').appendTo($('body'));
var input_account = $('<input/>').attr('type', 'hidden').attr('name', 'account').val(loginaccount.toUpperCase()).appendTo(form);
var input_pass = $('<input/>').attr('type', 'hidden').attr('name', 'pass').val(pass).appendTo(form);
var input_pass = $('<input/>').attr('type', 'hidden').attr('name', 'validateCode').val(validateCode).appendTo(form);
var input_isRemember = $('<input/>').attr('type', 'hidden').attr('name', 'isRemember').val(isRemember ? "Y" : "N").appendTo(form);
$('<input/>').attr('type', 'hidden').attr('name', 'TranType').val("85").appendTo(form);
$('<input/>').attr('type', 'hidden').attr('name', 'CertType').val("E").appendTo(form);
$('<input/>').attr('type', 'hidden').attr('name', 'CN').val(CN).appendTo(form);
$('<input/>').attr('type', 'hidden').attr('name', 'CertID').val(SN).appendTo(form);
$('<input/>').attr('type', 'hidden').attr('name', 'RawData').val(rawdata).appendTo(form);
$('<input/>').attr('type', 'hidden').attr('name', 'Sign').val(Sign).appendTo(form);
form.submit();
}
twcaLib.SelectSignerEx(certFilter, "", "", loginaccount, "", 0x04 | 0x08, 0, null, function(code, msg, token, data) {
if (code === 0 && data) {
var certData = JSON.parse(data);
CN = certData.cn;
SN = certData.sn;
twcaLib.SignPkcs1(rawdata, 257, function(code, msg, token, data) {
if (code === 0 && data) {
var certData = JSON.parse(data);
Sign = certData.signature;
LoginEvent();
} else {
alert("壓簽失敗");
return false
}
});
}
});
}
</script>
<!-- footer -->
<footer class="maincolor">
<div class="wrapper clear">
<div class="SERVICES">
<span>SERVICES</span>
<ul>
<li><a href="https://tastrust-ec.capital.com.tw/accstatus/cust-service" target="_blank">聯絡我們</a></li>
<li><a href="https://www.capital.com.tw/web/#/location" target="_blank">服務據點</a></li>
<li><a href="https://www.capital.com.tw/web/#/video/群益行動贏家/入門操作" target="_blank">影音下單教學</a></li>
</ul>
</div>
<div class="INFORMATION">
<span>INFORMATION</span>
<ul>
<li><a href="https://www.capital.com.tw/web/#/web-statement/info-sec" target="_blank">資安規則</a></li>
<li><a href="https://www.capital.com.tw/web/#/question/群益網上發" target="_blank">常見問題</a></li>
</ul>
</div>
<div class="CONTACTUS">
<span>CONTACT US</span>
<ul>
<li>客戶服務專線:412-8878(手機請加02)</li>
<li>語音下單電話:4050-3688</li>
</ul>
</div>
</div>
<div class="text-center"> 群益金鼎證券股份有限公司 統一編號:22956035 / 群益期貨股份有限公司 統一編號:97176335</div>
<div class="text-center mt-1">
<div>© 2019 Capital Group All Rights Reserved</div>
</div>
</footer>
</div>
</form>
Text Content
* 匯入憑證 密碼專區 登入 登入 密碼專區 登入前請具備有效憑證 為保障您的電子交易安全,登入時將加驗證電子憑證,方可使用新網上發下單系統。若您尚未申請憑證,建議您本次登入後依步驟申請,謝謝。 客戶服務專線:412-8878(手機請加02) 記住身分證 若您尚未開戶,請點此線上開戶 網路下單系統無法正常運作時應變措施 登入 設定憑證檔案密碼 憑證檔案密碼 請輸入您匯出此張憑證時所設定的密碼 確定 取消 SERVICES * 聯絡我們 * 服務據點 * 影音下單教學 INFORMATION * 資安規則 * 常見問題 CONTACT US * 客戶服務專線:412-8878(手機請加02) * 語音下單電話:4050-3688 群益金鼎證券股份有限公司 統一編號:22956035 / 群益期貨股份有限公司 統一編號:97176335 © 2019 Capital Group All Rights Reserved