<template>
	<view class="bundleDetail-wrap">
		<bundleDetail :data="bundleData" parentPage="detail"></bundleDetail>
	</view>
</template> 

<script>
	import bundleDetail from '../bundle_detail.vue'
	import {getBundleDetails} from '@/api/customerBundle'
	export default {
		data() {
			return {
				bundleData: {}
			}
		},
		onLoad(query) {
	      console.log(query)
		  let id = query.id
		  if (id){
			  this.getDetail(id)
		  }
		},
		components:{
			bundleDetail
		},
		methods: {
	       // 查看套餐详情
	       getDetail (id) {
	       			 let _this = this
	         getBundleDetails({id: id}).then(res => {
	           console.log(res)
	           if (res.status == 200) {
	             _this.bundleData = res.data
	       				 console.log(_this.bundleData)
	           }
	         })
	       }
		}
	}
</script>

<style lang="less">
	.bundleDetail-wrap{
		width: 100%;
	}
</style>
