<template>
    <view>
        <!-- 注意，如果需要兼容微信小程序，最好通过setRules方法设置rules规则 -->
        <u--form labelPosition="left" :model="formData" label-width='80px'>
            <u-form-item label="上报人" prop="reportUserName" borderBottom ref="item1">
                <u--input v-model="formData.reportUserName" border="none" disabled></u--input>
            </u-form-item>
            <u-form-item label="上报时间" prop="reportTime" borderBottom ref="item1">
                <u--input v-model="formData.reportTime" border="none" disabled></u--input>
            </u-form-item>
        </u--form>
    </view>
</template>

<script>
	import moment  from 'moment';
export default {
    data() {
        return {
            formData: {
                reportUserName:uni.getStorageSync('value').userName,
				reportTime:moment().format('YYYY-MM-DD HH:mm:ss'),
				userId:uni.getStorageSync('value').userId
            },
        };
    },
	onShow() {
		const userList=uni.getStorageSync('value')
		console.log(userList,'3456789045678945678');
		this.formData.reportUserName = uni.getStorageSync('value').userName
		this.formData.userId = uni.getStorageSync('value').userId
	},
};
</script>