CINXE.COM
下载华为云App-华为云
<!doctype html> <html lang="zh-CN" site="china"> <head> <meta charset="UTF-8"> <meta name="applicable-device" content="pc,mobile"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> <meta name="baidu-site-verification" content="nsMgQr28vc" /> <meta http-equiv="x-dns-prefetch-control" content="on"> <meta name="templateName" content="common-pep2.0"> <title>下载华为云App-华为云</title> <meta name="keywords" content="华为云App,手机华为云,充值,实名认证,备案,MFA,云服务器,云主机,购买" /> <meta name="description" content="下载华为云APP,可随时进行充值续费、监控云资源、接收告警、管理云资源、提交客服工单、获取文档、头条与直播资讯。让您安全、实时、高效、便捷的掌控云端资源" /> <meta name="pep-template-version" content="1.8.78" /> <meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests;" /> <link rel="icon" href="https://www.huaweicloud.com/favicon.ico"> <link rel="stylesheet" href="https://portal.hc-cdn.com/cnpm-global-resources/1.1.73/css/global.min.css?sttl=1.1.73&ttr=1.1.73" crossorigin="anonymous"/> <!--/*no header css */--> <style> @media(max-width:768px) { #header { display: none; } } #footer .footer-nav { display: none; } #footer .footer-copyright-container { display: none; } .footer-service .footer-wrapper { display: none; } </style> <link rel="stylesheet" href="https://portal.hc-cdn.com/cnpm-baseui/3.0.16/index.css"> <script src="https://portal.hc-cdn.com/cnpm-global-resources/1.1.16/js/jquery.min.js" crossorigin="anonymous"></script> <script src="https://portal.hc-cdn.com/cnpm-global-resources/1.1.73/js/libs.min.js"></script> <!-- --> <meta name="google-site-verification" content="wQwSWDVSYQzH1niLqcUE15XH1_j_rN1T9-mbq2r6Dmw" /> <meta name="sogou_site_verification" content="u4x6sJNooE" /> <link rel="dns-prefetch" href="https://res-static.hc-cdn.cn" /> <link rel="dns-prefetch" href="https://portal.hc-cdn.com" /> <link rel="dns-prefetch" href="https://res.hc-cdn.com" /> <link rel="dns-prefetch" href="https://support.huaweicloud.com" /> <link rel="dns-prefetch" href="https://activity.huaweicloud.com" /> <link rel="dns-prefetch" href="https://portal.huaweicloud.com" /> <link rel="dns-prefetch" href="https://uba.huaweicloud.com" /> <link rel="dns-prefetch" href="https://uba-intl.huaweicloud.com" /> <!-- --> <script> window.dataLayer = window.dataLayer || []; window.$closeBiReport2018 = true window.$siteInfo = window.$siteInfo || {}; window.$siteInfo.site = "china"; window.$siteInfo.lang = "zh-cn".replace("_", "-"); </script> <script>window.$aioList = [ "cnpm-pep-htmlcomponent/1.0.2" ]; window.$aioCdnPrefix = 'https://res.hc-cdn.com/';</script> <script> window.gConfig = window.gConfig || {}; window.gConfig.isMobile = /iPhone|iPad|iPod|Android/i.test(navigator.userAgent); var hClassName; if(window.gConfig.isMobile){ hClassName = ' phone'; }else{ hClassName = ' pc'; } if(window.$aioList) { for(var i=0; i<window.$aioList.length; i++) { if(window.$aioCdnPrefix){ if(window.$aioList[i].length>0) { document.write('<link rel="stylesheet" href="'+window.$aioCdnPrefix+window.$aioList[i]+'/'+(window.gConfig.isMobile?'m':'pc')+'/index.css" />'); } } else { if(window.$aioList[i].length>0) { document.write('<link rel="stylesheet" href="https://res.hc-cdn.com/'+window.$aioList[i]+'/'+(window.gConfig.isMobile?'m':'pc')+'/index.css" />'); } } } } var root = document.documentElement; root.className += hClassName ; </script> </head> <body> <div id="content" data-site="china"> <div id="common-components-container"> <div data-mod-id="pep-htmlcomponent_1616584732161"> <div data-mod-name-pc="@cloud/pep-htmlcomponent/pc/index" data-mod-name-m="@cloud/pep-htmlcomponent/m/index" class="pep-htmlcomponent" data-mod-name="pep-htmlcomponent"> <head> <style> #content, #common-components-container, #section-0, #section-0>div:first-child { height: 100%; } /* 遮罩层样式 */ .overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); z-index: 1; } /* 弹出框样式 */ .popup { display: none; position: fixed; bottom: 0; left: 0; width: 100%; /* 宽度为100% */ height: 24%; /* 高度为屏幕高度的四分之一 */ background: white; z-index: 2; padding: 0; /* 移除内边距 */ box-sizing: border-box; } /* 按钮样式 */ .popup-button { width: 100%; /* 宽度为100% */ height: 33.33%; /* 每个按钮高度为三分之一 */ background-color: white; border: none; /* 移除按钮边框 */ border-bottom: 1px solid #ccc; /* 添加底部边界作为分隔符 */ cursor: pointer; outline: none; font-size: 16px; } /* 移除最后一个按钮的分隔线 */ .popup-button:last-child { border-bottom: none; } </style> <link rel="stylesheet" type="text/css" href="https://res-static.hc-cdn.cn/ams/DownloadApp/downloadPage_v5.css" /> <script src="https://res-static.hc-cdn.cn/aem/content/dam/cloudbu-site/archive/china/static/v2_resources/js/portal-global.js?sttl=201908272030"></script> </head> <div class="noticeMask" id="noticeMask"> <div class="title-content"></div> <div class="arrows"></div> </div> <div class="noticeMask" id="privacyMask"> <div style=" margin-left: 7%; margin-top: 53px; background-color: white; width: 86%; height: auto; padding-bottom: 15px; border-radius: 8px; "> <div style=" font-size: 16px; font-weight: 500; padding-top: 20px; display: flex; justify-content: center; padding-bottom: 9px; color: #000000; "> 用户权限 </div> <div style=" padding-left: 15px; padding-right: 15px; text-align: start; color: #000000; font-size: 12px; line-height: 22px; "> <p>权限详情</p> <div style="margin-top: 3px; display: flex"> <p>1、</p> <p>允许应用在初始化时连接无线数据、获取存储权限、读取安卓设备信息、进行消息通知,为您提供正常的功能服务</p> </div> <div style="display: flex"> <p>2、</p> <p>允许应用在扫一扫、实名认证、问题反馈、小程序拍照API、相册等场景,获取您的相机、拍照权限</p> </div> <div style="display: flex"> <p>3、</p> <p>允许应用在实名认证人脸识别场景,获取录音权限</p> </div> <div style="display: flex"> <p>4、</p> <p>允许应用在安全锁校验场景,获取面容ID/指纹权限</p> </div> <div style="display: flex"> <p>5、</p> <p>允许应用在售前咨询、拨打电话场景,获取拨打电话、管理通话权限</p> </div> <div style="display: flex"> <p>6、</p> <p>允许应用读取您已安装应用的列表</p> </div> <div style="display: flex"> <p>7、</p> <p>允许应用获取后台应用刷新权限,以便于为您提供良好的使用体验</p> </div> </div> <div style="height: 1px; opacity: 1; margin-top: 19px; margin-left: 0; margin-right: 0; background-color: #eeeeee" class="konwn-class"></div> <div id="hiddenButton" style=" color: #c7000b; text-align: center; font-size: 16px; line-height: 24px; margin-top: 11px; margin-bottom: -4px; "> 我知道了 </div> </div> </div> <div id="download"> <div class="logdiv" id="logdiv"> <div class="header-logo"> <img src="https://res-static.hc-cdn.cn/cloudbu-site/china/zh-cn/APP/download/downloadpage/20230816/logo.svg" class="logo-img" /> </div> </div> <div class="wroddiv"> <p class="assistantblack showText describe-class" id="common"> 您的云服务随身助手 <span class="assistantred"></span> </p> <p class="assistantred showText" id="mobile_console"> 云端资源 <span class="assistantblack">随时管控</span> </p> <p class="assistantred showText" id="mobile_tickets"> 工单咨询, <span class="assistantblack">一点就行</span> </p> </div> <!-- 遮罩层 --> <div class="overlay" id="overlay"></div> <!-- iOS工单底部弹窗 --> <div class="popup" id="popup"> <button class="popup-button" id="open-button">打开App查看工单</button> <button class="popup-button" id="goto-button">前往AppStore下载App</button> <button class="popup-button" id="cancelButton">取消</button> </div> <div id="btn-open"></div> <div id="tip"> <div class="download-btn" id="download-btn">立即下载</div> <div class="download-btn" id="open-btn">打开APP</div> <div class="footer"> <div class="tip-word-first-line">温馨提示:本应用支持鸿蒙2.0、安卓7.0以及iOS11以上的系统版本</div> <div class="tip-word-second-line"> <div style="color: #666">开发者: 华为云计算技术有限公司</div> <div class="version-word"> 版本: <p id="app-version">-- </p> 查看 <a href="https://www.huaweicloud.com/declaration/sa_cua_computing.html" style="color: #666; text-decoration: underline"> 隐私协议 </a> 与 <a href="javascript:showAlert();" οnclick="showAlert()" style="color: #666; text-decoration: underline" id="userJurisdiction"> 用户权限 </a> </div> </div> <div class="fontOpacity">©2024 Huaweicloud.com 版权所有</div> <div class="fontOpacity">黔ICP备20004760号-14 苏B2-20130048号 A2.B1.B2-20070312</div> <div class="fontOpacity">代理域名注册服务机构:新网</div> <div class="lastFoot"> <img class="footImg" src="https://res-static.hc-cdn.cn/aem/content/dam/cloudbu-site/archive/china/zh-cn/mobile_app/pages/download/images/footer_1.png" /> <img class="footImg" src="https://res-static.hc-cdn.cn/aem/content/dam/cloudbu-site/archive/china/zh-cn/mobile_app/pages/download/images/footer_2.png" /> <span class="fontOpacity">贵公网安备 52990002000093号</span> </div> </div> </div> <script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script> <script type="text/javascript"> var ua = navigator.userAgent; var os = testOs(); var curentUrl = window.location.href; // 当前下载页的url //埋点参数 var mate = 'activity_domain.click'; var mateOpen = 'activity_domain.open'; var appChannel = getUrlParam(curentUrl, 'channel'); // 获取channel的值 var appTicket = getUrlParam(curentUrl, 'qrcode_ticket'); // 获取qrcode_ticket的值 var appRegion = getUrlParam(curentUrl, 'region'); // 获取region的值 var appViewPage = getUrlParam(curentUrl, 'viewPage'); // 获取工单相关的参数 var appIncidentId = getUrlParam(curentUrl, 'incident_id'); // 获取工单相关的参数 var startIndex = 0; var endIndex = 0; var workOrderParam = ''; var queryObj = parseUrlParams(curentUrl); // url?后的{key:value}对象 var queryArr = []; var queryString = ''; Object.keys(queryObj).forEach(key => { queryArr.push([key, queryObj[key]].join('=')); }); queryString = queryArr.join('%26'); queryStringIOS = queryArr.join('&'); if (queryArr.length > 2) { startIndex = curentUrl.indexOf('&') + 1; endIndex = curentUrl.indexOf('&', startIndex); workOrderParam = curentUrl.substring(endIndex + 1); } var appEventParams = { C1: 'www', D15: 'HC', }; //添加埋点属性 var downloadStr = mate + (appChannel ? '_' + appChannel : ''); var openStr = mateOpen + (appChannel ? '_' + appChannel : ''); //公共跳转参数 var schema = getUrlParam(curentUrl, 'schema'); var hasApp = true; //封装变的部分,跳转参数,下载参数 var obj = { //下载参数 load: function () { let str; switch (os) { case 'ios': str = 'https://itunes.apple.com/cn/app/华为云/id1247814104?mt=8'; break; case 'android': if (appChannel === 'toutiao') { str = 'https://res-static.hc-cdn.cn/ams/AMS/AppUpdate/hwcloud_toutiao_3.19.0.apk'; } else { str = 'https://res-static.hc-cdn.cn/ams/20241102/20241102153558_26465/web_3.40.1.apk'; } break; default: if (appChannel === 'toutiao') { str = 'https://res-static.hc-cdn.cn/ams/AMS/AppUpdate/hwcloud_toutiao_3.19.0.apk'; } else { str = 'https://res-static.hc-cdn.cn/ams/20241102/20241102153558_26465/web_3.40.1.apk'; } break; } return str; }, open: function () { let str; let commonStr = ''; if (appChannel === 'scanLogin') { commonStr += '://router?channel=authLogin%26qrcode_ticket=' + appTicket + '%26region=' + appRegion; } else { commonStr += '://router?' + queryString; } switch (os) { case 'ios': str = 'hwcloudios://router?' + queryStringIOS; break; case 'android': str = 'hwcloudandroid' + commonStr; break; default: str = 'hwcloudandroid' + commonStr; break; } return str; }, }; changeText(appChannel); // 获取版本号 getAppVersion(); //功能一:在非浏览器内打开 if (isnotBrowser()) { //出现弹出层提示 document.getElementById('noticeMask').style.display = 'block'; } else { // 分享打开APP document.getElementById('logdiv').style.marginTop = '27vh'; //跳转到其他页面 if (os !== 'ios') { setTimeout(() => { testApp(obj.open()); }, 1500); } } if (appChannel === 'ticket') { var overlay = document.getElementById('overlay'); var popup = document.getElementById('popup'); var cancelButton = document.getElementById('cancelButton'); // 需要替换按钮样式和对应的点击事件 document.getElementById('download-btn').innerHTML = '下载APP查看工单'; document.getElementById('open-btn').innerHTML = '通过浏览器查看工单'; // 打开浏览器查看工单按钮 document.getElementById('open-btn').addEventListener('click', function () { if (appViewPage) { window.open( 'https://console.huaweicloud.com/ticket/app/mobile/index.html?#/' + appViewPage + '?' + workOrderParam ); } else { window.open('https://console.huaweicloud.com/ticket/app/mobile/index.html?#/supportService'); } }); // 打开APP查看工单按钮 document.getElementById('download-btn').addEventListener('click', function () { if (os === 'ios') { overlay.style.display = 'block'; popup.style.display = 'block'; } else { window.location.href = obj.open(); } _sendEvent(openStr, 'activity_domain', 'open_' + appChannel, '', '1', appEventParams); }); document.getElementById('btn-open').addEventListener('click', openFunction); function openFunction () { window.location = hasApp ? obj.open() : obj.load(); _sendEvent(openStr, 'activity_domain', 'open_' + appChannel, '', '1', appEventParams); } // 添加"打开"和"前往"按钮的事件处理(按需添加功能) document.getElementById('open-button').onclick = function () { // 打开App查看工单 window.location.href = obj.open(); }; document.getElementById('goto-button').onclick = function () { // 打开AppStore window.location.href = obj.load(); }; // 点击遮罩层或"取消"按钮隐藏遮罩层和弹出框 overlay.onclick = cancelButton.onclick = function () { overlay.style.display = 'none'; popup.style.display = 'none'; }; } else { // 点击消失隐藏 document.getElementById('hiddenButton').addEventListener('click', function () { document.getElementById('privacyMask').style.display = 'none'; }); //功能二:下载(打开) document.getElementById('download-btn').addEventListener('click', function () { document.location = obj.load(); _sendEvent(downloadStr, 'activity_domain', 'click_' + appChannel, '', '1', appEventParams); }); //功能三:打开 document.getElementById('open-btn').addEventListener('click', function () { window.location.href = obj.open(); _sendEvent(openStr, 'activity_domain', 'open_' + appChannel, '', '1', appEventParams); }); document.getElementById('btn-open').addEventListener('click', openFunction); function openFunction () { window.location = hasApp ? obj.open() : obj.load(); _sendEvent(openStr, 'activity_domain', 'open_' + appChannel, '', '1', appEventParams); } } function showAlert () { document.getElementById('privacyMask').style.display = 'block'; } //功能三:判断是否含有app,已安装直接跳转到指定页面 function testApp (m) { var timeOut, t = 1000; setTimeout(function () { if (hasApp) { //已安装 _sendEvent(openStr, 'activity_domain', 'open_' + appChannel, '', '1', appEventParams); if (appChannel === 'ticket') { document.getElementById('download-btn').innerHTML = '打开APP查看工单'; } } else { } }, 2000); var t1 = Date.now(); window.location = m; timeOut = setTimeout(function () { var t2 = Date.now(); if (!t1 || t2 - t1 < t + 100) { hasApp = false; } }, t); } //截取url中参数 function getUrlParam (url, key) { url = url.split('?'); if (url.length > 1) { url = url[1].split('&'); for (var i in url) { var value = url[i].split('='); if (value[0] == key) { return value[1]; } } } else { return false; } } //判断操作系统 function testOs () { if (ua.match(/iPhone|iPod/i) != null) { return 'ios'; } else { return 'android'; } } // 判断是否是非浏览器打开 function isnotBrowser () { var name = ua.toLowerCase(); //判断是不是微信 if (name.match(/MicroMessenger/i) == 'micromessenger') { return true; } //判断是不是支付宝 else if (name.match(/AlipayClient/i) == 'alipayclient') { return true; } else if (name.match(/WeiBo/i) == 'weibo') { return true; } else if (name.match(/QQ/i) == 'qq') { if (name.match(/MQQBrowser/i)) { return false; } return true; } else if (name.match(/News/i) == 'news') { return true; } else { return false; } } // 获取版本号 function getAppVersion () { const data = { data: { deviceType: testOs(), currentVerCode: '1', currentBundleVersion: '1.0.0', appImeiNo: '352045062781738', }, }; const jsonData = JSON.stringify(data); $.ajax({ url: 'https://m.huaweicloud.com/api/app/mservice/commonService/11008', type: 'post', dataType: 'json', contentEncoding: 'gzip', contentType: 'application/json;charset=utf-8', data: jsonData, success: function (obj) { if (obj.data && obj.data.newVerName) { if (os === 'ios') { document.getElementById('app-version').innerText = obj.data.newVerName; } else { document.getElementById('app-version').innerText = '3.40.1'; } } }, }); } //获取匹配后的参数 function matchUrlParams (value) { if (value === 'app_activity_202109') { return 'appActivity'; } else { return value; } } //判断官网打开通道,更改样式 function changeText (key) { if (key === 'mobile_tickets' || key === 'mobile_console') { document.getElementById(key).style.display = 'block'; } else { document.getElementById('common').style.display = 'block'; } } // 解析url中的参数 function GetRequest () { var url = location.search; //获取url中"?"符后的字串 var theRequest = new Object(); if (url.indexOf('?') != -1) { var str = url.substr(1); strs = str.split('&'); for (var i = 0; i < strs.length; i++) { theRequest[strs[i].split('=')[0]] = unescape(strs[i].split('=')[1]); } } return theRequest; } /** * 解析 url 中的参数 * @param url * @returns {Object} */ function parseUrlParams (url) { const params = {}; if (!url || url === '' || typeof url !== 'string') { return params; } const paramsStr = url.split('?')[1]; if (!paramsStr) { return params; } const paramsArr = paramsStr.replace(/&|=/g, ' ').split(' '); for (let i = 0; i < paramsArr.length / 2; i++) { const value = paramsArr[i * 2 + 1]; params[paramsArr[i * 2]] = value === 'true' ? true : value === 'false' ? false : value; } return params; } </script> <script> $("[meta-data-adjust-app='hide']").hide(); </script> <div class="html-text-component-edit"> <script> if (window.observer) { observer('login', true); } var portalDomain = 'https://portal.huaweicloud.com', ssoDomain = 'https://auth.huaweicloud.com'; var isVerified = false; var isLogin = false; function showMenu (data) { data = data || []; var isVendor = data.isVendor || false; var isIsv = data.isIsv || false; var $_target = $('.user-info-layer ul.account-nav'); if (isVendor) { $_target.find('li').hide(); $_target.find('.isVendor,.logout').show(); } else if (isIsv) { $_target.find('.isIsv').show(); $_target.find('.isVendor').show(); } } function removeTicket (uri) { var index = uri.indexOf('?'); if (index === -1) { return uri; } var path = uri.substring(0, index), q = uri.substring(index + 1) || ''; q = q.replace(/ticket=[^&]*&?/, '').replace(/locale=[^&]*&?/, ''); if (q) { return path + '?' + q; } return path; } var jsonParamInit = {}; var jsonParamView = {}; var jsonParamEvent = {}; jsonParamInit['UserAccount'] = 'host'; function loginCallback (data) { if (data.flag == 1) { var username = data.username; isLogin = true; jsonParamInit['UserAccount'] = data.userId; window.changeBtnAfterLogin && window.changeBtnAfterLogin(); var image_url = data.image_url; if (image_url && image_url.small) { getAvatarCallback(image_url); } else { getAvatar(); } if (data.xdomain_type != 'HWC_HK') { getMessage(data.domainId); getOrder(); isGrayuser(); } $('#header').addClass('logined'); $('.user-info').find('.my-acct').text(username); $('.user-info').find('.my-acct').attr('title', username); showMenu(data); if (window.serviceCode) { if (typeof window.serviceCode === 'function') { window.serviceCode(data); } } // get user site info and show tips when user is HWC_HK if (data.xdomain_type == 'HWC_HK') { window.prompts && window.prompts(true, window.reg, window.promptLan, window.refLan, window.promptTips, true); window.menuPrompts && window.menuPrompts(true, window.reg, window.promptLan, window.refLan, window.promptTips, true); } window.dataLayer.push({ event: 'loginSuccess', accountType: { isIsv: data.isIsv, isVendor: data.isVendor }, }); } if (window.observer) { observer('login').publish(null, data); } } function getAvatarCallback (data) { var image_url = data; if (image_url && image_url.small) { $('.account-pic').attr('src', image_url.small); } } function getMessage (domain_id) { var url = portalDomain + '/api/mc/user/mc/v1/' + domain_id + '/messages/envelope/unread'; $.ajax({ dataType: 'json', timeout: 10000, type: 'get', url: url, xhrFields: { withCredentials: true, }, success: function (data) { if (data.total > 0) { $('.user-info').addClass('msg'); if (data.total < 10) { $('.user-info').addClass('msg1'); $('.message span').text(data.total); } else if (data.total < 100) { $('.user-info').addClass('msg2'); $('.message span').text(data.total); } else { $('.user-info').addClass('msg3'); $('.message span').text('99+'); } } }, error: function (data) {}, }); } function getOrder () { var url = 'https://portal.huaweicloud.com/user/getbillinginfo'; $.ajax({ dataType: 'json', timeout: 10000, type: 'get', url: url, xhrFields: { withCredentials: true, }, success: function (data) { if (data.data.toPendingOrderCount == 0 || data.data.toPendingOrderCount == -1) { $('.user-info').addClass('ord1'); $('.order span').hide(); } if (data.data.toPendingRenewalCount == 0 || data.data.toPendingRenewalCount == -1) { $('.user-info').addClass('mag1'); $('.management span').hide(); } if (data.data.toPendingOrderCount > 0) { if (data.data.toPendingOrderCount < 10) { $('.user-info').addClass('ord1'); $('.order span').text(data.data.toPendingOrderCount); } else if (data.data.toPendingOrderCount < 100) { $('.user-info').addClass('ord2'); $('.order span').text(data.data.toPendingOrderCount); } else { $('.user-info').addClass('ord3'); $('.order span').text('99+'); } } if (data.data.toPendingRenewalCount > 0) { if (data.data.toPendingRenewalCount < 10) { $('.user-info').addClass('mag1'); $('.management span').text(data.data.toPendingRenewalCount); } else if (data.data.toPendingRenewalCount < 100) { $('.user-info').addClass('mag2'); $('.management span').text(data.data.toPendingRenewalCount); } else { $('.user-info').addClass('mag3'); $('.management span').text('99+'); } } }, error: function (data) {}, }); } function getAvatar () { var get_account_pic = portalDomain + '/user/avatar?callback=getAvatarCallback'; getScript(window, document, 'script', get_account_pic, function () {}); } function isGrayuser () { var is_gray_user = portalDomain + '/index/isgrayuser'; getScript(window, document, 'script', is_gray_user, function () {}); } function getScript (win, doc, tag, src, always) { var script = doc.createElement(tag), h = doc.getElementsByTagName(tag)[0]; script.async = 1; script.src = src; if (script.addEventListener) { script.addEventListener('load', always, false); } else if (script.attachEvent) { script.attachEvent('onreadystatechange', function () { var target = window.event.srcElement; if (target.readyState == 'loaded' || target.readyState == 'complete') { always.call(target); } }); } h.parentNode.insertBefore(script, h); } jQuery(function () { var href = encodeURIComponent(removeTicket(window.location.href)); $('[data-login-href]').each(function () { $(this).attr('href', $(this).data('login-href') + href); }); $("[href='" + ssoDomain + "/authui/auth.html?locale=zh-cn#/register']").attr( 'href', ssoDomain + '/authui/auth.html?locale=zh-cn&service=' + href + '#/register' ); $("[href='" + ssoDomain + "/authui/auth.html#/register']").attr( 'href', ssoDomain + '/authui/auth.html?locale=zh-cn&service=' + href + '#/register' ); window.raw_onerror = window.onerror; window.onerror = function (errorMsg, url, lineNumber) { return true; }; var check_login_url = portalDomain + '/index/islogin?callback=loginCallback'; getScript(window, document, 'script', check_login_url, function () { if (window.observer) { if (!isLogin) { observer('login').publish(null, { flag: 0 }); } if (window.dataLayer) { var pageviewObj = { userId: window.jsonParamInit.UserAccount, loginStatus: window.jsonParamInit.UserAccount == 'host' ? 'Guest' : 'Logged-in', userAgent: window.navigator.userAgent, countryCode: $('html').attr('lang'), pageType: window.mate_data_ts_pageType, page: window.location.pathname, }; if (window.location.host == 'activity.huaweicloud.com') { pageviewObj.activityName = $('title').text(); } window.dataLayer.push(pageviewObj); } } try { if (typeof initBi === 'function') { initBi(jsonParamInit, jsonParamView, jsonParamEvent); } if (!window.isLogin) { window.promptQueryIP && window.promptQueryIP(); } } catch (e) {} window.onerror = window.raw_onerror; }); }); </script> </div> </div> <script> window.gConfig = window.gConfig || {}; window.gConfig.seed = window.gConfig.seed || []; window.gConfig.seed.push({name : '@cloud/pep-htmlcomponent', data : {"packages":{"@cloud/pep-htmlcomponent":{"path":"//res.hc-cdn.com/cnpm-pep-htmlcomponent/1.0.2/","version":"1.0.2"},"@cloud/lazyload":{"path":"//res.hc-cdn.com/cnpm-lazyload/2.0.8/","version":"2.0.8"},"@cloud/link-to":{"path":"//res.hc-cdn.com/cnpm-link-to/1.0.16/","version":"1.0.16"},"@cloud/xtemplate-runtime":{"path":"//res.hc-cdn.com/cnpm-xtemplate-runtime/1.0.1/","version":"1.0.1"}}} })</script> </div> </div><div data-mod-id="pep-htmlcomponent_1616584732169"> <div data-mod-name-pc="@cloud/pep-htmlcomponent/pc/index" data-mod-name-m="@cloud/pep-htmlcomponent/m/index" class="pep-htmlcomponent" data-mod-name="pep-htmlcomponent"> <div class="html-text-component-edit"> </div> <script> window.gConfig = window.gConfig || {}; window.gConfig.seed = window.gConfig.seed || []; window.gConfig.seed.push({name : '@cloud/pep-htmlcomponent', data : {"packages":{"@cloud/pep-htmlcomponent":{"path":"//res.hc-cdn.com/cnpm-pep-htmlcomponent/1.0.2/","version":"1.0.2"},"@cloud/lazyload":{"path":"//res.hc-cdn.com/cnpm-lazyload/2.0.8/","version":"2.0.8"},"@cloud/link-to":{"path":"//res.hc-cdn.com/cnpm-link-to/1.0.16/","version":"1.0.16"},"@cloud/xtemplate-runtime":{"path":"//res.hc-cdn.com/cnpm-xtemplate-runtime/1.0.1/","version":"1.0.1"}}} })</script> </div> </div> <script> window.gConfig = window.gConfig || {}; window.gConfig.seed = window.gConfig.seed || []; window.$devPath = {}; for(var i = 0; i < window.gConfig.seed.length; i++) { var tmpSeed = window.gConfig.seed[i].data; var name = window.gConfig.seed[i].name; if(tmpSeed && tmpSeed.packages && window.$devPath[name]) { tmpSeed.packages[name] = window.$devPath[name]; } } </script> </div> </div> <script> var components = $("#common-components-container").children("div:not([data-mod-id='pep-empty-page'])"); var count = 0; for (var i = 0; i < components.length; i++) { var tempComponent = $(components[i]); if(tempComponent.children().length > 0){ tempComponent.attr("id", "section-" + count); count++; } tempComponent = null; } </script> <div id="register"></div> <div id="service"></div> <script src="https://res-static.hc-cdn.cn/aem/content/dam/cloudbu-site/archive/commons/web_resoure/cms/static/js/ViewMotion.min.1.2.js?sttl=1.1.73"></script> <script src="https://res-static.hc-cdn.cn/aem/content/dam/cloudbu-site/archive/commons/web_resoure/cms/static/js/v2/dcSlideShow.min.js?20171012&sttl=1.1.73"></script> <script src="https://res-static.hc-cdn.cn/aem/content/dam/cloudbu-site/archive/commons/web_resoure/cms/static/js/swiper-3.4.2.jquery.min.js?20171012&sttl=1.1.73"></script> <script src="https://res-static.hc-cdn.cn/aem/content/dam/cloudbu-site/archive/china/zh-cn/product/js/checkURL.js?sttl=1.1.73"></script> <script> // 链接为视频链接,处理统一使用portalUI播放器打开 function dealHrefIncludeVideo(eles){ eles.each(function(index,comEle) { $(comEle).attr('data-src', $(comEle).attr('href')); $(comEle).attr('data-show', 'player'); if(comEle.hasAttribute('target')) { comEle.removeAttribute('target') comEle.removeAttribute('href') } }) } var components = $("[href*='mp4']"); </script> <style type="text/css"> </style> <script> function dealWithImageHTL() { if (/pcloudApp/i.test(navigator.userAgent)) { $("[data-pep-src]").hide(); return; } else { var str = window.location.search; var suband = "type=android"; var subios = "type=ios"; if (str.indexOf(subios) != -1 || str.indexOf(suband) != -1) { $("[data-pep-src]").hide(); return; } } $("[data-pep-src]").each(function () { $(this).attr("src", $(this).attr("data-pep-src")); }); } dealWithImageHTL(); </script> <script> //display video for product-VideoTutorials-v5 $('.product-video-list li').each(function () { var pcUrl = $(this).attr("data-vedio-pc-url") || ''; var mbUrl = $(this).attr("data-video-mb-url") || pcUrl || ''; var ua = navigator && navigator.userAgent; if ((/Android|webOS|iPhone|iPod|Windows Phone|(BlackBerry).*Version|(BB10).*Version|IEMobile|Opera Mini/i).test(ua)) { $(this).find(".product-play-btn2").on('click', function () { play(encodeURI(mbUrl), '') }) } else { $(this).find(".product-play-btn2").on('click', function () { play(encodeURI(pcUrl), '') }) } }) window.channelFrom = $('#content').attr('data-channelFrom'); window.hrefName = $('#content').attr('data-hrefName'); if ($('#content').attr('data-site') == 'hk') { localStorage.setItem('currentActivitySite', 'hk'); } else { localStorage.setItem('currentActivitySite', 'china'); } </script> <script> var furionAppCode = ''; var $currentUrl = location.href; if($currentUrl.indexOf("/price_detail.html") != -1 || $currentUrl.indexOf("/pricing.html") != -1 || $currentUrl.indexOf("/pricing/index.html") != -1){ furionAppCode = 'D00903385CF649FCA048B5DE1C1E6D4E'; }else if($currentUrl.indexOf("https://activity.huaweicloud.com") == 0) { furionAppCode = '51D7385A7D2B4937BB45DC755E82C48C'; } else if ($currentUrl.indexOf("https://www.huaweicloud.com") == 0) { furionAppCode = '7D9AB7C5E01D4698B7B918065C762796'; } else if ($currentUrl.indexOf("https://support.huaweicloud.com") == 0) { furionAppCode = '1C04D12EB0F8479A9DA9A24639FCA81C'; } if(!window.__fr && furionAppCode){ !function(x, n) { window[n] = window[n] || {}; window[n].config = { appId: furionAppCode,setting: "api,jsTrack,uba,longtask,rtti",hashMode: true,closeReportFMP: true, }; var o = document.createElement('script'); o.src = x, o.async = !0; var d = document.body.firstChild; document.body.insertBefore(o, d); }('https://portal.hc-cdn.com/FurionSdkStatic/3.6.30/furion-cdn.min.js', '__fr'); } </script> <script src="https://portal.hc-cdn.com/cnpm-global-resources/1.1.16/js/bi_new.js?sttl=1.1.73"></script> <script> if (window.NodeList && !NodeList.prototype.forEach) { NodeList.prototype.forEach = function (callback, thisArg) { thisArg = thisArg || window; for (var i = 0; i < this.length; i++) { callback.call(thisArg, this[i], i, this); } }; } </script> <script src="https://portal.hc-cdn.com/cnpm-global-resources/1.1.73/js/global.min.js" crossorigin="anonymous"></script> <script src="https://portal.hc-cdn.com/cnpm-baseui/3.0.16/index.js?sttl=1.1.73&ttr=1.1.73" crossorigin="anonymous"></script> <script type="text/javascript" src="https://portal.hc-cdn.com/cnpm-feloader/3.0.6/feloader.js?sttl=1.1.73&ttr=1.1.73" crossorigin="anonymous"></script> <div class="hide-sttl" style="height: 0;width:0" data-sttl="1.1.73"></div> <script> window.sttlVersion = $('.hide-sttl').attr('data-sttl') || '2020'; </script> <script> if( !/pcloudApp/i.test(navigator.userAgent) ){ $("#header").css("display","block"); } </script> <!-- TODO:兼容AEM的埋点 Begin--> <script> // edit--china--en-us--declaration var $ts_site = "china"; var $ts_lang = "zh-cn".replace("_", "-"); var $ts_domain = window.location.host.split('.')[1] ? window.location.host.split('.')[0] : 'localhost'; var channel = "mobile_app/api_page/appv2"; var $uri = channel?"/app_download.html":"app_download.html"; var $pepchannel = (channel+$uri).split("/").join("_").replace(".html",""); window.matedataDomain = $ts_domain; // if open in app, should change ts_domain in to "app" if( /pcloudApp/i.test(navigator.userAgent) ) { window.matedataDomain = "app"; }else{ var str = window.location.search; var suband = "type=android"; var subios = "type=ios"; if( str.indexOf(subios)!=-1 || str.indexOf(suband)!=-1 ){ window.matedataDomain = "app"; } } // 新系统中生成的方式需要改下 window.pageMatedataPrefix = window.matedataDomain + "_" + $ts_site + "_" + $ts_lang + "_" + $pepchannel + ".click."; window.headerMatedataPrefix = window.matedataDomain + "_" + $ts_site + "_" + $ts_lang + "_" + $pepchannel + "_navigation.click."; window.footerMatedataPrefix = window.matedataDomain + "_" + $ts_site + "_" + $ts_lang + "_" + $pepchannel + "_footer.click."; window.registerMatedataPrefix = window.matedataDomain + "_" + $ts_site + "_" + $ts_lang + "_" + $pepchannel + "_register.click."; window.serviceMatedataPrefix = window.matedataDomain + "_" + $ts_site + "_" + $ts_lang + "_" + $pepchannel + "_service.click."; window.pep_uaid = ($ts_site=="china") ? "UA-55836286-1" : "UA-55836286-39"; window.mate_data_ts_pageType = $pepchannel; </script> <!-- TODO:兼容AEM的埋点 End--> <script> function showFooter(){ if(window.matedataDomain != "app") { $("#footer .footer-nav").css('display','block'); $("#footer .footer-copyright-container").css('display','block'); $(".footer-service .footer-wrapper").css('display','block'); $("#footer #videoDiv").css('display','none'); } } if (window.feloader) { feloader.onLoad(function(){ feloader.getScript('https://res-static.hc-cdn.cn/aem/content/dam/cloudbu-site/archive/china/static/v2_resources/css/product-icons.css'); feloader.getScript('https://res-static.hc-cdn.cn/aem/content/dam/cloudbu-site/archive/china/static/v2_resources/css/iconFont-solution.css'); showFooter() }) } else{ document.write("<link rel='stylesheet' href='https://res-static.hc-cdn.cn/aem/content/dam/cloudbu-site/archive/china/static/v2_resources/css/product-icons.css'>"); document.write("<link rel='stylesheet' href='https://res-static.hc-cdn.cn/aem/content/dam/cloudbu-site/archive/china/static/v2_resources/css/iconFont-solution.css'>"); showFooter(); } // 处理一下a标签href是tel的场景 var telsEle = $("a[href^='tel:'][target]"); telsEle .removeAttr("target"); </script> <script> if (window.$aioList && window.$aioList.length > 0) { for (var i = 0; i < window.$aioList.length; i++) { var tmpComponent = window.$aioList[i]; if (tmpComponent) { var tmpComponentInfo = tmpComponent.split("/"); if (tmpComponentInfo.length == 2) { var name = tmpComponentInfo[0]; var version = tmpComponentInfo[1]; var tmpComponentWrapperEle = $('[data-mod-name="' + name + '"]'); var eleVersionAttr = tmpComponentWrapperEle.attr("data-mod-version"); if (eleVersionAttr && eleVersionAttr != version) { var linkEle = $('head link[href*="' + name + '/' + version + '"]'); linkEle.attr("href", linkEle.attr("href").replace(version, eleVersionAttr)); } } } } } </script> <script> // document.referrer可以获取浏览器上一次地址,如果document.referrer是空字符串,则不为语言切换场景 window.refLan = ""; window.$PEP = true; function getSiteFromURL() { url = window.location.host; urlArr = url.split("."); if (urlArr[0] == "www") { reg = "CN"; } else { reg = "HK" } return reg; } var siteStr = $('html').attr("site") if (siteStr) { window.reg = siteStr == "china" ? "CN" : siteStr.toUpperCase(); } else { window.reg = getSiteFromURL(); } window.promptLan = $('html').attr("lang"); if (document.referrer != "") { if (document.referrer.indexOf("/authui/login") == -1) { if (document.referrer.indexOf(".com/intl") != -1) { window.refLan = (document.referrer.indexOf(".com/intl/zh-cn") != -1) ? "zh-CN" : ((document.referrer.indexOf(".com/intl/en-us") != -1) ? "en-US" : "es-US"); } else { window.refLan = (document.referrer.indexOf(".com/en-us") != -1) ? "en-US" : "zh-CN"; } } else { //window.refLan = (document.referrer.indexOf("locale=zh-cn") != -1) ? "zh-CN" : "en-US"; if (document.referrer.indexOf("locale=") != -1) { window.refLan = (document.referrer.indexOf("locale=zh-cn") != -1) ? "zh-CN" : ((document.referrer.indexOf("locale=en-us") != -1) ? "en-US" : "es-US"); } else { window.refLan = window.promptLan; } } } else { window.refLan = window.promptLan; } </script> <!--/* 55 trace for some special page */--> <script> !function ($) { if (window.dataLayer && window.dataLayer.push) { if (window.location.pathname == "/consultation/") { $("#submitBtn").click(function (e) { window.dataLayer.push({ "event": "consultSubmit", "productName": $("#applicationscene").val() }); }) } $("#header .header-login").click(function (e) { window.dataLayer.push({ "event": "loginIntention" }) }); $("#header .header-register").click(function (e) { window.dataLayer.push({ "event": "creationIntention", "pageType": window.mate_data_ts_pageType, "pagePosition": "Header" }) }); } }(jQuery); </script> <script src="https://res-static.hc-cdn.cn/aem/content/dam/cloudbu-site/archive/commons/apm/wise_trace.min.js?sttl=1.1.73"></script> <script> $("a[href*='/pep-dialog/']").each(function () { var ele = $(this); var href = ele.attr("href"); var path = href.replace(/.html/g, ""); var ajaxPath = path.indexOf("activity/") == -1 ? path : path.split("activity/")[1]; var arr = path.split("/"); var dialogName = arr[arr.length - 1]; var location_lang = $('html').attr('lang').toLowerCase(); var site = $('html').attr('site').toLowerCase() == 'china' ? 'china' : 'hk'; // 站点判断,国内:china;国际站:hk var dialogUrl = (window.location.host.indexOf(".com") != -1 && window.location.host.indexOf("pep.huaweicloud.com") == -1) ? "https://" + window.location.host + "/" + ajaxPath + "/jcr:content/dialog.html?wcmmode=disabled" : "/content/cloudbu-site/" + site + "/" + location_lang + "/activity/" + ajaxPath + "/jcr:content/dialog.html?wcmmode=disabled"; ele.css('pointer-events', 'auto'); ele.on("click", function (e) { e.stopPropagation(); e.preventDefault(); if ($("body [data-pep-path*='" + dialogName + "']").length !== 0) { $("body [data-pep-path*='" + dialogName + "']").remove(); } // dialog for activity $.ajax({ url: dialogUrl, success: function (data) { if (data) { data = data.replace('block', 'none'); $("body").append(data); $("#modal-rule").html($("body [data-pep-path*='" + dialogName + "']").html()); window.activityModal.show('#modal-rule', true); } } }) }); }); // set fromuser to cookie function $parseQueryString(name) { var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); var r = window.location.search.substr(1).match(reg); if (r != null) { return unescape(r[2]); } else { return null; } }; if ($parseQueryString("fromacct")) { var fromacct = $parseQueryString("fromacct"); var tmpEle = $("<div></div>"); tmpEle.text(fromacct); fromacct = tmpEle.html(); window.$usiteUtil.setCookie("h_fromacct", fromacct); } </script> </body> </html>