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

初始化状态bug

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