var token = ''; var city_name = ''; var returnUrl = ''; var code = ''; var goUrl = ""; var httpStr = ""; var qs = parseQueryString(window.location.href); $().ready(function() { if (qs.returnUrl) { returnUrl = qs.returnUrl; } if (qs.httpStr) { httpStr = qs.httpStr; } if (qs.name) { city_name = qs.name; } if (qs.code) { code = qs.code; } if (qs.token) { token = qs.token; } $(".ljqw em").html(city_name) $(".goOfficialNetwork i").html(city_name) goBack() cituInfoData() }); //nav返回上一页 function goBack () { $("nav i").click(function () { window.location.href = httpStr + "&name=" + city_name + "&code=" + code + "&token=" + token; }) } //各城市对应注册地址 function goZhuce () { tips.find(function(item,index) { if(item.region == city_name){ if(item.URL.register){ goUrl=item.URL.register; goCopy(goUrl) // window.location.href = "iframeUrl.html?url=" + goUrl; // window.webkit.messageHandlers.OutPushMessageHandler.postMessage({'name':city_name,'url':goUrl}); }else if(item.URL.web){ goUrl=item.URL.web; goCopy(goUrl) // window.location.href = "iframeUrl.html?url=" + goUrl; // window.webkit.messageHandlers.OutPushMessageHandler.postMessage({'name':city_name,'url':goUrl}); }else{ $(".tips .ljqw").html("") } } }) } //帮助文案 function cituInfoData () { $.ajax({ type:"POST", url: "/api/city/info", headers:{ 'token': '5dac206be8b1f5736285fc03a08adb3c' }, data:{ 'region': qs.name }, dataType:'json', success: function (res) { console.log(res) if(res.errno == 0 && res.rst.data && res.rst.data.city){ var data = res.rst.data.city; if(data.help_info && data.help_info != ""){ $(".container").html(data.help_info); $(".container").find("p").css({ "line-height":'0.2rem', "font-size":"0.14rem", "color":"#666666" }).find("span").css({ "line-height":"0.26rem", "font-size":"0.14rem", "color":"#666666" }) $(".container strong").css({"color":"#333333","font-weight":"bold","font-size":"0.16rem"}) $(".container strong").find("span").css({"color":"#333333"}) $(".goGjj").html(`
如果您还未在最新版,${city_name}公积金官网主注册并设置相关信息;复制链接
注册完成后即可使用APP查询。
`) } }else{ showMsg(res.err) } } }); }