ce('https://www.ic-hongda.com/wap', 'wap'); if(url == ''|| url == null){ return 'https://www.ic-hongda.com'; }else{ var str=url.substring(0, 1); if(str=='/' || str=="\\"){ url=url.substring(1, url.length); } if($("#niushop_rewrite_model").val()==1 || $("#niushop_rewrite_model").val()==true){ return 'https://www.ic-hongda.com/'+url; } var action_array = url.split('?'); url_model = $("#niushop_url_model").val(); if(url_model==1 || url_model==true) { var base_url = 'https://www.ic-hongda.com/'+action_array[0]; var tag = '?'; }else{ var base_url = 'https://www.ic-hongda.com?s=/'+ action_array[0]; var tag = '&'; } if(action_array[1] != '' && action_array[1] != null){ return base_url + tag + action_array[1]; }else{ return base_url; } } } function __IMG(img_path){ var path = ""; if(img_path != undefined && img_path != ""){ if(img_path.indexOf("http://") == -1 && img_path.indexOf("https://") == -1){ path = "https://files.ic-hongda.com\/"+img_path; }else{ path = img_path; } } return path; }