| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116 | <template>	<view>		<view class="content">			<view :style="{height:statusBarHeight + 'px'}">				<!-- 这里是状态栏 -->			</view>			<view class="navbar">						<view class="left" @click="click_left()">					<uni-icons type="arrowleft" color="#fff" size="18"></uni-icons>				</view>				<view class="right" @click="go_search()">					<view class="input_box">						<view class="input_icon"></view>						<view class="input_text">搜索</view>					</view>				</view>			</view>		</view>		<!-- 占位符 -->		<view :style="{height: statusBarHeight + 'px'}"></view>		<view style="height: 93rpx;"></view>	</view></template><script>	export default {		props:["mine"],		data() {			return {				statusBarHeight: 20,							};		},		created() {			// 获取手机系统信息			const info = uni.getSystemInfoSync()			// 设置状态栏高度			this.statusBarHeight = info.statusBarHeight					},		methods: {			click_left() {				uni.navigateBack();			},			go_search(){				uni.navigateTo({					url:"../../production/safety_monitoring/safety_monitoring_search/safety_monitoring_search?mine=" + this.mine,					animationType: 'fade-in',					animationDuration: 200				})			}		}	}</script><style lang="scss" scoped>	.content {		position: fixed;		top: 0;		left: 0;					z-index: 999;		background-color: #009FE8;	}	.navbar {		width: 750rpx;		box-sizing: border-box;		padding-left: 31rpx;		padding-right: 26rpx;		padding-top: 14rpx;		padding-bottom: 14rpx;		display: flex;		justify-content: space-between;		.left {			width: 42rpx;			line-height: 65rpx;		}		.right {			width: 620rpx;			height: 65rpx;			background: rgba(255, 255, 255, 0.2);			border-radius: 33rpx;			.input_box {				display: flex;				.input_icon {					margin-left: 43rpx;					margin-top: 16rpx;					width: 34rpx;					height: 34rpx;					background-image: url(icon/search.png);					background-size: cover;					background-repeat: no-repeat;				}				.input_text {					margin-left: 19rpx;					font-size: 24rpx;					font-family: PingFangSC-Regular, PingFang SC;					font-weight: 400;					color: #FFFFFF;					line-height: 65rpx;				}			}		}	}</style>
 |