<template>
	<view class="_main" @tap="gourl" :data-url="'/pages/?id=' + data.id">
		<image class="_img" :src="file_stor(data.avar, '?100')" mode="scaleToFill" />
		<view class="flex1 rel">
			<view class="_name" style="min-height:3em;">{{data.name}}</view>
			<view>
				金额 <ciy-shownum style="font-size:1.6em;" :value="data.bankmoney" unit="元,100,2|万元,1000000,3|亿元,10000000000,3"></ciy-shownum>
			</view>
			<view class="abs r0 b0 kbd">{{ccode(initdata.zc_menu,data.menuid)}}</view>
		</view>
	</view>
</template>

<script>
	export default {
		props: {
			initdata: {
				type: Object,
				default: {}
			},
			data: {
				type: Object,
				default: {}
			},
			index: {
				type: Number,
				default: -1
			}
		},
		data() {
			return {}
		},
		mounted() {},
		methods: {}
	};
</script>

<style scoped>
	._main {
		background: var(--bg1);
		display: flex;
		padding: 0.5em;
		margin-bottom: 0.5em;
		border-bottom: 1px solid var(--bg6);
		border-top: 1px solid var(--bg4);
	}

	._img {
		width: 5em;
		height: 5em;
		margin-top: 0.5em;
		margin-right: 0.5em;
		border-radius: 0.2em;
		background: linear-gradient(329deg, #f3ffef, #f1f8ff);
	}

	._name {
		margin-top: 0.3em;
		font-size: 1em;
		letter-spacing: 1px;
		color: var(--txt9);
	}
</style>