PageSourceSearch

https://img.233.com/tongji/growingio.js?v=4

js 233.com collected 2026-09-25 04:33:32 UTC 92,862 bytes, 2,489 lines download raw bytes

1var gio_hostname = window.location.hostname;
2var gio_newequipments; //1pc 2wap
3//调用设备平台识别
4newequipment();
5
6var gio_pathNameArr = window.location.pathname.substr(1).split('/');
7for (var i = 0; i < gio_pathNameArr.length; i++) {
8  if (gio_pathNameArr[i] == "" || typeof (gio_pathNameArr[i]) == "undefined") {
9    gio_pathNameArr.splice(i, 1);
10    i = i - 1;
11  }
12}
13
14
15
16//上一个页面地址
17var gio_oldPageHref = "";
18
19// function setHrefCookie(){
20//   var href = location.href;
21//   if(!(href === _gio233CookieMethod.getCookie("currentPageHref"))){
22//     gio_oldPageHref = _gio233CookieMethod.getCookie("currentPageHref") ? _gio233CookieMethod.getCookie("currentPageHref") : "";
23//     _gio233CookieMethod.setCookie("currentPageHref",href,1);
24//     _gio233CookieMethod.setCookie("currentPageHref1",gio_oldPageHref,1);
25//   }else{
26//     gio_oldPageHref = _gio233CookieMethod.getCookie("currentPageHref1") ? _gio233CookieMethod.getCookie("currentPageHref1") : "";
27//   }
28// }
29
30//页面类型 栏目类型 
31var gio_page_type = "";
32var gio_column_type = "";
33
34function gio(data,du,er){
35	
36}
37
38var _gio233Method = {
39  //打开页面设置将当前页面url地址保存到cookie中
40  setHrefCookie: function(){
41    var self = this;
42    var href = location.href;
43    var hrefs = ["",""];
44    hrefs[1] = "currentPageHref=" + href;
45    var cookieHref = self.getSubCookie("refererPageHref","currentPageHref");
46    if(!(href === cookieHref)){
47      gio_oldPageHref = self.getSubCookie("refererPageHref","currentPageHref") ? self.getSubCookie("refererPageHref","currentPageHref") : "";
48      hrefs[0] = "prevPageHref=" + gio_oldPageHref;
49      self.setCookie("refererPageHref",hrefs.join("&"),1);
50    }else{
51      gio_oldPageHref = self.getSubCookie("refererPageHref","prevPageHref") ? self.getSubCookie("refererPageHref","prevPageHref") : "";
52    }
53  },
54  getSubCookie: function (name, subname) {
55    var allcookie = _gio233Method.getCookie(name);
56    var cookieValue = "";
57    var search = subname + "=";
58    if (allcookie.length > 0) {
59      offset = allcookie.indexOf(search);
60      if (offset != -1) {
61        offset += search.length;
62        end = allcookie.indexOf("&", offset);
63        if (end == -1) {
64          end = allcookie.length
65        }
66        cookieValue = allcookie.substring(offset, end)
67      }
68    }
69    return cookieValue
70  },
71  setCookie: function (cookieName, cookieValue, DayValue) {
72    var expire = "";
73    var othercookieValue;
74    var cpStr, toStr;
75    var day_value = 1;
76    if (DayValue != null) {
77      day_value = DayValue
78    }
79    othercookieValue = _gio233Method.getCookie(cookieName);
80    cpStr = "," + othercookieValue + ",";
81    toStr = "," + cookieValue + ",";
82    if (cpStr.indexOf(toStr) == -1) {
83      expire = new Date((new Date()).getTime() + day_value * 86400000);
84      expire = "; expires=" + expire.toGMTString();
85      document.cookie = cookieName + "=" + escape(cookieValue) + ";domain=.233.com;path=/" + expire
86    }
87  },
88  getCookie: function (name) {
89    var cookieValue = "";
90    var search = name + "=";
91    if (document.cookie.length > 0) {
92      offset = document.cookie.indexOf(search);
93      if (offset != -1) {
94        offset += search.length;
95        end = document.cookie.indexOf(";", offset);
96        if (end == -1) {
97          end = document.cookie.length
98        }
99        cookieValue = unescape(document.cookie.substring(offset, end))
100      }
101    }
102    return unescape(cookieValue)
103  },
104  scriptReady: function (a, b) {
105    var c = "object" == typeof a ? a : window.document.getElementById(a);
106    c.readyState ? c.onreadystatechange = function () {
107      (c.attachEvent ? "complete" === c.readyState : "loading" !== c.readyState) && (c.onreadystatechange = null, b && b())
108    } : c.onload = function () {
109      b && b()
110    }
111  },
112  getScript: function (a, b, c) {
113    var d, e = window.document.createElement("script");
114    if (e.type = "text/javascript", e.charset = "utf-8", e.defer = "defer", e.async = "async", e.src = a, b) {
115      for (d in b) {
116        e[d] = b[d]
117      }
118    }
119    window.document.getElementsByTagName("head")[0].appendChild(e), c && this.scriptReady(e, c)
120  },
121  sitedomain: function () {
122    var self = this, isshow = true;
123    if (typeof _gulpConfig18 === "object") {
124      isshow = self.domainlist();
125      self.getGro(isshow);
126      //self.implement();
127    } else {
128      self.getScript("https://img.233.com/x/plus/cf/2.0.0/config.js?v=2.0.0", {}, function () {
129        if (typeof _gulpConfig18 === "object") {
130          isshow = self.domainlist();
131          self.getGro(isshow);
132          //self.implement();
133        }
134      })
135    }
136  },
137  sitetypename: function (n) {
138    var types = _gulpConfig18.types,
139      name = "";
140    for (var i = 0; i < types.length; i++) {
141      if (parseInt(n) == parseInt(types[i].id)) {
142        name = parseInt(n) > 4 ? "其它类" : types[i].name;
143        break;
144      }
145    }
146    return name;
147  },
148  getdomainindex: function () {
149    var pathname = window.location.pathname,
150      domain = "";
151	  //console.log("pathname")
152	  //console.log(pathname)
153    if (pathname.length > 1 && (_gulpConfig18.hostname === "v.233.com" || _gulpConfig18.hostname === "wx.233.com")) {
154      var pathnames = pathname.split("/");
155	  //console.log(pathnames)
156      if (pathnames.length == 2 || pathnames.length == 3) {
157        if (pathnames.length == 3) {
158          var dd = pathnames[2];
159          if (dd.length > 0) return domain;
160        }
161        var getSites = _gulpConfig18.sites;
162        for (var i = 0; i < getSites.length; i++) {
163          if (pathnames[1].length>0 && pathnames[1] === getSites[i].doMain) {
164            domain = getSites[i].doMain;
165            break;
166          }
167          if (pathnames[1].length>0 && pathnames[1] === getSites[i].wxDoMain) {
168            domain = getSites[i].doMain;
169            break;
170          }
171        }
172      }
173    }
174    return domain;
175  },
176  getwwwdomainindex: function () {
177    var pathname = window.location.pathname,
178      domain = "";
179    if (pathname.length > 1) {
180      var pathnames = pathname.split("/");
181	  //console.log(pathnames.length)
182	  //console.log(pathnames)
183      if (pathnames.length > 2) {
184        var getSites = _gulpConfig18.sites;
185        for (var i = 0; i < getSites.length; i++) {
186          if (pathnames[1].length>0 && pathnames[1] === getSites[i].doMain) {
187            domain = getSites[i].wxDoMain && getSites[i].wxDoMain.length>0 ? getSites[i].wxDoMain : getSites[i].doMain;
188            break;
189          }
190          if (pathnames[1].length>0 && pathnames[1] === getSites[i].wxDoMain) {
191            domain = getSites[i].wxDoMain && getSites[i].wxDoMain.length>0 ? getSites[i].wxDoMain : getSites[i].doMain;
192            break;
193          }
194        }
195      }
196    }
197    return domain;
198  },
199  savePosition: function (value) {
200    // console.log(value);
201    var self = this;
202    //重新设置来源页面
203    self.setCookie("savePosition", value, 1);
204  },
205  //浏览网校列表页
206  browse_wx_list: function (options) {
207	  var self = this;
208    if (typeof _gulpConfig18 === "object") {
209      self.browse_wx_list_boby(options);
210    } else {
211      self.getScript("https://img.233.com/x/plus/cf/2.0.0/config.js?v=2.0.0", {}, function () {
212        if (typeof _gulpConfig18 === "object") {
213          self.browse_wx_list_boby(options);
214        }
215      })
216    }
217  },
218  //浏览网校列表页主体
219  browse_wx_list_boby: function (options) {
220    var self = this,
221      sites = [],
222      //来源页面 入口位置 广告位置文案
223      // pathLink = self.getCookie("pathLink"),
224      savePosition = self.getCookie("savePosition"),
225      advInfo = self.getCookie("advInfo");
226    //console.log(savePosition);
227    sites = _gulpConfig18.getSites(options);
228    // console.log(sites);
229    if (sites.length > 0) {
230      var typename = self.sitetypename(sites[0].types);
231      if (typeof gio === "function" && typename.length > 0 && sites[0].siteName.length > 0) {
232        //浏览网校列表页
233        var groData = {
234          "exam_type_var": typename,
235          "exam_name_var": sites[0].siteName,
236          // "class_name_var": options.class_name_var,
237          /*新增*/
238          //课程来源页面(事件级变量)
239          "visit_from_var": window.document.referrer ? window.document.referrer : gio_oldPageHref,
240          //页面类型(事件级变量)
241          "gio_page_type": gio_page_type ? gio_page_type : '其他',
242          //栏目类型(事件级变量)
243          "gio_column_type": gio_column_type ? gio_column_type : '其他',
244          //入口位置(事件级变量)
245          "entrance_position_var": savePosition,
246          //广告位文案
247          "ad_click_content_var": advInfo ? advInfo : ''
248        };
249        //console.log(groData);
250        //console.log(gio);
251        //新增 课程来源页面(事件级变量)、页面类型(事件级变量)、栏目类型(事件级变量)、入口位置(事件级变量)
252        gio("track", "browse_wx_list", {
253          "exam_type_var": typename,
254          "exam_name_var": sites[0].siteName,
255          // "class_name_var": options.class_name_var,
256          /*新增*/
257          //课程来源页面(事件级变量)
258          "visit_from_var": window.document.referrer ? window.document.referrer : gio_oldPageHref,
259          //页面类型(事件级变量)
260          "gio_page_type": gio_page_type ? gio_page_type : '其他',
261          //栏目类型(事件级变量)
262          "gio_column_type": gio_column_type ? gio_column_type : '其他',
263          //入口位置(事件级变量)
264          "entrance_position_var": savePosition,
265          //广告位文案
266          "ad_click_content_var": advInfo ? advInfo : ''
267        });
268        //重新设置来源页面 以及广告文案 以及入口位置
269        // self.setCookie("pathLink", window.location.href, 1);
270        //清除点击来源还有广告内容避免数据污染
271        setTimeout(function () {
272          // self.setCookie("savePosition", '', 1);
273          self.setCookie("advInfo", '', 1);
274        }, 2000);
275      }
276    }
277  },
278  //浏览网校列表页
279  browse_wx_detail: function (options) {
280	  var self = this;
281    if (typeof _gulpConfig18 === "object") {
282      self.browse_wx_detail_boby(options);
283    } else {
284      self.getScript("https://img.233.com/x/plus/cf/2.0.0/config.js?v=2.0.0", {}, function () {
285        if (typeof _gulpConfig18 === "object") {
286          self.browse_wx_detail_boby(options);
287        }
288      })
289    }
290  },
291  //浏览网校班级详情页主体
292  browse_wx_detail_boby: function (options) {
293    var self = this,
294      sites = [],
295      //来源页面 入口位置 广告位置文案
296      // pathLink = self.getCookie("pathLink"),
297      savePosition = self.getCookie("savePosition"),
298      advInfo = self.getCookie("advInfo");
299    if (typeof options.childcid === "function" && options.childcid == 520) {
300      sites = _gulpConfig18.getSites({domain: "cjjjs"});
301    } else if (typeof options.childcid === "function" && options.childcid == 52) {
302      sites = _gulpConfig18.getSites({domain: "zjjjs"});
303    } else {
304      sites = _gulpConfig18.getSites(options);
305    }
306    if (sites.length > 0) {
307      var typename = self.sitetypename(sites[0].types);
308      if (typeof gio === "function" && typename.length > 0 && sites[0].siteName.length > 0) {
309        //浏览网校班级详情页
310        var groData = {
311          "exam_type_var": typename,
312          "exam_name_var": sites[0].siteName,
313          // "class_name_var": options.class_name_var,
314          /*新增*/
315          //课程来源页面(事件级变量)
316          "visit_from_var": window.document.referrer ? window.document.referrer : gio_oldPageHref,
317          //页面类型(事件级变量)
318          "gio_page_type": gio_page_type ? gio_page_type : '其他',
319          //栏目类型(事件级变量)
320          "gio_column_type": gio_column_type ? gio_column_type : '其他',
321          //入口位置(事件级变量)
322          "entrance_position_var": savePosition,
323          //广告位文案
324          "ad_click_content_var": advInfo ? advInfo : ''
325        };
326        //console.log(groData);
327
328        gio("track", "browse_wx_detail", {
329          "exam_type_var": typename,
330          "exam_name_var": sites[0].siteName,
331          // "class_name_var": options.class_name_var,
332          /*新增*/
333          //课程来源页面(事件级变量)
334          "visit_from_var": window.document.referrer ? window.document.referrer : gio_oldPageHref,
335          //页面类型(事件级变量)
336          "gio_page_type": gio_page_type ? gio_page_type : '其他',
337          //栏目类型(事件级变量)
338          "gio_column_type": gio_column_type ? gio_column_type : '其他',
339          //入口位置(事件级变量)
340          "entrance_position_var": savePosition,
341          //广告位文案
342          "ad_click_content_var": advInfo ? advInfo : ''
343        });
344
345        //重新设置来源页面 以及广告文案
346        // self.setCookie("pathLink", window.location.href, 1);
347        //清除点击来源还有广告内容避免数据污染
348        setTimeout(function () {
349          // self.setCookie("savePosition", '', 1);
350          self.setCookie("advInfo", '', 1);
351        }, 2000);
352      }
353    }
354  },
355  //浏览课程学习页
356  browse_wx_study: function (options) {
357    var self = this,
358      //来源页面 入口位置 广告位置文案
359      // pathLink = self.getCookie("pathLink"),
360      advInfo = self.getCookie("advInfo"),
361      savePosition = self.getCookie("savePosition");
362    var sites = [];
363    setTimeout(function () {
364      if (options.domain) {
365        sites = _gulpConfig18.getSites(options);
366      } else if (options.wxClassId) {
367        var siteList = _gulpConfig18.sites;
368        for (var i = 0; i < siteList.length; i++) {
369          if (Number(siteList[i].wxClassId) === Number(options.wxClassId)) {
370            sites[0] = siteList[i];
371            break
372          }
373        }
374      }
375      if (sites.length > 0) {
376        var typename = self.sitetypename(sites[0].types);
377        if (typeof gio === "function" && typename.length > 0 && sites[0].siteName.length > 0) {
378          //浏览课程学习页
379          var groData = {
380            "exam_type_var": typename,
381            "exam_name_var": sites[0].siteName,
382            // "class_name_var": options.class_name_var,
383            /*新增*/
384            //课程来源页面(事件级变量)
385            "visit_from_var": window.document.referrer ? window.document.referrer : gio_oldPageHref,
386            //页面类型(事件级变量)
387            "gio_page_type": gio_page_type ? gio_page_type : '其他',
388            //栏目类型(事件级变量)
389            "gio_column_type": gio_column_type ? gio_column_type : '其他',
390            //入口位置(事件级变量)
391            "entrance_position_var": savePosition,
392            //广告位文案
393            "ad_click_content_var": advInfo ? advInfo : ''
394          };
395          //console.log(groData);
396
397          //新增 课程来源页面(事件级变量)、页面类型(事件级变量)、栏目类型(事件级变量)、入口位置(事件级变量)
398          gio("track", "browse_wx_study", {
399            "exam_type_var": typename,
400            "exam_name_var": sites[0].siteName,
401            // "class_name_var": options.class_name_var,
402            /*新增*/
403            //课程来源页面(事件级变量)
404            "visit_from_var": window.document.referrer ? window.document.referrer : gio_oldPageHref,
405            //页面类型(事件级变量)
406            "gio_page_type": gio_page_type ? gio_page_type : '其他',
407            //栏目类型(事件级变量)
408            "gio_column_type": gio_column_type ? gio_column_type : '其他',
409            //入口位置(事件级变量)
410            "entrance_position_var": savePosition,
411            //广告位æ–
411‡æ¡ˆ
412            "ad_click_content_var": advInfo ? advInfo : ''
413          });
414
415          //重新设置来源页面 以及广告文案
416          // self.setCookie("pathLink", window.location.href, 1);
417          //清除点击来源还有广告内容避免数据污染
418          setTimeout(function () {
419            // self.setCookie("savePosition", '', 1);
420            self.setCookie("advInfo", '', 1);
421          }, 2000);
422
423        }
424      }
425    }, 1500);
426  },
427  //高品质学习课程
428  browse_m_study: function (options) {
429	  var self = this;
430    if (typeof _gulpConfig18 === "object") {
431      self.browse_m_study_boby(options);
432    } else {
433      self.getScript("https://img.233.com/x/plus/cf/2.0.0/config.js?v=2.0.0", {}, function () {
434        if (typeof _gulpConfig18 === "object") {
435          self.browse_m_study_boby(options);
436        }
437      })
438    }
439  },
440  //高品质学习课程
441  browse_m_study_boby: function (options) {
442    var self = this,
443      //来源页面 入口位置 广告位置文案
444      // pathLink = self.getCookie("pathLink"),
445      advInfo = self.getCookie("advInfo"),
446      savePosition = self.getCookie("savePosition");
447    var sites = [];
448
449    setTimeout(function () {
450      if (options.domain) {
451        sites = _gulpConfig18.getSites(options);
452      } else if (options.wxClassId) {
453        var siteList = _gulpConfig18.sites;
454        for (var i = 0; i < siteList.length; i++) {
455          if (Number(siteList[i].wxClassId) === Number(options.wxClassId)) {
456            sites[0] = siteList[i];
457            break
458          }
459        }
460      }
461      if (sites.length > 0) {
462        var typename = self.sitetypename(sites[0].types);
463        if (typeof gio === "function" && typename.length > 0 && sites[0].siteName.length > 0) {
464          //高品质学习课程
465          var groData = {
466            "exam_type_var": typename,
467            "exam_name_var": sites[0].siteName,
468            // "class_name_var": options.class_name_var,
469            /*新增*/
470            //课程来源页面(事件级变量)
471            "visit_from_var": window.document.referrer ? window.document.referrer : gio_oldPageHref,
472            //页面类型(事件级变量)
473            "gio_page_type": gio_page_type ? gio_page_type : '其他',
474            //栏目类型(事件级变量)
475            "gio_column_type": gio_column_type ? gio_column_type : '其他',
476            //入口位置(事件级变量)
477            "entrance_position_var": savePosition,
478            //广告位文案
479            "ad_click_content_var": advInfo ? advInfo : ''
480          };
481          //console.log(groData);
482          //新增 课程来源页面(事件级变量)、页面类型(事件级变量)、栏目类型(事件级变量)、入口位置(事件级变量)
483          gio("track", "browse_m_study", {
484            "exam_type_var": typename,
485            "exam_name_var": sites[0].siteName,
486            // "class_name_var": options.class_name_var,
487            /*新增*/
488            //课程来源页面(事件级变量)
489            "visit_from_var": window.document.referrer ? window.document.referrer : gio_oldPageHref,
490            //页面类型(事件级变量)
491            "gio_page_type": gio_page_type ? gio_page_type : '其他',
492            //栏目类型(事件级变量)
493            "gio_column_type": gio_column_type ? gio_column_type : '其他',
494            //入口位置(事件级变量)
495            "entrance_position_var": savePosition,
496            //广告位文案
497            "ad_click_content_var": advInfo ? advInfo : ''
498          });
499
500          //重新设置来源页面 以及广告文案
501          // self.setCookie("pathLink", window.location.href, 1);
502          //清除点击来源还有广告内容避免数据污染
503          setTimeout(function () {
504            // self.setCookie("savePosition", '', 1);
505            self.setCookie("advInfo", '', 1);
506          }, 2000);
507
508        }
509      }
510    }, 1500);
511  },
512  //每日一讲
513  browse_daily_study: function (options) {
514	  var self = this;
515    if (typeof _gulpConfig18 === "object") {
516      self.browse_daily_study_boby(options);
517    } else {
518      self.getScript("https://img.233.com/x/plus/cf/2.0.0/config.js?v=2.0.0", {}, function () {
519        if (typeof _gulpConfig18 === "object") {
520          self.browse_daily_study_boby(options);
521        }
522      })
523    }
524  },
525  //每日一讲
526  browse_daily_study_boby: function (options) {
527    var self = this,
528      //来源页面 入口位置 广告位置文案
529      // pathLink = self.getCookie("pathLink"),
530      advInfo = self.getCookie("advInfo"),
531      savePosition = self.getCookie("savePosition");
532    var sites = [];
533
534    setTimeout(function () {
535      if (options.domain) {
536        sites = _gulpConfig18.getSites(options);
537      } else if (options.wxClassId) {
538        var siteList = _gulpConfig18.sites;
539        for (var i = 0; i < siteList.length; i++) {
540          if (Number(siteList[i].wxClassId) === Number(options.wxClassId)) {
541            sites[0] = siteList[i];
542            break
543          }
544        }
545      }
546      if (sites.length > 0) {
547        var typename = self.sitetypename(sites[0].types);
548        if (typeof gio === "function" && typename.length > 0 && sites[0].siteName.length > 0) {
549          //每日一讲
550          var groData = {
551            "exam_type_var": typename,
552            "exam_name_var": sites[0].siteName,
553            // "class_name_var": options.class_name_var,
554            /*新增*/
555            //课程来源页面(事件级变量)
556            "visit_from_var": window.document.referrer ? window.document.referrer : gio_oldPageHref,
557            //页面类型(事件级变量)
558            "gio_page_type": gio_page_type ? gio_page_type : '其他',
559            //栏目类型(事件级变量)
560            "gio_column_type": gio_column_type ? gio_column_type : '其他',
561            //入口位置(事件级变量)
562            "entrance_position_var": savePosition,
563            //广告位文案
564            "ad_click_content_var": advInfo ? advInfo : ''
565          };
566          //console.log(groData);
567          //新增 课程来源页面(事件级变量)、页面类型(事件级变量)、栏目类型(事件级变量)、入口位置(事件级变量)
568          gio("track", "browse_daily_study", {
569            "exam_type_var": typename,
570            "exam_name_var": sites[0].siteName,
571            // "class_name_var": options.class_name_var,
572            /*新增*/
573            //课程来源页面(事件级变量)
574            "visit_from_var": window.document.referrer ? window.document.referrer : gio_oldPageHref,
575            //页面类型(事件级变量)
576            "gio_page_type": gio_page_type ? gio_page_type : '其他',
577            //栏目类型(事件级变量)
578            "gio_column_type": gio_column_type ? gio_column_type : '其他',
579            //入口位置(事件级变量)
580            "entrance_position_var": savePosition,
581            //广告位文案
582            "ad_click_content_var": advInfo ? advInfo : ''
583          });
584
585          //重新设置来源页面 以及广告文案
586          // self.setCookie("pathLink", window.location.href, 1);
587          //清除点击来源还有广告内容避免数据污染
588          setTimeout(function () {
589            // self.setCookie("savePosition", '', 1);
590            self.setCookie("advInfo", '', 1);
591          }, 2000);
592
593        }
594      }
595    }, 1500);
596  },
597  domainlist: function () {
598    if (_gulpConfig18.hostname === "www.233.com" || _gulpConfig18.hostname === "m.233.com") {
599      var domain = _gulpConfig18.getDomain();
600      var domainList = [];
601      if (window._gulpConfig18) {
602        var getSites = window._gulpConfig18.sites;
603        for (var i = 0; i < getSites.length; i++) {
604          domainList.push(getSites[i].doMain);
605        }
606      }
607      var bools = getArrIsSame(domainList, [domain]);
608      if (bools === false) {
609        return true
610      } else {
611        if (domain === "" || "#jianli#cpa#zhongji#chuji#ccbp#zq#qh#hr#yaoshi#sf#jzs1#jzs2#cfe#jjs#jjcy#cjjjs#zjjjs#gjjjs#teacher#teacherms#shgzz#jszp#chengkao#tegang#hushi#zaojia#kaoyan#aq#".indexOf("#" + domain + "#") > -1) {
612          return true
613        } else {
614          return false
615        }
616      }
617    }
618    return true
619  },
620  examNamePvar: function () {
621    var self = this;
622    if (typeof _gulpConfig18 === "object") {
623      self.getDomain()
624    } else {
625      self.getScript("https://img.233.com/x/plus/cf/2.0.0/config.js?v=2.0.0", {}, function () {
626        if (typeof _gulpConfig18 === "object") {
627          self.getDomain()
628        }
629      })
630    }
631  },
632  getDomain: function () {
633    if (!(_gulpConfig18.hostname === "www.233.com" || _gulpConfig18.hostname === "wx.233.com" || _gulpConfig18.hostname === "m.233.com")) {
634      return
635    }
636    var domain = _gulpConfig18.getDomain(),
637      sites = [];
638    if (domain != "") {
639      sites = (_gulpConfig18.hostname === "www.233.com" || _gulpConfig18.hostname === "m.233.com") ? _gulpConfig18.getSitesByDomain(domain) : _gulpConfig18.getSitesByWxDomain(domain);
640      if (sites.length > 0) {
641        var site = sites[0];
642        typeof gio === "function" && gio("page.set", "exam_name_pvar", site.siteName)
643      }
644      if (_gulpConfig18.hostname === "www.233.com" || _gulpConfig18.hostname === "m.233.com") {
645        if (sites.length > 0) {
646          var site = sites[0];
647          typeof gio === "function" && gio("page.set", "site_name", site.siteName)
648        }
649      }
650    }
651  },
652  getstrNaN: function (e) {
653    var iskong = false;
654    if (e == null) {
655      return true
656    }
657    if (e.length < 1) {
658      return true
659    }
660    return iskong
661  },
662  getOriginChannelform: function (e) {
663    var _self= this,
664		OriginChannelform = window.document.referrer,
665		query = window.location.search;
666		//console.log(OriginChannelform);
667	if(typeof query !== "undefined" && query.indexOf("utm_source") > -1){
668		query = query.substring(1);
669		var vars = query.split("&");
670		for (var i=0;i<vars.length;i++) {
671			   var pair = vars[i].split("=");
672			   if(pair[0] == "utm_source"){
673				   _self.setCookie("OriginChannelform",pair[1],30);
674				}
675		}
676	}else if(typeof OriginChannelform !== "undefined" && !_self.getstrN
676aN(OriginChannelform)){
677		//console.log("sdfsefwwww");
678		var referLink = document.createElement('a');
679		referLink.setAttribute("href",OriginChannelform); 
680		if(referLink !== null && document.body !== null){
681			document.body.appendChild(referLink);
682		}
683		var _host = referLink.host;
684		//console.log(_host);
685		if(_host.indexOf("233.com") == -1){
686			_self.setCookie("OriginChannelform",_host,30);
687		}
688	}
689  },
690  sdkPage_browse: function (indexdomain) {
691    var self= this;
692	//console.log("执行")
693	//console.log(indexdomain)
694  	setTimeout(function(){
695  		if (typeof indexdomain !== 'undefined' && indexdomain.length > 0 && typeof _javasdkMethod === 'object' && _gulpConfig18.hostname !== "v.233.com" && "#jianli#cpa#zhongji#chuji#ccbp#zq#qh#hr#yaoshi#sf#jzs1#jzs2#cfe#cfe2#jjs#jjxs#cjjjs#zjjjs#gjjjs#teacher#teacherms#shgzz#gongzhao#ck#tegang#hushi#zaojia#kaoyan#aq#".indexOf("#" + indexdomain + "#") > -1) {
696  				_javasdkMethod.EntryEvent("page_browse", {
697  					wx_url_type: "浏览网校列表页",
698  					exam_id:0,
699  					exam_id_wxdm: indexdomain
700  				});
701  		}
702  		var href = location.href;
703  		if(href && href.indexOf("/zhuanti/")>-1 && (_gulpConfig18.hostname == "www.233.com" || _gulpConfig18.hostname == "m.233.com")){
704  			var wwwDomain = self.getwwwdomainindex();
705  			//console.log("wwwDomain:"+wwwDomain)
706  			if (typeof wwwDomain !== 'undefined' && wwwDomain.length > 0 && typeof _javasdkMethod === 'object') {
707  				_javasdkMethod.EntryEvent("click", {
708  					source_type: 2,
709  					source_url: href,
710  					act_type:101,
711  					exam_id:0,
712  					exam_id_wxdm: wwwDomain
713  				});
714  			}
715  		}
716  	},1000)
717  },
718  getGro: function (issite) {
719    var self = this;
720	//console.log(issite)
721    if (issite) {
722      window.webViewRequestSend = false;
723      // !function (e, t, n, g, i) {
724      //   e[i] = e[i] || function () {
725      //     (e[i].q = e[i].q || []).push(arguments)
726      //   }, n = t.createElement("script"), tag = t.getElementsByTagName("script")[0], n.async = 1, n.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + g, tag.parentNode.insertBefore(n, tag)
727      // }(window, document, "script", "assets.giocdn.com/2.1/gio.js", "gio");
728      // gio("init", "9212495b3b2ffbcd", {});
729      // gio("send");
730      _gio233Method.setHrefCookie();
731      gio_page_type = newsGioPage();
732      gio_column_type = newsGioColumn();
733      self.examNamePvar();
734      self.implement();
735
736      var fusername = unescape(self.getSubCookie("wxuserinforset", "username")),
737        fheadpic = unescape(self.getSubCookie("wxuserinforset", "headpic")),
738        fuid = unescape(self.getSubCookie("wxuserinforset", "userID")),
739        fclasscname = self.getCookie("fclasscname"),
740        webuserlog = self.getCookie("webuserlog");
741      if (fusername.length > 0) {
742        gio("setUserId", fuid);
743        if (fclasscname.length < 1) {
744          self.getScript("//api.233.com/v1/basic/userinfo/login?callback=useinfo2wx233", {}, function () {
745          })
746        }
747		//console.log(webuserlog + "sfsdee");
748     //    if(webuserlog.length < 1 && webuserlogold < 1) {
749     //      self.getScript("https://passport.233.com/jssdk/userlogin?callback=deefecfs&loginUrl=" + encodeURI(window.location.href), {}, function () {
750			  // self.setCookie("webuserlogold","ok");
751     //      })
752     //    }
753      }
754	  //console.log("开始")
755      var indexdomain = self.getdomainindex();
756      if (indexdomain.length > 0) {
757        self.browse_wx_list({domain: indexdomain});
758      }
759		self.getOriginChannelform();
760    }
761	//try {
762			if (typeof _javasdkMethod !== 'object') {
763				self.getScript("//img.233.com/tongji/javasdkMethod.js?v=1.2.0", {}, function () {
764					//console.log("执行1")
765					//console.log(indexdomain)
766					self.sdkPage_browse(indexdomain)
767				})
768			}else{
769				//console.log("执行2")
770				//console.log(indexdomain)
771				self.sdkPage_browse(indexdomain)
772			}
773	//} catch (e) { }
774    //v.233.com wx.233.com
775	
776    // var regs = RegExp('search/v1/study');
777    // if (regs.test(window.location.href)) {
778    //   setTimeout(function () {
779    //     self.browse_wx_study({domain: indexdomain});
780    //   }, 1200);
781    // }
782  },
783  implement: function () {
784
785    var gradeOne = [
786      {
787        value: 'course',
788        name: '课程'
789      }, {
790        value: 'tiku',
791        name: '题库'
792      }, {
793        value: 'cuxiao',
794        name: '活动'
795      }, {
796        value: 'zhuanti',
797        name: '活动'
798      }, {
799        value: 'activity',
800        name: '活动'
801      }, {
802        value: 'ebook',
803        name: '干货笔记'
804      }, {
805        value: 'datumgifts',
806        name: '资料下载'
807      }, {
808        value: 'ebooklist',
809        name: '电子教材'
810      }, {
811        value: 'zhibo',
812        name: '课程'
813      }, {
814        value: 'study',
815        name: '课程'
816      }, {
817        value: 'integral',
818        name: '账户相关'
819      }, {
820        value: 'vouchers',
821        name: '我的钱包'
822      }, {
823        value: 'order',
824        name: '我的订单'
825      }, {
826        value: 'coupon',
827        name: '我的优惠券'
828      }
829    ];
830    var tikuArr = [
831      {
832        value: 'chapter',
833        name: '章节练习'
834      }, {
835        value: 'daily',
836        name: '每日一练'
837      }, {
838        value: 'mock',
839        name: '模考大赛'
840      }, {
841        value: 'activity',
842        name: '做题闯关'
843      }, {
844        value: 'exam',
845        name: '模拟试题'
846      }, {
847        value: 'item',
848        name: '历年真题'
849      }, {
850        value: 'zuoti',
851        name: '历年真题'
852      }, {
853        value: 'paper',
854        name: '考前点题'
855      }, {
856        value: 'err',
857        name: '易错题'
858      }, {
859        value: 'history',
860        name: '我的做题记录'
861      }, {
862        value: 'errorexamnew',
863        name: '我的错题集'
864      }, {
865        value: 'notes',
866        name: '我的解析'
867      }, {
868        value: 'report',
869        name: '我的评估报告'
870      }, {
871        value: 'error',
872        name: '我的试题纠错'
873      }, {
874        value: 'shop',
875        name: '我的课程配套'
876      }, {
877        value: 'challenge',
878        name: '挑战赢积分'
879      }, {
880        value: 'favorites',
881        name: '我的试题收藏'
882      }, {
883        value: 'app',
884        name: '我的课程列表'
885      }
886    ];
887    var courseArr = [
888      {
889        value: 'learnplay',
890        name: '选课试听'
891      }, {
892        value: 'zhibo',
893        name: '直播课程'
894      }, {
895        value: 'AskDetail',
896        name: '我的课程答疑'
897      }, {
898        value: 'ask',
899        name: '我的课程答疑'
900      }, {
901        value: 'discuss',
902        name: '我的课程评价'
903      }, {
904        value: 'comment',
905        name: '我的课程评价'
906      }, {
907        value: 'allaskandnote',
908        name: '我的听课笔记'
909      }, {
910        value: 'lecture',
911        name: '我的电子讲义'
912      }, {
913        value: 'study',
914        name: '视频学习'
915      }, {
916        value: 'SpearkInfo',
917        name: '每日一讲'
918      }, {
919        value: 'newseditor',
920        name: '我的关注'
921      }
922    ];
923    var TouTiaoArr = [
924      {
925        value: 'newseditor',
926        name: '关注'
927      }, {
928        value: 'StudySignUp',
929        name: '核心考点'
930      }, {
931        value: 'bktj',
932        name: '报考条件'
933      }, {
934        value: 'bmtj',
935        name: '报考条件'
936      }, {
937        value: 'baoming',
938        name: '报考条件'
939      }, {
940        value: 'weekly',
941        name: '周刊'
942      }, {
943        value: 'zhenti',
944        name: '历年真题'
945      }, {
946        value: 'answering',
947        name: '报考答疑'
948      }, {
949        value: 'chaxun',
950        name: '报考条件'
951      }
952    ];
953    var BaoKaoArr = [
954      {
955        value: 'chaxun',
956        name: '报考条件'
957      }
958    ];
959
960    var domainList = [];
961    if (window._gulpConfig18) {
962      var getSites = window._gulpConfig18.sites;
963      for (var i = 0; i < getSites.length; i++) {
964        domainList.push(getSites[i].doMain);
965      }
966    }
967
968    if (gio_pathNameArr[0] === '' || gio_pathNameArr[0] === undefined) {
969      //PC和WAP首页 调用头条 只要是www.233的和m.233的
970      if (gio_hostname === 'www.233.com' || gio_hostname === 'm.233.com') {
971        gio('evar.set', 'Web_sourceRecent_evar', '头条');
972      }
973      if (gio_hostname === 'v.233.com' || gio_hostname === 'wx.233.com') {
974        gio('evar.set', 'Web_sourceRecent_evar', '课程');
975      }
976      //直播课程PC
977      if (gio_hostname === 'zb.233.com') {
978        gio('evar.set', 'courseSource_evar', '直播课程');
979        gio('evar.set', 'Web_sourceRecent_evar', '课程');
980      }
981      //书店
982      if (gio_hostname === 'book.233.com') {
983        gio('evar.set', 'Web_sourceRecent_evar', '书店');
984        //233网校书店
985        gio('evar.set', 'courseSource_evar', '233网校书店');
986      }
987      //登录入口
988      if (gio_hostname === 'passport.233.com') {
989        gio('evar.set', 'Web_sourceRecent_evar', '登录入口');
990      }
991    } else {
992      if (gio_hostname === 'v.233.com' || gio_hostname === 'wx.233.com' || gio_hostname === 'm.233.com' || gio_hostname === 'www.233.com') {
993        //一级入口
994        enterOne(gio_pathNameArr, gradeOne, domainList);
995      }
996
997      if (gio_hostname === 'v.233.com' || gio_hostname === 'wx.233.com') {
998        //题库入口
999        enterTiku(gio_pathNameArr, tikuArr);
1000        //选课试听
1001        studyCourse(gio_pathNameArr, domainList);
1002        //课程入口
1003        enterCourse(gio_pathNameArr, courseArr);
1004        //特殊报考条件
1005        enterBaoKao(gio_pathNameArr, BaoKaoArr);
1006      }
1007      if (gio_hostname === 'www.233.com' || gio_hostname === 'm.233.com') {
1008        //头条入口
1009        enterTouTiao(gio_pathNameArr, TouTiaoArr, domainList);
1010        //是不是社区
1011        isForum(gio_pathNameArr, domainList);
1012        if (window._dataPage !== undefined && window._dataPageV2 === undefined) {
1013          //文章详情入口
1014          enterDetails(window._dataPage, gio_pathNameArr);
1015        }
1016        if (window._dataPageV2 !== undefined) {
1017          //文章详情入口
1018          enterDetails(window._dataPageV2, domainList);
1019        }
1020      }
1021      if (gio_hostname === 'www.233.com') {
1022        if (window.post_name_var !== undefined) {
1023          //社区话题详情入口
1024          enterCommunity(window.post_name_var);
1025        }
1026        //电子教材阅读
1027        ebookRead(gio_pathNameArr);
1028      }
1029      //书店
1030      if (gio_hostname === 'book.233.com') {
1031        gio('evar.set', 'Web_sourceRecent_evar', '书店');
1032        //233网校书店
1033        gio('evar.set', 'courseSource_evar', '233网校书店');
1034      }
1035      //登录入口
1036      if (gio_hostname === 'passport.233.com') {
1037        gio('evar.set', 'Web_sourceRecent_evar', '登录入口');
1038      }
1039    }
1040  }
1041};
1042
1043
1044
1045
1046
1047//一级入口
1048function enterOne(arr1, arr2, domainList) {
1049  // console.log(arr1);
1050  var gio_hostname = window.location.hostname;
1051  if (gio_hostname === 'v.233.com' || gio_hostname === 'm.233.com' || gio_hostname === 'wx.233.com') {
1052    if (getArrIsSame(domainList, arr1) === true && arr1.length === 1) {
1053      gio('evar.set', 'Web_sourceRecent_evar', '课程');
1054    }
1055
1056    if (gio_hostname === 'wx.233.com' && getArrIsSame(domainList, arr1) === false && arr1.length === 1) {
1057      if (arr1[0] === 'integral') {
1058        gio('evar.set', 'Web_sourceRecent_evar', '账户相关');
1059        gio('evar.set', 'accountSource_evar', '我的签到');
1060      }
1061    }
1062
1063    if (gio_hostname === 'wx.233.com' && getArrIsSame(domainList, arr1) === false && arr1.length === 2) {
1064      if (arr1[0] === 'uc' && arr1[1] === 'medal') {
1065        gio('evar.set', 'Web_sourceRecent_evar', '账户相关');
1066        gio('evar.set', 'accountSource_evar', '我的勋章');
1067      }
1068
1069    }
1070
1071    if (gio_hostname === 'v.233.com' && getArrIsSame(domainList, arr1) === false && arr1.length === 3) {
1072      if (arr1[0] === 'course' && arr1[1] === 'shop' && arr1[2] === 'orders') {
1073        gio('evar.set', 'Web_sourceRecent_evar', '账户相关');
1074        gio('evar.set', 'accountSource_evar', '我的待支付');
1075      }
1076    }
1077
1078  }
1079  var gradeOneArr = getArrEqual(arr1, arr2);
1080  if (gradeOneArr.length !== 0) {
1081    if (gradeOneArr.length === 2 && gradeOneArr[0].value === 'course' && gradeOneArr[1].value === 'datumgifts') {
1082      gio('evar.set', 'Web_sourceRecent_evar', '资料下载');
1083      gio('evar.set', 'informationDownload_evar', '资料下载');
1084    } else if (gradeOneArr.length === 2 && gradeOneArr[0].value === 'course' && gradeOneArr[1].value === 'ebooklist') {
1085     
1086      gio('evar.set', 'Web_sourceRecent_evar', '电子教材');
1087    } else {
1088      for (var i = 0; i < gradeOneArr.length; i++) {
1089        if (gradeOneArr[i].value !== 'forum') {
1090          if (gradeOneArr[i].value !== 'coupon') {
1091            if (gradeOneArr[i].value !== 'order') {
1092              gio('evar.set', 'Web_sourceRecent_evar', gradeOneArr[i].name);
1093            }
1094
1095          }
1096
1097          if (gradeOneArr[i].value === 'datumgifts') {
1098            gio('evar.set', 'informationDownload_evar', '资料下载');
1099          }
1100          if (gradeOneArr[i].value === 'ebook') {
1101            gio('evar.set', 'ganhuoSource_evar', document.title);
1102          }
1103
1104          if (gradeOneArr[i].value === 'integral') {
1105            gio('evar.set', 'accountSource_evar', '我的积分');
1106          }
1107          if (gradeOneArr[i].value === 'vouchers') {
1108
1109            if (arr1.length === 2) {
1110              gio('evar.set', 'Web_sourceRecent_evar', '账户相关');
1111              gio('evar.set', 'accountSource_evar', '我的红包');
1112            }
1113            if (arr1.length === 3 && gio_hostname === 'wx.233.com') {
1114              gio('evar.set', 'Web_sourceRecent_evar', '账户相关');
1115              gio('evar.set', 'accountSource_evar', '我的优惠券');
1116            }
1117            if (arr1.length === 3 && gio_hostname === 'v.233.com') {
1118              gio('evar.set', 'Web_sourceRecent_evar', '账户相关');
1119              gio('evar.set', 'accountSource_evar', '我的红包');
1120            }
1121          }
1122          if (gradeOneArr[i].value === 'order') {
1123            gio('evar.set', 'Web_sourceRecent_evar', '账户相关');
1124            gio('evar.set', 'accountSource_evar', '我的订单');
1125            gio('evar.set', 'accountSource_evar', '我的待支付');
1126          }
1127
1128          if (gio_hostname === 'v.233.com' && gradeOneArr[i].value === 'coupon') {
1129            gio('evar.set', 'Web_sourceRecent_evar', '账户相关');
1130            gio('evar.set', 'accountSource_evar', '我的优惠券');
1131          }
1132
1133        } else {
1134        }
1135      }
1136    }
1137  }
1138}
1139
1140//题库入口
1141function enterTiku(arr1, arr2) {
1142  var gradeOneArr = getArrEqual(arr1, arr2);
1143  if (gradeOneArr.length !== 0) {
1144    // console.log(gradeOneArr);
1145    if (gradeOneArr[0].value !== 'exam') {
1146      for (var i = 0; i < gradeOneArr.length; i++) {
1147        // console.log(gradeOneArr[i].name);
1148        gio('evar.set', 'tikuSource_evar', gradeOneArr[i].name);
1149      }
1150    } else {
1151      var arr = window.location.pathname.substr(1).split('/');
1152      var info = arr[arr.length - 1];
1153      // console.log(info.indexOf("-2"));
1154      if (info.indexOf("-2") === -1) {
1155        // console.log('模拟试题');
1156        gio('evar.set', 'tikuSource_evar', '模拟试题');
1157      } else {
1158        // console.log('历年真题');
1159        gio('evar.set', 'tikuSource_evar', '历年真题');
1160      }
1161    }
1162  }
1163}
1164
1165//选课试听
1166function studyCourse(arr1, domainList) {
1167  // console.log('--------------------选课试听');
1168  var gio_hostname = window.location.hostname;
1169  if (gio_hostname === 'wx.233.com' || gio_hostname === 'v.233.com') {
1170    if (arr1.length === 1 && getArrIsSame(arr1, domainList) === true) {
1171      // console.log('选课试听');
1172      gio('evar.set', 'courseSource_evar', '选课试听');
1173    }
1174  }
1175}
1176
1177//课程入口
1178function enterCourse(arr1, arr2) {
1179  // console.log('--------------------课程入口');
1180  if (arr1[0] === 'course' && arr1[1] === 'my' && arr1[2] !== 'ebooklist') {
1181    // console.log('我的课程列表');
1182    gio('evar.set', 'courseSource_evar', '我的课程列表');
1183  } else if (arr1[0] === 'course' && arr1[1] === 'studyrecord') {
1184    // console.log('我的听课记录');
1185    gio('evar.set', 'courseSource_evar', '我的听课记录');
1186  }
1187  var gradeOneArr = getArrEqual(arr1, arr2);
1188  if (gradeOneArr.length !== 0) {
1189    if (gradeOneArr[0].value === 'comment' && gradeOneArr[1].value === 'study') {
1190      // console.log('我的课程');
1191      // console.log('我的课程评价');
1192      gio('evar.set', 'courseSource_evar', '我的课程');
1193      gio('evar.set', 'courseSource_evar', '我的课程评价');
1194    } else {
1195      if (arr1[2] === 'datumgifts') {
1196        // console.log('我的课程');
1197        // console.log('资料下载');
1198        gio('evar.set', 'courseSource_evar', '我的课程');
1199        gio('evar.set', 'courseSource_evar', '资料下载');
1200      } else {
1201        if (gradeOneArr[0].value === 'learnplay' && gradeOneArr[1].value === 'study') {
1202          // console.log('选课试听');
1203          gio('evar.set', 'courseSource_evar', '选课试听');
1204        } else if (gradeOneArr[0].value === 'AskDetail' && gradeOneArr[1].value === 'study') {
1205          // console.log('我的课程答疑');
1206          gio('evar.set', 'courseSource_evar', '我的课程答疑');
1207        } else {
1208          for (var i = 0; i < gradeOneArr.length; i++) {
1209            if (gradeOneArr[i].value === 'ask' || gradeOneArr[i].value === 'AskDetail') {
1210              // console.log('我的课程答疑');
1211              gio('evar.set', 'courseSource_evar', '我的课程答疑');
1212            } else if (gradeOneArr[i].value === 'lecture') {
1213              // console.log(gradeOneArr[i].value + gradeOneArr[i].name);
1214              gio('evar.set', 'courseSource_evar', gradeOneArr[i].name);
1215            } else if (gradeOneArr[i].value !== 'ask') {
1216              // console.log(gradeOneArr[i].value + gradeOneArr[i].name);
1217              gio('evar.set', 'courseSource_evar', gradeOneArr[i].name);
1218            }
1219          }
1220        }
1221      }
1222    }
1223  }
1224}
1225
1226//报考条件
1227function enterBaoKao(arr1, arr2) {
1228  var gradeOneArr = getArrEqual(arr1, arr2);
1229  // console.log(gradeOneArr);
1230  if (gradeOneArr.length !== 0) {
1231    for (var i = 0; i < gradeOneArr.length; i++) {
1232      // console.log(gradeOneArr[i].name);
1233      gio('evar.set', 'toutiaoSource_evar', gradeOneArr[i].name);
1234    }
1235    // console.log('头条');
1236    gio('evar.set', 'Web_sourceRecent_evar', '头条');
1237  }
1238}
1239
1240//头条入口
1241function enterTouTiao(arr1, arr2, domainList) {
1242  // console.log('--------------------头条入口');
1243  if (arr1[1] !== 'ebook' && arr1[0] !== 'forum') {
1244    var domain = window.location.pathname.substr(1).split('/')[0];
1245    var gio_hostname = window.location.hostname;
1246    if (gio_hostname === 'www.233.com' && arr1.length === 1) {
1247      if (getArrIsSame(domainList, [domain]) === true) {
1248        // console.log('文章');
1249        gio('evar.set', 'toutiaoSource_evar', '文章');
1250      }
1251    }
1252    if (gio_hostname === 'm.233.com' && arr1.length > 1 && arr1[1] !== 'ebook') {
1253      if (arr1[1] !== 'weekly' || arr1[1] !== 'zhenti') {
1254        if (arr1[1] === 'zhenti') {
1255        } else if (getArrIsSame(domainList, [domain]) === true) {
1256        }
1257      }
1258    }
1259    //不是社区
1260    var gradeOneArr = getArrEqual(arr1, arr2);
1261    if (gradeOneArr.length !== 0) {
1262      for (var i = 0; i < gradeOneArr.length; i++) {
1263        // console.log(gradeOneArr[i].name);
1264        gio('evar.set', 'toutiaoSource_evar', gradeOneArr[i].name);
1265      }
1266    }
1267    // console.log(arr1);
1268    if (arr1.length === 3 && arr1[0] === 'common' && arr1[1] === 'book' && arr1[2] === 'read.html') {
1269    } else if (getArrIsSame(domainList, [domain]) === true && arr1[1] === 'book') {
1270    } else if (getArrIsSame(domainList, [domain]) === true && arr1[1] === 'baoming') {
1271
1272    } else {
1273      // console.log('头条');
1274      gio('evar.set', 'Web_sourceRecent_evar', '头条');
1275    }
1276  }
1277}
1278
1279//文章详情入口
1280function enterDetails(dataPage, pathArr) {
1281  // console.log('--------------------文章详情入口');
1282  if (sessionStorage.getItem('enterDetails') === null) {
1283    sessionStorage.setItem('queryParam', JSON.stringify('haveCode'));// console.log('头条');
1284    gio('evar.set', 'Web_sourceRecent_evar', '头条');
1285    if (pathArr[1] !== 'baoming') {
1286      var data = dataPage;
1287      // console.log('文章');
1288      gio('evar.set', 'toutiaoSource_evar', '文章');
1289      if (data.column) {
1290        // console.log(data.column.classCname);
1291        gio('evar.set', 'articleKind_evar', data.column.classCname);
1292      }
1293      if (data.news) {
1294        // console.log(data.news.newsTitle);
1295        // console.log(data.news.newsEditer);
1296        gio('evar.set', 'articleTitle_evar', data.news.newsTitle);
1297        gio('evar.set', ' articleEditor_evar', data.news.newsEditer);
1298      }
1299    }
1300  }
1301}
1302
1303//社区话题详情入口
1304function enterCommunity(data) {
1305  // console.log('--------------------社区话题详情入口');
1306  // console.log(data);
1307  // console.log('一级社区');
1308  gio('evar.set', 'communitySource_evar', data);
1309  gio('evar.set', 'communitySource_evar', data);
1310}
1311
1312//电子教材阅读
1313function ebookRead(arr1) {
1314  // console.log(arr1);
1315  if (arr1[0] === 'common' && arr1[1] === 'book' && arr1[2] === 'read.html') {
1316    // console.log('电子教材');
1317    gio('evar.set', 'Web_sourceRecent_evar', '电子教材');
1318    setTimeout(function () {
1319      var inner = document.getElementsByClassName("js-book-nav")[0].getElementsByTagName('a')[1].innerHTML;
1320      // console.log(inner);
1321      gio('evar.set', 'jiaocaiSource_evar', inner);
1322    }, 500);
1323  }
1324}
1325
1326//是不是考试社区
1327function isForum(val, domainList) {
1328  // console.log('-------------------------是不是社区');
1329  if (val[0] === 'forum' && getArrIsSame(domainList, [val[1]]) === true)
1329 {
1330    // console.log('是社区');
1331    gio('evar.set', 'Web_sourceRecent_evar', '考试社区');
1332  }
1333}
1334
1335//判断平台
1336function newequipment() {
1337  var sUserAgent = navigator.userAgent.toLowerCase();
1338  var bIsIpad = sUserAgent.match(/ipad/i) == "ipad";
1339  var bIsIphoneOs = sUserAgent.match(/iphone os/i) == "iphone os";
1340  var bIsMidp = sUserAgent.match(/midp/i) == "midp";
1341  var bIsUc7 = sUserAgent.match(/rv:1.2.3.4/i) == "rv:1.2.3.4";
1342  var bIsUc = sUserAgent.match(/ucweb/i) == "ucweb";
1343  var bIsAndroid = sUserAgent.match(/android/i) == "android";
1344  var bIsCE = sUserAgent.match(/windows ce/i) == "windows ce";
1345  var bIsWM = sUserAgent.match(/windows mobile/i) == "windows mobile";
1346
1347  if (!(bIsIpad || bIsIphoneOs || bIsMidp || bIsUc7 || bIsUc || bIsAndroid || bIsCE || bIsWM)) {
1348    // pc
1349    gio_newequipments = 1;
1350  } else {
1351    // wap
1352    gio_newequipments = 2;
1353  }
1354}
1355
1356//截取pathname
1357function getCaption(obj) {
1358  // console.log(obj);
1359  var index = obj.lastIndexOf("\?");
1360  // console.log(index);
1361  if (index !== -1) {
1362    obj = obj.slice(0, index);
1363    return obj;
1364  } else {
1365    return obj
1366  }
1367}
1368
1369//页面类型
1370function newsGioPage() {
1371
1372  var domainList = [];
1373  if (window._gulpConfig18) {
1374    var getSites = window._gulpConfig18.sites;
1375    for (var i = 0; i < getSites.length; i++) {
1376      domainList.push(getSites[i].doMain);
1377    }
1378  }
1379
1380  // console.log(domainList + "domainList111111");
1381
1382  var pathLink = window.document.referrer ? window.document.referrer : gio_oldPageHref;
1383  // console.log((pathLink + "newsGioPage00"));
1384  //pathLink 记录上个页面的地址
1385  var gio_hostname = "";
1386  var pathname = "";
1387  var gio_pathNameArr;
1388
1389  if (pathLink) {
1390
1391    var urlReg = /[a-zA-Z0-9][-a-zA-Z0-9]{0,62}(\.[a-zA-Z0-9][-a-zA-Z0-9]{0,62})+\.?/;
1392    gio_hostname = urlReg.exec(pathLink);
1393    gio_hostname = gio_hostname[0];
1394    // console.log(gio_hostname + "gio_hostname11111");
1395
1396    
1397
1398    var str = '/' + pathLink.replace(/https:\/\/\S+?\//g, "");
1399    pathname = getCaption(str);
1400
1401    gio_pathNameArr = pathname.substr(1).split('/');
1402    // console.log(gio_pathNameArr + "gio_pathNameArr11111");
1403    for (var i = 0; i < gio_pathNameArr.length; i++) {
1404      if (gio_pathNameArr[i] == "" || typeof (gio_pathNameArr[i]) == "undefined") {
1405        gio_pathNameArr.splice(i, 1);
1406        i = i - 1;
1407      }
1408    }
1409    // console.log((gio_hostname === 'www.233.com') + "-----" + (gio_pathNameArr.length === 1) + "----" + getArrIsSame(gio_pathNameArr, domainList));
1410    // console.log(gio_pathNameArr + 'gio_pathNameArr22222');
1411  }
1412
1413  //子站点栏目页
1414  var column1 = ['xinde', 'baoming', 'bmtj', 'bktj', 'zhinan', 'gonggao', 'zhengshu', 'chengji', 'chaxun', 'u/hook', 'mszd', 'hot', 'hangye', 'dagang', 'fudao', 'zixun/law/', 'zixun', 'beikao', 'tag'];
1415  //题库
1416  var column2 = ['moniti', 'tiku/kaoshi', 'shiti', 'tiku/chapter', 'tiku/exam', 'zhenti', 'tiku/daily', 'tiku/history', 'tiku/errorexam', 'tongguan', 'tiku/err', 'tiku/down'];
1417  //社区
1418  var column5 = ['forum'];
1419  //周刊
1420  var column6 = ['weekly'];
1421  //干货笔记
1422  var column7 = ['ebook'];
1423  //专题
1424  var column10 = ['zhuanti'];
1425
1426  if (window.gio_newequipments === 1 && pathLink) {
1427    // console.log('pc--------------------------------------');
1428    //会员中心详情
1429    var column3 = ['course/my', 'course/studyrecord', 'course/zhibo', 'uc/order', 'uc/vouchers', 'uc/integral', 'uc/user', 'uc/message', 'doc/datumgifts', 'course/newsfav', 'course/newseditor', 'course/down', 'home/mycourse', 'course/protocol', 'uc/medal/'];
1430    //资料包下载
1431    var column4 = ['course/Datum/'];
1432    //课程学习页
1433    var column8 = ['search/v1/study'];
1434    //课程学习页
1435    var column9 = ['cuxiao'];
1436
1437    if (pathLink === 'https://www.233.com/' || pathLink === 'http://www.233.com/') {
1438      gio_page_type = '官网首页'
1439    }
1440    if (pathLink === 'https://wx.233.com/' || pathLink === 'http://wx.233.com/') {
1441      gio_page_type = '课程中心首页'
1442    }
1443    if (pathLink === 'https://s.233.com/Course' || pathLink === 'http://s.233.com/Course') {
1444      gio_page_type = '选课中心'
1445    }
1446    if (gio_hostname === 'www.233.com' && gio_pathNameArr.length === 1) {
1447      if (getArrIsSame(gio_pathNameArr, domainList) === true) {
1448        gio_page_type = '子站点首页';
1449      }
1450    }
1451    if (linkIsSame(pathLink, column1)) {
1452      gio_page_type = '子站点栏目页'
1453    }
1454    if (linkIsSame(pathLink, column2)) {
1455      gio_page_type = '题库'
1456    }
1457    if (pathLink === 'https://wx.233.com/uc' || pathLink === 'http://wx.233.com/uc') {
1458      gio_page_type = '会员中心首页'
1459    }
1460    if (linkIsSame(pathLink, column3)) {
1461      gio_page_type = '会员中心详情页'
1462    }
1463    if (pathLink === 'https://www.233.com/shouji233/' || pathLink === 'https://www.233.com/app/' || pathLink === 'http://www.233.com/shouji233/' || pathLink === 'http://www.233.com/app/') {
1464      gio_page_type = 'app下载'
1465    }
1466    if (linkIsSame(pathLink, column4)) {
1467      gio_page_type = '资料包下载'
1468    }
1469    if (linkIsSame(pathLink, column5)) {
1470      gio_page_type = '社区'
1471    }
1472    if (newsGioIncludeStr(pathLink,'https://book.233.com/') || newsGioIncludeStr(pathLink,'http://book.233.com/')) {
1473      gio_page_type = '书店'
1474    }
1475    if (newsGioIncludeStr(pathLink,'https://zb.233.com/') || newsGioIncludeStr(pathLink,'http://zb.233.com/')) {
1476      gio_page_type = '直播间';
1477    }
1478    if (linkIsSame(pathLink, column6)) {
1479      gio_page_type = '周刊'
1480    }
1481    if (pathLink === 'https://wx.233.com/shop' || pathLink === 'http://wx.233.com/shop') {
1482      gio_page_type = '结算中心'
1483    }
1484    if (gio_hostname === 'passport.233.com') {
1485      gio_page_type = '登录中心'
1486    }
1487    if (linkIsSame(pathLink, column7)) {
1488      gio_page_type = '干货笔记'
1489    }
1490    if (linkIsSame(pathLink, column8)) {
1491      gio_page_type = '课程学习页'
1492    }
1493    if (pathLink === 'https://wx.233.com/search/v1/study/StudySignUp/' || pathLink === 'http://wx.233.com/search/v1/study/StudySignUp/') {
1494      gio_page_type = '浏览网校班级详情页'
1495    }
1496    if (gio_hostname === 'wx.233.com' && gio_pathNameArr.length === 1) {
1497      if (getArrIsSame(gio_pathNameArr, domainList) === true) {
1498        gio_page_type = '浏览网校列表页'
1499      }
1500    }
1501    if (pathLink === 'https://ks.233.com/' || pathLink === 'http://ks.233.com/') {
1502      gio_page_type = '搜索框'
1503    }
1504    if (pathLink === 'https://s.233.com/news' || pathLink === 'http://s.233.com/news') {
1505      gio_page_type = '搜索框'
1506    }
1507    if (pathLink === 'https://www.233.com/about/aboutus.html' || pathLink === 'http://www.233.com/about/aboutus.html') {
1508      gio_page_type = '客户中心'
1509    }
1510    if ((newsGioIncludeStr(pathLink,'https://www.233.com/') && newsGioIncludeStr(pathLink,'.html')) || (newsGioIncludeStr(pathLink,'http://www.233.com/') && newsGioIncludeStr(pathLink,'.html'))) {
1511      gio_page_type = '新闻页'
1512    }
1513    if (linkIsSame(pathLink, column9)) {
1514      gio_page_type = '促销活动'
1515    }
1516    if (linkIsSame(pathLink, column10)) {
1517      var href = pathLink;
1518      if (
1519        href === 'https://v.233.com/zhuanti/sendPacket/' ||
1520        href === 'https://www.233.com/zhuanti/datum/' ||
1521        href === 'http://v.233.com/zhuanti/sendPacket/' ||
1522        href === 'http://www.233.com/zhuanti/datum/' ||
1523        pathname === '/zhuanti/datum/singleIndex.html' ||
1524        pathname === '/jzs2/zhuanti/zengshu/' ||
1525        pathname === '/jzs1/zhuanti/zengshu/' ||
1526        pathname === '/shgzz/zhuanti/zengshu/' ||
1527        pathname === '/zaojia/zhuanti/zengshu/' ||
1528        pathname === '/zhuanti/zengshu/'
1529
1530      ) {
1531        gio_page_type = '拉新专题'
1532      } else {
1533        gio_page_type = '资讯专题'
1534      }
1535    }
1536    // if (window._dataPage !== undefined && window._dataPageV2 === undefined) {
1537    //   gio_page_type = '新闻页'
1538    // }
1539
1540  }
1541
1542  if (window.gio_newequipments === 2 && pathLink) {
1543    // console.log('wap---------------------------------------');
1544
1545    //专题
1546    var column11 = ['/account/'];
1547    //资料下载
1548    var column12 = ['webapp/datum'];
1549
1550    if (pathLink === 'https://m.233.com/' || pathLink === 'http://m.233.com/') {
1551      gio_page_type = '官网首页'
1552    }
1553    if (pathLink === 'https://v.233.com/' || pathLink === 'https://m.wx.233.com/' || pathLink === 'http://v.233.com/' || pathLink === 'http://m.wx.233.com/') {
1554      gio_page_type = '选课中心'
1555    }
1556    if (gio_hostname === 'm.233.com' && gio_pathNameArr.length === 1) {
1557      if (getArrIsSame(gio_pathNameArr, domainList) === true) {
1558        gio_page_type = '子站点首页'
1559      }
1560    }
1561    if (linkIsSame(pathLink, column1)) {
1562      gio_page_type = '子站点栏目页'
1563    }
1564    if (linkIsSame(pathLink, column2)) {
1565      gio_page_type = '题库'
1566    }
1567    if (pathLink === 'https://v.233.com/account/home/index' || pathLink === 'http://v.233.com/account/home/index') {
1568      gio_page_type = '会员中心首页'
1569    }
1570    if (linkIsSame(pathLink, column11)) {
1571      gio_page_type = '会员中心详情页'
1572    }
1573    if (pathLink === 'https://www.233.com/shouji233/' || pathLink === 'https://m.233.com/app/' || pathLink === 'http://www.233.com/shouji233/' || pathLink === 'http://m.233.com/app/') {
1574      gio_page_type = 'app下载'
1575    }
1576    if (linkIsSame(pathLink, column12)) {
1577      gio_page_type = '资料包下载'
1578    }
1579    if (linkIsSame(pathLink, column5)) {
1580      gio_page_type = '社区'
1581    }
1582    if (newsGioIncludeStr(pathLink,'https://book.233.com/') || newsGioIncludeStr(pathLink,'http://book.233.com/')) {
1583      gio_page_type = '书店'
1584    }
1585    if (newsGioIncludeStr(pathLink,'https://v.233.com/zhibo') || newsGioIncludeStr(pathLink,'http://v.233.com/zhibo')) {
1586      gio_page_type = '直播间'
1587    }
1588
1589    if (linkIsSame(pathLink, column6)) {
1590      gio_page_type = '周刊'
1591    }
1592    if (pathLink === 'https://wx.233.com/shop' || pathLink === 'http://wx.233.com/shop') {
1593      gio_page_type = '结算中心'
1594    }
1595    if (gio_hostname === 'passport.233.com') {
1596      gio_page_type = '登录中心'
1597    }
1598    if (linkIsSame(pathLink, column7)) {
1599      gio_page_type = '干货笔记'
1600    }
1601    if (pathname === '/study/learnplay') {
1602      gio_page_type = '课程学习页'
1603    }
1604    if (pathLink === 'https://v.233.com/study/' || pathLink === 'http://v.233.com/study/') {
1605      gio_page_type = '浏览网校班级详情页'
1606    }
1607    if (gio_hostname === 'v.233.com' && gio_pathNameArr.length === 1) {
1608      if (getArrIsSame(gio_pathNameArr, domainList) === true) {
1609        gio_page_type = '浏览网校列表页'
1610      }
1611    }
1612    if (pathLink === 'https://m.233.com/kaoshishijian/' || pathLink === 'http://m.233.com/kaoshishijian/') {
1613      gio_page_type = '考试日历'
1614    }
1615    if (pathLink === 'https://m.233.com/common/course/' || pathLink === 'http://m.233.com/common/course/') {
1616      gio_page_type = '高品质学习课程'
1617    }
1618    if (pathLink === 'https://v.233.com/course/news/SpearkInfo' || pathLink === 'http://v.233.com/course/news/SpearkInfo') {
1619      gio_page_type = '每日一讲'
1620    }
1621    if ((newsGioIncludeStr(pathLink,'https://m.233.com/') && newsGioIncludeStr(pathLink,'.html')) || (newsGioIncludeStr(pathLink,'http://m.233.com/') && newsGioIncludeStr(pathLink,'.html'))) {
1622      gio_page_type = '新闻页'
1623    }
1624    if (linkIsSame(pathLink, column10)) {
1625      var href = pathLink;
1626      if (
1627        href === 'https://v.233.com/zhuanti/sendPacket/' ||
1628        href === 'https://m.233.com/zhuanti/datum/' ||
1629        href === 'http://v.233.com/zhuanti/sendPacket/' ||
1630        href === 'http://m.233.com/zhuanti/datum/' ||
1631        pathname === '/zhuanti/datum/singleIndex.html' ||
1632        pathname === '/jzs2/zhuanti/zengshu/' ||
1633        pathname === '/jzs2/zhuanti/zengshu/record.html' ||
1634        pathname === '/jzs2/zhuanti/zengshu/share.html' ||
1635        pathname === '/jzs2/zhuanti/zsbook/' ||
1636        pathname === '/jzs2/zhuanti/zsbook/record.html' ||
1637        pathname === '/jzs2/zhuanti/zsbook/share.html' ||
1638        pathname === '/jzs1/zhuanti/zengshu/' ||
1639        pathname === '/jzs1/zhuanti/zengshu/record.html' ||
1640        pathname === '/jzs1/zhuanti/zengshu/share.html' ||
1641        pathname === '/shgzz/zhuanti/zengshu/' ||
1642        pathname === '/shgzz/zhuanti/zengshu/record.html' ||
1643        pathname === '/shgzz/zhuanti/zengshu/share.html' ||
1644        pathname === '/zaojia/zhuanti/zengshu/' ||
1645        pathname === '/zaojia/zhuanti/zengshu/record.html' ||
1646        pathname === '/zaojia/zhuanti/zengshu/share.html' ||
1647        pathname === '/zhuanti/zengshu/' ||
1648        pathname === '/zhuanti/zengshu/record.html' ||
1649        pathname === '/zhuanti/zengshu/share.html'
1650      ) {
1651        gio_page_type = '拉新专题'
1652      } else {
1653        gio_page_type = '资讯专题'
1654      }
1655    }
1656    // if (window._dataPageV2) {
1657    //   gio_page_type = '新闻页'
1658    // }
1659
1660  }
1661  return gio_page_type;
1662
1663}
1664
1665
1666
1667//栏目类型
1668function newsGioColumn() {
1669
1670  var domainList = [];
1671  if (window._gulpConfig18) {
1672    var getSites = window._gulpConfig18.sites;
1673    for (var i = 0; i < getSites.length; i++) {
1674      domainList.push(getSites[i].doMain);
1675    }
1676  }
1677
1678  var pathLink = window.document.referrer ? window.document.referrer : gio_oldPageHref;
1679  pathLinkEnd = pathLink.indexOf("?") !== -1 ? pathLink.indexOf("?") : pathLink.length;
1680  pathLink = pathLink.substr(0, pathLinkEnd);
1681  // console.log(pathLink);
1682  //pathLink 记录上个页面的地址
1683  var gio_hostname = "";
1684  var pathname = "";
1685  var gio_pathNameArr;
1686
1687  if (pathLink) {
1688    var urlReg = /[a-zA-Z0-9][-a-zA-Z0-9]{0,62}(\.[a-zA-Z0-9][-a-zA-Z0-9]{0,62})+\.?/;
1689    gio_hostname = urlReg.exec(pathLink);
1690    gio_hostname = gio_hostname[0];
1691    // console.log(gio_hostname);
1692
1693    var str = '/' + pathLink.replace(/https:\/\/\S+?\//g, "");
1694    pathname = getCaption(str);
1695
1696    gio_pathNameArr = pathname.substr(1).split('/');
1697    for (var i = 0; i < gio_pathNameArr.length; i++) {
1698      if (gio_pathNameArr[i] == "" || typeof (gio_pathNameArr[i]) == "undefined") {
1699        gio_pathNameArr.splice(i, 1);
1700        i = i - 1;
1701      }
1702    }
1703    // console.log(gio_pathNameArr + "gio_pathNameArr3333333");
1704  }
1705
1706  //专题
1707  var column10 = ['zhuanti'];
1708  var pcColumn = [
1709    {
1710      value: 'xinde',
1711      name: '考试心得'
1712    }, {
1713      value: 'baoming',
1714      name: '考试报名'
1715    }, {
1716      value: 'bmtj',
1717      name: '报名条件'
1718    }, {
1719      value: 'bktj',
1720      name: '报名条件'
1721    }, {
1722      value: 'zhinan',
1723      name: '报考指南'
1724    }, {
1725      value: 'gonggao',
1726      name: '报考答疑'
1727    }, {
1728      value: 'zhengshu',
1729      name: '准考证'
1730    }, {
1731      value: 'chengji',
1732      name: '成绩查询'
1733    }, {
1734      value: 'chaxun',
1735      name: '成绩查询'
1736    }, {
1737      value: 'u/hook',
1738      name: '成绩查询'
1739    }, {
1740      value: 'mszd',
1741      name: '成绩查询'
1742    }, {
1743      value: 'hot',
1744      name: '行业视点'
1745    }, {
1746      value: 'hangye',
1747      name: '行业视点'
1748    }, {
1749      value: 'dagang',
1750      name: '考试大纲'
1751    }, {
1752      value: 'fudao',
1753      name: '考试辅导'
1754    }, {
1755      value: 'zixun/law/',
1756      name: '政策法规'
1757    }, {
1758      value: 'zixun',
1759      name: '资讯类'
1760    }, {
1761      value: 'beikao',
1762      name: '备考'
1763    }, {
1764      value: 'tag',
1765      name: '延伸阅读'
1766    }, {
1767      value: 'moniti',
1768      name: '模拟试题'
1769    }, {
1770      value: 'tiku/kaoshi',
1771      name: '模拟试题'
1772    }, {
1773      value: 'shiti',
1774      name: '模拟试题'
1775    }, {
1776      value: 'tiku/chapter',
1777      name: '章节练习'
1778    }, {
1779      value: 'tiku/exam',
1780      name: '历年真题'
1781    }, {
1782      value: 'zhenti',
1783      name: '历年真题'
1784    }, {
1785      value: 'tiku/daily',
1786      name: '每日一练'
1787    }, {
1788      value: 'tiku/history',
1789      name: '做题记录'
1790    }, {
1791      value: 'tiku/errorexam',
1792      name: '错题集'
1793    }, {
1794      value: 'tongguan',
1795      name: '做题闯关'
1796    }, {
1797      value: 'tiku/err',
1798      name: '易错题'
1799    }, {
1800      value: 'tiku/down',
1801      name: '题库下载'
1802    }, {
1803      value: 'course/my',
1804      name: '开始听课'
1805    }, {
1806      value: 'course/studyrecord',
1807      name: '听课记录'
1808    }, {
1809      value: 'course/zhibo',
1810      name: '我的直播'
1811    }, {
1812      value: 'uc/order',
1813      name: '我的订单'
1814    }, {
1815      value: 'uc/vouchers',
1816      name: '我的钱包'
1817    }, {
1818      value: 'uc/integral',
1819      name: '我的积分'
1820    }, {
1821      value: 'uc/user',
1822      name: '账户安全'
1823    }, {
1824      value: 'uc/message',
1825      name: '消息中心'
1826    }, {
1827      value: 'doc/datumgifts',
1828      name: '新人资料包'
1829    }, {
1830      value: 'course/newsfav',
1831      name: '文章收藏'
1832    }, {
1833      value: 'course/newseditor',
1834      name: '我的关注'
1835    }, {
1836      value: 'course/down',
1837      name: '客户端下载'
1838    }, {
1839      value: 'home/mycourse',
1840      name: '我的课程'
1841    }, {
1842      value: 'course/protocol',
1843      name: '我的协议'
1844    }, {
1845      value: 'uc/medal/',
1846      name: '我的勋章'
1847    }, {
1848      value: 'course/Datum/',
1849      name: '资料包下载'
1850    }, {
1851      value: 'forum',
1852      name: '社区'
1853    }, {
1854      value: 'weekly',
1855      name: '周刊'
1856    }, {
1857      value: 'ebook',
1858      name: '干货笔记'
1859    }, {
1860      value: 'search/v1/study',
1861      name: '课程学习页'
1862    }
1863  ];
1864  var wapColumn = [
1865    {
1866      value: 'xinde',
1867      name: '考试心得'
1868    }, {
1869      value: 'baoming',
1870      name: '考试报名'
1871    }, {
1872      value: 'bmtj',
1873      name: '报名条件'
1874    }, {
1875      value: 'bktj',
1876      name: '报名条件'
1877    }, {
1878      value: 'zhinan',
1879      name: '报考指南'
1880    }, {
1881      value: 'gonggao',
1882      name: '报考答疑'
1883    }, {
1884      value: 'zhengshu',
1885      name: '准考证'
1886    }, {
1887      value: 'chengji',
1888      name: '成绩查询'
1889    }, {
1890      value: 'chaxun',
1891      name: '成绩查询'
1892    }, {
1893      value: 'u/hook',
1894      name: '成绩查询'
1895    }, {
1896      value: 'mszd',
1897      name: '培训视频'
1898    }, {
1899      value: 'hot',
1900      name: '行业视点'
1901    }, {
1902      value: 'hangye',
1903      name: '行业视点'
1904    }, {
1905      value: 'dagang',
1906      name: '考试大纲'
1907    }, {
1908      value: 'fudao',
1909      name: '考试辅导'
1910    }, {
1911      value: 'zixun/law/',
1912      name: '政策法规'
1913    }, {
1914      value: 'zixun',
1915      name: '资讯类'
1916    }, {
1917      value: 'beikao',
1918      name: '备考'
1919    }, {
1920      value: 'tag',
1921      name: '延伸阅读'
1922    }, {
1923      value: 'moniti',
1924      name: '模拟试题'
1925    }, {
1926      value: 'tiku/kaoshi',
1927      name: '模拟试题'
1928    }, {
1929      value: 'shiti',
1930      name: '模拟试题'
1931    }, {
1932      value: 'tiku/chapter',
1933      name: '章节练习'
1934    }, {
1935      value: 'tiku/exam',
1936      name: '历年真题'
1937    }, {
1938      value: 'zhenti',
1939      name: '历年真题'
1940    }, {
1941      value: 'tiku/daily',
1942      name: '每日一练'
1943    }, {
1944      value: 'tiku/history',
1945      name: '做题记录'
1946    }, {
1947      value: 'tiku/errorexam',
1948      name: '错题集'
1949    }, {
1950      value: 'tongguan',
1951      name: '做题闯关'
1952    }, {
1953      value: 'tiku/err',
1954      name: '易错题'
1955    }, {
1956      value: 'tiku/down',
1957      name: '题库下载'
1958    }, {
1959      value: '/account/',
1960      name: '会员中心详情页'
1961    }, {
1962      value: 'webapp/datum',
1963      name: '资料包下载'
1964    }, {
1965      value: 'forum',
1966      name: '社区'
1967    }, {
1968      value: 'weekly',
1969      name: '周刊'
1970    }, {
1971      value: 'ebook',
1972      name: '干货笔记'
1973    },
1974  ];
1975
1976  if (window.gio_newequipments === 1 && pathLink) {
1977    // console.log('pc--------------------------------------');
1978    if (pathLink === 'https://www.233.com/' || pathLink === 'http://www.233.com/') {
1979      gio_column_type = '官网首页'
1980    }
1981    if (pathLink === 'https://wx.233.com/' || pathLink === 'http://wx.233.com/') {
1982      gio_column_type = '课程中心首页'
1983    }
1984    if (pathLink === 'https://s.233.com/Course' || pathLink === 'http://s.233.com/Course') {
1985      gio_column_type = '选课中心'
1986    }
1987    if (gio_hostname === 'www.233.com' && gio_pathNameArr.length === 1) {
1988      if (getArrIsSame(gio_pathNameArr, domainList) === true) {
1989        gio_column_type = '子站点首页'
1990      }
1991    }
1992    if (pathLink === 'https://wx.233.com/uc' || pathLink === 'http://wx.233.com/uc') {
1993      gio_column_type = '会员中心首页'
1994    }
1995    if (pathLink === 'https://www.233.com/shouji233/' || pathLink === 'https://www.233.com/app/' || pathLink === 'http://www.233.com/shouji233/' || pathLink === 'http://www.233.com/app/') {
1996      gio_column_type = 'app下载'
1997    }
1998    if (newsGioIncludeStr(pathLink,'https://book.233.com/') || newsGioIncludeStr(pathLink,'http://book.233.com/')) {
1999      gio_column_type = '书店'
2000    }
2001    if (newsGioIncludeStr(pathLink,'https://zb.233.com/') || newsGioIncludeStr(pathLink,'http://zb.233.com/')) {
2002      gio_column_type = '直播间';
2003    }
2004    if (pathLink === 'https://wx.233.com/shop' || pathLink === 'http://wx.233.com/shop') {
2005      gio_column_type = '结算中心'
2006    }
2007    if (gio_hostname === 'passport.233.com') {
2008      gio_column_type = '登录中心'
2009    }
2010    if (pathLink === 'https://wx.233.com/search/v1/study/StudySignUp/' || pathLink === 'http://wx.233.com/search/v1/study/StudySignUp/') {
2011      gio_column_type = '浏览网校班级详情页'
2012    }
2013    if (gio_hostname === 'wx.233.com' && gio_pathNameArr.length === 1) {
2014      if (getArrIsSame(gio_pathNameArr, domainList) === true) {
2015        gio_column_type = '浏览网校列表页'
2016      }
2017    }
2018    if (pathLink === 'https://ks.233.com/' || pathLink === 'http://ks.233.com/') {
2019      gio_column_type = '搜索框'
2020    }
2021    if (pathLink === 'https://s.233.com/news' || pathLink === 'http://s.233.com/news') {
2022      gio_column_type = '搜索框'
2023    }
2024    if (pathLink === 'https://www.233.com/about/aboutus.html' || pathLink === 'http://www.233.com/about/aboutus.html') {
2025      gio_column_type = '客户中心'
2026    }
2027    if ((newsGioIncludeStr(pathLink,'https://www.233.com/') && newsGioIncludeStr(pathLink,'.html')) || (newsGioIncludeStr(pathLink,'http://www.233.com/') && newsGioIncludeStr(pathLink,'.html'))) {
2028      gio_column_type = '新闻页'
2029    }
2030    if (linkIsSame(pathLink, column10)) {
2031      var href = pathLink;
2032      if (
2033        href === 'https://v.233.com/zhuanti/sendPacket/' ||
2034        href === 'https://www.233.com/zhuanti/datum/' ||
2035        href === 'http://v.233.com/zhuanti/sendPacket/' ||
2036        href === 'http://www.233.com/zhuanti/datum/' ||
2037        pathname === '/zhuanti/datum/singleIndex.html' ||
2038        pathname === '/jzs2/zhuanti/zengshu/' ||
2039        pathname === '/jzs1/zhuanti/zengshu/' ||
2040        pathname === '/shgzz/zhuanti/zengshu/' ||
2041        pathname === '/zaojia/zhuanti/zengshu/' ||
2042        pathname === '/zhuanti/zengshu/'
2043
2044      ) {
2045        gio_column_type = '拉新专题'
2046      } else {
2047        gio_column_type = '资讯专题'
2048      }
2049    }
2050    // if (window._dataPage !== undefined && window._dataPageV2 === undefined) {
2051    //   gio_column_type = '新闻页'
2052    // }
2053    if (compLink(pathLink, pcColumn)) {
2054      gio_column_type = compLink(pathLink, pcColumn)
2055    }
2056
2057  }
2058
2059  if (window.gio_newequipments === 2 && pathLink) {
2060    // console.log('wap---------------------------------------');
2061    if (pathLink === 'https://m.233.com/' || pathLink === 'http://m.233.com/') {
2062      gio_column_type = '官网首页';
2063    }
2064    if (pathLink === 'https://v.233.com/' || pathLink === 'https://m.wx.233.com/' || pathLink === 'http://v.233.com/' || pathLink === 'http://m.wx.233.com/') {
2065      gio_column_type = '选课中心';
2066      // if (pathLink === 'https://v.233.com/') {
2067      //
2068      // }
2069    }
2070    if (gio_hostname === 'm.233.com' && gio_pathNameArr.length === 1) {
2071      if (getArrIsSame(gio_pathNameArr, domainList) === true) {
2072        gio_column_type = '子站点首页'
2073      }
2074    }
2075    if (pathLink === 'https://v.233.com/account/home/index' || pathLink === 'http://v.233.com/account/home/index') {
2076      gio_column_type = '会员中心首页'
2077    }
2078    if (pathLink === 'https://www.233.com/shouji233/' || pathLink === 'https://m.233.com/app/' || pathLink === 'http://www.233.com/shouji233/' || pathLink === 'http://m.233.com/app/') {
2079      gio_column_type = 'app下载'
2080    }
2081    if (newsGioIncludeStr(pathLink,'https://book.233.com/') || newsGioIncludeStr(pathLink,'http://book.233.com/')) {
2082      gio_column_type = '书店'
2083    }
2084    if (newsGioIncludeStr(pathLink,'https://v.233.com/zhibo') || newsGioIncludeStr(pathLink,'http://v.233.com/zhibo')) {
2085      gio_column_type = '直播间'
2086    }
2087    if (pathLink === 'https://wx.233.com/shop' || pathLink === 'http://wx.233.com/shop') {
2088      gio_column_type = '结算中心'
2089    }
2090    if (gio_hostname === 'passport.233.com') {
2091      gio_column_type = '登录中心'
2092    }
2093    if (pathname === '/study/learnplay') {
2094      gio_column_type = '课程学习页'
2095    }
2096    if (pathLink === 'https://v.233.com/study/' || pathLink === 'http://v.233.com/study/') {
2097      gio_column_type = '浏览网校班级详情页'
2098    }
2099    if (gio_hostname === 'v.233.com' && gio_pathNameArr.length === 1) {
2100      if (getArrIsSame(gio_pathNameArr, domainList) === true) {
2101        gio_column_type = '浏览网校列表页'
2102      }
2103    }
2104    if (pathLink === 'https://m.233.com/kaoshishijian/' || pathLink === 'http://m.233.com/kaoshishijian/') {
2105      gio_column_type = '考试日历'
2106    }
2107    if (pathLink === 'https://m.233.com/common/course/' || pathLink === 'http://m.233.com/common/course/') {
2108      gio_column_type = '高品质学习课程'
2109    }
2110    if (pathLink === 'https://v.233.com/course/news/SpearkInfo' || pathLink === 'http://v.233.com/course/news/SpearkInfo') {
2111      gio_column_type = '每日一讲'
2112    }
2113    if ((newsGioIncludeStr(pathLink,'https://m.233.com/') && newsGioIncludeStr(pathLink,'.html')) || (newsGioIncludeStr(pathLink,'http://m.233.com/') && newsGioIncludeStr(pathLink,'.html'))) {
2114      gio_column_type = '新闻页'
2115    }
2116    if (linkIsSame(pathLink, column10)) {
2117      var href = pathLink;
2118      if (
2119        href === 'https://v.233.com/zhuanti/sendPacket/' ||
2120        href === 'https://m.233.com/zhuanti/datum/' ||
2121        href === 'http://v.233.com/zhuanti/sendPacket/' ||
2122        href === 'http://m.233.com/zhuanti/datum/' ||
2123        pathname === '/zhuanti/datum/singleIndex.html' ||
2124        pathname === '/jzs2/zhuanti/zengshu/' ||
2125        pathname === '/jzs2/zhuanti/zengshu/record.html' ||
2126        pathname === '/jzs2/zhuanti/zengshu/share.html' ||
2127        pathname === '/jzs2/zhuanti/zsbook/' ||
2128        pathname === '/jzs2/zhuanti/zsbook/record.html' ||
2129        pathname === '/jzs2/zhuanti/zsbook/share.html' ||
2130        pathname === '/jzs1/zhuanti/zengshu/' ||
2131        pathname === '/jzs1/zhuanti/zengshu/record.html' ||
2132        pathname === '/jzs1/zhuanti/zengshu/share.html' ||
2133        pathname === '/shgzz/zhuanti/zengshu/' ||
2134        pathname === '/shgzz/zhuanti/zengshu/record.html' ||
2135        pathname === '/shgzz/zhuanti/zengshu/share.html' ||
2136        pathname === '/zaojia/zhuanti/zengshu/' ||
2137        pathname === '/zaojia/zhuanti/zengshu/record.html' ||
2138        pathname === '/zaojia/zhuanti/zengshu/share.html' ||
2139        pathname === '/zhuanti/zengshu/' ||
2140        pathname === '/zhuanti/zengshu/record.html' ||
2141        pathname === '/zhuanti/zengshu/share.html'
2142      ) {
2143        gio_column_type = '拉新专题'
2144      } else {
2145        gio_column_type = '资讯专题'
2146      }
2147    }
2148
2149    if (compLink(pathLink, wapColumn)) {
2150      gio_column_type = compLink(pathLink, wapColumn)
2151    }
2152    // if (window._dataPageV2) {
2153    //   gio_column_type = '新闻页'
2154    // }
2155
2156  }
2157
2158  return gio_column_type;
2159}
2160
2161//取出两个数组的相同元素
2162function getArrEqual(arr1, arr2) {
2163  var newArr = [];
2164  for (var i = 0; i < arr2.length; i++) {
2165    for (var j = 0; j < arr1.length; j++) {
2166      if (arr1[j] === arr2[i].value) {
2167        newArr.push({
2168          name: arr2[i].name,
2169          value: arr2[i].value
2170        });
2171      }
2172    }
2173  }
2174  return newArr;
2175}
2176
2177//判断是否包含字符串
2178function newsGioIncludeStr(targetStr,includeStr){
2179  if(targetStr.indexOf(includeStr) > -1) {
2180    return true;
2181  }else{
2182    return false;
2183  }
2184}
2185
2186//数组字符串对比
2187function getArrIsSame(arr1, arr2) {
2188  // console.log(arr1);
2189  // console.log(arr2);
2190  var bool = false;
2191  for (var i = 0; i < arr1.length; i++) {
2192    for (var j = 0; j < arr2.length; j++) {
2193      if (arr1[i] === arr2[j]) {
2194        bool = true;
2195      }
2196    }
2197  }
2198  return bool;
2199}
2200
2201//链接是否相似
2202function linkIsSame(link, arr) {
2203  var bool = false;
2204  for (var i = 0; i < arr.length; i++) {
2205    var reg = RegExp(arr[i]);
2206    // console.log(reg.test(link))
2207    if (reg.test(link)) {
2208      bool = true;
2209      break
2210    }
2211  }
2212  return bool;
2213}
2214
2215//对比链接
2216function compLink(link, arr) {
2217  var returnColumn;
2218  for (var i = 0; i < arr.length; i++) {
2219    // console.log(arr[i]);
2220    var reg = RegExp(arr[i].value);
2221    if (reg.test(link)) {
2222      returnColumn = arr[i].name;
2223      break
2224    }
2225  }
2226  return returnColumn;
2227}
2228
2229function useinfo2wx233(a) {
2230  var classcname = a.list.userLableClassName,
2231    isKCBuy = a.list.isKCBuy,
2232    isTiKuBuy = a.list.isTiKuBuy,
2233    buyNum = a.list.buyNum,
2234    isBind = a.list.isBind,
2235    bindClassName = a.list.bindClassName;
2236  if (!isempty(classcname) && classcname > 0) {
2237    gio("people.set", "exam_type_ppl", classcname)
2238  }
2239  if (!isempty(bindClassName) && bindClassName > 0) {
2240    gio("people.set", "exam_register_ppl", bindClassName)
2241  }
2242  var kcbuy = isKCBuy ? "已购课" : "未购课";
2243  var tikubuy = isTiKuBuy ? "已购题库" : "未购题库";
2244  gio("people.set", "course_status_paid_ppl", kcbuy);
2245  gio("people.set", "tiku_status_paid_ppl", tikubuy);
2246  gio("people.set", "order_frequency_ppl", buyNum);
2247  _gio233Method.setCookie("fclasscname", 100, 1)
2248}
2249
2250function isempty(e) {
2251  if (e == "" || e == null || e == undefined) {
2252    return true
2253  }
2254  return false
2255}
2256
2257_gio233Method.sitedomain();
2258
2259function deefecfs(e) {
2260}
2261
2262//点击事件
2263;setTimeout(function () {
2264  (function ($) {
2265    $(document).on('click', '#kechenlistbox .site-list li a', function () {
2266      _gio233Method.savePosition('顶部课程导航');
2267    }).on('click', '.model1_mainLt.zx_link.two .zdNav_bd ul li a', function () {
2268      _gio233Method.savePosition('首页-网校学习');
2269    }).on('click', '.wx-catalog dl dd a', function () {
2270      _gio233Method.savePosition('课程中心-导航');
2271    }).on('click', '.feature-panel-list li a', function () {
2272      if (!$(this).hasClass('w140')) {
2273        _gio233Method.savePosition('课程中心-banner下方');
2274      }
2275    }).on('click', '.layout-box .ch-hotcloum a', function () {
2276      _gio233Method.savePosition('课程中心-热门课程');
2277    }).on('click', '.contentList .mdcl_audition', function () {
2278      _gio233Method.savePosition('课程中心-选课中心nav');
2279    }).on('click', '.ch-learnago a', function () {
2280      _gio233Method.savePosition('课程中心-上次已学到');
2281    }).on('click', '.ch-coursemain .w300:nth-child(1) a', function () {
2282      _gio233Method.savePosition('课程中心-网校老师1');
2283    }).on('click', '.ch-coursemain .w300:nth-child(3) a', function () {
2284      _gio233Method.savePosition('课程中心-网校老师2');
2285    }).on('click', '.ch-coursemain .w300:nth-child(4) a', function () {
2286      _gio233Method.savePosition('课程中心-网校老师2');
2287    }).on('click', '#weike-list a', function () {
2288      var len = window.location.pathname.split('/').length;
2289      if (len === 3) {
2290        _gio233Method.savePosition('子站点首页-公共栏目右侧');
2291      } else {
2292        _gio233Method.savePosition('子站点栏目-右侧');
2293      }
2294    }).on('click', '#js-iwx__box a', function () {
2295      _gio233Method.savePosition('子站点首页-公共网校引流区');
2296    }).on('click', '.main .teacher-show a', function () {
2297      _gio233Method.savePosition("子站点首页-师资团队");
2298    }).on('click', '.main .js-iwx__top-myclass a', function () {
2299      _gio233Method.savePosition('子站点首页-热卖班级');
2300    }).on('click', '.cont-centre>div:nth-child(2) .ch-newslist li:nth-child(2) a', function () {
2301      _gio233Method.savePosition('子站点首页-报考指导1');
2302    }).on('click', '.cont-centre .ch-newslist:nth-child(2) li:nth-child(1) a', function () {
2303      _gio233Method.savePosition('子站点首页-试题辅导1');
2304    }).on('click', '.apps ul li:nth-child(1) a', function () {
2305      _gio233Method.savePosition('子站点首页-网校课程1-icon');
2306    }).on('click', '.nav .nav-mid .w5 .nav-list a:nth-child(1)', function () {
2307      _gio233Method.savePosition('子站点首页-网校课程2-icon');
2308    }).on('click', '#ersansan-ft', function () {
2309      // var link = window.location.href;
2310      // if (RegExp('forum').test(link)) {
2311      //   _gio233Method.savePosition('社区公共栏目底部');
2312      // } else if (RegExp('weekly').test(link)) {
2313      //   _gio233Method.savePosition('周刊-底部');
2314      // } else {
2315      //   if (window.location.pathname.length >= 15) {
2316      //     _gio233Method.savePosition('新闻页底部');
2317      //   } else {
2318      //     _gio233Method.savePosition('子站点首页-公共栏目底部');
2319      //   }
2320      // }
2321
2322    }).on('click', '.footer_April li a', function () {
2323      _gio233Method.savePosition('子站点首页-公共栏目底部');
2324    }).on('click', '.cont-signin .signin-btn-box a', function () {
2325      _gio233Method.savePosition('子站点首页-去网校icon');
2326    }).on('click', '.content .right-cont .txt-course a', function () {
2327      _gio233Method.savePosition('子站点栏目-新手指南');
2328    }).on('click', '.avis-cours-infor a', function () {
2329      _gio233Method.savePosition('做题结果页-免费试学');
2330    }).on('click', '.solution ul li:last-child a', function () {
2331      _gio233Method.savePosition('做题中-查看答案');
2332    }).on('click', '.course-box .course-infor-btn a', function () {
2333      _gio233Method.savePosition('资料包下载');
2334    }).on('click', '.kcyh-box .forum-course a', function () {
2335      _gio233Method.savePosition('社区公共栏目底部');
2336    }).on('click', '.list_imitate_post a', function () {
2337      _gio233Method.savePosition('社区主页第3个文案');
2338    }).on('click', '.a-book .button a', function () {
2339      if ($(this).html() === '买课送书') {
2340        _gio233Method.savePosition('买课送书');
2341      }
2342    }).on('click', '.details .more .lay .right .h5 a', function () {
2343      _gio233Method.savePosition('买课送书右侧');
2344    }).on('click', '.teacher-list .teacher-txt p a.listen', function () {
2345      _gio233Method.savePosition('直播间');
2346    }).on('click', '.js-news-tjkc-box .tg-newsTop a', function () {
2347      _gio233Method.savePosition('新闻页顶部');
2348    }).on('click', '.conent-rt .js-sellpoint__box a', function () {
2349      _gio233Method.savePosition('新闻页右侧顶部');
2350    }).on('click', '.conent-rt .news-kc-link a', function () {
2351      _gio233Method.savePosition('新闻页右侧顶部');
2352    }).on('click', '#js-nwx__box .news-curriculum a', function () {
2353      _gio233Method.savePosition('新闻页底部');
2354    }).on('click', '.School-Te-TabMain a', function () {
2355      _gio233Method.savePosition('新闻页底部');
2356    }).on('click', '.School-Te-MoreCla a', function () {
2357      _gio233Method.savePosition('新闻页底部');
2358    }).on('click', '.news_contBox p em', function () {
2359      _gio233Method.savePosition('新闻页正文关键词');
2360    }).on('click', '.week-content-left .week-gongyong-box .content-wap-coursebox:last-child a', function () {
2361      _gio233Method.savePosition('周刊-课程列表');
2362    }).on('click', '.gongju li:nth-child(1) a', function () {
2363      _gio233Method.savePosition('周刊-网校课程icon');
2364    }).on('click', '.week-img a', function () {
2365      _gio233Method.savePosition('周刊-底部');
2366    }).on('click', '.md_content_all .mdc_left_bottom_all .list_zt', function () {
2367      _gio233Method.savePosition('首页-章节考点');
2368    }).on('click', '.mdcl_audition .mdcl_play_border a', function () {
2369      _gio233Method.savePosition('首页-免费试听1');
2370    }).on('click', '.free_stBd .free_stBtn', function () {
2371      _gio233Method.savePosition('首页-免费试听2');
2372    }).on('click', '.ch-freemain a', function () {
2373      _gio233Method.savePosition('课程中心-免费学习');
2374    }).on('click', '.ch-freelisten a', function () {
2375      _gio233Method.savePosition('课程中心-免费学习');
2376    }).on('click', '.mt30:nth-child(3) ul li:nth-child(1) a', function () {
2377      _gio233Method.savePosition('子站点首页-报考指导2');
2378    }).on('click', '.mt30:nth-child(2) .w773.list-box .zt-box a', function () {
2379      _gio233Method.savePosition('子站点首页-考试试题');
2380    }).on('click', '.mt30:nth-child(1) .w773.list-box ul.list-box-fr li:first-child a', function () {
2381      _gio233Method.savePosition('子站点首页-考试辅导');
2382    }).on('click', '.js-column-free-wrap a', function () {
2383      _gio233Method.savePosition('子站点栏目-免费试听');
2384    }).on('click', '.conent-rt .js-news-right-kc a', function () {
2385      _gio233Method.savePosition('新闻页右侧中间');
2386    }).on('click', '.lecture-record dd .control-blk a', function () {
2387      _gio233Method.savePosition('听课记录');
2388    }).on('click', '.my-record .dal-but a', function () {
2389      _gio233Method.savePosition('会员中心-继续学习');
2390    }).on('click', '.imitate_Post_box a', function () {
2391      _gio233Method.savePosition('社区公共栏目中间');
2392    })
2393    //   .on('click', '.lnzt_big_contBox .zt-go', function () {
2394    //   var arr = window.location.pathname.substr(1).split('/');
2395    //   var info = arr[arr.length - 1];
2396    //   if (info.indexOf("-2") === -1) {
2397    //     _gio233Method.savePosition('题库-模拟试题');
2398    //   } else {
2399    //     _gio233Method.savePosition('题库-历年真题');
2400
2401
2402    //   }
2403    // })
2404      .on('click', '.solution .ting-kc', function () {
2405        _gio233Method.savePosition('做题中-查看答案');
2406      })
2407      .on('click', '.pro_yct_st', function () {
2408        _gio233Method.savePosition('题库-章节练习');
2409      }).on('click', '.lnzt_big_contBox .pracl-dalist li .dal-but .listen', function () {
2410      var arr = window.location.pathname.substr(1).split('/');
2411      var info = arr[arr.length - 1];
2412      if (info.indexOf("-2") === -1) {
2413        _gio233Method.savePosition('题库-模拟试题');
2414      } else {
2415        _gio233Method.savePosition('题库-历年真题');
2416      }
2417    }).on('click', '.wx-class-header li a', function () {
2418      _gio233Method.savePosition('课程详情页-中间位置');
2419    }).on('click', '.subj_model_advImg a', function () {
2420      _gio233Method.savePosition('首页-学院');
2421    }).on('click', '.content .nav-list li a', function () {
2422      _gio233Method.savePosition('选课中心');
2423    }).on('click', '.m-box-white .m-sliding-list li:nth-child(4) a', function () {
2424      _gio233Method.savePosition('子站点首页-网校课程3icon');
2425    }).on('click', '.todayTT_tuig a', function () {
2426      _gio233Method.savePosition('子站点首页-免费试听');
2427    }).on('click', '.gallery-section .gallery-article .gallery-ul li a', function () {
2428      _gio233Method.savePosition('子站点首页-免费试听');
2429    }).on('click', '.lanmu-baoming .ul-baoming .js-sellpoint__box a', function () {
2430      _gio233Method.savePosition('子站点栏目-报名指导');
2431    }).on('click', '.gallery-ul .gallery-li a', function () {
2432      _gio233Method.savePosition('子站点首页-免费试听');
2433    }).on('click', '.tjkc_popupBox .tjkc_popupMain a', function () {
2434      _gio233Method.savePosition('直播间');
2435    }).on('click', '.m_article_kc a', function () {
2436      _gio233Method.savePosition('资料包下载');
2437    }).on('click', '.kcyh-box a', function () {
2438      _gio233Method.savePosition('社区公共栏目底部');
2439    }).on('click', '.menu_panel .classifying a:nth-child(1)', function () {
2440      _gio233Method.savePosition('会员中心-课程');
2441    }).on('click', '.f_medium span', function () {
2442      _gio233Method.savePosition('新闻页正文关键词');
2443    }).on('click', '.content-a .content-list ul li:nth-child(1) a', function () {
2444      _gio233Method.savePosition('wap-公共网校推广');
2445    }).on('click', '.js-news-free-list a', function () {
2446      _gio233Method.savePosition('新闻页顶部');
2447    }).on('click', '.js-news-video-group-full', function () {
2448      _gio233Method.savePosition('新闻页视频播放主键');
2449    }).on('click', 'section .switch-test a', function () {
2450      _gio233Method.savePosition('题库-顶部');
2451    }).on('click', '.content-wap-kctj .content-wap-coursebox a', function () {
2452      _gio233Method.savePosition('wap-公共底部引流');
2453    }
2453).on('click', '.course_ziliao_box .js-home-banner-extend__course', function () {
2454      _gio233Method.savePosition('首页-高品质学习');
2455    }).on('click', 'footer a', function () {
2456      _gio233Method.savePosition('wap-公共底部引流');
2457    }).on('click', 'footer .footer a', function () {
2458      _gio233Method.savePosition('wap-公共底部引流');
2459    }).on('click', '.free_resources_sp a:nth-child(2)', function () {
2460      _gio233Method.savePosition('子站点首页-每日一讲');
2461    }).on('click', 'div, li ,a ,figure', function () {
2462      if ($(this).attr('adv233-dup')) {
2463        if (!$(this).hasClass('list_imitate_post') || !$(this).hasClass('js-sellpoint__box')) {
2464          if ($(this).children().html().slice(0, 4) === "<img") {
2465            _gio233Method.savePosition('广告位置');
2466            var alt = $(this).children('a').children('img').attr('alt');
2467            _gio233Method.setCookie("advInfo", alt, 1);
2468          } else {
2469            _gio233Method.setCookie("advInfo", '', 1);
2470          }
2471        }
2472      }
2473    })
2474  })(window.jQuery);
2475}, 1000);
2476
2477if(window.location.href.indexOf('https://zb.233.com/play/#/pc/')>-1){
2478	setTimeout(function(){
2479		document.styleSheets[0].addRule('.live-info-main', 'max-width: 840px')
2480	},1000)
2481	
2482}
2483if(window.location.href.indexOf('/live/#/wap/')>-1){
2484	setTimeout(function(){
2485		if($){
2486			$('.zbjy-item .zbjy-downBtn').attr('href',location.origin+'/search/app')
2487		}
2488	},2000)
2489}

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.