details-no-share.vue 711 B

123456789101112131415161718192021222324252627282930313233
  1. <template>
  2. <app-layout>
  3. <view>
  4. <app-details :coupon-id="id" :is-show-share="false" :type="type"></app-details>
  5. </view>
  6. </app-layout>
  7. </template>
  8. <script>
  9. import appDetails from './app-details.vue';
  10. export default {
  11. name: "details-no-share",
  12. components: {appDetails},
  13. data() {
  14. return {
  15. type: 2,
  16. id: 0
  17. }
  18. },
  19. onLoad(option) { this.$commonLoad.onload(option);
  20. if (option.person) {
  21. this.type = 2
  22. } else {
  23. this.type = 1;
  24. }
  25. this.id = option.id;
  26. },
  27. }
  28. </script>
  29. <style scoped>
  30. </style>