share.html 4.2 KB

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