12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <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>
|