<template>
	<view class="mine-module_content">
		<view class="item" v-for="(item,index) in data_list" :key="index"
		@click="clickType(item.id)">
			<view class="item__left">
				<view class="item__left__name">
					{{item.name}}
				</view>
			</view>
			<view class="item__right">
				<view class="item__right__info" v-if="item.id==3">
					完成送50书币a
				</view>
				<view class="item__right__info" v-else-if="item.id==5">
					工作时间：10：00-19：00
				</view>
				<uni-icons class="item__right__icon" type='right' size="14"></uni-icons>
			</view>
		</view>
	</view>
</template>

<script setup lang="ts">
    import { config } from '../../config/config';
	// let data_list = [
	// 	{'id':config.mine_goto_type.TIANJIAZHUOMIAN,'name':'添加桌面'},
	//     {'id':config.mine_goto_type.JIAOYIJILU,'name':'交易记录'},
	// 	{'id':config.mine_goto_type.LIANXIKEFU,'name':'联系客服'},
	// 	{'id':config.mine_goto_type.GUANYUWOMEN,'name':'关于我们'},
	// ]
	let data_list = [
		{'id':config.mine_goto_type.JIAOYIJILU,'name':'交易记录'},
		{'id':config.mine_goto_type.LIANXIKEFU,'name':'联系客服'},
		{'id':config.mine_goto_type.GUANYUWOMEN,'name':'关于我们'},
	]
	
	const emits = defineEmits(['clickType'])
	function clickType(type:number){
		emits('clickType',type)
	}
	
</script>

<style lang="scss">
	.mine-module_content{
		display: flex;
		flex-direction: column;
		margin: 30px 30rpx;
		padding: 10rpx 20rpx;
		border-radius: 20rpx;
		box-shadow: 0 0 5px 1px rgba(0, 0, 0, 0.1);
		background-color: #ffffff;
		
		.item{
			display: flex;
			flex-direction: row;
			justify-content: space-between;
			align-items: center;
			height: 100rpx;
			
			&__left{
				display: flex;
				flex-direction: row;
				&__name {
					margin-left: 15rpx;
					font-size: 17px;
				}
			}
			&__right {
				display: flex;
				flex-direction: row;
				align-items: center;
				&__info{
					margin-right: 10rpx;
					font-size: 15px;
					color: #484848;
				}
			}
		}
	}
</style>