<template>
	<view>
		<!-- content -->
		<view class="content">
			<t-o-news-tab-2 ref="tab_2"></t-o-news-tab-2>
		</view>

		<view class="go_top" @click="go_top">
			<uni-icons type="top" size="22"></uni-icons>
		</view>
	</view>
</template>

<script>
	export default {
		name: "t-o-news",
		data() {
			return {

			};
		},
		methods: {
			tab_2_onReachBottom() {
				this.$refs.tab_2.nextPage();
			},

			go_top() {
				uni.pageScrollTo({
					scrollTop: 0,
					duration: 200
				});
			}
		}
	}
</script>

<style lang="scss">
	page {
		background-color: #F2FAF7;
	}

	.tab {
		background-color: #FFFFFF;
		box-sizing: border-box;
		padding: 25rpx 50rpx;

		display: flex;
		justify-content: space-between;
		align-items: center;

		.item {
			text-align: center;

			.icon {
				height: 80rpx;

				image {
					width: 95rpx;
					height: 66rpx;
				}
			}

			.title {
				margin-top: 10rpx;

				.text {
					font-size: 30rpx;
					color: #727272;
				}

				.tip {
					margin-top: 5rpx;
					font-size: 24rpx;
					color: #979797;
				}
			}
		}
	}

	.content {
		margin-top: 20rpx;
	}

	.go_top {
		z-index: 999;
		position: fixed;
		bottom: 150rpx;
		right: 50rpx;

		width: 100rpx;
		height: 100rpx;
		line-height: 100rpx;
		text-align: center;
		// background-color: #FFFFFF;
		background-color: #EEEEEE;
		border-radius: 50%;

		font-weight: 700;
	}
</style>
