//function jsonpEmailCallback(jsonpEmailCallback) { // var s = ""; //} ///// 填充新版行业数据 /////filter:需要填充容器标签标识 isOld:是否是旧版 url:获取行业数据接口的url //function fillPopIndustryData(filter, isOld, url) { // //url: "http://e-beta.huawei.com/uipm/getIndustryUipmRest?lang=zh", // var factur = ""; // var tpmhangyelan = $("#gLanguageCurrent").val().toLowerCase(); // var hangyelang = ""; // hangyelang = tpmhangyelan; // factur = location.protocol + "//" + location.host + "/en/AppService/CollectUser?languages=" + hangyelang + "&type={60B71899-9BD1-42C1-A414-110EA69C4CCD}" // $(filter).html(""); // $.ajax({ // type: "POST", // async: false, // url: factur.replace(/^https?:/i, location.protocol), // success: function (obj) { // var iHtml = ""; // data = obj; // if (data != null && data != "undefined" && data.length > 0) { // for (var i = 0; i < data.length; i++) { // name = data[i].name; // detail = data[i].data; // iHtml = iHtml + "
  • "; // iHtml = iHtml + "" + name + ""; // iHtml = iHtml + "

    "; // if (detail != null && detail != "undefined" && detail.length > 0) { // for (var j = 0; j < detail.length; j++) { // iHtml = iHtml + "" + detail[j].name + ""; // } // } // iHtml = iHtml + "

  • "; // } // $(filter).append(iHtml); // } // }, // error: function (ex) { // var ad = ex; // } // }); //} //function jsonpRegisterBack(data) { // if (data.message == "successfully") { // $("input[name=\'buyFeedBackVO.userEmail']").val($("#hideEmail").val()); // $("input[name=\'buyFeedBackVO.owner']").val($("#hidevUserName").val()); // $("input[name=\'buyFeedBackVO.userType']").val($("#hideUserType").val()); // var curInpuUserName = $("#t_firstName").val() + $("#t_lastName").val(); // if ($("#Language").val() != "zh" && $("#Language").val() != "cn") { // curInpuUserName = $("#t_firstName").val() + " " + $("#t_lastName").val(); // } // $("#submit-button-id").attr("regeister_flag", "1"); // $("input[id='Name']").val(curInpuUserName); // $(".js_get_pricing_info_form").submit(); // return false; // } // else { // $("#Password-button a").removeClass('submitted'); // $('.activation-box').hide(); // } //} //function jsonpVerifyPwBack(pData) { // try { // _this = $("#password"); // if ($("#password").val().length >= 8) { // if (pData.ackCode == "0") { // verification = false; // var prompt = _this.nextAll('.input-error').hasClass('error'); // if (!prompt) { // _this.addClass("red"); // _this.nextAll('.input-error').addClass('error').html(pData.message); // } // else { // _this.nextAll('.input-error').html(pData.message); // } // $("#Password-button a").removeClass('submitted'); // } // else { // $("#password").removeClass("red").addClass('outline'); // $("#password").nextAll('.input-error').removeClass('error'); // var vPriceLanguage = $("#RegionLanguage").val(); // var strCode = "+86"; // var strRegisterPhone = ""; // var strOrignTmpPhone = $("#Telephone").val();; // if (/^\d{6,30}$/.test(strOrignTmpPhone)) { // strRegisterPhone = strOrignTmpPhone // } // if (vPriceLanguage == "en") { // strCode = "+44"; // } // //if (strRegisterPhone.length > 0) { // // if ($.trim(priceInfoPhone).substr(0, 3) != strCode) { // // strRegisterPhone = strCode + strRegisterPhone; // // } // //} // // 注册 // var gotoUrlActive = window.location.protocol + "//" + location.host + $("#h_ActivationUrl").val(); // var RegUserarams = { // "type": "4", "languages": vPriceLanguage, "fromsite": "e.huawei.com", "appurl": gotoUrlActive, // "RolewithHuawei": "", "PreferredContact": "", "PassWord": $("#password").val(), // "Age": "", "City": '', "PreferredLanguage": "", // "CountryRegion": "", // "JobTitle": $("#Position").val(), "Address": "", "Zip": "", "Company": $("#Organazation").val(), // "Name": $("#t_firstName").val(), "Name1": $("#t_lastName").val(), // "Email": $("#Email").val(), "Officetelephone": strRegisterPhone, // "Mobile": strRegisterPhone, "countryCodeStr": strCode, "accountType": "0", // "Gender": "", "Provinces": $("#txtCountry").val(), "provincesuipmid": "", // "informedHuawei": 1, // "informedPartners": 1, // "userid": "" // }; // $.ajax({ // url: $("#submit-button-id").attr("checkemailurl"), // data: RegUserarams, // type: "post", // dataType: "jsonp", // cache: false, // async: false, // jsonpCallback: "jsonpRegisterBack" // }); // // 注册结束 // } // } // else { // erification = false; // } // } // catch (e) { // var data = e; // } //} //function OpenGetPriceLoading() { // if ($("#dloading").length <= 0) { // var loading = $("
    "); // loading.attr("id", "dloading"); // var content = $("
    ") // content.html("Loading..."); // loading.html(content); // $("body").append(loading); // } else { // $("#dloading").show(); // } //} //function CloseGetPriceLoading() { // $("#dloading").hide(); //} //var curPriceInfoLanuage = ""; //function LoadMyPage(ap_url, curAvPuCode) { // $.ajax({ // url: ap_url, // cache: false, // type: "GET", // beforeSend: function () { // //OpenGetPriceLoading(); // }, // success: function (obj) { // //1. 如果已经加载重新删除掉,重新加载 // if ($("#dv_GetPriceinfoNewPop").length > 0) { // $("#dv_GetPriceinfoNewPop").remove(); // } // if ($("#dv_app_regiuser").length > 0) { // $("#dv_app_regiuser").remove(); // } // var isVaildBrower = (/msie [2-9]/i.test(navigator.userAgent)); // if (isVaildBrower) { // obj = obj.replace(/