自动切换

This commit is contained in:
dzj 2024-07-09 18:07:42 +08:00
parent cd2c344b09
commit f4b29e77c1
5 changed files with 21 additions and 4 deletions

View File

@ -8,7 +8,22 @@
<link href="https://cdn.staticfile.org/quill/1.3.6/quill.snow.css" rel="stylesheet">
<title>飞阳建设工程有限公司</title>
<script type="text/JavaScript">
function isMobile() {
const userAgent = navigator.userAgent || navigator.vendor || window.opera;
return /Mobi|Android/i.test(userAgent);
}
if (isMobile()) {
// 处理移动端逻辑
window.location.href='https://www.fygroup.cn/mobile/'
console.log(111)
} else {
// 处理PC端逻辑
console.log("当前环境是PC端");
}
</script>
</head>
<body>
<noscript>

View File

@ -96,6 +96,7 @@ this.$router.push({
}
}
}
</script>
<style lang="scss" scoped>

View File

@ -86,7 +86,6 @@
</div>
<div style="width: 50%;height: 100%;">
<el-form-item prop="content">
<el-input
style="height: 100%;"
type="textarea"

View File

@ -37,6 +37,8 @@
</template>
<script>
import { newsdetail,msgdetail } from '@/api';
// import 'react-quill/dist/quill.snow.css';
export default{
data(){
return{
@ -144,7 +146,7 @@ background-color: transparent;
margin: 16px 0 30px;
}
::v-deep .ql-editor{
white-space: normal;
white-space: normal;
}
.date{

View File

@ -23,7 +23,7 @@
<div style="height: 30px;"></div>
<img src="@/assets/images/人才招聘.png" style="display: block;width: 100%;object-fit: contain;">
<img :src="componyarr[0].picture" style="display: block;width: 100%;object-fit: contain;">
<div style="height: 30px;"></div>
<div style="height: 60px;"></div>