1234567891011121314151617181920212223242526 |
- <template>
- <div>图书id{{bookid}}</div>
- </template>
- <script>
- import {get} from '@/util'
- export default {
- data() {
- return {
- bookid: ''
- }
- },
- methods: {
- async getDetail() {
- const info = await get('/weapp/bookdetail', {id: this.bookid})
- console.log(info);
- }
- },
- mounted() {
- this.bookid = this.$root.$mp.query.id;
- this.getDetail();
- }
- }
- </script>
- <style lang="scss">
- </style>
|