share.html 4.3 KB

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