123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312 |
- $(function(){
-
- function navMouseleave (id,id1){
- $(id).on({
- mouseover: function() {
- $(id1).show();
- },
- mouseleave: function() {
- $(id1).hide();
- }
- });
- }
- navMouseleave('.area','.area .option');
-
- $('.ocls').on('click',function(){
- $('.order-box').animate({width:"0"},function(){
- $('.order-box').hide();
- $('.min-left').show();
- })
- })
-
- $('.min-left').on('click',function(){
- $('.order-box').show(function(){
- $('.min-left').hide();
- $('.order-box').animate({width:"100%"},function(){})
- })
-
- })
-
-
- PublicAction.AjaxSend(
- {
- CORID:'wa_submit',
- }
- );
- })
- var myDate = new Date;
- var year = myDate.getFullYear();
- var yue = myDate.getMonth()+1;
- if (yue<10) {
- yue= '0' + yue;
- }else if(yue == 13){
- yue = '01';
- };
- function mGetDate(yue){
- var date = new Date();
- var year = date.getFullYear();
- var d = new Date(year,parseInt(yue), 0);
- return d.getDate();
- }
- var whtmltimes = year + '/'+ yue + '/' + mGetDate(yue);
- var whtmltime = year + '/'+ yue + '/' +'01'+'-'+ year + '/'+ yue + '/' + mGetDate(yue);
- var time_yxq= whtmltime;
- $('.youxiaoqi_sj').html('(有效期:'+time_yxq+')');
- $('.m_tc_gb').on('click',function(){
- $('.m_tc_box').hide();
- })
- function getNextMonth_m(date) {
- var arr = date.split('/');
- var year = arr[0];
- var month = arr[1];
- var day = arr[2];
- var days = new Date(year, month, 0);
- days = days.getDate();
- var year2 = year;
- var month2 = parseInt(month);
- if (parseInt(day) > 20) {
- var month2 = parseInt(month) + 1;
- if (month2 > 12) {
- year2 = parseInt(year2) + 1;
- month2 = 1;
- }
- };
- if (month2 < 10) {
- month2 = '0' + month2;
- }
- var t2 = year2 + '年' + month2 + '月';
- return t2;
- }
- var myDate = new Date;
- var year = myDate.getFullYear();
- var yue = myDate.getMonth()+1;
- var date=myDate.getDate();
- if (yue<10) {
- yue= '0' + yue;
- };
- var time = year+'/'+yue+'/'+date;
- $('.shijian_text').html(getNextMonth_m(time)+'20日启程')
- $('.m_FriendshipLinks a').eq(0).attr('class','on');
- var _default = $('.m_FriendshipLinks a').eq(0).attr('qhid');
- $('.m_regionfc[qhid="'+_default+'"]').show();
- $('.m_FriendshipLinks a').on('mousemove',function(){
- var _qhid = $(this).attr('qhid');
- $('.m_regionfc').hide();
- $('.m_regionfc[qhid="'+_qhid+'"]').show();
- $(this).attr('class','on').siblings().attr('class','');
- })
- var data_id = $('.gzhclick').attr('data-id');
-
-
- if(data_id != undefined && data_id != '' && data_id != 'undefined'){
- var html = '';
- var tophtml = '';
- var toplist = '';
- $.ajax({
- url: "/index/getgzh",
- data:{id:data_id},
- type: "GET",
- dataType: "json",
- success: function(data) {
- if(data.code == 200){
-
- html+= '<ul class="m_gzhlist c">';
- html+= '<img class="m_tb" src="/image/v2/index33.png" alt="">';
- $.each(data.data, function (i, data) {
- html+= '<li>';
- html+= '<img src="'+data.icon+'" alt="">';
- html+= '<p>'+data.name+'</p>';
- html+= '</li>';
- var text_tit=data.name.split('公众号');
- toplist+='<a href="javascript:;" data-id="'+i+'">'+text_tit[0]+'</a>';
- tophtml+='<div class="right_imgUl" data-id="'+i+'">';
- tophtml+='<div class="right_imgUl_m">';
- tophtml+='<i class="sj"></i>';
- tophtml+='<p class="top_img"><img src="'+data.icon+'" alt=""></p>';
- tophtml+='<p class="title">'+data.name+'</p>';
- tophtml+='</div>';
- tophtml+='</div>';
- });
- }
- $('.m_HeadGzh_box_a').html(toplist);
- $('.m_HeadGzh_box_right').html(tophtml);
- $('.m_gzhlist_box').html(html);
-
- $('body .m_HeadGzh_box_a a').eq(0).addClass('on');
- $('body .right_imgUl').eq(0).show();
- $('body').on('mouseover','.m_HeadGzh_box_a a',function(){
- $('body .right_imgUl').hide();
- var Idoption = $(this).attr('data-id');
- $('body .right_imgUl[data-id='+ Idoption +']').show();
- $(this).addClass('on').siblings().removeClass('on');
- })
- }
- });
- }
- $('.m_regionfc a').on('mousemove',function(){
- $('.m_gzhlist_box').hide();
- })
- $('.gzhclick').on('mousemove',function(){
- $('.m_gzhlist_box').show();
- })
- $('.m_regionfc').on('mouseleave',function(){
- $('.m_gzhlist_box').hide();
- })
- $('.wm_Navigation ul li').on('mousemove',function(){
- $('.wm_Navigation_list').hide();
- })
- $('.wm_Navigation ul .Navigation_click').on('mousemove',function(){
-
- $(this).find('.wm_Navigation_list').show();
- })
- $('.wm_Navigation').on('mouseleave',function(){
- $('.wm_Navigation_list').hide();
- })
- function CreatePopLayerDiv(width,height,url){
- var Iheight=$(window).height();
- var Iwidth =$(window).width();
- var heights = height || 300;
- var widths = width || 500;
- var Oheight= (Iheight -heights) / 2;
- var Owidth = (Iwidth - widths) /2;
- var div ='<div id="InDiv" style="width:'+Iwidth+'px;height:'+Iheight+'px;background:rgba(0,0,0,0.6);position:fixed;z-index:1000;top:0;left:0;">';
- div+='<div id="offDiv" style="width:'+widths+'px;height:'+heights+'px;left:'+Owidth+'px;position:fixed;z-index:32;border-radius:5px;">';
- div+='<a id="AClose" class="y_close" href="javascript:;" onclick="btnCloses()"><img src="/image/ico_close1.png" alt="" /></a>';
- div+='<div id="Content"></div>';
- div+='</div>';
- div+='</div>';
- $(document.body).append(div);
- if(url != ""){
- $("#Content").load(url);
- }
- }
- function RemoveDiv(){
- $("#AClose").remove();
- $("#HTitle").remove();
- $("#offDiv").remove();
- $("#InDiv").remove();
- }
- function btnCloses(){
- RemoveDiv();
- }
- $(function(){
-
- var w_type,w_id,w_title,w_tel,w_module,w_text,w_button;
- $('body').on('click','.applekf-id,.pic_jjtz',function(){
- var $that = $(this);
- CreatePopLayerDiv(440,510,"/public/reduced");
- $('#offDiv').css({'margin-top':'-300px'}).animate({top:'50%'},500);
- parent.w_type = $that.attr('data-type');
- parent.w_id = $that.attr('data-id');
- parent.w_text = $that.attr('data-text');
- parent.w_module = $that.attr('data-module');
- parent.w_title = $that.attr('data-name');
- parent.w_tel = $that.attr('data-tel');
- parent.w_button = $that.attr('data-button');
- });
- $('#InDiv').on('click',function(){
- btnCloses();
- })
-
- PublicAction.AjaxSend({CORID:'v2inform_buttom'});
- })
- var cookie = {
-
- set:function(key,val,time){
- var date=new Date();
- var expiresDays=time;
- date.setTime(date.getTime()+expiresDays*24*3600*1000);
- document.cookie=key + "=" + val +";expires="+date.toGMTString();
- },
-
- get:function(key){
-
- var getCookie = document.cookie.replace(/[ ]/g,"");
- var arrCookie = getCookie.split(";")
- var tips;
- for(var i=0;i<arrCookie.length;i++){
- var arr=arrCookie[i].split("=");
- if(key==arr[0]){
- tips=arr[1];
- break;
- }
- }
- return tips;
- },
-
- delete:function(key){
- var date = new Date();
- date.setTime(date.getTime()-10000);
- document.cookie = key + "=v; expires =" +date.toGMTString();
- }
- }
|