_type.vue 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <template>
  2. <layout @goBack="goBack">
  3. <!-- type 1(砍一刀) 2(邀请好友) 3 (失败) 4 (成功)都是邀请人 0 是被邀请人 -->
  4. <bargainingAssistance
  5. ref="bargainingAssistance"
  6. :type="$route.params.type"
  7. :operateActivityId="operateActivityId"
  8. :getSystemTime="getSystemTime"
  9. :leaveFun="leaveFun"
  10. :wxIntercept="wxIntercept"
  11. />
  12. </layout>
  13. </template>
  14. <script>
  15. import layout from './components/layout';
  16. import bargainingAssistance from './components/bargainingAssistance';
  17. import common from './mixins/common';
  18. export default {
  19. auth: false,
  20. head: {
  21. title: '0元购机,尽情享受',
  22. },
  23. mixins: [common],
  24. components: {
  25. layout,
  26. bargainingAssistance,
  27. },
  28. data() {
  29. return {};
  30. },
  31. mounted() {},
  32. methods: {
  33. goBack() {
  34. const { bargainingStatus } = this.$refs.bargainingAssistance.info;
  35. if (bargainingStatus === 1 || bargainingStatus === 2) {
  36. this.$refs.bargainingAssistance.exitVisible = true;
  37. }
  38. },
  39. },
  40. };
  41. </script>
  42. <style lang="scss" scoped></style>