share.html 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  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 {
  91. font-size: 0.32rem;
  92. letter-spacing: 0.02rem;
  93. font-family: PingFangSC-Regular, PingFang SC;
  94. color: #333333;
  95. }
  96. .topic-info p {
  97. font-size: 0.36rem;
  98. font-family: PingFangSC-Regular, PingFang SC;
  99. font-weight: 400;
  100. color: #333333;
  101. letter-spacing: 0.02rem;
  102. }
  103. h1,
  104. h2,
  105. h3,
  106. h4,
  107. h5 {
  108. font-size: 0.32rem;
  109. font-family: PingFangSC-Semibold, PingFang SC;
  110. font-weight: 600;
  111. color: #333333;
  112. /* margin-bottom: 0.12rem;
  113. margin-top: 0.12rem; */
  114. }
  115. </style>
  116. </head>
  117. <body>
  118. <div id="app" v-cloak class="container">
  119. <div class="top-content" v-if='!isshow&&topic.content'>
  120. <p class="title">{{topic.title}}</p>
  121. <p class="createTime"> 发布日期:{{topic.createTime}}</p>
  122. <p class="line"></p>
  123. <div v-html="topic.content" class="topic-info"></div>
  124. </div>
  125. <div class="footer">
  126. <img src="../static/offImg/downLoad.png" alt="" @click="download" />
  127. </div>
  128. <div v-if='isshow' class="hideContainer">
  129. <div>
  130. <img src="../static//offImg/404.png" alt="" />
  131. <p>该资讯已被删除</p>
  132. </div>
  133. </div>
  134. </div>
  135. <script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
  136. <script src="../static/js/vender/vue/axios.min.js"></script>
  137. <script src="../static/js/vender/vue/config.js"></script>
  138. <script src="../static/js/vender/vue/api.js"></script>
  139. <script type="text/javascript">
  140. new Vue({
  141. el: '#app',
  142. data: {
  143. isshow: false,
  144. id: GetRequest().id ? GetRequest().id : 404,
  145. topic: {}
  146. },
  147. created() {
  148. // window.location.href = 'investigate.html'
  149. },
  150. mounted() {
  151. console.log(1111);
  152. this.getList()
  153. },
  154. methods: {
  155. download() {
  156. var u = navigator.userAgent,
  157. app = navigator.appVersion;
  158. var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Linux') > -1; //g
  159. var isIOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
  160. if (isAndroid) {
  161. window.location.href =
  162. 'http://www.androidscloud.com/admin/attachment/download/2117e9b7f3734b16b81b9d7bb1c5a601';
  163. } else if (isIOS) {
  164. window.location.href = 'https://www.pgyer.com/gemini6';
  165. } else {
  166. }
  167. },
  168. getList() {
  169. this.$toast.loading({
  170. duration: 0,
  171. message: '加载中...',
  172. forbidClick: true,
  173. loadingType: 'spinner',
  174. });
  175. getEvantDetails(this.id).then(res => {
  176. this.$toast.clear();
  177. console.log(res);
  178. if (res.status == 0) {
  179. if (res.data) {
  180. this.isshow = false;
  181. this.topic = res.data;
  182. } else {
  183. this.isshow = true;
  184. }
  185. } else {
  186. }
  187. }).catch((error) => {
  188. console.log(error)
  189. this.$toast('网络异常');
  190. });
  191. }
  192. }
  193. })
  194. </script>
  195. </body>
  196. </html>