publish.vue 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <template>
  2. <div>
  3. <ui-banner flag="投稿" :showPagination="true" banner-class="w-screen h-350px"></ui-banner>
  4. <div class="w-1200px m-auto">
  5. <div class="mt-68px text-[#000A04] text-size-36px text-center font-light">
  6. {{simpleArticle.title}}
  7. </div>
  8. <div class="mt-80px" v-html="simpleArticle.content"></div>
  9. </div>
  10. <div class="flex justify-center items-center pt-30px">
  11. <div @click="handleSubmit" class="w-400px h-40px bg-[#124026] rounded-full text-[#ffffff] flex justify-center items-center">我要投稿</div>
  12. </div>
  13. </div>
  14. </template>
  15. <script>
  16. export default {
  17. data() {
  18. return {
  19. simpleArticle:{},
  20. banner1: [
  21. {url: "/imgs/banner1.png", title: "這裏是輪播圖推薦內容標題"},
  22. {url: "/imgs/banner1.png", title: "這裏是輪播圖推薦內容標題"},
  23. {url: "/imgs/banner1.png", title: "這裏是輪播圖推薦內容標題"},
  24. {url: "/imgs/banner1.png", title: "這裏是輪播圖推薦內容標題"},
  25. {url: "/imgs/banner1.png", title: "這裏是輪播圖推薦內容標題"},
  26. ],
  27. };
  28. },
  29. methods:{
  30. handleSubmit(){
  31. window.open('mailto:test@example.com');
  32. }
  33. },
  34. async created() {
  35. let resp = await this.$http.post(this.$api.common.simpleArticle, this.$qs.stringify({flag: '投稿说明'}));
  36. if (resp.data.status === 200) {
  37. this.simpleArticle = resp.data.data.simpleArticle;
  38. }
  39. }
  40. };
  41. </script>
  42. <style></style>