<template>
	<view class="success">
		<block>
			<image v-if="state==1" src="../static/images/shcg.png"></image>
			<image v-if="state==2" src="../static/images/shsb.png"></image>
			<image v-if="state==0" src="../static/images/sh.png"></image>
		</block>
		<view class="tip">
			<block v-if="state==1">审核成功</block>
			<block v-if="state==2">审核失败</block>
			<block v-if="state==0">审核中</block>
		</view>
		<view class="tips">
			<block v-if="state==0">您已成功提交名片信息，请耐心等待审核</block>
			<block v-if="state==1">您的名片信息已通过审核</block>
			<block v-if="state==2">{{msg}}</block>
		</view>
		<navigator v-if="state==0" url="/card/index/index" open-type="navigate" hover-class="none" class="backhome">预览名片</navigator>
		<view v-if="state==1">
			<navigator url="/card/index/index" open-type="navigate" hover-class="none" class="backhome">预览名片</navigator>
			<navigator url="/card/create/create?isEdit=true" open-type="navigate" hover-class="none" class="backhome color-red">修改信息</navigator>
		</view>
		<navigator v-if="state==2" url="/card/create/create?isEdit=true" open-type="navigate" hover-class="none" class="backhome">去修改</navigator>
	</view>
</template>

<script>
const req = require('../../utils/request.js');
const util = require('../../utils/util.js');
const app = getApp();
export default {
	components: {
	},
	data() {
		return {
			options: {},
			detail: {},
			state:0,
			msg:''
		};
	},
	onLoad(options) {
		this.options = options;
		this.state = options.state?options.state:0
		this.msg = options.msg
	},
	onShow() {
	},
	onReachBottom: function() {
	},
	methods: {
	}
};
</script>

<style>
	@import "./success.css";
</style>
