<template>
	<view class="content">
		<fxyk-navbar :isSearch="false" title="节点批示" />
		<fxyk-textarea marginBottom="42" />
		<view class="d-flex a-center j-sb u-p-l-44 u-p-r-44" style="margin-bottom:202rpx">
			<view class="box d-flex a-center j-center">
				<fxyk-button style="font-size: 21rpx;
									line-height: 27rpx" 
							 width="106" 
							 height="44" 
							 bgColor="#4CB2FF" 
							 content="查看附件" />
			</view>
			<view class="box d-flex a-center j-center">
				<fxyk-button style="font-size: 21rpx;
									line-height: 27rpx;
									color: #848484;"
							 width="104" 
							 height="104" 
							 bgColor="#E5E9ED" 
							 content="上传附件" 
							 @click.native="uploading" />
			</view>  
		</view>
		<fxyk-button content="确认" width="238"></fxyk-button>
	</view>	
</template>

<script>
	export default {
		methods: {
			// 上传附件
			uploading() {
				uni.chooseImage({
					count: 6, //默认9
					sizeType: ['original', 'compressed'], //可以指定是原图还是压缩图，默认二者都有
					sourceType: ['album', 'camera '], //从相册选择
					success: function (res) {
						console.log(JSON.stringify(res.tempFilePaths));
					}
				})
			}
		}
	}
</script>

<style lang="scss" scoped>
	page {
		width: 100%;
		height: 100%;
	}
	.content {
		width: 100%;
		height: 100%;
		min-height: 100vh;
		background-color: $yk-bg-color;
	}
	.box {
		width: 321rpx;
		height: 154rpx;
		border: 2rpx dashed #707070;
	}
</style>
