| 
									
										
										
										
											2024-08-16 18:26:19 +08:00
										 |  |  | <template> | 
					
						
							|  |  |  | 	<view class="bar"> | 
					
						
							|  |  |  | 		<view class="barbox" @click="gogogo(1)"> | 
					
						
							|  |  |  | 			<view class="bar-img"> | 
					
						
							| 
									
										
										
										
											2024-09-18 10:33:52 +08:00
										 |  |  | 				<image v-if="actindex == 1" src="../../static/icon/homex.png" mode="aspectFit"></image> | 
					
						
							|  |  |  | 				<image v-if="actindex != 1" src="../../static/icon/home.png" mode="aspectFit"></image> | 
					
						
							| 
									
										
										
										
											2024-08-16 18:26:19 +08:00
										 |  |  | 			</view> | 
					
						
							|  |  |  | 			<view class="">首页</view> | 
					
						
							|  |  |  | 		</view> | 
					
						
							|  |  |  | 		<view class="barbox" @click="gogogo(2)"> | 
					
						
							| 
									
										
										
										
											2024-09-18 10:33:52 +08:00
										 |  |  | 			<view class="bar-img"> | 
					
						
							| 
									
										
										
										
											2024-09-18 17:24:51 +08:00
										 |  |  | 				<image v-if="actindex == 2" src="../../static/icon/jyx.png" mode="aspectFit"></image> | 
					
						
							|  |  |  | 				<image v-if="actindex != 2" src="../../static/icon/jy.png" mode="aspectFit"></image> | 
					
						
							| 
									
										
										
										
											2024-08-16 18:26:19 +08:00
										 |  |  | 			</view> | 
					
						
							|  |  |  | 			<view class="">一键加油</view> | 
					
						
							|  |  |  | 		</view> | 
					
						
							|  |  |  | 		<view class="barbox" @click="gogogo(3)"> | 
					
						
							|  |  |  | 			<view class="bar-img"> | 
					
						
							| 
									
										
										
										
											2024-09-18 17:24:51 +08:00
										 |  |  | 				<image v-if="actindex == 3" src="../../static/icon/myx.png" mode="aspectFit"></image> | 
					
						
							| 
									
										
										
										
											2024-09-18 10:33:52 +08:00
										 |  |  | 				<image v-if="actindex != 3" src="../../static/icon/my.png" mode="aspectFit"></image> | 
					
						
							| 
									
										
										
										
											2024-08-16 18:26:19 +08:00
										 |  |  | 			</view> | 
					
						
							|  |  |  | 			<view class="">我的</view> | 
					
						
							|  |  |  | 		</view> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	</view> | 
					
						
							|  |  |  | </template> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <script> | 
					
						
							|  |  |  | 	export default { | 
					
						
							|  |  |  | 		data() { | 
					
						
							|  |  |  | 			return { | 
					
						
							|  |  |  | 				actindex: 1, | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 		}, | 
					
						
							|  |  |  | 		props: { | 
					
						
							|  |  |  | 			msg: String | 
					
						
							|  |  |  | 		}, | 
					
						
							|  |  |  | 		mounted() { | 
					
						
							|  |  |  | 			this.actindex = this.msg | 
					
						
							|  |  |  | 		}, | 
					
						
							|  |  |  | 		methods: { | 
					
						
							|  |  |  | 			gogogo(id) { | 
					
						
							|  |  |  | 				this.actindex = id | 
					
						
							|  |  |  | 				if (id == 1) { | 
					
						
							|  |  |  | 					uni.reLaunch({ | 
					
						
							|  |  |  | 						url: '/pages/index/index' | 
					
						
							|  |  |  | 					}) | 
					
						
							|  |  |  | 				} | 
					
						
							|  |  |  | 				if (id == 2) { | 
					
						
							|  |  |  | 					uni.reLaunch({ | 
					
						
							|  |  |  | 						url: '/pages/refuel/refuel' | 
					
						
							|  |  |  | 					}) | 
					
						
							|  |  |  | 				} | 
					
						
							|  |  |  | 				if (id == 3) { | 
					
						
							|  |  |  | 					uni.reLaunch({ | 
					
						
							|  |  |  | 						url: '/pages/my/my' | 
					
						
							|  |  |  | 					}) | 
					
						
							|  |  |  | 				} | 
					
						
							|  |  |  | 			} | 
					
						
							|  |  |  | 		} | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | </script> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | <style scoped lang="scss"> | 
					
						
							|  |  |  | 	.bar { | 
					
						
							|  |  |  | 		width: 100%; | 
					
						
							|  |  |  | 		height: 60px; | 
					
						
							|  |  |  | 		background-color: white; | 
					
						
							|  |  |  | 		position: fixed; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 		left: 50%; | 
					
						
							|  |  |  | 		transform: translate(-50%, -50%); | 
					
						
							|  |  |  | 		display: flex; | 
					
						
							|  |  |  | 		align-items: center; | 
					
						
							|  |  |  | 		justify-content: space-around; | 
					
						
							|  |  |  | 		font-size: 12px; | 
					
						
							|  |  |  | 		font-weight: 400; | 
					
						
							|  |  |  | 		color: #666666; | 
					
						
							|  |  |  | 		bottom: -30px; | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	.barbox { | 
					
						
							|  |  |  | 		width: 33%; | 
					
						
							|  |  |  | 		text-align: center; | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	.centerbox { | 
					
						
							|  |  |  | 		width: 50px; | 
					
						
							|  |  |  | 		height: 50px; | 
					
						
							|  |  |  | 		background-color: white; | 
					
						
							|  |  |  | 		border-radius: 50%; | 
					
						
							|  |  |  | 		margin: 0 auto; | 
					
						
							|  |  |  | 		margin-top: -30px; | 
					
						
							|  |  |  | 		box-sizing: border-box; | 
					
						
							|  |  |  | 		padding: 5px; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	.qiu { | 
					
						
							|  |  |  | 		width: 100%; | 
					
						
							|  |  |  | 		height: 100%; | 
					
						
							|  |  |  | 		border-radius: 50%; | 
					
						
							|  |  |  | 		background: linear-gradient(135deg, #2FF7D3 0%, #2F72F7 100%); | 
					
						
							|  |  |  | 		display: flex; | 
					
						
							|  |  |  | 		align-items: center; | 
					
						
							|  |  |  | 		justify-content: center; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 		image { | 
					
						
							|  |  |  | 			width: 20px; | 
					
						
							|  |  |  | 			height: 20px; | 
					
						
							|  |  |  | 		} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 	.bar-img { | 
					
						
							|  |  |  | 		width: 50rpx; | 
					
						
							|  |  |  | 		height: 50rpx; | 
					
						
							|  |  |  | 		margin: 0px auto; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 		image { | 
					
						
							|  |  |  | 			width: 50rpx; | 
					
						
							|  |  |  | 			height: 50rpx; | 
					
						
							|  |  |  | 		} | 
					
						
							|  |  |  | 	} | 
					
						
							|  |  |  | </style> |