weixin_common.js 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523
  1. //切换发布版本 true:正式版,连接生产环境;false:测试版,连接测试环境。
  2. //var publish_version = true;
  3. var publish_version = false;
  4. if(publish_version){
  5. //正式环境(城市i健康)
  6. var server = "http://srijk.yihu.com/wlyy/";
  7. var appId = "wx49aa3a51b0aca27d";
  8. var urlName = "wlyy";
  9. var weixinUrl = "srijk.yihu.com";
  10. var agentName = "wlyyAgent";
  11. var agentName1 = "wlyyAgent1";
  12. var OpenidAgent = "OpenidAgent";
  13. var judgeAgent = "judgeAgent";
  14. var pageName = "pageurl";
  15. var wxurl = "http%3a%2f%2fwww.srijk.com%2fwlyy%2fwx%2fhtml";
  16. var imurl="http://27.154.233.186:3030";
  17. var imgUrlDomain = 'http://srijk.yihu.com/';
  18. var profileServer = "http://srijk.yihu.com"; // 健康档案(上饶)服务地址
  19. var registrationServer = "https://wxauth.yihu.com";// 预约挂号服务地址
  20. var yuYueAppId = "9000424";//预约挂号-应用ID
  21. var hospitalId = "1025056";//预约挂号-上饶县人民医院的id
  22. }else{
  23. //测试环境
  24. var server = "http://ehr.yihu.com/csijk/";
  25. // var server = "http://172.19.103.72:9096/wlyy/";
  26. // var server = "http://192.168.131.24:8082/";//仕杰
  27. // var server = "http://192.168.131.102:8081/";//伟达
  28. // var server = "http://192.168.131.127:8081/";//逸祥
  29. // var server = "http://192.168.131.133:8080/";//文杰
  30. //var server = "http://192.168.131.250:8081/";
  31. //var server = "http://192.168.131.131:8080/"; //文斌
  32. var appId = "wx0a06b75a40b28f2a";
  33. var urlName = "wlyy";
  34. var weixinUrl = "srijk.yihu.com";
  35. var agentName = "wlyyAgent";
  36. var agentName1 = "wlyyAgent1";
  37. var OpenidAgent = "OpenidAgent";
  38. var judgeAgent = "judgeAgent";
  39. var pageName = "pageurl";
  40. var wxurl = "http%3a%2f%2fwww.srijk.com%2fwlyy%2fwx%2fhtml";
  41. var imurl="http://172.19.103.72:3000";
  42. // var imurl="http://192.168.131.24:3000";//仕杰
  43. var imgUrlDomain = 'http://172.19.103.54/';
  44. var profileServer = "http://ehr.yihu.com"; // 健康档案(上饶)服务地址
  45. var registrationServer = "https://mguidewebtest.yihu.com";// 预约挂号服务地址
  46. var yuYueAppId = "9000424";//预约挂号-应用ID
  47. var hospitalId = "1024727";//预约挂号-健康之路(演示医院)
  48. }
  49. //添加openid白名单,只有这个名单内的openid才可以在线支付
  50. var openidList = [];
  51. //设置变量,控制是否可以在线支付
  52. var canPayOnline = true;
  53. if(GetRequest().openid){
  54. checkCanPayOnline(GetRequest().openid);
  55. }
  56. //添加处方功能的openid白名单
  57. var prescriptionOpenidList = ['123456'];
  58. var canPrescription = true;
  59. if(GetRequest().openid){
  60. checkCanPrescription(GetRequest().openid);
  61. }
  62. //保存userAgent
  63. function wxSaveUserAgent(id, uid, openid, token,lastUid) {
  64. if(window.localStorage.getItem(agentName)){
  65. window.localStorage.removeItem(agentName);
  66. }
  67. var userAgent = {
  68. id: id,
  69. uid: uid,
  70. openid: openid,
  71. token: token,
  72. lastUid: (lastUid ? lastUid:""),
  73. platform: 3
  74. }
  75. userAgent = JSON.stringify(userAgent);
  76. // var userAgent = "{\"id\":" + id + ",\"uid\":\"" + uid + "\",\"openid\":\"" + openid + "\",\"token\":\"" + token + "\",\"lastUid\":\"" + (lastUid ? lastUid:"") + "\",\"platform\":3}";
  77. window.localStorage.setItem(agentName, userAgent);
  78. return userAgent;
  79. }
  80. //保存userAgent1
  81. function wxSaveUserAgent1(uid, name, photo) {
  82. if(window.localStorage.getItem(agentName1)){
  83. window.localStorage.removeItem(agentName1);
  84. }
  85. var userAgent = {
  86. uid: uid,
  87. name: name,
  88. photo: photo
  89. }
  90. userAgent = JSON.stringify(userAgent);
  91. // var userAgent = "{\"uid\":" + uid + ",\"name\":\"" + name + "\",\"photo\":\"" + photo + "\"}";
  92. window.localStorage.setItem(agentName1, userAgent);
  93. return userAgent;
  94. }
  95. //保存openid
  96. function saveAgentOpenid(openid){
  97. if(window.localStorage.getItem(OpenidAgent)){
  98. window.localStorage.removeItem(OpenidAgent);
  99. }
  100. var agentOpenid = "{\"openid\":\"" + openid + "\"}";
  101. window.localStorage.setItem(OpenidAgent, agentOpenid);
  102. }
  103. //保存页面跳转值
  104. function saveAgentJudge(judge){
  105. if(window.localStorage.getItem(judgeAgent)){
  106. window.localStorage.removeItem(judgeAgent);
  107. }
  108. var agentJudge = "{\"judge\":" + judge + "}";
  109. window.localStorage.setItem(judgeAgent, agentJudge);
  110. }
  111. //保存跳转页面到agent
  112. function saveAgentPage(pageurl){
  113. if(window.localStorage.getItem(pageName)){
  114. window.localStorage.removeItem(pageName);
  115. }
  116. var agentPage = "{\"pageurl\":\"" + pageurl + "\"}";
  117. window.localStorage.setItem(pageName, agentPage);
  118. //如果页面中有code这个参数,及微信授权返回的code,将这个code保存在storage中
  119. if(pageurl.indexOf("code=") > -1){
  120. var arr = pageurl.split("code=");
  121. var code = arr[1].split("&")[0];
  122. window.localStorage.setItem("weixinCode", code);
  123. }
  124. }
  125. //清空所有的agent
  126. function clearAgent(){
  127. if(window.localStorage.getItem(agentName)){
  128. window.localStorage.removeItem(agentName);
  129. }
  130. if(window.localStorage.getItem(agentName1)){
  131. window.localStorage.removeItem(agentName1);
  132. }
  133. window.localStorage.removeItem("weixinCode"); //清楚缓存的code
  134. // if(window.localStorage.getItem(OpenidAgent)){
  135. // window.localStorage.removeItem(OpenidAgent);
  136. // }
  137. }
  138. //获取链接上的参数
  139. function GetRequest() {
  140. var url = location.search; //获取url中"?"符后的字串
  141. var theRequest = new Object();
  142. if (url.indexOf("?") != -1) {
  143. var str = url.substr(1);
  144. strs = str.split("&");
  145. for(var i = 0; i < strs.length; i ++) {
  146. theRequest[strs[i].split("=")[0]]=(strs[i].split("=")[1]);
  147. }
  148. }
  149. //添加toName的信息
  150. if(theRequest.toName){
  151. localStorage.setItem("toName", theRequest.toName);
  152. }
  153. return theRequest;
  154. }
  155. //新的判断用户是否登录的方法,先校验openid是否一致
  156. function checkUserAgent(){
  157. var Request = new Object();
  158. Request = GetRequest();
  159. var code = Request["code"];
  160. var userAgent = window.localStorage.getItem(agentName);
  161. var agentCode = localStorage.getItem("weixinCode");
  162. if(code == "" || code == null || code == undefined){
  163. if(agentCode){
  164. //存在agentCode,说明一定获取openid成功过。
  165. if(!userAgent){
  166. var agentOpenids = window.localStorage.getItem(OpenidAgent);
  167. agentOpenids = JSON.parse(agentOpenids);
  168. var url = window.parent.location.href;
  169. saveAgentPage(url);
  170. window.location.href = "../../home/html/login.html?type=0&openid=" + agentOpenids.openid;
  171. }else{
  172. try{
  173. var agentOpenids = window.localStorage.getItem(OpenidAgent);
  174. if(agentOpenids){
  175. agentOpenids = JSON.parse(agentOpenids);
  176. checkCanPayOnline(agentOpenids.openid);
  177. checkCanPrescription(agentOpenids.openid);
  178. }
  179. queryInit();
  180. }catch(e){
  181. }
  182. }
  183. }else{
  184. if(!userAgent){
  185. // d.close();
  186. // dialog({contentType:'tipsbox', skin:'bk-popup' , content:'授权失败',bottom:true}).show();
  187. //模板消息的情况,模板消息带上openid的值给页面
  188. var openid = Request['openid'];
  189. saveAgentOpenid(openid);
  190. var url = window.parent.location.href;
  191. saveAgentPage(url);
  192. window.location.href = "../../home/html/login.html?type=0&openid=" + openid;
  193. }else{
  194. try{
  195. checkCanPayOnline(Request['openid']);
  196. checkCanPrescription(Request['openid']);
  197. queryInit();
  198. }catch(e){
  199. }
  200. }
  201. }
  202. }
  203. else{
  204. //校验code与缓存中的code是否一致,一致的话则不再向后端获取openid,因为code只能使用一次
  205. if(agentCode && (code == agentCode)){
  206. try{
  207. var agentOpenids = window.localStorage.getItem(OpenidAgent);
  208. if(agentOpenids){
  209. agentOpenids = JSON.parse(agentOpenids);
  210. checkCanPayOnline(agentOpenids.openid);
  211. checkCanPrescription(agentOpenids.openid)
  212. }
  213. queryInit();
  214. }catch(e){
  215. }
  216. }else{
  217. //校验登录的openid是否与缓存中存在的一致
  218. // d.show();
  219. sendPost('weixin/getOpenidByCode', {code: code}, 'json', 'post', openidFailed, function(res){
  220. if (res.status == 200) {
  221. //d.close();
  222. localStorage.setItem("weixinCode", code);
  223. var openid = res.openid,
  224. agentOpenids = window.localStorage.getItem(OpenidAgent),
  225. agentOpenid = agentOpenids && JSON.parse(agentOpenids).openid;
  226. saveAgentOpenid(openid);
  227. if( agentOpenid == openid){
  228. if(!userAgent){
  229. var url = window.parent.location.href;
  230. saveAgentPage(url);
  231. window.location.href = "../../home/html/login.html?type=0&openid=" + openid;
  232. }else{
  233. try{
  234. checkCanPayOnline(openid);
  235. checkCanPrescription(openid);
  236. queryInit();
  237. }catch(e){
  238. }
  239. }
  240. }else{
  241. var url = window.parent.location.href;
  242. saveAgentPage(url);
  243. window.location.href = server + "wx/html/home/html/login.html?type=0&openid=" + openid;
  244. }
  245. } else {
  246. openidFailed(res);
  247. }
  248. });
  249. }
  250. }
  251. }
  252. //判断用户是否登录
  253. function checkUserAgent1(){
  254. var userAgent = window.localStorage.getItem(agentName);
  255. if(!userAgent){
  256. var agentOpenid = window.localStorage.getItem(OpenidAgent);
  257. if(!agentOpenid||agentOpenid=="undefined"){
  258. var Request = new Object();
  259. Request = GetRequest();
  260. var code = Request["code"];
  261. if(code == "" || code == null || code == undefined){
  262. d.close();
  263. dialog({contentType:'tipsbox', skin:'bk-popup' , content:'授权失败',bottom:true}).show();
  264. }
  265. else{
  266. d.show();
  267. var data = {};
  268. data.code = code;
  269. sendPost('weixin/getOpenidByCode', data, 'json', 'post', openidFailed, openidSuccess);
  270. }
  271. }
  272. else{
  273. var jsonstr = $.parseJSON(agentOpenid);
  274. var openid = jsonstr.openid;
  275. if((pagetype>=20&&pagetype<=27) || pagetype=='-1' || pagetype==3 || !pagetype){
  276. pagetype = 0;
  277. window.localStorage.setItem(pageName, JSON.stringify({pageurl: location.href}))
  278. }
  279. // window.location.href = server + "wx/html/home/html/zhmm-login.html?type=" + pagetype + "&openid=" + openid;
  280. window.location.href = "../../home/html/login.html?type=" + pagetype //+ "&openid=" + openid;
  281. }
  282. }
  283. else{
  284. try{
  285. queryInit();
  286. }catch(e){
  287. }
  288. }
  289. }
  290. //判断openid是否在可以在线支付的白名单里面
  291. function checkCanPayOnline(id){
  292. if(id && openidList.indexOf(id)>-1){
  293. canPayOnline = true;
  294. }
  295. }
  296. //判断openid是否在可以开启处方功能的白名单中
  297. function checkCanPrescription(id){
  298. if(id && prescriptionOpenidList.indexOf(id)>-1){
  299. canPrescription = true;
  300. }
  301. }
  302. //成功
  303. function openidSuccess(res) {
  304. if (res.status == 200) {
  305. var openid = res.openid;
  306. saveAgentOpenid(openid);
  307. window.location.href = server + "wx/html/home/html/zhmm-login.html?type=" + pagetype + "&openid=" + openid;
  308. } else {
  309. openidFailed(res);
  310. }
  311. }
  312. //失败
  313. function openidFailed(res) {
  314. d.close();
  315. // if(window.localStorage.getItem(OpenidAgent)){
  316. // window.localStorage.removeItem(OpenidAgent);
  317. // }
  318. if (res && res.msg) {
  319. dialog({contentType:'tipsbox', skin:'bk-popup' , content:res.msg,bottom:true}).show();
  320. } else {
  321. dialog({contentType:'tipsbox', skin:'bk-popup' , content:'获取认证信息失败',bottom:true}).show();
  322. }
  323. }
  324. //判断用户是否有签约
  325. function checkSign(type){
  326. d.show();
  327. var userAgent = window.localStorage.getItem(agentName);
  328. if(userAgent){
  329. var data = {};
  330. $.ajax(server + "patient/is_sign", {
  331. data: data,
  332. type: 'POST',
  333. dataType: 'json',
  334. beforeSend: function(request) {
  335. request.setRequestHeader("userAgent", userAgent);
  336. },
  337. error: function(res) {
  338. d.close();
  339. if(res.status == 999 || res.status == 998 || res.status == 997){
  340. loginUrl(res.status);
  341. return;
  342. }
  343. dialog({contentType:'tipsbox', skin:'bk-popup' , content:'校验失败',bottom:true}).show();
  344. },
  345. success: function(res) {
  346. d.close();
  347. if(res.status == 999 || res.status == 998 || res.status == 997){
  348. loginUrl(res.status);
  349. }
  350. else if (res.status == 200) {
  351. var is_sign = res.data;//0未签约,1已签约
  352. if(is_sign == 0){
  353. dialog({
  354. title: '提示',
  355. content: '您还未签约,请先签约,谢谢!',
  356. okValue:'签约',
  357. ok: function (){
  358. window.location.href = server + "wx/html/ssgg/html/choose-region.html";
  359. },
  360. cancelValue: '不了',
  361. cancel: function () {
  362. return;
  363. }
  364. }).showModal();
  365. }else{
  366. if(type == 1){
  367. window.location.href = server + "wx/html/zxwz/html/teachers-consult-commit.html";
  368. }
  369. }
  370. } else {
  371. dialog({contentType:'tipsbox', skin:'bk-popup' , content:res.msg,bottom:true}).show();
  372. }
  373. }
  374. });
  375. }
  376. else{
  377. dialog({contentType:'tipsbox', skin:'bk-popup' , content:'用户信息错误',bottom:true}).show();
  378. }
  379. }
  380. var toUsers = localStorage.getItem("toUser");
  381. var curId = localStorage.getItem("id");
  382. var toName = localStorage.getItem("toName");
  383. var consultCode = localStorage.getItem("consultCode");
  384. var article = localStorage.getItem("article");
  385. var pageUrl = {
  386. /**通用跳转**/
  387. 0:function(){
  388. var pageurl = "";
  389. var agentPage = window.localStorage.getItem(pageName);
  390. if(agentPage){
  391. var jsonstr = $.parseJSON(agentPage);
  392. pageurl = jsonstr.pageurl;
  393. }
  394. if(pageurl){
  395. return pageurl;
  396. }else{
  397. return "../../grzx/html/my-detail.html";
  398. }
  399. }(),
  400. //关注咨询列表
  401. "1": "../../yszx/html/doctor-consultation.html",
  402. //我的关注医生列表
  403. "2": "../../yszx/html/focused-doctor.html",
  404. //查找医生
  405. "3": "../../yszx/html/select-consult-doctor.html",
  406. //个人中心
  407. "4": "../../grzx/html/my-detail.html",
  408. // 健康档案
  409. "5": "../../profile/html/index.html",
  410. //我的家庭
  411. "6":"../../jtgx/html/family.html",
  412. /**医生指导详情**/
  413. "25":"../../yszd/html/guidance-detail.html?openid="+0+"&toUser="+toUsers+"&id="+curId+"&toName="+toName,
  414. // /**新的健康教育详情**/
  415. "50":"../../jkjy/html/article2.html?dataId="+article+"&toUser="+toUsers+"&toName="+toName,
  416. //预约挂号
  417. "51": "../../wdyy/html/yuyueguahao.html",
  418. //预约记录
  419. "52": "../../wdyy/html/yuyuejilu.html",
  420. ///**签约管理首页**/ "-1":"../../qygl/html/signing-doctors.html",//签约管理首页
  421. ///**医生咨询首页**/ 1:"../../yszx/html/doctor-consultation.html",
  422. ///**医生指导首页**/ 3:"../../yszd/html/doctor-guidance.html",//医生指导首页
  423. ///**疾病社区首页**/ 4:"../../jbsq/html/disease-community.html",//疾病社区首页
  424. ///**健康记录首页**/ 5:"../../jkjl/html/health-record.html",//健康记录
  425. ///**我的设备首页**/ 6:"../../wdsb/html/my-equipments.html",//我的设备
  426. ///**我的资料首页**/ 11:"../../grzx/html/my-detail.html",
  427. ///**我的设备首页**/ 15:"../../wdsb/html/my-equipments.html",
  428. ///**签约选择医生**/ 16:"../../qygl/html/select-doctor.html",
  429. ///**签约搜索医生**/ 17:"../../qygl/html/search-doctor.html",
  430. ///**签约医生主页**/ 18:function(){
  431. // var doctor = localStorage.getItem("doccode");
  432. // return "../../ssgg/html/doctor-homepage-new.html?openid="+0+"&state="+doctor;
  433. // }(),
  434. ///**我的预约首页**/ 20:"../../wdyy/html/my-appointment.html",
  435. ///**预约挂号提交**/ 21:"https://open.weixin.qq.com/connect/oauth2/authorize?appid="+appId+"&redirect_uri="+wxurl+"%2fwdyy%2fhtml%2finfo-confirm.html&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect",
  436. // 22:"../../jtgx/html/family.html",
  437. ///**预约详情首页**/ 23:"../../wdyy/html/detail-appointment.html?openid="+0+"&toUser="+toUsers+"&id="+curId+"&toName="+toName,
  438. ///**医生咨询详情**/ 24:"../../yszx/html/consulting-doctor.html?openid="+0+"&toUser="+toUsers+"&consult="+consultCode+"&toName="+toName,
  439. ///**医生指导详情**/ 25:"../../yszd/html/guidance-detail.html?openid="+0+"&toUser="+toUsers+"&id="+curId+"&toName="+toName,
  440. ///**健康教育**/ 26:"../../jkjy/html/article_list.html",
  441. ///**健康详情**/ 27:function(){
  442. // var artoUser = localStorage.getItem("toUser");
  443. // var article = localStorage.getItem("article");
  444. // return "../../jkjy/html/article.html?dataId="+article+"&toUser="+artoUser+"&toName="+toName;
  445. // }(),
  446. // /**新的健康详情**/ 50:function(){
  447. // var artoUser = localStorage.getItem("toUser");
  448. // var article = localStorage.getItem("article");
  449. // return "../../jkjy/html/article2.html?dataId="+article+"&toUser="+artoUser+"&toName="+toName;
  450. // }(),
  451. // 28:"../../jkda/html/jiuzhenjilu.html",
  452. // 29:"../../jkda/html/jianchajianyan.html",
  453. // 30:"../../survey/html/survey_info.html?openid="+0+"&toUser="+toUsers+"&toName="+toName+"&survey_id="+localStorage.getItem("survey_id"),
  454. ///**签约管理首页2**/ 31:"../../qygl/html/signing_management.html",//签约管理首页
  455. ///*社区体检*/ 32: "../../jkda/html/jiankangtijian.html",
  456. ///*续签页面*/ 33: "../../xuqian/html/information.html",
  457. ///**意见反馈**/ 34:"../../yjfk/html/feedback.html",
  458. ///**公共咨询**/ 36:"../../jbsq/html/public-consult-detail.html",
  459. ///*处方记录 */ 38: "../../prescription/html/prescription_records.html",
  460. ///*续方订单跟踪页*/ 41: '../../prescription/html/order_tracking.html?openid='+0+'&toUser='+toUsers+'&toName='+toName+'&code='+window.localStorage.getItem("prescriptionCode"),
  461. /////*续方记录页*/ 42: '../../prescription/html/re-prescription_info.html?openid='+0+'&toUser='+toUsers+'&toName='+toName+'&code='+window.localStorage.getItem("prescriptionCode"),
  462. // /*孕检计划*/ 45: "../../fybj/html/yunjianjihua.html",
  463. // /*免疫计划*/ 46: "../../fybj/html/mianyijihua.html",
  464. // /*慢病管理修改*/ 47: "../../jbsq/html/slow-disease-manage.html",
  465. // /**免疫预约首页**/ 48:"../../wdyy/html/immune-appointment.html",
  466. // /**免疫预约详情页**/ 49:"../../wdyy/html/detail-immune-appointment.html"
  467. }
  468. Date.prototype.Format = function(formatStr)
  469. {
  470. var str = formatStr;
  471. var Week = ['日','一','二','三','四','五','六'];
  472. str=str.replace(/yyyy|YYYY/,this.getFullYear());
  473. str=str.replace(/yy|YY/,(this.getYear() % 100)>9?(this.getYear() % 100).toString():'0' + (this.getYear() % 100));
  474. str=str.replace(/MM/,this.getMonth()>8?(this.getMonth()+1).toString():'0' + (this.getMonth()+1));
  475. str=str.replace(/M/g,this.getMonth()+1);
  476. str=str.replace(/w|W/g,Week[this.getDay()]);
  477. str=str.replace(/dd|DD/,this.getDate()>9?this.getDate().toString():'0' + this.getDate());
  478. str=str.replace(/d|D/g,this.getDate());
  479. str=str.replace(/hh|HH/,this.getHours()>9?this.getHours().toString():'0' + this.getHours());
  480. str=str.replace(/h|H/g,this.getHours());
  481. str=str.replace(/mm/,this.getMinutes()>9?this.getMinutes().toString():'0' + this.getMinutes());
  482. str=str.replace(/m/g,this.getMinutes());
  483. str=str.replace(/ss|SS/,this.getSeconds()>9?this.getSeconds().toString():'0' + this.getSeconds());
  484. str=str.replace(/s|S/g,this.getSeconds());
  485. return str;
  486. }
  487. var cnzz_protocol = (("https:" == document.location.protocol) ? " https://" : " http://");
  488. //document.write(unescape("%3Cspan style='display:none' id='cnzz_stat_icon_1265315380'%3E%3C/span%3E%3Cscript src='" + cnzz_protocol + "s22.cnzz.com/z_stat.php%3Fid%3D1265315380' type='text/javascript'%3E%3C/script%3E"));