问星数据小程序

extension.vue 13KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451
  1. <template>
  2. <view>
  3. <view class="qun_type_view">
  4. <view :class="['type_info',tag_type==1?'type_info_active':'']" @click="tagTypeEvent(1)">普通互赞群</view>
  5. <view :class="['type_info',tag_type==2?'type_info_active':'']" @click="tagTypeEvent(2)">垂直互赞群</view>
  6. </view>
  7. <!-- <image src="https://kx-bigdata.oss-cn-beijing.aliyuncs.com/Applet/wxVideo/invite_list_bg.jpg?v=2" mode="widthFix" class="topImgBg"></image> -->
  8. <view class="listView">
  9. <image :src="tag_type==1?'https://kx-bigdata.oss-cn-beijing.aliyuncs.com/Applet/wxVideo/invite_list_title.jpg?v=2':'https://kx-bigdata.oss-cn-beijing.aliyuncs.com/Applet/wxVideo/invite_list_title_2.png'" mode="widthFix" class="list_title"></image>
  10. <scroll-view scroll-y="true" style="height:calc(100vh - 300rpx)">
  11. <view class="listItem" v-for="(item,index) in tag_type==1?list:czList" :key="index">
  12. <view class="left">
  13. <image :src="item.icon_url?item.icon_url:'https://kx-bigdata.oss-cn-beijing.aliyuncs.com/Applet/wxVideo/evm_bitmap.png'" mode="widthFix"></image>
  14. <view class="qunInfo">
  15. <view class="name">{{item.name}}</view>
  16. <view class="tag">{{item.sign_desc}}</view>
  17. </view>
  18. </view>
  19. <button @click="goQun" class="button">加入群聊</button>
  20. </view>
  21. </scroll-view>
  22. </view>
  23. <applet-mask v-if="appletMaskFlag" @closeMask='closeMask' url_scheme="weixin://dl/business/?t=D9GPIFp2mqp" wx_page='/pages/extension/list/index'></applet-mask>
  24. </view>
  25. </template>
  26. <script>
  27. export default {
  28. data() {
  29. return {
  30. tag_type:1,
  31. appletMaskFlag:false,
  32. list:[
  33. {
  34. name:'问星数据互赞群1',
  35. sign_desc:'关注公众号进群',
  36. },
  37. {
  38. name:'问星数据互赞群2',
  39. sign_desc:'高质量完播互赞转发评论关注',
  40. },
  41. {
  42. name:'问星数据互赞群3',
  43. sign_desc:'高质量完播互赞转发评论关注',
  44. },{
  45. name:'问星数据互赞群4',
  46. sign_desc:'高质量完播互赞转发评论关注',
  47. },
  48. {
  49. name:'问星数据互赞群5',
  50. sign_desc:'高质量完播互赞转发评论关注',
  51. },
  52. {
  53. name:'问星数据互赞群6',
  54. sign_desc:'高质量完播互赞转发评论关注',
  55. },
  56. {
  57. name:'问星数据互赞群7',
  58. sign_desc:'高质量完播互赞转发评论关注',
  59. },
  60. {
  61. name:'问星数据互赞群8',
  62. sign_desc:'高质量完播互赞转发评论关注',
  63. },
  64. {
  65. name:'问星数据互赞群9',
  66. sign_desc:'组建中...',
  67. },
  68. ],
  69. czList:[
  70. {
  71. name:'教育类互赞群',
  72. sign_desc:'垂直互赞获取更优资源',
  73. icon_url:'https://sph.wenxingshuju.com/wx_sph/upload/group_qrcode/icon4956eaefb5_20210714.png'
  74. },
  75. {
  76. name:'生活类互赞群',
  77. sign_desc:'垂直互赞获取更优资源',
  78. icon_url:'https://sph.wenxingshuju.com/wx_sph/upload/group_qrcode/icon870389a711_20210714.png'
  79. },
  80. {
  81. name:'职场类互赞群',
  82. sign_desc:'垂直互赞获取更优资源',
  83. icon_url:'https://sph.wenxingshuju.com/wx_sph/upload/group_qrcode/iconb43313239e_20210714.png'
  84. },
  85. {
  86. name:'影视娱乐类互赞群',
  87. sign_desc:'垂直互赞获取更优资源',
  88. icon_url:'https://sph.wenxingshuju.com/wx_sph/upload/group_qrcode/icon6299e921f0_20210714.png'
  89. },
  90. {
  91. name:'科技互联网类互赞群',
  92. sign_desc:'垂直互赞获取更优资源',
  93. icon_url:'https://sph.wenxingshuju.com/wx_sph/upload/group_qrcode/icon1a7a3c0838_20210714.png'
  94. },
  95. {
  96. name:'时尚艺术类互赞群',
  97. sign_desc:'垂直互赞获取更优资源',
  98. icon_url:'https://sph.wenxingshuju.com/wx_sph/upload/group_qrcode/iconf1c0058685_20210714.png'
  99. },
  100. {
  101. name:'情感类互赞群',
  102. sign_desc:'垂直互赞获取更优资源',
  103. icon_url:'https://sph.wenxingshuju.com/wx_sph/upload/group_qrcode/icon291ed65817_20210714.png'
  104. },
  105. {
  106. name:'美食类互赞群',
  107. sign_desc:'垂直互赞获取更优资源',
  108. icon_url:'https://sph.wenxingshuju.com/wx_sph/upload/group_qrcode/icon5af4519238_20210714.png'
  109. },
  110. {
  111. name:'音乐类互赞群',
  112. sign_desc:'垂直互赞获取更优资源',
  113. icon_url:'https://sph.wenxingshuju.com/wx_sph/upload/group_qrcode/icon5caf5abe5b_20210714.png'
  114. },
  115. {
  116. name:'健康类互赞群',
  117. sign_desc:'垂直互赞获取更优资源',
  118. icon_url:'https://sph.wenxingshuju.com/wx_sph/upload/group_qrcode/icon7ef8db4f58_20210714.png'
  119. },
  120. {
  121. name:'搞笑类互赞群',
  122. sign_desc:'垂直互赞获取更优资源',
  123. icon_url:'https://sph.wenxingshuju.com/wx_sph/upload/group_qrcode/icona6a93d731d_20210714.png'
  124. },
  125. {
  126. name:'财经类互赞群',
  127. sign_desc:'垂直互赞获取更优资源',
  128. icon_url:'https://sph.wenxingshuju.com/wx_sph/upload/group_qrcode/icon891b02b093_20210714.png'
  129. },
  130. {
  131. name:'旅行摄影类互赞群',
  132. sign_desc:'垂直互赞获取更优资源',
  133. icon_url:'https://sph.wenxingshuju.com/wx_sph/upload/group_qrcode/icon1a1ae167ef_20210714.png'
  134. },
  135. {
  136. name:'运动类互赞群',
  137. sign_desc:'垂直互赞获取更优资源',
  138. icon_url:'https://sph.wenxingshuju.com/wx_sph/upload/group_qrcode/icon5c10280e61_20210714.png'
  139. },
  140. {
  141. name:'母婴育儿类互赞群',
  142. sign_desc:'垂直互赞获取更优资源',
  143. icon_url:'https://sph.wenxingshuju.com/wx_sph/upload/group_qrcode/icon525fe7b12d_20210714.png'
  144. },
  145. {
  146. name:'汽车类互赞群',
  147. sign_desc:'垂直互赞获取更优资源',
  148. icon_url:'https://sph.wenxingshuju.com/wx_sph/upload/group_qrcode/icon3da287d40e_20210714.png'
  149. },
  150. {
  151. name:'科学科普类互赞群',
  152. sign_desc:'垂直互赞获取更优资源',
  153. icon_url:'https://sph.wenxingshuju.com/wx_sph/upload/group_qrcode/iconf025d37e66_20210714.png'
  154. },
  155. {
  156. name:'游戏动漫类互赞群',
  157. sign_desc:'垂直互赞获取更优资源',
  158. icon_url:'https://sph.wenxingshuju.com/wx_sph/upload/group_qrcode/icon1b82b0981b_20210714.png'
  159. },
  160. {
  161. name:'美妆类互赞群',
  162. sign_desc:'垂直互赞获取更优资源',
  163. icon_url:'https://sph.wenxingshuju.com/wx_sph/upload/group_qrcode/icon3f526b3f87_20210714.png'
  164. },
  165. {
  166. name:'萌宠类互赞群',
  167. sign_desc:'垂直互赞获取更优资源',
  168. icon_url:'https://sph.wenxingshuju.com/wx_sph/upload/group_qrcode/icon775d133f93_20210714.png'
  169. },
  170. {
  171. name:'民生类互赞群',
  172. sign_desc:'垂直互赞获取更优资源',
  173. icon_url:'https://sph.wenxingshuju.com/wx_sph/upload/group_qrcode/icon5797d19839_20210714.png'
  174. }
  175. ]
  176. }
  177. },
  178. onLoad() {
  179. },
  180. methods: {
  181. tagTypeEvent(type){
  182. this.tag_type = type
  183. },
  184. closeMask(){
  185. this.appletMaskFlag = false
  186. },
  187. goQun(){
  188. var sUserAgent = navigator.userAgent.toLowerCase();
  189. if(sUserAgent.indexOf("baidu") > 0 || sUserAgent.indexOf("ucbrowser") > 0 ) {
  190. this.$burialPoint({project_name:'小程序版h5',button_name:'点击打开弹框',key_value:uni.getStorageSync('key')?uni.getStorageSync('key'):'',page_name:'冷启动页面',url_value:window.location.href})
  191. _hmt?_hmt.push(['_trackEvent','小程序版h5', '点击打开弹框', uni.getStorageSync('key'),'']):'';
  192. this.appletMaskFlag = true;
  193. }else{
  194. if (!navigator.userAgent.toLowerCase().match(/micromessenger/i)) {
  195. this.$burialPoint({project_name:'小程序版h5',button_name:'页面按钮直接打开微信',key_value:uni.getStorageSync('key')?uni.getStorageSync('key'):'',page_name:'冷启动页面',url_value:window.location.href})
  196. _hmt?_hmt.push(['_trackEvent','小程序版h5', '页面按钮直接打开微信', uni.getStorageSync('key'),'']):'';
  197. location.href = 'weixin://dl/business/?t=D9GPIFp2mqp'
  198. }else{
  199. this.$burialPoint({project_name:'小程序版h5',button_name:'微信端-点击打开弹框',key_value:uni.getStorageSync('key')?uni.getStorageSync('key'):'',page_name:'冷启动页面',url_value:window.location.href})
  200. _hmt?_hmt.push(['_trackEvent','小程序版h5', '微信端-点击打开弹框', uni.getStorageSync('key'),'']):'';
  201. this.appletMaskFlag = true;
  202. }
  203. }
  204. }
  205. }
  206. }
  207. </script>
  208. <style>
  209. page{
  210. background: #0674EA;
  211. }
  212. .topImgBg{
  213. width: 100%;
  214. height: 670rpx;
  215. }
  216. .listView{
  217. position: relative;
  218. margin: 0 20rpx 0;
  219. padding-top: 60rpx;
  220. background: #ffffff;
  221. border-radius: 24rpx;
  222. margin-top: 100rpx;
  223. }
  224. .listView .list_title{
  225. width: 570rpx;
  226. height: 100rpx;
  227. position: absolute;
  228. left: 0;
  229. right: 0;
  230. top: -50rpx;
  231. margin: auto;
  232. }
  233. .listView .listItem{
  234. display: flex;
  235. align-items: center;
  236. justify-content: space-between;
  237. background: #ffffff;
  238. padding: 40rpx;
  239. border-bottom: 2rpx solid #F5F6F8;
  240. }
  241. .listView .listItem .left{
  242. display: flex;
  243. align-items: center;
  244. }
  245. .listView .listItem .left image{
  246. width: 108rpx;
  247. height: 108rpx;
  248. margin-right: 26rpx;
  249. }
  250. .listView .listItem .left .qunInfo .name{
  251. color: #282828;
  252. font-size: 32rpx;
  253. line-height: 44rpx;
  254. font-weight: bold;
  255. }
  256. .listView .listItem .left .qunInfo .tag{
  257. color: #818181;
  258. font-size: 24rpx;
  259. line-height: 34rpx;
  260. margin-top: 20rpx;
  261. }
  262. .listView .listItem .button{
  263. width: 144rpx;
  264. height: 54rpx;
  265. line-height: 54rpx;
  266. border-radius: 10rpx;
  267. border: 2rpx solid #2762FF;
  268. color: #2762FF;
  269. font-size: 26rpx;
  270. padding: 0;
  271. margin: 0;
  272. background: #ffffff;
  273. }
  274. .listView .listItem .button.active{
  275. background-color: #DDE7FF;
  276. border-color: #DDE7FF;
  277. }
  278. .listView .listItem .button.active2{
  279. background-color: #2762FF;
  280. border-color: #2762FF;
  281. color: #ffffff;
  282. }
  283. .more {
  284. background: #fff;
  285. color: #89899C;
  286. line-height: 34rpx;
  287. font-size: 24rpx;
  288. padding: 46rpx 0;
  289. text-align: center;
  290. }
  291. .backImg{
  292. position: fixed;
  293. width: 30rpx;
  294. height: 30rpx;
  295. z-index: 9;
  296. padding: 0 20rpx;
  297. }
  298. .mask{
  299. width: 100%;
  300. height: 100%;
  301. position: fixed;
  302. top: 0;
  303. left: 0;
  304. background: rgba(0, 0, 0, 0.7);
  305. }
  306. .share_content{
  307. width: 636rpx;
  308. height: 556rpx;
  309. background: #FFFFFF;
  310. border-radius: 28rpx;
  311. position: absolute;
  312. top: 0;
  313. left: 0;
  314. right: 0;
  315. bottom: 0;
  316. margin: auto;
  317. }
  318. .share_content .share_title{
  319. width: 568rpx;
  320. height: 106rpx;
  321. display: block;
  322. margin: auto;
  323. margin-top: -52rpx;
  324. margin-bottom: 30rpx;
  325. }
  326. .share_content .shareHint{
  327. color: #090909;
  328. font-size: 36rpx;
  329. line-height: 70rpx;
  330. text-align: center;
  331. }
  332. .share_content .shareHint text{
  333. color: #CD231D;
  334. font-size: 60rpx;
  335. }
  336. .share_content .progressBox{
  337. width: 460rpx;
  338. height: 12rpx;
  339. background: #CAEDFF;
  340. border-radius: 6rpx;
  341. position: relative;
  342. margin: 82rpx auto 70rpx;
  343. }
  344. .share_content .progressBox .totalNum{
  345. color: #989898;
  346. font-size: 20rpx;
  347. height: 28rpx;
  348. line-height: 28rpx;
  349. position: absolute;
  350. right: -42rpx;
  351. top: 0;
  352. bottom: 0;
  353. margin: auto;
  354. }
  355. .share_content .progressBox .progressBar{
  356. width: 33.3%;
  357. height: 8rpx;
  358. position: absolute;
  359. left: 4rpx;
  360. top: 0;
  361. bottom: 0;
  362. margin: auto;
  363. background: #2762FF;
  364. border-radius: 6rpx;
  365. }
  366. .share_content .progressBox .progressBar .progressHead{
  367. position: absolute;
  368. width: 16rpx;
  369. height: 16rpx;
  370. background: #2762FF;
  371. box-shadow: 4px 0px 8px 0px rgba(13, 111, 255, 0.5);
  372. border-radius: 50%;
  373. top: 0;
  374. bottom: 0;
  375. right: 0;
  376. margin: auto;
  377. }
  378. .share_content .progressBox .progressBar .progressHead::after{
  379. content: '';
  380. display: block;
  381. width: 8rpx;
  382. height: 8rpx;
  383. background: #00EDFF;
  384. border-radius: 50%;
  385. position: absolute;
  386. top: 0;
  387. bottom: 0;
  388. left: 0;
  389. right: 0;
  390. margin: auto;
  391. }
  392. .share_content .progressBox .progressBar .progressHead .oldNum{
  393. color: #2762FF;
  394. font-size: 20rpx;
  395. line-height: 28rpx;
  396. position: absolute;
  397. width: 40rpx;
  398. top:24rpx;
  399. left: -10rpx;
  400. text-align: center;
  401. }
  402. .share_content .inviteButton{
  403. width: 486rpx;
  404. height: 126rpx;
  405. line-height: 95rpx;
  406. color: #ffffff;
  407. font-size: 28rpx;
  408. font-weight: bold;
  409. }
  410. .share_content .close{
  411. width: 60rpx;
  412. height: 60rpx;
  413. position: absolute;
  414. bottom: -120rpx;
  415. right: 0;
  416. left: 0;
  417. margin: auto;
  418. }
  419. .qun_type_view{
  420. display: flex;
  421. align-items: center;
  422. color: #FFFFFF;
  423. font-size: 32rpx;
  424. line-height: 48rpx;
  425. padding: 0 20rpx;
  426. padding-top: 40rpx;
  427. }
  428. .qun_type_view .type_info{
  429. margin: 0 44rpx;
  430. }
  431. .qun_type_view .type_info_active{
  432. position: relative;
  433. font-weight: bold;
  434. }
  435. .qun_type_view .type_info_active::after{
  436. content: '';
  437. display: block;
  438. width: 40rpx;
  439. height: 20rpx;
  440. background: url('https://kx-bigdata.oss-cn-beijing.aliyuncs.com/Applet/wxVideo/extension_type_icon.png') no-repeat;
  441. background-size:100% ;
  442. position: absolute;
  443. left: 0;
  444. right: 0;
  445. bottom: -14px;
  446. margin: auto;
  447. }
  448. </style>