number_book.vue 1.4 KB
<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>