<template>
	<view class="page">
		<view class="welT">基本信息</view>
		<l-input title="学号" :value="formData.StuNo" disabled right />
		<l-input title="姓名" :value="formData.StuNo" disabled right />
		<l-input title="班级" :value="formData.StuNo" disabled right />
		<l-input title="系别" :value="formData.StuNo" disabled right />
		<view class="welT">缴费项目</view>
		<l-input title="代收教材费" :value="formData.StuNo" disabled right />
		<l-input title="住宿费" :value="formData.StuNo" disabled right />
		<l-input title="应缴合计" :value="formData.StuNo" disabled right />
		<view class="welT">本次实缴</view>
		<l-input title="代收教材费" :value="formData.StuNo" placeholder="请填写" right />
		<l-input title="住宿费" :value="formData.StuNo"  placeholder="请填写" right />
		<l-input title="应缴合计" :value="formData.StuNo" placeholder="请填写" right />
		<view class="btn" @click="submit">支 付</view>
		<view class="btn" @click="lookInvoice">查看发票</view>
	</view>
</template>

<script>
export default {
	data() {
		return {
			formData:{}
		};
	},
	methods:{
		getFormData(){
			this.LOADING();
			this.HTTP_GET('StuInfoFresh/saveStuInfoFresh', this.queryData,).then(res => {
				this.HIDE_LOADING();
				if (res) {
					this.formData = res
				}
			});
		},
		submit(){
			this.LOADING('正在提交数据…');
			this.HTTP_POST('StuInfoFresh/saveStuInfoFresh', this.queryData,"缴费失败").then(res => {
				this.HIDE_LOADING();
				this.NAV_TO('./payqrcode?id='+15641654);
				if (res) {
					this.NAV_TO('./payqrcode');
					this.TOAST('缴费成功');
				}
			});
		},
		lookInvoice(){
			this.NAV_TO("./payInvioce")
		}
	},
	created() {
		this.getFormData()
	}
};
</script>

<style scoped>
	.page{
		background-color: #fff;
		padding-bottom: 12px;
	}
	.welT {
		font-size: 16px;
		line-height: 26px;
		padding: 0 12px;
		padding-top: 12px;
		color: #999;
	}
	
</style>
