<template>
	<view class="content">
		<view class="row row-bottom">
			<view class="left">字段1</view>
			<input v-model='param.filed1' class="right-bottom"
				placeholder="请输入字段1"></input>
		</view>
		<view class="row row-bottom">
			<view class="left">字段2</view>
			<input v-model='param.filed2' class="right-bottom"
				placeholder="请输入字段2"></input>
		</view>
		<view class="bottom-btn">
			<button type="primary" class="submit" hover-class="none" @click="submit()">提交</button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: 'Hello',
				param:{
					filed1:'',
					filed2:'',
				}
				
			}
		},
		onLoad() {

		},
		methods: {
			submit(){
				uni.request({
					url: 'http://localhost:8888/v1/testTable',
					method: 'POST',
					data:this.param,
					success: (res) => {
						console.log(res)
					}
				})
			}
		}
	}
</script>

<style scoped lang="scss">
	.content,
	.content1,
	.content2 {
		border-radius: 20rpx;
		background: white;
		padding: 20rpx;
	
		.title {
			font-size: 28rpx;
			font-weight: 600;
			color: #333333;
		}
	
		.row {
			display: flex;
			justify-content: space-between;
			border-bottom: 1px solid #EEEEEE;
			padding: 21rpx 0;
	
			.right,
			input {
				font-size: 28rpx;
				color: #333333;
			}
		}
	
		.row-bottom {
	
			// border: 0;
			.right-bottom {
				width: 280rpx;
				text-align: right;
			}
		}
	}
	.right-bottom {
		width: 280rpx;
		text-align: right;
	}
	.logo {
		height: 200rpx;
		width: 200rpx;
		margin-top: 200rpx;
		margin-left: auto;
		margin-right: auto;
		margin-bottom: 50rpx;
	}

	.text-area {
		display: flex;
		justify-content: center;
	}

	.title {
		font-size: 36rpx;
		color: #8f8f94;
	}
	.bottom-btn {
		padding: 30rpx;
		background: #FFFFFF;
		width: 92%;
		position: fixed;
		bottom: 0rpx;
		display: flex;
		z-index: 9999;
	}
	
</style>
