<template>
	<view class="se-p-60">
		<view class="se-p-40 se-flex se-bgc-white se-br-20 se-bs se-flex-v-sa">
			<text class="se-pb-50 se-pt-100">邀请好友</text>
			<image class="se-a-300 se-br-20" src="https://cdn.uviewui.com/uview/swiper/swiper1.png" mode=""></image>
			<text class="se-pt-50 se-pb-80">邀请码：TKAFGED</text>
		</view>
		<view class="se-px-100 se-pt-80 se-fs-20 se-flex">
			<view @click="onSubmit"
				class="se-mx-10 se-flex-1 se-br-40 se-flex-h-c se-h-80 se-lh-80 se-ta-c se-fs-28 se-c-white se-bgc-green">
				<text>保存到本地</text>
			</view>
		</view>
	</view>
</template>

<script>
	import { getInviteCode } from "@/common/api.js"
	export default {
		data() {
			return {
			
			}
		},
		watch: {
			
		},
		onLoad(options) {
			this.onInviteCode()
		},
		methods: {
			onInviteCode(){
				let that = this
				let params={}
				getInviteCode(params).then(response=>{
					console.info("getInviteCode",response)
				}).catch(error=>{
					
				})
			},
			onSubmit(){
				console.info("保存成功")
			}
		},
		onReady() {
			
		},
	}
</script>

<style>
	page {
		background-color: #f5f5f5;
	}
</style>