<template>
	<view>
		<web-view :src="url"></web-view>
	</view>
</template>

<script>
	import {
		cancelOrderByOrderNo
	} from '../../../../Utils/Api.js'
	export default {
		data() {
			return {
				url: '',
				orderNo:''
			}
		},
		onLoad(options) {
			this.url = decodeURIComponent(options.url);
			this.orderNo= options.orderid; 
		},
		onUnload() {
			this.cancelOrderByOrderNo();
		},
		methods: {
		//取消订单
			cancelOrderByOrderNo() {
				let that = this;
				let params = {
					orderNo: this.orderNo,
				}
				cancelOrderByOrderNo(params).then(res => {
				})
			},
		}
	}
</script>

<style>

</style>
