share.html 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183
  1. <!DOCTYPE html>
  2. <html lang="zh-CN">
  3. <head>
  4. <meta charset="UTF-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
  6. <title></title>
  7. <link rel="icon" href="../static/img/favicon2.ico" type="img/x-ico">
  8. <link rel="stylesheet" href="../static/css/index.css">
  9. <link rel="stylesheet" href="../static/css/vant.css" />
  10. <script src="../static/js/vender/vue/vue.min.js"></script>
  11. <script src="../static/js/vender/vue/vant.min.js"></script>
  12. <style>
  13. .container {
  14. display: flex;
  15. height: 100vh;
  16. /* align-items: center;
  17. justify-content: center; */
  18. }
  19. .footer {
  20. position: fixed;
  21. bottom: 0rem;
  22. height: 1.36rem;
  23. padding: 0 1.14rem;
  24. width: 100%;
  25. left: 0;
  26. }
  27. .footer img {
  28. width: 100%;
  29. height: 100%;
  30. }
  31. .hideContainer {
  32. width: 100%;
  33. display: flex;
  34. justify-content: center;
  35. align-items: center;
  36. text-align: center;
  37. }
  38. .hideContainer img {
  39. width: 2.8rem;
  40. height: 2.8rem;
  41. }
  42. .hideContainer p {
  43. font-size: 0.28rem;
  44. margin-top: 0.3rem;
  45. font-family: PingFangSC-Regular, PingFang SC;
  46. color: #999999;
  47. }
  48. .top-content {
  49. width: 100%;
  50. padding: 0.2rem 0.3rem;
  51. }
  52. .top-content .title {
  53. font-size: 0.44rem;
  54. font-family: PingFangSC-Medium, PingFang SC;
  55. color: #000000;
  56. letter-spacing: 0.01rem;
  57. margin-bottom: 0.2rem;
  58. }
  59. .topic-info {
  60. padding-bottom: 1.6rem;
  61. }
  62. .line {
  63. width: 100%;
  64. height: 0.02rem;
  65. background: #D8D8D8;
  66. margin-bottom: 0.2rem;
  67. }
  68. .createTime {
  69. font-size: 0.28rem;
  70. font-family: PingFangSC-Regular, PingFang SC;
  71. font-weight: 400;
  72. color: #999999;
  73. margin-bottom: 0.2rem;
  74. }
  75. </style>
  76. </head>
  77. <body>
  78. <div id="app" v-cloak class="container">
  79. <div class="top-content" v-if='!isshow&&topic.content'>
  80. <p class="title">{{topic.title}}</p>
  81. <p class="createTime"> 发布日期:{{topic.createTime}}</p>
  82. <p class="line"></p>
  83. <div v-html="topic.content" class="topic-info"></div>
  84. </div>
  85. <div class="footer">
  86. <img src="../static/offImg/downLoad.png" alt="" @click="download" />
  87. </div>
  88. <div v-if='isshow' class="hideContainer">
  89. <div>
  90. <img src="../static//offImg/404.png" alt="" />
  91. <p>该资讯已被删除</p>
  92. </div>
  93. </div>
  94. </div>
  95. <script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
  96. <script src="../static/js/vender/vue/axios.min.js"></script>
  97. <script src="../static/js/vender/vue/config.js"></script>
  98. <script src="../static/js/vender/vue/api.js"></script>
  99. <script src="../static/js/vender/config.js"></script>
  100. <script type="text/javascript">
  101. new Vue({
  102. el: '#app',
  103. data: {
  104. isshow: false,
  105. id: GetRequest().id?GetRequest().id:404,
  106. topic: {}
  107. },
  108. created() {
  109. // window.location.href = 'investigate.html'
  110. },
  111. mounted() {
  112. console.log(1111);
  113. this.getList()
  114. },
  115. methods: {
  116. download() {
  117. var u = navigator.userAgent,
  118. app = navigator.appVersion;
  119. var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Linux') > -1; //g
  120. var isIOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
  121. if (isAndroid) {
  122. window.location.href =
  123. 'http://www.androidscloud.com/admin/attachment/download/2117e9b7f3734b16b81b9d7bb1c5a601';
  124. } else if (isIOS) {
  125. window.location.href = 'https://www.pgyer.com/gemini6';
  126. } else {
  127. }
  128. },
  129. getList() {
  130. this.$toast.loading({
  131. duration: 0,
  132. message: '加载中...',
  133. forbidClick: true,
  134. loadingType: 'spinner',
  135. });
  136. getEvantDetails(this.id).then(res => {
  137. this.$toast.clear();
  138. console.log(res);
  139. if (res.status == 0) {
  140. if (res.data) {
  141. this.isshow = false;
  142. this.topic = res.data;
  143. } else {
  144. this.isshow = true;
  145. }
  146. } else {
  147. }
  148. })
  149. }
  150. }
  151. })
  152. </script>
  153. </body>
  154. </html>