actFissionShare.html 8.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291
  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. padding: 0.2rem 0.3rem;
  19. /* align-items: center;
  20. justify-content: center; */
  21. }
  22. .top-banner {
  23. width: 6.82rem;
  24. height: 0.82rem;
  25. background: url("../static/offImg/share-top.png") no-repeat;
  26. background-size: 100% 100%;
  27. }
  28. .footer {
  29. position: fixed;
  30. bottom: 0.5rem;
  31. padding: 0 0.3rem;
  32. width: 100%;
  33. left: 0;
  34. }
  35. .download-btn {
  36. width: 6.9rem;
  37. height: 1.3rem;
  38. background: url('../static/offImg/btn-down.png') no-repeat scroll top center #3B7FFF;
  39. background-size: 100% 100%;
  40. box-shadow: 0rem 0.06rem 0.4rem 0rem rgba(59, 127, 255, 0.6);
  41. border-radius: 0.2rem;
  42. display: flex;
  43. justify-content: space-between;
  44. align-items: center;
  45. padding: 0 0.4rem;
  46. }
  47. .button-download {
  48. width: 2.5rem;
  49. height: 0.8rem;
  50. line-height: 0.8rem;
  51. background: linear-gradient(360deg, #FF8300 0%, #FEC000 100%);
  52. border-radius: 0.2rem;
  53. text-align: center;
  54. font-size: 0.3rem;
  55. font-family: PingFangSC-Medium, PingFang SC;
  56. color: #FFFFFF;
  57. }
  58. .download-btn .left-nav p:first-of-type {
  59. font-size: 0.24rem;
  60. font-family: PingFangSC-Regular, PingFang SC;
  61. font-weight: 400;
  62. color: rgba(255, 255, 255, 0.7);
  63. margin-bottom: 0.02rem;
  64. }
  65. .download-btn .left-nav p+p {
  66. font-size: 0.28rem;
  67. font-family: PingFangSC-Regular, PingFang SC;
  68. font-weight: 400;
  69. color: rgba(255, 255, 255, 0.9);
  70. }
  71. .hideContainer {
  72. width: 100%;
  73. display: flex;
  74. justify-content: center;
  75. align-items: center;
  76. height: calc(100vh - 1.36rem);
  77. text-align: center;
  78. }
  79. .hideContainer img {
  80. width: 2.8rem;
  81. height: 2.8rem;
  82. }
  83. .hideContainer p {
  84. margin-top: 0.3rem;
  85. font-family: PingFangSC-Regular, PingFang SC;
  86. color: #999999;
  87. font-size: 0.28rem;
  88. }
  89. .top-content {
  90. width: 100%;
  91. padding: 0.2rem 0.3rem;
  92. }
  93. .top-content .title {
  94. font-size: 0.44rem;
  95. font-family: PingFangSC-Medium, PingFang SC;
  96. color: #000000;
  97. letter-spacing: 0.01rem;
  98. margin-bottom: 0.2rem;
  99. }
  100. .topic-info {
  101. padding-bottom: 1.6rem;
  102. }
  103. .topic-info img {
  104. max-width: 100%;
  105. width: auto;
  106. height: auto;
  107. border-radius: 0.2rem;
  108. margin-bottom: 0.2rem;
  109. margin-top: 0.2rem;
  110. }
  111. .topic-info p {
  112. font-size: 0.36rem;
  113. font-family: PingFangSC-Regular, PingFang SC;
  114. font-weight: 400;
  115. color: #333333;
  116. letter-spacing: 0.02rem;
  117. }
  118. .van-notice-bar {
  119. height: 100%;
  120. background: none;
  121. width: 100%;
  122. }
  123. .notice-swipe {
  124. height: 0.8rem;
  125. line-height: 0.8rem;
  126. }
  127. .van-swipe-item {
  128. display: flex;
  129. align-items: center;
  130. }
  131. .van-swipe-item img {
  132. width: 0.6rem;
  133. margin-left: 0.3rem;
  134. border-radius: 50%;
  135. margin-right: 0.1rem;
  136. height: 0.6rem;
  137. }
  138. .van-swipe-item p {
  139. font-size: 0.28rem;
  140. font-family: PingFangSC-Regular, PingFang SC;
  141. color: #FFFFFF;
  142. }
  143. </style>
  144. </head>
  145. <body>
  146. <div id="app" v-cloak class="container">
  147. <div v-if='!isshow'>
  148. <div class="top-banner">
  149. <van-notice-bar :scrollable="false">
  150. <van-swipe vertical class="notice-swipe" :autoplay="2000" :show-indicators="false">
  151. <van-swipe-item>
  152. <img src="https://img01.yzcdn.cn/vant/cat.jpeg" alt="">
  153. <p>用户昵称超长显示…</p>
  154. <p>已领取分享奖励</p>
  155. </van-swipe-item>
  156. <van-swipe-item>
  157. <img src="https://img01.yzcdn.cn/vant/cat.jpeg" alt="">
  158. <p>用户昵称超长显示…</p>
  159. <p>已领取分享奖励</p>
  160. </van-swipe-item>
  161. </van-swipe>
  162. </van-notice-bar>
  163. </div>
  164. <div class="top-content" v-if='!isshow&&topic.content'>
  165. <div v-html="topic.content" class="topic-info"></div>
  166. </div>
  167. <div class="footer">
  168. <div class="download-btn">
  169. <div class="left-nav">
  170. <p>激活码:</p>
  171. <p>AS4*********SD3</p>
  172. </div>
  173. <div class="button-download">点击复制并下载</div>
  174. </div>
  175. </div>
  176. </div>
  177. <div v-if='isshow' class="hideContainer">
  178. <div>
  179. <img src="../static/offImg/no-data.png" alt="" />
  180. <p>活动已下架,敬请期待</p>
  181. </div>
  182. </div>
  183. </div>
  184. <script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
  185. <script src="../static/js/vender/vue/axios.min.js"></script>
  186. <script src="../static/js/vender/vue/config.js"></script>
  187. <script src="../static/js/vender/vue/api.js"></script>
  188. <script type="text/javascript">
  189. new Vue({
  190. el: '#app',
  191. data: {
  192. isshow: false,
  193. id: GetRequest().id ? GetRequest().id : 404,
  194. topic: {}
  195. },
  196. created() {
  197. // window.location.href = 'investigate.html'
  198. },
  199. mounted() {
  200. // this.getList();
  201. },
  202. methods: {
  203. getCheck() {
  204. getEvantCheck(this.id).then(res => {
  205. console.log(res)
  206. })
  207. },
  208. download() {
  209. var u = navigator.userAgent,
  210. app = navigator.appVersion;
  211. var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Linux') > -1; //g
  212. var isIOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
  213. if (isAndroid) {
  214. window.location.href =
  215. 'http://www.androidscloud.com/admin/attachment/download/2117e9b7f3734b16b81b9d7bb1c5a601';
  216. } else if (isIOS) {
  217. window.location.href = 'https://www.pgyer.com/gemini6';
  218. } else {
  219. }
  220. },
  221. getList() {
  222. this.$toast.loading({
  223. duration: 0,
  224. message: '加载中...',
  225. forbidClick: true,
  226. loadingType: 'spinner',
  227. });
  228. // getEvantDetails(this.id).then(res => {
  229. // this.$toast.clear();
  230. // if (res.status == 0) {
  231. // if (res.data) {
  232. // this.isshow = false;
  233. // this.topic = res.data;
  234. // } else {
  235. // this.isshow = true;
  236. // }
  237. // } else {
  238. // }
  239. // })
  240. }
  241. }
  242. })
  243. </script>
  244. </body>
  245. </html>