<template>
	<mobile-frame>
		<view class="main">
			<view class="one">
				<view class="one_1">
					<view class="text1">{{info.name}}{{info.specs}}</view>
					<view class="text2">好评率 <text>{{info.rate}}%</text></view>
				</view>
				<view class="one_2">
					<view class="one_2_1" v-for="(item,index) in btnlist" :key="index">
						<text>{{item.name}}</text><text>({{item.num||0}})</text>
					</view>
				</view>
			</view>
			<view class="two">

			</view>
		</view>
	</mobile-frame>
</template>

<script>
	export default {
		data() {
			return {
				btnlist: [{
						name: '全部好评',
						num: '1',
						code: '0'
					},
					{
						name: '好评',
						num: '1',
						code: '0'
					},
					{
						name: '中评',
						num: '1',
						code: '0'
					},
					{
						name: '差评',
						num: '1',
						code: '0'
					}
				],
				info: {
					name: '高精面粉',
					specs: '5g',
					rate: '95'
				},
				list: []
			};
		},
		onLoad: function(e) {

		},
		methods: {

		}
	}
</script>

<style lang="scss">
	.main {
		display: flex;
		flex-direction: column;
		width: 100vw;
		height: 100vh;
		background-color: var(--f1Color);

		.one {
			margin: 0 0 2vw 0;

			.one_1 {
				display: flex;
				justify-content: space-around;
				background-color: var(--mainColor);
				margin: 0 0 0.5vw 0;
				padding: 2vw;

				.text1 {
					font-size: var(--font16Szie);
				}

				.text2 {
					font-size: var(--font16Szie);
					color: var(--f85Color);

					text {
						margin: 0 0 0 1vw;
						color: var(--ff0Color);
					}
				}
			}

			.one_2 {
				display: flex;
				justify-content: space-between;
				padding: 2vw;
				background-color: var(--mainColor);
			}
		}
	}
</style>
