<template>
	<view class="container register">
		<view class="main">
			<view class="main-item">
				<view class="item" @click.stop="this.$api.navigateTo('/pages/seller/login/register-general')">
					<view class="icon">
						<image src="https://static.caimei365.com/app/img/icon/icon-general.png" mode=""></image>
					</view>
					<view class="text">个人机构</view>
				</view>
				<view class="item" @click.stop="this.$api.navigateTo('/pages/seller/login/register-member')">
					<view class="icon">
						<image src="https://static.caimei365.com/app/img/icon/icon-member.png" mode=""></image>
					</view>
					<view class="text">资质机构</view> <view class="text none">（原会员机构）</view>
				</view>
			</view>
			<view class="main-item-text" v-if="insideFLag === 1" @click.stop="this.$api.navigateTo('/pages/seller/login/register-invite')"> 
				邀请机构注册 
				<text class="iconfont icon-youjiantou"></text>
			</view>
		</view>
	</view>
</template>

<script>
export default {
	data() {
		return {
			insideFLag:0
		}
	},
	onLoad() {
		this.initGetStotage()
	},
	computed: {},
	methods: {
		async initGetStotage() {
			// 初始化
			const userInfo = await this.$api.getStorage()
			this.insideFLag = userInfo.insideFLag ? userInfo.insideFLag : 0
		}
	}
}
</script>

<style lang="scss">
.register {
	width: 100%;
	height: 100%;
	position: relative;
	box-sizing: border-box;
	padding-top: 100rpx;
	.main {
		width: 100%;
		height: 370rpx;
		.main-item-text {
			width: 100%;
			height: 100rpx;
			float: left;
			box-sizing: border-box;
			margin-top: 150rpx;
			text-align: center;
			font-size: 28rpx;
			line-height: 100rpx;
			color: #FF5B00;
		}
		.main-item {
			width: 100%;
			height: auto;
			float: left;
			box-sizing: border-box;
			margin-top: 20rpx;
			.item {
				width: 100%;
				height: auto;
				float: left;
				display: flex;
				flex-direction: column;
				align-items: center;
				margin-top: 80rpx;
				.icon {
					width: 190rpx;
					height: 190rpx;
					image {
						width: 190rpx;
						height: 190rpx;
						display: block;
					}
				}
				.text {
					line-height: 54rpx;
					font-size: $font-size-30;
					text-align: center;
					color: #333333;
					&.none {
						color: #999999;
						font-size: $font-size-26;
						line-height: 28rpx;
					}
				}
				.text-small {
					line-height: 54rpx;
					font-size: $font-size-24;
					text-align: center;
					color: #999999;
				}
			}
		}
	}
}
</style>
