提交 fbaa9149 编写于 作者: guangjun.yang's avatar guangjun.yang

安卓兼容性问题

上级 b026313d
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<article class="middle"> <article class="middle">
<div class="title"> <div class="title">
<span class="ratio">{{certFlag ? '获证率' : '完成率'}} <span class="ratio">{{certFlag ? '获证率' : '完成率'}}
<img @click="tipsClick" v-show="certFlag" src="../../assets/images/what-icon-2.png" /> <img @click="tipsClick" :class="{'top-10': isAndroid}" v-show="!certFlag" src="../../assets/images/what-icon-2.png" />
</span> </span>
<span> <span>
<img src="../../assets/images/tips-1.png" /> <img src="../../assets/images/tips-1.png" />
...@@ -86,6 +86,9 @@ export default { ...@@ -86,6 +86,9 @@ export default {
default: 0 default: 0
} }
}, },
data: {
isAndroid: false
},
watch: { watch: {
percentData: { percentData: {
handler(newValue, oldValue) { handler(newValue, oldValue) {
...@@ -106,6 +109,11 @@ export default { ...@@ -106,6 +109,11 @@ export default {
return (num * 100).toFixed(fixed) return (num * 100).toFixed(fixed)
} }
}, },
created() {
if(process.client) {
this.isAndroid = this.$rocNative.isAndroid;
}
},
methods: { methods: {
tipsClick() { tipsClick() {
this.$emit('tipsClick') this.$emit('tipsClick')
...@@ -171,6 +179,9 @@ export default { ...@@ -171,6 +179,9 @@ export default {
left: 46px; left: 46px;
width: 14px; width: 14px;
height: 14px; height: 14px;
&.top-10 {
top: 2px;
}
} }
} }
img { img {
...@@ -274,5 +285,8 @@ export default { ...@@ -274,5 +285,8 @@ export default {
} }
} }
} }
.top-10 {
}
} }
</style> </style>
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册