<template>
	<!-- 团购订单详情 -->
	<view>
		<!-- 头部 -->
		<groupTitle></groupTitle>
		<!-- 券 -->
		<groupCoupons></groupCoupons>
		<!-- 商家信息 -->
		<groupMerchants></groupMerchants>
		<!-- 到店 -->
		<groupStore></groupStore>
		<!-- 提示 -->
		<groupPrompt></groupPrompt>
		<!-- 实付 -->
		<groupPay></groupPay>
	</view>
</template>

<script>
	import groupTitle from './components/groupTitle.vue'
	import groupCoupons from './components/groupCoupons.vue'
	import groupMerchants from './components/groupMerchants.vue'
	import groupStore from './components/groupStore.vue'
	import groupPrompt from './components/groupPrompt.vue'
	import groupPay from './components/groupPay.vue'
	export default {
		components: {
			groupTitle,
			groupCoupons,
			groupMerchants,
			groupStore,
			groupPrompt,
			groupPay
		},
		onLoad(e) {
			this.orderId = e.orderId
			this.orderorderInfo()
		},
		data() {
			return {
				orderId: "",
				listinfo: null
			}
		},
		methods: {
			orderorderInfo() {
				let _this = this
				uni.getStorage({
					key: "getLocationstorage",
					success: function(data) {
						let {
							lat,
							lng
						} = data.data
						let res = _this.api.groupOrderInfoDetail({
							id: _this.orderId,
							lat,
							lng
						})
						if (res.code == 0) {
							_this.listinfo = res.data
							// this.mountedcreateSelectorQuery()
						}
					}
				});

			},
		}
	}
</script>

<style>

</style>