在线客服聊天软件 All In One
在线客服聊天软件 All In One
IM 即时通讯
铃音
打扰 💩
禁用 js
https://tdxl.eduego.com/wenti/73.html
https://www.eduego.com/zywenti/77115.html
关闭声音
IM 客服
智能营销客服系统
AI 客服机器人
代码写的好烂呀
- js 没有压缩混淆, 直接源码
- URL 参数获取方式,写的太不优雅了
// 当前路径
// var curPath = location.pathname.split('/').pop().replace('.html', '');
const reg = /^\w[\w]+\.html$/ig ???
// https://regexper.com/#%2F%5E%5Cw%5B%5Cw%5D%2B%5C.html%24%2Fi
// mobile + about => mobileAbout 驼峰命名转换
https://easyliao.com/script/common/media.js
/*
* @Description:
* @Author: 柏青波(2356891036@qq.com)
* @Date: 2021-11-25 10:51:57
* @FilePath: \el-web-website-view\script\common\media.js
*/
// 当前路径
var curPath = location.pathname.split('/').pop().replace('.html', '');
// 当前尺寸
var screenWith = window.screen.width;
// 路径对应的跳转链接
var pathMap = {
// 注册相关页面
'register': './mobileRegister.html',
'registerSuccess': './mobileregisterSuccess.html',
'agreement': './mobileAgreement.html',
// 首页
'index': './mobileIndex.html',
// IM
'im': './mobileIm.html',
// AI
'ai': './mobileAi.html',
// 案例中心
'case-xuehui': './mobileCase-xuehui.html',
// 关于易聊
'about': './mobileAbout.html',
// 联系我们
'contact': './mobileContact.html',
// 客户端下载
'download': './mobileDownload.html',
}
// 判断是移动端还是PC端
var isMobile = !!navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i);
// 当屏幕尺寸小于500时,跳转移动端
// if (screenWith < 500) {
// location.href = pathMap[curPath]
// }
// 当时移动端时,跳转移动端
if (isMobile) {
location.href = curPath ? pathMap[curPath] : 'index.html';
}
refs
©xgqfrms 2012-2025
www.cnblogs.com/xgqfrms 发布文章使用:只允许注册用户才可以访问!
原创文章,版权所有©️xgqfrms, 禁止转载 🈲️,侵权必究⚠️!
本文首发于博客园,作者:xgqfrms,原文链接:https://www.cnblogs.com/xgqfrms/p/16687885.html
未经授权禁止转载,违者必究!
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· DeepSeek 开源周回顾「GitHub 热点速览」
· 记一次.NET内存居高不下排查解决与启示
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· .NET10 - 预览版1新功能体验(一)
2021-09-13 vue custom animation All In One
2020-09-13 Nest.js tutorials All In One
2020-09-13 Full Stack Web Development All In One
2020-09-13 TypeORM Entity All In One
2019-09-13 macOS finder show hidden files All In One
2018-09-13 yarn & vue-cli & hui-cli All In One
2018-09-13 MBP 2018 & Chrome scale