<template>
	<view class="usdt-box" :rise-fall="riseFallStatus">
		<view  :class="['usdt-item' , index === 1 ? 'rise' : 'fall']"
			v-for="(item , index ) in list" :key="`usdt_${index}`">
			<text class="item-title">BTC/USDT</text>
			<text class="item-nums">28545.1</text>
			<text class="item-ratio">+0.19%</text>
			<text class="item-result">=￥196105.45</text>
		</view>
	</view>
</template>

<script>
	import {
		mapGetters
	} from 'vuex'
	export default {
		name: "usdtModules",
		data() {
			return {
				list: [
					'币王BiKing合约交易所代理签约邀您加入币王BiKing合约交易所代理签约邀您加入',
					'币王BiKing合约交易所代理签约邀您加入币王BiKing合约交易所代理签约邀您加入',
					'币王BiKing合约交易所代理签约邀您加入币王BiKing合约交易所代理签约邀您加入',

				]
			};
		},

		computed: {
			...mapGetters([
				'riseFallStatus'
			]),
		}
	}
</script>

<style lang="scss" scoped>
	.usdt-box {
		width: 100%;
		min-height: 218rpx;
		background-color: $modules-box-bg;
		padding: 30rpx $pages-padding 20rpx;
		display: flex;

		.usdt-item {
			width: 33%;
			display: flex;
			flex-direction: column;
			justify-content: center;
			align-items: center;
			font-family: PingFang SC, PingFang SC-Bold;
			font-weight: 700;

			.item-title {

				font-size: 22rpx;
				line-height: 30rpx;
				color: #1a1a1a;
				letter-spacing: 0.44rpx;
			}

			.item-nums {

				font-size: 38rpx;
				line-height: 53rpx;
				padding-top: 11rpx;
				letter-spacing: 0.76rpx;
			}

			.item-ratio {

				font-size: 24rpx;
				line-height: 33rpx;
				padding-top: 7rpx;
				letter-spacing: 0.44rpx;
			}

			.item-result {

				font-size: 24rpx;
				font-family: PingFang SC, PingFang SC-Regular;
				font-weight: 400;
				line-height: 33rpx;
				color: #808080;
				letter-spacing: 0.48rpx;
			}
		}

		.err-item {
			.item-nums {
				color: #FF0000;
			}

			.item-ratio {
				color: #BE1B1B;
			}

		}
	}
</style>