feat: There is no way the, phoneHome 自适应

This commit is contained in:
super_liu
2022-06-16 13:01:53 +08:00
parent 42e3500f68
commit 3315dc2386
3 changed files with 11 additions and 5 deletions
+1 -1
View File
@@ -63,7 +63,7 @@ service.interceptors.response.use(
// ignored
}
}
if(res.data && res.data.respCode != undefined && res.data.respCode === 'LE505'){
if(res.data && res.data.respCode !== undefined && res.data.respCode === 'LE505'){
if (isMobile()) {
localStorage.removeItem('token')
return router.push('/phoneIndex')
+7 -1
View File
@@ -179,7 +179,13 @@ router.beforeEach(function (to, from, next) {
}
}
}else {
next()
// 区分手机端首页 单独逻辑处理 token 为空 跳回验证页面重新验证
if(fromName === 'databaseSearch' || fromName === 'standDynamics' ||
fromName === 'domesticStand' || fromName === 'domesticDetails'){
next('/loginVerifyPhone')
}else {
next()
}
}
} else {
if (toName.slice(0,5) !== 'phone') {
+3 -3
View File
@@ -1,6 +1,6 @@
<!--国内标准法规详情页-->
<template>
<div class="other-standard-details v-class" :style="'width:' + (500) + 'px;'+'height:' + (screenHeight) + 'px'" :class="{'hidden': !isMoreAwayBtn}">
<div class="other-standard-details v-class" :style="'width:' + (500) + 'px;'+'height:' + (screenHeight) + 'px'">
<!--title 标题-->
<div class="details-header">
<span v-if="sarStandardsInfoEO.standYear === null">{{ sarStandardsInfoEO.standSortShow || '' }} {{
@@ -58,7 +58,7 @@
<label style="float: left">{{ child.attrName }}</label>
<template v-if="child.value && child.value.length > 0">
<!-- 单个文件时-->
<div style="position: relative;margin-left: 214px; line-height: 32px">
<div style="position: relative;margin-left: 19em; line-height: 32px">
<div v-for="(file, fileIndex) in child1Func(child.value)" style="display: flex;">
<span v-if="child.value && child.value.length > 0 && child.value.length === 1" style="display: flex; align-items: center;">
<a style="font-size:0.2rem;color: #409EFF;cursor: pointer;display: inline-block"
@@ -172,7 +172,7 @@
}}</span>
</p>
<p class="half">
<label style=" margin-right: 34vw;">是否纳入认证清单</label><span>{{
<label style=" margin-right: 11em;">是否纳入认证清单</label><span>{{
sarStandardsInfoEO.isRelateAccess ? (sarStandardsInfoEO.isRelateAccess === '1' ? '是' : '否') : '-'
}}</span>
</p>