<template>
	<view>
		<tki-qrcode
			style="display: flex;justify-content: center;margin-top: 18px;"
			ref="qrcode"
			val="http://localhost:8080/#/pages/onlienpay/payqrcode?id=15641654"
			:size="300"
			:onval="true"
			:loadMake="true"
		/>
		<view class="btn" @click="submit">查询结果</view>
		<view class="btn bg-white" @click="cancel">取消</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				payData:"",
			}
		},
		methods: {
			getPayData(id){
				this.LOADING();
				this.HTTP_GET('StuInfoFresh/saveStuInfoFresh', {id},).then(res => {
					this.HIDE_LOADING();
					if (res) {
						this.payData = res
					}
				});
			},
			cancel(){
				this.NAV_BACK()
			}
		},
		onLoad({id}) {
			this.getPayData(id)
		}
	}
</script>

<style scoped lang="scss">
	.bg-white{
		background-color: gray;
	}
</style>
