<template>
	<view class="container">
		<view class="tui-top">
			<tui-list-cell :hover="false" :unlined="true">
				<view class="tui-notice-item">
					<view class="tui-list-item_title">推送通知</view>
					<switch :checked="false" color="#109fc7" class="tui-scale-small" />
				</view>
			</tui-list-cell>
		</view>
		<view class="tui-top">
			<tui-list-cell :hover="false">
				<view class="tui-notice-item">
					<view class="tui-list-item_title">@我</view>
					<switch :checked="true" color="#19be6b" class="tui-scale-small" />
				</view>
			</tui-list-cell>
			<tui-list-cell :hover="false">
				<view class="tui-notice-item">
					<view class="tui-list-item_title">发货通知</view>
					<switch :checked="false" color="#19be6b" class="tui-scale-small" />
				</view>
			</tui-list-cell>
			<tui-list-cell :hover="false">
				<view class="tui-notice-item">
					<view class="tui-list-item_title">收货通知</view>
					<switch :checked="true" color="#19be6b" class="tui-scale-small" />
				</view>
			</tui-list-cell>
			<tui-list-cell :hover="false">
				<view class="tui-notice-item">
					<view class="tui-list-item_title">支付成功通知</view>
					<switch :checked="true" color="#19be6b" class="tui-scale-small" />
				</view>
			</tui-list-cell>
			<tui-list-cell :hover="false" :unlined="true">
				<view class="tui-notice-item">
					<view class="tui-list-item_title">系统通知</view>
					<switch :checked="false" color="#19be6b" class="tui-scale-small" />
				</view>
			</tui-list-cell>
		</view>
		<view class="tui-top">
			<tui-list-cell :hover="false">
				<view class="tui-notice-item">
					<view class="tui-list-item_title">我关注的</view>
					<switch :checked="false" color="#19be6b" class="tui-scale-small" />
				</view>
			</tui-list-cell>
			<tui-list-cell :hover="false">
				<view class="tui-notice-item">
					<view class="tui-list-item_title">我订阅的</view>
					<switch :checked="false" color="#19be6b" class="tui-scale-small" />
				</view>
			</tui-list-cell>
			<tui-list-cell :hover="false" :unlined="true">
				<view class="tui-notice-item">
					<view class="tui-list-item_title">我喜欢的</view>
					<switch :checked="false" color="#19be6b" class="tui-scale-small" />
				</view>
			</tui-list-cell>
		</view>
	</view>
</template>

<script>
export default {
	data() {
		return {};
	},
	methods: {},
	/**
	 * 页面相关事件处理函数--监听用户下拉动作
	 */
	onPullDownRefresh: function() {
		setTimeout(() => {
			uni.stopPullDownRefresh()
		}, 200);
	},
};
</script>

<style lang="scss" scoped>
.container {
	padding-bottom: 48rpx;
	.tui-top {
		margin-top: 20rpx;
	}
	.tui-notice-item {
		width: 100%;
		box-sizing: border-box;
		display: flex;
		align-items: center;
		justify-content: space-between;
		font-size: $uni-font-size-lg;
		.tui-list-item_title {
			display: flex;
			align-items: center;
		}
		.tui-scale-small {
			transform: scale(0.8);
			transform-origin: 100% center;
		}
	}
}
</style>
