/* Js for https://www.huitouke.cn/page/price.mhtml, Version=1707571907 */ v.theme = {"template":"mobile","theme":"default","device":"mobile"};;v.pageID = 101;; ; //点击展开收起盒子 $("#fun_see1").click(function () { if ($("#fun_box1").height() <= 0) { $("#fun_box1").height($("#fun_box1")[0].scrollHeight) } else { $("#fun_box1").height(0) } }); $("#fun_see2").click(function () { if ($("#fun_box2").height() <= 0) { $("#fun_box2").height($("#fun_box2")[0].scrollHeight) } else { $("#fun_box2").height(0) } }); $("#fun_see3").click(function () { if ($("#fun_box3").height() <= 0) { $("#fun_box3").height($("#fun_box3")[0].scrollHeight) } else { $("#fun_box3").height(0) } }); $("#fun_see4").click(function () { if ($("#fun_box4").height() <= 0) { $("#fun_box4").height($("#fun_box4")[0].scrollHeight) } else { $("#fun_box4").height(0) } }); ; //客服特效 let datetime = new Date() let mon = datetime.getMonth() + 1 let day = datetime.getDate() let hou = datetime.getHours() let min = datetime.getMinutes() //设置顾客资料 var customer = { '名称': '回头客网站' + mon + '-' + day + ' ' + hou + ':' + min, '来源': '回头客网站', }; //将 json 格式转为字符串 customer = JSON.stringify(customer); //用 encodeURIComponent 进行编码 customer = encodeURIComponent(customer); //生成最终的对话链接 var url = 'https://11416.ahc.ink/chat.html?customer=' + customer; function serviceCall() { window.location.href = url } function serviceTel() { window.location.href = 'tel:13341005066' } ;$(function() { $('.nav-page-' + v.pageID).first().addClass('active'); }); ; var logLink = "/log-record.mhtml"; var browserLanguage = navigator.language || navigator.userLanguage; var resolution = screen.availWidth + ' X ' + screen.availHeight; $.get(logLink, {browserLanguage:browserLanguage, resolution:resolution});