<template>
	<view class="content">
		<view class="main">
			<view class="main-item flex" v-for="(item,index) in 10">
				<view class="main-left">
					<view class="main-title">
						标题
					</view>
					<view class="main-time">
						2019-06-09 13:00:00
					</view>
				</view>
				<view class="main-right">
					￥200
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				type: ''
			};
		},
		onLoad(option) {
			this.type = option.type;
			if (option.type == 1) {
				uni.setNavigationBarTitle({
					title: '扣款记录'
				});
			} else if (option.type == 2) {
				uni.setNavigationBarTitle({
					title: '奖励记录'
				});
			} else {
				uni.setNavigationBarTitle({
					title: '其他记录'
				});
			}
		},
		onShow() {},
		onReachBottom() {},
		onReady() {},
		methods: {}
	};
</script>

<style lang="scss">
	page,
	.content {
		min-height: 100%;
		height: auto;
	}

	.main {
		margin-top: 20rpx;
		background: #ffffff;
		padding: 0 32rpx;

		.main-item {
			padding: 28rpx 0 22rpx;
			border-bottom: 1px solid #F0F0F0;

			.main-left {
				line-height: 1;

				.main-title {
					font-size: 30rpx;
					font-family: PingFang SC;
					font-weight: bold;
					color: #333333;
				}

				.main-time {
					margin-top: 20rpx;
					font-size: 22rpx;
					font-family: PingFang SC;
					font-weight: 500;
					color: #999999;
				}
			}

			.main-right {
				font-size: 34rpx;
				font-family: PingFang SC;
				font-weight: bold;
				color: #FF0000;
			}
		}
	}
</style>