提交 6e2d7c29 authored 作者: 王鹏飞's avatar 王鹏飞

报名申请适配移动端

上级 e4b5c93f
export default function(context) { export default function(context) {
const UA = process.server ? context.req.headers['user-agent'] : navigator.userAgent const UA = process.server ? context.req.headers['user-agent'] : navigator.userAgent
const isMobile = /iphone/i.test(UA) || (/android/i.test(UA) && /mobile/i.test(UA)) let isMobile = /iphone/i.test(UA) || (/android/i.test(UA) && /mobile/i.test(UA))
if (context.route.path.includes('/my')) {
isMobile = false
}
context.store.commit('setIsMobile', isMobile) context.store.commit('setIsMobile', isMobile)
} }
...@@ -13,6 +13,13 @@ ...@@ -13,6 +13,13 @@
</div> </div>
</template> </template>
<script>
export default {
head: {
meta: [{ hid: 'viewport', name: 'viewport', content: '' }]
}
}
</script>
<style lang="scss" scoped> <style lang="scss" scoped>
.layout { .layout {
max-width: 1200px; max-width: 1200px;
......
...@@ -23,14 +23,15 @@ export default { ...@@ -23,14 +23,15 @@ export default {
}, },
meta: [ meta: [
{ charset: 'utf-8' }, { charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' }, { hid: 'viewport', name: 'viewport', content: 'width=device-width, initial-scale=1' },
{ hid: 'description', name: 'description', content: '' },
{ {
hid: 'keywords',
name: 'keywords', name: 'keywords',
content: content:
'理金融硕士,在职金融硕士,国际金融硕士,美国金融硕士,美国印第安纳大学,印第安纳大学,Kelley商学院,MSF,金融人才,商学院,在线金融硕士' '理金融硕士,在职金融硕士,国际金融硕士,美国金融硕士,美国印第安纳大学,印第安纳大学,Kelley商学院,MSF,金融人才,商学院,在线金融硕士'
}, },
{ {
hid: 'description',
name: 'description', name: 'description',
content: content:
'印第安纳大学布鲁明顿分校(IUB)是美国 “公立常春藤” (Public Ivy) 院校.Kelley商学院是印第安纳大学伯明顿分校的明星学院,自1920年创立以来一直被认为是世界上历史最悠久和领先的商学院之一,被誉为全美CFO摇篮,华尔街金融人才的主要培养院校之一.' '印第安纳大学布鲁明顿分校(IUB)是美国 “公立常春藤” (Public Ivy) 院校.Kelley商学院是印第安纳大学伯明顿分校的明星学院,自1920年创立以来一直被认为是世界上历史最悠久和领先的商学院之一,被誉为全美CFO摇篮,华尔街金融人才的主要培养院校之一.'
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论