uniapp 评价订单按钮跳转

uniapp yekong

uniapp 评价订单按钮跳转

源码

<template>
	<view v-if="status==6" class="evaluation" @click="evaluation">
		评价订单
	</view>
</template>

<script>
	export default {
		data() {
			return {
			}
		},
		props: {
			id: {
				type: Number,
				default () {
					return 0;
				}
			},
			status: {
				type: Number,
				default () {
					return 0;
				}
			},
		},
		methods: {
			evaluation() {
				uni.navigateTo({
					url: "/pages/evaluation/evaluation"
				})
			},
		}
	}
</script>

<style lang="scss" scoped>
	.evaluation {
		width: 138rpx;
		height: 47rpx;
		background: #FEF4DB;
		border: 1rpx solid #FFB400;
		border-radius: 10rpx;
		display: flex;
		justify-content: center;
		align-items: center;
		flex-wrap: nowrap;
		flex-direction: row;
		font-size: 26rpx;
		font-family: PingFang;
		font-weight: 500;
		color: #E48B00;
	}
</style>

喜欢