<template>
	<u-popup :show="show" @close="$emit('close')" round="20rpx" bgColor="#f3f5f9" zIndex="10076">
		<view class="more-actions-popup">
			<view class="more-action-item" @click="$emit('integral')">
				<image class="action-icon"
					src="https://bjzmky-1323137866.cos.ap-chongqing.myqcloud.com/userapp/images/order.png" />
				<view class="action-label">积分</view>
			</view>
			<view class="more-action-item" @click="$emit('exchange')">
				<image class="action-icon"
					src="https://bjzmky-1323137866.cos.ap-chongqing.myqcloud.com/userapp/images/points.png" />
				<view class="action-label">兑换好礼</view>
			</view>
			<view class="more-action-item" @click="$emit('winning-record')">
				<image class="action-icon"
					src="https://bjzmky-1323137866.cos.ap-chongqing.myqcloud.com/userapp/images/health_sel.png" />
				<view class="action-label">中奖记录</view>
			</view>
		</view>
	</u-popup>
</template>

<script>
export default {
	name: 'LiveMoreMenu',
	props: {
		show: { type: Boolean, default: false }
	}
}
</script>

<style scoped lang="scss">
.more-actions-popup {
	border-radius: 20rpx 0 0 20rpx;
	padding: 70rpx 30rpx;
	display: flex;
	justify-content: space-between;

	.more-action-item {
		display: flex;
		flex-direction: column;
		align-items: center;

		.action-icon {
			width: 48rpx;
			height: 48rpx;
		}

		.action-label {
			color: #1e1e1e;
			text-align: center;
			margin-top: 10rpx;
		}
	}
}
</style>
