You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

123456789101112131415161718192021222324252627282930313233
  1. <template>
  2. <div>
  3. <div class="no-style" v-html="campaignHtml"></div>
  4. </div>
  5. </template>
  6. <script>
  7. import { mapState, mapActions } from "vuex";
  8. export default {
  9. name: "clientView",
  10. data() {
  11. return {};
  12. },
  13. methods: {
  14. ...mapActions("campaign", ["getCampaignHTML"]),
  15. routerGoTo(goto) {
  16. this.$router.push(goto);
  17. }
  18. },
  19. mounted() {
  20. this.getCampaignHTML(this.$route.params.id);
  21. this.$emit("setLandingPage", true);
  22. if (!this.campaign.isActive) {
  23. console.log("reroute to exp");
  24. this.$router.push("/CampaignExpired");
  25. }
  26. },
  27. computed: {
  28. ...mapState("campaign", ["campaignHtml"])
  29. }
  30. };
  31. </script>