number_book.vue
1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<template>
<view>
<view class="title_bg" :style="'padding-top:' + (common.statusBarH + 10)+ 'px; '">
<image style="width: 40rpx; height: 40rpx;" src='../../static/common/icon_back.png' @click="onBack()">
</image>
<text style="color: white; font-size: 36rpx; font-weight: 700; margin-left: 15rpx;">我的号码本</text>
<image style="width: 40rpx; height: 40rpx;">
</image>
</view>
<view :style="'height: ' + titleHeight + 'px'"></view>
</view>
</template>
<script>
import common from '@/utils/common.js'
import loginHelper from "../../utils/loginHelper.js"
export default {
data() {
return {
titleHeight: 60,
common,
idCard: "",
userInfo: {}
}
},
onReady() {
var this_ = this
uni.createSelectorQuery()
.in(this)
.select('.title_bg')
.boundingClientRect((rect) => {
if (rect) {
this_.titleHeight = rect.height
console.log("rect.height:" + rect.height)
}
})
.exec();
this.userInfo = loginHelper.getUserInfo()
},
onLoad() {
},
methods: {
}
}
</script>
<style>
.title_bg {
background: linear-gradient(90deg, #FF6F38 0%, #FFA04B 100%);
display: flex;
justify-content: space-between;
align-items: center;
padding-left: 24rpx;
padding-right: 24rpx;
padding-bottom: 20rpx;
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 999;
}
</style>