<template>
	<view style="display: flex;flex-direction: column;width: 100%;height: 100vh;background: #FEA75E;">
	
		<NavBar ref="nav" navTitle="企业认证" :showIcon="true" :supportChange="false">
		</NavBar>
	
		<!-- <loading-state ref="pageView" @request="request"> -->
		
			<view style="width: 100%;height: 100vh;background: #F7F7F7; border-radius: 20px;display: flex;flex-direction: column;
			padding-left: 16px;padding-right: 16px;padding-top: 8px;box-sizing: border-box;">
				
				<text class="text">企业名称</text>
				<input placeholder="请输入" class="input" v-model="authenticationInfo.enterpriseName" />
				
				<text class="text">配送地址</text>
				<input placeholder="请输入" class="input" v-model="authenticationInfo.shippingAddress" />
				
				<text class="text">联系人</text>
				<input placeholder="请输入" class="input" v-model="authenticationInfo.contacts" />
				
				<text class="text">联系电话</text>
				<input placeholder="请输入" class="input" v-model="authenticationInfo.telephone" />
				
		
			<!-- 	<text style="position: absolute; bottom: 24px; display: flex;flex-direction: column;width: 100%;text-align: center;
				
				box-sizing: border-box;color: #fff;background: #FF9900; border-radius: 25px; line-height: 40px;height: 40px;">确认</text> -->
				
			
				
			</view>
			
	<view style="position: absolute; bottom: 24px; display: flex;flex-direction: column;width: 100%;
	box-sizing: border-box; padding-left: 16px;padding-right: 16px;">
		
			<view style="background: -webkit-linear-gradient(left,#FFB176,#FE923B);
				width: 100%;border-radius: 25px;height: 50px;text-align: center; 
				line-height: 50px;color: #FFFFFF;font-size: 16px;" @click="save">
				确认</view>
		</view>
		<!-- </loading-state> -->
	
	
	</view>
</template>

<script>
	export default {
		data() {
			return {
				authenticationInfo:{
						customerSid:getApp().globalData.sid,
						enterpriseName:"",
						shippingAddress:"",
						contacts:"",
						telephone:"",
						
				},
				
			}
		},
		
		methods: {
			// 获取数据
			save() {
				
				this.$api.saveAuthentication(this.authenticationInfo).then((resp) => {
					uni.navigateBack()
				}).catch(e => {
					
				})
			},
		}
	}
</script>

<style scoped>

	.text{
		font-size: 16px;
		color: #101010;
		margin-top: 17px;
		font-weight: 600;
		font-family: sans-serif;
	}
	.input{
		margin-top: 12px;
		border: 1px #999999 solid;
		border-radius: 6px;
		font-size: 14px;
		height: 40px;
		line-height: 40px;
		padding-left: 10px;
	}
</style>
