<template>
	<view>
	 <cu-custom isBack="ture" style="background-color: #FFFFFF;">
		 <block slot="content" >
		 	等待支付
		 </block>
	 </cu-custom>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				timeOut:null
			}
		},
		onLoad(val) {
			var that = this
			this.timeOut = setTimeout(() => {
							that.getOrderState(val.orderId)
						}, 3000)
		},
		onShow() {
			
		},
		methods: {
			getOrderState(orderId){
				this.$u.api.payState({
					orderId:orderId
				}).then(res => {
					// console.log(res)
					if (res.code == 200) {
						
				   
					}
				}).catch(error => {
					console.log(error)
				})
			}
		
		}
	}
</script>

<style>

</style>
