<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>
