<template>
	<view class="content">
		<view class="s-success-tips">
			<image class="success-icon" src="@/static/cer-icon.png" mode=""></image>
			<view class="s-title">评价成功</view>
			<view class="s-text">感谢你的评价，你为用户选择提供了真实的参考意见</view>
		</view>
		<view class="s-btn-box">
			<view class="check-comments" @click="check_comments">查看评价</view>
			<view class="back-home" @click="back_home">返回首页</view>
		</view>
	</view>
</template>

<script lang="ts" setup>
	import { ref } from 'vue'
	const check_comments = () => {
		uni.navigateTo({
			url: '/pages/index/commentsDetail/index'
		})
	}
	
	const back_home = () => {
		uni.switchTab({
			url: '/pages/index/index'
		})
	}
</script>

<style>
	page {
		background: linear-gradient(180deg, #FBFFEE 0%, #F6F6F6 100%);
	}
</style>
<style lang="less" scoped>
	.s-success-tips {
		margin-top: 96rpx;
		text-align: center;

		.success-icon {
			width: 148rpx;
			height: 148rpx;
		}

		.s-title {
			margin-top: 32rpx;
			font-weight: bold;
			font-size: 32rpx;
			color: #222222;
		}

		.s-text {
			margin-top: 20rpx;
			font-size: 24rpx;
			color: #AAAAAA;
		}
	}

	.s-btn-box {
		margin-top: 60rpx;
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 20rpx;

		.check-comments {
			width: 240rpx;
			height: 100rpx;
			background: #FFFFFF;
			border-radius: 32rpx;
			font-weight: bold;
			font-size: 32rpx;
			color: #222222;
			text-align: center;
			line-height: 100rpx;
		}

		.back-home {
			width: 240rpx;
			height: 100rpx;
			background: #C8FF0C;
			border-radius: 32rpx;
			font-weight: bold;
			font-size: 32rpx;
			color: #222222;
			text-align: center;
			line-height: 100rpx;
		}
	}
</style>