<template>
	<view class="container">
		<tui-msg :type="type" :title="title" :desc="text" color="#008782">

		</tui-msg>
	</view>
</template>

<script>
	import tuiMsg from "@/components/thorui/tui-msg/tui-msg"
	export default {
		data() {
			return {
				status: '',
				text: '',
				type: '',
				title: ""
			}
		},
		methods: {},
		onLoad(option) {
			this.status = option.status == 'true';
			this.type = this.status ? 'success' : 'warn';
			this.title = this.status ? "扫码成功" : "扫码失败";
			this.text = option.text ? option.text : '';
		},
		components: {
			tuiMsg
		}
	}
</script>

<style lang="scss" scoped>
	.conatiner {
		width: 100%;
	}
</style>
