<template>
	<view class="pages">
		<view class="content">
			<image :src="$getimg + 'icon-chenggong.png'" class="content-icon" mode="heightFix"></image>
			<view class="content-til">购买成功</view>
			<view class="content-subtil">您将获得由重庆生态环境局发给您的碳汇购碳证书，您还可以将您的证书分享到您的朋友圈，号召更多的人购买碳汇践行环保</view>
		</view>
		<view class="full-btn" @click="goCertDetails">查看证书</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				$getimg:this.$getimg,
				token:'',
				orderid:'',
				params:{
					
				}
				
			}
		},
		onShow() {
			let serf = this;
			this.token = this.$store.state.token;
		},
		onLoad(option) {
			console.log('option',option);
			this.orderid = option.orderid;

		},
		methods: {
			goCertDetails(id){
				// console.log(id)
				uni.navigateTo({
					url: '/pages/usercenter/certificateList/certificate/certificate?orderid=' + this.orderid,
				});
			},

		}
	}
</script>

<style>
	@import url("./buySuccess.css");
</style>
