提交 645e55f3 编写于 作者: tao.wu's avatar tao.wu

初始化状态bug

上级 7e260e83
<template>
<header>
<div class="status" :class="{'bgfff': isScroll}" :style="{height: statusBarHeight + 'px'}"></div>
<div class="status" :class="{'bgfff': isScroll}" :style="{height: statusBarHeight + 'px', background: bgColor}"></div>
<div class="head-wrap" :class="{'bgfff': isScroll}" :style="{height: titleHeight + 'px'}">
<img @click="goBack" :src="leftIcon">
<span v-if="isScroll">{{title}}</span>
......@@ -46,6 +46,7 @@
},
data(){
return {
bgColor: '',
leftIcon: leftimg1,
rightIcon: rightimg1,
isScroll: false,
......@@ -75,6 +76,7 @@
this.statusBarHeight = res.statusBarHeight * dpr;
this.titleHeight = this.titleHeight * dpr;
}else{
this.bgColor = '#ccc';
this.statusBarHeight = res.statusBarHeight / dpr;
}
})
......
......@@ -118,7 +118,9 @@ export default {
this.$rocNative.getToken().then(res => {
const { userToken } = res;
getRemindStatus(userToken).then(res => {
this.remindStatus = res.data;
if(res.code=='000000'){
this.remindStatus = res.data;
}
this.canClick = true;
});
});
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册