<template>
	<view class="accountItem_body flex column">
		<view class="accountItem_title flex jc">
			<view>支付选择</view>
		</view>
		<view class="accountItem_content ">
			<view @click="$emit('update:selectIndex', index)" v-for=" (item,index) in pageData " :key="index"
				class="accountItem_content_item flex ac">
				<image src="@/static/account.png"></image>
				<view class="oneflex">
					<view class="accountItem_content_item_name">{{item.name}}</view>
					<view class="accountItem_content_item_tip"> 当前账户余额 <text>{{ tool.getnum(item.balance,3) }}</text>元 </view>
				</view>
				<uni-icons type="checkmarkempty"
					:color=" selectIndex==index? 'rgba(255, 103, 0, 1)' : 'rgba(202, 202, 202, 1)' "
					size="20"></uni-icons>
			</view>
		</view>
	</view>
</template>

<script>
	import station from '@/api/station.js'
	import play from '@/api/play.js'
	export default {
		props: {
			selectIndex: {
				type: Number,
				default: 0
			},
			pageData: {
				type: Array,
				default: () => []
			}
		},
		data() {
			return {}
		},
		onLoad(e) {},
		methods: {}
	}
</script>

<style lang="scss" scoped>
	@import 'index.scss';
</style>