问星数据小程序

index.vue 22KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975
  1. <template>
  2. <view class="content">
  3. <view class="headerBox">
  4. <swiper class="swiperBox" :indicator-dots="bannerList.length>1?true:false"
  5. indicator-active-color="#fff"
  6. indicator-color="rgba(255,255,255,.2)"
  7. circular="true"
  8. :style="'height:'+(isIPhoneX?'574rpx':'534rpx')"
  9. :autoplay="true" interval="3000">
  10. <swiper-item style="height:auto;" v-for="(item,index) in bannerList" :key="index">
  11. <image :src="item.small_url" v-if="!isIPhoneX" mode="widthFix" :data-info="item" @click="openWxApplet('weixin://dl/business/?t=o3aIVwrmPmt')"></image>
  12. <image v-else :src="item.big_url" mode="widthFix" :data-info="item" @click="openWxApplet('weixin://dl/business/?t=o3aIVwrmPmt')"></image>
  13. </swiper-item>
  14. </swiper>
  15. <view class="searchView" @click="openWxApplet('weixin://dl/business/?t=o3aIVwrmPmt')" style="top:110rpx;">
  16. <view class="searchBox">
  17. <image src="../../static/img/search.png"/>
  18. <input placeholder="搜索视频号、趋势、标签、视频动态" disabled placeholder-class="input" type='text' confirm-type="search"/>
  19. </view>
  20. </view>
  21. </view>
  22. <view class="panel">
  23. <view class="modular">
  24. <view class="modular_item" @click="openPage">
  25. <image src="../../static/img/new.png" mode="widthFix" class="new_icon"></image>
  26. <image src="../../static/img/tuiguang.png" mode="widthFix"></image>
  27. <text>视频号冷启动</text>
  28. </view>
  29. <view class="modular_item" @click="openWxApplet('weixin://dl/business/?t=MORR0T2Seih')">
  30. <image src="/static/img/newlive.png" mode="widthFix"></image>
  31. <text>正在直播</text>
  32. </view>
  33. <view class="modular_item" @click="openWxApplet('weixin://dl/business/?t=iXIeePBxa0b')">
  34. <image src="/static/img/live.png" mode="widthFix"></image>
  35. <text>直播监控</text>
  36. </view>
  37. <view class="modular_item" @click="openWxApplet('weixin://dl/business/?t=o3aIVwrmPmt')">
  38. <image src="/static/img/fans.png" mode="widthFix"></image>
  39. <text>消息订阅</text>
  40. </view>
  41. <view class="modular_item" @click="openWxApplet('weixin://dl/business/?t=vh7GswoTCIa')">
  42. <image src="/static/img/qu.png" mode="widthFix"></image>
  43. <text>趋势查询</text>
  44. </view>
  45. </view>
  46. <view class="myList" @click="openWxApplet('weixin://dl/business/?t=o3aIVwrmPmt')">
  47. <image src="../../static/img/sph.png"></image>
  48. 我的视频号
  49. <view class="text">随时随地查看我的视频号</view>
  50. <image mode="widthFix" src="../../static/img/jt_right.png"></image>
  51. </view>
  52. <view @click="openWxApplet('weixin://dl/business/?t=o3aIVwrmPmt')" style="padding-bottom:20rpx;margin-bottom:22rpx" class="myItem">
  53. <image class="shouquan" style="width:100%" mode="widthFix" src="../../static/img/shouquan.png"></image>
  54. </view>
  55. <view class="hotModule hotVideo">
  56. <view class="title">
  57. <view class="left">
  58. <image src="../../static/img/video.png" mode="widthFix"></image>
  59. <text>热门视频</text>
  60. </view>
  61. <view class="right" @click="openWxApplet('weixin://dl/business/?t=o3aIVwrmPmt')" data-page="/pages/cyRank/index" data-type="1">
  62. <text>查看全部</text>
  63. <image src="../../static/img/jt_right.png" mode="widthFix" class="jt"></image>
  64. </view>
  65. </view>
  66. <!-- <scroll-view class="hotVideoInfo"> -->
  67. <scroll-view :scroll-x="true" class="hotVideoInfo">
  68. <view class="item" v-for="(item,index) in hotVideoList" :key="index" :data-item="item" @click="openWxApplet('weixin://dl/business/?t=o3aIVwrmPmt')">
  69. <image :src="item.cover_url?item.cover_url:item.head_url" mode="aspectFill" class="videoImg"></image>
  70. <text class="videoDesc">{{item.description?item.description:'-'}}</text>
  71. </view>
  72. </scroll-view>
  73. </view>
  74. <view class="hotModule">
  75. <view class="title">
  76. <view class="left">
  77. <image src="../../static/img/title_topic.png" mode="widthFix"></image>
  78. <text>标签话题</text>
  79. </view>
  80. <view class="right" @click="openWxApplet('weixin://dl/business/?t=o3aIVwrmPmt')">
  81. <text>查看全部</text>
  82. <image src="../../static/img/jt_right.png" mode="widthFix" class="jt"></image>
  83. </view>
  84. </view>
  85. <view class="hotTopic">
  86. <view class="topicInfo" v-for="(item,index) in videoTopicsList" :key="index" @click="openWxApplet('weixin://dl/business/?t=o3aIVwrmPmt')">
  87. <view class="topicName">
  88. <image src="../../static/img/topic.png" mode="widthFix"></image>
  89. <span>{{item.topic_name?item.topic_name:'-'}}</span>
  90. </view>
  91. <view class="topicData">
  92. 平均点赞:<span>{{(item.like_count_avg)}}</span>
  93. </view>
  94. <view class="topicData">
  95. 参与视频号:<span>{{(item.red_count)}}</span>
  96. </view>
  97. </view>
  98. </view>
  99. </view>
  100. <view class="bottom">问星数据·视频号数据平台</view>
  101. </view>
  102. <tab-bar :current='0'></tab-bar>
  103. <applet-mask v-if="appletMaskFlag" @closeMask='closeMask'></applet-mask>
  104. </view>
  105. </template>
  106. <script>
  107. export default {
  108. data() {
  109. return {
  110. bannerList: [],
  111. hotVideoList: [],
  112. videoTopicsList: [],
  113. isIPhoneX:1,
  114. appletMaskFlag:false
  115. }
  116. },
  117. onLoad() {
  118. this.getBanner()
  119. this.getVideoHotList()
  120. this.videoTopics()
  121. },
  122. methods: {
  123. openPage(){
  124. uni.navigateTo({
  125. url:'../extension/extension'
  126. })
  127. },
  128. closeMask(){
  129. this.appletMaskFlag = false
  130. },
  131. getBanner(){
  132. this.$req(this.$api.homeResource,'get',{type: 1},(res) => {
  133. if(res && res.errno == 0){
  134. var res = res.rst;
  135. this.bannerList = res;
  136. }
  137. },()=>{
  138. })
  139. },
  140. getVideoHotList(){//热门视频
  141. this.$req(this.$api.hotList, 'get', {
  142. page:1,
  143. pagesize:10,
  144. }, (res) => {
  145. if(res && res.errno == 0){
  146. //成功
  147. this.hotVideoList = res.rst.data
  148. }
  149. },()=>{
  150. })
  151. },
  152. videoTopics(){//标签话题
  153. this.$req(this.$api.videoTopics, 'get', {
  154. type:3,
  155. sort:'like_count_avg'
  156. }, (res) => {
  157. if(res && res.errno == 0){
  158. //成功
  159. this.videoTopicsList = res.rst.slice(0,6)
  160. }
  161. },()=>{
  162. })
  163. },
  164. openWxApplet(scheme){
  165. var sUserAgent = navigator.userAgent.toLowerCase();
  166. if(sUserAgent.indexOf("baidu") > 0 || sUserAgent.indexOf("ucbrowser") > 0 ) {
  167. this.appletMaskFlag = true;
  168. this.$burialPoint({project_name:'小程序版h5',button_name:'点击打开弹框',key_value:uni.getStorageSync('key')?uni.getStorageSync('key'):'',page_name:'首页',url_value:window.location.href})
  169. _hmt?_hmt.push(['_trackEvent','小程序版h5', '点击打开弹框', uni.getStorageSync('key'),'']):'';
  170. }else{
  171. if (!navigator.userAgent.toLowerCase().match(/micromessenger/i) && scheme) {
  172. this.$burialPoint({project_name:'小程序版h5',button_name:'页面按钮直接打开微信',key_value:uni.getStorageSync('key')?uni.getStorageSync('key'):'',page_name:'首页',url_value:window.location.href})
  173. _hmt?_hmt.push(['_trackEvent','小程序版h5', '页面按钮直接打开微信', uni.getStorageSync('key'),'']):'';
  174. location.href = scheme
  175. }else{
  176. this.$burialPoint({project_name:'小程序版h5',button_name:'微信端-点击打开弹框',key_value:uni.getStorageSync('key')?uni.getStorageSync('key'):'',page_name:'首页',url_value:window.location.href})
  177. _hmt?_hmt.push(['_trackEvent','小程序版h5', '微信端-点击打开弹框', uni.getStorageSync('key'),'']):'';
  178. this.appletMaskFlag = true;
  179. }
  180. }
  181. }
  182. }
  183. }
  184. </script>
  185. <style>
  186. .content {
  187. background: #F0F0F0;
  188. }
  189. .logo{
  190. width: 250rpx;
  191. position: fixed;
  192. left: 0;
  193. right: 0;
  194. margin: auto;
  195. text-align: center;
  196. color: #fff;
  197. font-size: 32rpx;
  198. font-weight: bold;
  199. z-index: 2;
  200. }
  201. .searchView {
  202. width: 584rpx;
  203. margin: auto;
  204. padding-top: 100rpx;
  205. margin-top: 40rpx;
  206. height: 76rpx;
  207. background: rgba(255,255,255,.3);
  208. position: absolute;
  209. left: 50%;
  210. transform: translateX(-50%);
  211. border-radius: 38rpx;
  212. padding: 0 16rpx;
  213. }
  214. .searchView .searchBox {
  215. width: auto;
  216. display: flex;
  217. align-items: center;
  218. justify-content: center;
  219. }
  220. .index {
  221. overflow: hidden;
  222. margin-top: -39rpx;
  223. margin-bottom: 100rpx;
  224. position: relative;
  225. z-index: 1;
  226. }
  227. .panel {
  228. position: relative;
  229. z-index: 10;
  230. padding-bottom: 100rpx;
  231. background: #F0F0F0;
  232. border-top-left-radius: 46rpx;
  233. border-top-right-radius: 46rpx;
  234. overflow: hidden;
  235. margin-top: -39rpx;
  236. }
  237. .searchView image {
  238. display: inline-block;
  239. width: 34rpx;
  240. height: 34rpx;
  241. margin: 0 20rpx;
  242. }
  243. .searchView input {
  244. /* flex: 1; */
  245. display: inline-block;
  246. width: 416rpx;
  247. height: 76rpx;
  248. line-height: 76rpx;
  249. font-size: 26rpx;
  250. color: #fff;
  251. text-align: center;
  252. }
  253. .input {
  254. color: #fff;
  255. font-weight: lighter;
  256. }
  257. .modular{
  258. display: flex;
  259. align-items: center;
  260. justify-content: space-between;
  261. padding: 38rpx 7rpx 30rpx;
  262. background: #fff;
  263. border-bottom: 2rpx solid rgba(229, 229, 229, .5);
  264. }
  265. .myList {
  266. width: 100%;
  267. height: 96rpx;
  268. line-height: 96rpx;
  269. display: flex;
  270. align-items: center;
  271. background: #fff;
  272. color: #2E2E2E;
  273. font-size: 30rpx;
  274. font-weight: bold;
  275. padding: 0 46rpx 0 26rpx;
  276. /* margin-top: 22rpx; */
  277. }
  278. .myList image {
  279. width: 32rpx;
  280. height: 32rpx;
  281. margin-right: 10rpx;
  282. }
  283. .myList .text {
  284. flex: 1;
  285. color: #4B4545;
  286. font-weight: lighter;
  287. font-size: 26rpx;
  288. padding-left: 22rpx;
  289. }
  290. .myList image:last-child {
  291. width: 12rpx;
  292. height: auto;
  293. margin: 0;
  294. }
  295. .myList .text text {
  296. display: inline-block;
  297. background: #ffffff;
  298. color: #2662FF;
  299. border: 1px solid #2662FF;
  300. font-size: 22rpx;
  301. width: 130rpx;
  302. line-height: 40rpx;
  303. padding: 0 16rpx;
  304. border-radius: 40rpx;
  305. text-align: center;
  306. margin-left: 12rpx;
  307. transform: scale(.8);
  308. }
  309. .modular .modular_item{
  310. width: 156rpx;
  311. /* height: 173rpx; */
  312. background: #fff;
  313. border-radius: 12px;
  314. text-align: center;
  315. position: relative;
  316. }
  317. .modular .modular_item image{
  318. width: 70rpx;
  319. height: 70rpx;
  320. margin: 0 auto 12rpx;
  321. display: block;
  322. }
  323. .modular .modular_item .new_icon{
  324. width: 44rpx;
  325. height: 20rpx;
  326. margin: 0;
  327. position: absolute;
  328. top: -10rpx;
  329. right: 20rpx;
  330. animation: scaleDraw 2s ease-in-out infinite;
  331. -webkit-animation: scaleDraw 2s ease-in-out infinite;
  332. z-index: 2;
  333. }
  334. @keyframes scaleDraw {
  335. 0%{
  336. transform: scale(1);
  337. }
  338. 25%{
  339. transform: scale(1.3);
  340. }
  341. 50%{
  342. transform: scale(1);
  343. }
  344. 75%{
  345. transform: scale(1.3);
  346. }
  347. }
  348. .modular .modular_item text{
  349. color: #000000;
  350. font-size: 24rpx;
  351. line-height: 40rpx;
  352. }
  353. .follw_view {
  354. background: #fff;
  355. padding-bottom: 26rpx;
  356. }
  357. /* 我的视频号轮播数据 */
  358. .myItemBox {
  359. height: 196rpx;
  360. margin-bottom: 22rpx;
  361. }
  362. .myItemBox .wx-swiper-dots{
  363. position:absolute;
  364. margin-bottom: 14rpx;
  365. }
  366. .wx-swiper-dot {
  367. width: 10rpx!important;
  368. height: 10rpx!important;
  369. border-radius: 10rpx;
  370. }
  371. .myItemBox .wx-swiper-dot {
  372. width: 20rpx!important;
  373. height: 6rpx;
  374. border-radius: 4rpx;
  375. }
  376. .myItemBox .wx-swiper-dot-active {
  377. width: 20rpx;
  378. height: 6rpx;
  379. border-radius: 4rpx;
  380. }
  381. .myItemBox .wx-swiper-dot {
  382. width: 20rpx!important;
  383. height: 6rpx!important;
  384. border-radius: 10rpx;
  385. }
  386. .myItem {
  387. padding: 0 20rpx;
  388. background: #fff;
  389. }
  390. .myItem .shouquan {
  391. width: 100%;
  392. height: auto;
  393. }
  394. .myItem .userBox {
  395. float: left;
  396. /* width: 100%; */
  397. width: calc(100% - 27rpx)!important;
  398. height: 130rpx!important;
  399. border-radius: 14rpx;
  400. padding: 0 14rpx;
  401. background: #F6E9DD;
  402. color: #593E21;
  403. display: flex;
  404. align-items: center;
  405. }
  406. .myItem .userImg {
  407. width: 76rpx;
  408. height: 76rpx;
  409. border-radius: 50%;
  410. margin-right: 12rpx;
  411. }
  412. .myItem .infoBox {
  413. width: 220rpx;
  414. color: #000000;
  415. font-size: 28rpx;
  416. font-weight: bold;
  417. overflow: hidden;
  418. text-overflow: ellipsis;
  419. white-space: nowrap;
  420. }
  421. .myItem .userData {
  422. flex: 1;
  423. padding-right: 20rpx;
  424. text-align: center;
  425. }
  426. .myItem .userDataItem {
  427. float: left;
  428. width: 33.33333%;
  429. font-size: 22rpx;
  430. overflow: hidden;
  431. line-height: 32rpx;
  432. }
  433. .myItem .data {
  434. display: block;
  435. line-height: 38rpx;
  436. color: #403333;
  437. font-size: 32rpx;
  438. font-weight: bold;
  439. margin-bottom: 10rpx;
  440. }
  441. .swiper{
  442. height: 250rpx;
  443. display: flex;
  444. white-space: nowrap;
  445. padding-left: 24rpx;
  446. }
  447. .swiper .swiper-item-div{
  448. display: inline-block;
  449. margin-right: 20rpx;
  450. }
  451. .swiper .swiper-item{
  452. width: 600rpx;
  453. height: 250rpx;
  454. margin: auto;
  455. display: inline-block;
  456. /* background: #FFF3F4; */
  457. background: #F6F4FD;
  458. border-radius: 14rpx;
  459. vertical-align: middle;
  460. }
  461. .swiper-item-div:nth-child(2n+1) .swiper-item {
  462. background: #FFFAF3;
  463. }
  464. .swiper-item-div:nth-child(2n) .swiper-item {
  465. background: #F6F4FD;
  466. }
  467. .swiper .swiper-item .goLogin{
  468. width: 128rpx;
  469. height: 56rpx;
  470. border-radius: 28rpx;
  471. border: 2rpx solid #89899C;
  472. color: #89899C;
  473. font-size: 28rpx;
  474. line-height: 54rpx;
  475. text-align: center;
  476. display:block;
  477. margin: auto;
  478. margin-top: 62rpx;
  479. }
  480. .swiper .swiper-item .add{
  481. margin-top: 62rpx;
  482. color: #E6CACA;
  483. font-size: 106rpx;
  484. line-height: 60rpx;
  485. font-weight: bold;
  486. text-align: center;
  487. }
  488. .swiper .swiper-item .hint{
  489. margin-top: 44rpx;
  490. color: #89899C;
  491. font-size: 26rpx;
  492. line-height: 36rpx;
  493. text-align: center;
  494. }
  495. .swiper .swiper-item .hint text{
  496. color: #E36C3B;
  497. }
  498. .swiper .userBox{
  499. position: relative;
  500. padding-left: 14rpx;
  501. display: flex;
  502. align-items: center;
  503. }
  504. .swiper .swiper-item .userImg{
  505. width: 135rpx;
  506. height: 135rpx;
  507. border-radius: 50%;
  508. margin-right: 10rpx;
  509. }
  510. .swiper .swiper-item .info{
  511. width: calc(100% - 180rpx);
  512. margin-left: 10rpx;
  513. }
  514. .swiper .swiper-item .info .userTitleBox{
  515. display: flex;
  516. align-items: center;
  517. justify-content: space-between;
  518. }
  519. .swiper .swiper-item .info .userTitleBox .userTitle{
  520. max-width: 196rpx;
  521. color: #000000;
  522. padding-right: 20rpx;
  523. font-size: 30rpx;
  524. line-height: 40rpx;
  525. font-weight: bold;
  526. overflow: hidden;
  527. white-space: nowrap;
  528. text-overflow: ellipsis;
  529. }
  530. .swiper .swiper-item .info .userTitleBox .auth_div{
  531. flex: 1;
  532. overflow: hidden;
  533. text-overflow:ellipsis;
  534. white-space: nowrap;
  535. line-height: 40rpx;
  536. }
  537. .swiper .swiper-item .info .userTitleBox .auth_div .icon{
  538. width: 34rpx;
  539. height: 34rpx;
  540. vertical-align: middle;
  541. }
  542. .swiper .swiper-item .info .userTitleBox .auth_div text{
  543. color: #89899C;
  544. font-size: 24rpx;
  545. line-height: 40rpx;
  546. vertical-align: middle;
  547. }
  548. .swiper .swiper-item .info .userData{
  549. display: flex;
  550. align-items: center;
  551. justify-content: space-between;
  552. margin-top: 28rpx;
  553. }
  554. .swiper .swiper-item .info .userData .userDataItem{
  555. text-align: center;
  556. }
  557. .swiper .swiper-item .info .userData .userDataItem:nth-child(2) .data {
  558. color: #E93269
  559. }
  560. .swiper .swiper-item .info .userData .userDataItem:first-child {
  561. text-align: left;
  562. }
  563. .swiper .swiper-item .info .userData .userDataItem:last-child {
  564. text-align: right;
  565. }
  566. .swiper .swiper-item .info .userData .userDataItem .data{
  567. color: #000000;
  568. font-size: 32rpx;
  569. line-height: 44rpx;
  570. font-weight: 600;
  571. }
  572. .swiper .swiper-item .info .userData .userDataItem view{
  573. color: #89899C;
  574. font-size: 26rpx;
  575. line-height: 36rpx;
  576. margin-top: 6rpx;
  577. }
  578. .otherXCX{
  579. width: 100%;
  580. height: 150rpx;
  581. border-radius: 14rpx;
  582. margin: auto;
  583. display: flex;
  584. align-items: center;
  585. }
  586. .otherXCX image{
  587. width: 112rpx;
  588. height: 112rpx;
  589. margin-left: 34rpx;
  590. margin-right: 44rpx;
  591. }
  592. .otherXCX .otherXCX_con{
  593. color: #000000;
  594. font-size: 26rpx;
  595. line-height: 46rpx;
  596. }
  597. .otherXCX .otherXCX_con text{
  598. color: #2562FF;
  599. font-size: 46rpx;
  600. }
  601. .hotModule{
  602. background: #fff;
  603. border-radius: 14rpx;
  604. margin-bottom: 28rpx;
  605. }
  606. .hotModule:last-child {
  607. margin-bottom: 0;
  608. }
  609. .hotVideo{
  610. margin-top: 18rpx;
  611. height: 396rpx;
  612. background: #fff;
  613. overflow: hidden;
  614. }
  615. /* .hotModule */
  616. .title{
  617. display: flex;
  618. align-items: center;
  619. justify-content: space-between;
  620. padding: 0 46rpx 0 30rpx;
  621. height: 80rpx;
  622. position: relative;
  623. border-bottom: 1rpx solid rgba(229, 229, 229, .5);
  624. }
  625. /* .hotModule */
  626. .title .left image{
  627. width: 32rpx;
  628. height: 32rpx;
  629. vertical-align: middle;
  630. margin-right: 8rpx;
  631. }
  632. /* .hotModule */
  633. .title .left text{
  634. color: #2E2E2E;
  635. font-size: 30rpx;
  636. height: 42rpx;
  637. font-weight: bold;
  638. vertical-align: middle;
  639. }
  640. /* .hotModule */
  641. .title .right{
  642. color: #6B6B6B;
  643. font-size: 24rpx;
  644. line-height: 34rpx;
  645. display: flex;
  646. align-items: center;
  647. }
  648. /* .hotModule */
  649. .title .jt{
  650. /* display: inline-block; */
  651. width: 12rpx;
  652. height: 12rpx;
  653. /* vertical-align: middle; */
  654. margin-left: 10rpx;
  655. }
  656. /* .hotModule */
  657. .title text{
  658. vertical-align: middle;
  659. }
  660. .hotVideoInfo{
  661. display: flex;
  662. white-space: nowrap;
  663. margin: 30rpx;
  664. margin-bottom: 0;
  665. overflow: hidden;
  666. padding-right: 30rpx;
  667. }
  668. .hotVideoInfo .item{
  669. width: 172rpx;
  670. margin-right: 20rpx;
  671. display: inline-block;
  672. vertical-align: top;
  673. }
  674. .hotVideoInfo .item .videoImg{
  675. width: 172rpx;
  676. height: 172rpx;
  677. border-radius: 11rpx;
  678. }
  679. .hotVideoInfo .item .videoDesc{
  680. color: #000000;
  681. font-size: 24rpx;
  682. line-height: 34rpx;
  683. height: 34rpx;
  684. width: 168rpx;
  685. display: block;
  686. overflow: hidden;
  687. text-overflow:ellipsis;
  688. white-space: nowrap;
  689. margin-top: 14rpx;
  690. }
  691. .hotTopic{
  692. padding: 30rpx 28rpx 40rpx;
  693. }
  694. .hotTopic .topicInfo{
  695. display: flex;
  696. align-items: center;
  697. }
  698. .hotTopic .topicInfo .topicName{
  699. padding: 12rpx;
  700. padding-left: 0;
  701. padding-right: 16rpx;
  702. margin-right:20rpx;
  703. }
  704. .hotTopic .topicInfo .topicName image{
  705. width: 29rpx;
  706. height: 29rpx;
  707. vertical-align: middle;
  708. margin-right: 18rpx;
  709. }
  710. .hotTopic .topicInfo .topicName span{
  711. color: #000000;
  712. font-size: 28rpx;
  713. line-height: 40rpx;
  714. width: 140rpx;
  715. display: inline-block;
  716. overflow: hidden;
  717. text-overflow:ellipsis;
  718. white-space: nowrap;
  719. vertical-align: middle;
  720. margin-left: 10rpx;
  721. }
  722. .hotTopic .topicInfo .topicData{
  723. color: #89899C;
  724. font-size: 24rpx;
  725. line-height: 34rpx;
  726. width: calc((100% - 340rpx) / 2);
  727. padding-left: 50rpx;
  728. }
  729. .hotTopic .topicInfo .topicData span{
  730. color: #000000;
  731. }
  732. .tipBox {
  733. width: 100%;
  734. height: 100%;
  735. position: fixed;
  736. top: 0rpx;
  737. left: 0;
  738. background: rgba(0,0,0,.7);
  739. z-index: 1000;
  740. }
  741. .close {
  742. display: inline-block;
  743. width: 36rpx;
  744. height: 36rpx;
  745. margin: 10rpx 0 10rpx;
  746. }
  747. .tip {
  748. width: 360rpx;
  749. border-radius: 20rpx;
  750. position: fixed;
  751. top: 0;
  752. right: 90rpx;
  753. background: #fff;
  754. color: #000;
  755. margin-top: 10rpx;
  756. z-index: 1001;
  757. font-size: 24rpx;
  758. line-height: 30rpx;
  759. padding: 20rpx 26rpx;
  760. text-align: right;
  761. }
  762. .tip .main {
  763. text-align: left;
  764. }
  765. .tipImg {
  766. width: 100%;
  767. height: auto;
  768. margin-top: 20rpx;
  769. }
  770. .tip:after {
  771. content: "";
  772. position: absolute;
  773. top: -27rpx;
  774. right: 40rpx;
  775. border: 16rpx solid transparent;
  776. border-bottom-color: #fff;
  777. }
  778. .tip text {
  779. display: inline-block;
  780. color: #2562FF;
  781. margin-left: 8rpx;
  782. }
  783. .tip .more {
  784. display: inline-block;
  785. width: 40rpx;
  786. height: auto;
  787. border-radius: 12rpx;
  788. vertical-align: middle;
  789. }
  790. .headerBox{
  791. width: 100%;
  792. height: auto;
  793. position: relative;
  794. z-index: 1;
  795. background: #2562FF;
  796. margin-top: -100rpx;
  797. }
  798. .swiperBox {
  799. width: 100%;
  800. height: 520rpx;
  801. }
  802. .swiperBox .wx-swiper-dots{
  803. position:absolute;
  804. left: inherit;
  805. right: 30rpx;
  806. margin-bottom: 70rpx;
  807. }
  808. .swiperBox .wx-swiper-dot-active {
  809. width: 10rpx;
  810. height: 10rpx;
  811. border-radius: 50%;
  812. }
  813. .swiperBox swiper-item {
  814. height: auto!important;
  815. }
  816. .swiperBox image {
  817. width: 100%;
  818. height: auto;
  819. }
  820. .headerMain {
  821. width: 100%;
  822. position: fixed;
  823. top: 0;
  824. z-index: 3;
  825. background: rgba(0,0,0,.7);
  826. }
  827. .header{
  828. width: 196rpx;
  829. position: fixed;
  830. left: 20rpx;
  831. border-radius: 38rpx;
  832. color: #ffffff;
  833. font-size: 24rpx;
  834. padding: 0 16rpx;
  835. line-height: 32px;
  836. text-align: center;
  837. background: rgba(255, 255, 255, 0.2);
  838. font-size: 24rpx;
  839. z-index: 2;
  840. }
  841. .header image {
  842. width: 26rpx;
  843. height: 26rpx;
  844. border-radius: 6rpx;
  845. vertical-align: middle;
  846. }
  847. .header .search{
  848. width: 38rpx;
  849. height: 38rpx;
  850. position: absolute;
  851. left: 30rpx;
  852. top: 50%;
  853. transform: translateY(-50%);
  854. }
  855. .header .platform_icon{
  856. width: 23rpx;
  857. height: 10rpx;
  858. vertical-align: middle;
  859. }
  860. .bottom {
  861. margin-top: 100rpx;
  862. padding-bottom: 200rpx;
  863. text-align: center;
  864. color: #AFAFAF;
  865. font-size: 26rpx;
  866. }
  867. /* 弹层 */
  868. .maskBox {
  869. width: 100vw;
  870. height: 100vh;
  871. position: fixed;
  872. top: 0;
  873. left: 0;
  874. background: rgba(0,0,0,.3);
  875. z-index: 3;
  876. }
  877. .maskMain {
  878. height: auto;
  879. position: absolute;
  880. top: 50%;
  881. left: 50%;
  882. transform: translate(-50%,-50%);
  883. text-align: center;
  884. }
  885. .maskMain .img {
  886. display: inline-block;
  887. border-radius: 16rpx;
  888. width: 60vw;
  889. height: auto;
  890. }
  891. .maskMain .close {
  892. width: 60rpx;
  893. height: 60rpx;
  894. margin-top: 30rpx;
  895. }
  896. /* 授权弹框 */
  897. .showModal {
  898. position: fixed;
  899. top: 0;
  900. left: 0;
  901. width: 100%;
  902. height: 100vh;
  903. background: rgba(0, 0, 0, 0.4);
  904. z-index: 99;
  905. }
  906. .showModal .showModalCon {
  907. width: 550rpx!important;
  908. min-height: 200rpx;
  909. background: #ffffff;
  910. border-radius: 8rpx;
  911. position: absolute;
  912. top: 50%;
  913. left: 0;
  914. right: 0;
  915. transform: translateY(-50%);
  916. margin: auto;
  917. padding: 10rpx 0 40rpx;
  918. box-sizing: border-box;
  919. }
  920. .showModal .showModalCon .showtitle {
  921. font-size: 32rpx;
  922. text-align: center;
  923. padding: 20rpx;
  924. border-bottom: 2rpx solid #f4f4f4;
  925. }
  926. .showModal .showModalCon .con {
  927. font-size: 28rpx;
  928. color: #666666;
  929. line-height: 40rpx;
  930. padding: 0 60rpx 20rpx;
  931. margin: 30rpx 0;
  932. min-height: 150rpx;
  933. }
  934. .showModal .showModalCon .button {
  935. position: absolute;
  936. bottom: 0;
  937. width: 100%;
  938. height: 100rpx;
  939. line-height: 100rpx;
  940. text-align: center;
  941. font-size: 28rpx;
  942. color: #2662FF;
  943. border-top: 2rpx solid #f4f4f4;
  944. background: transparent;
  945. padding: 0;
  946. }
  947. .sph_extension{
  948. background: #ffffff;
  949. border-bottom: none;
  950. }
  951. /* 关注公众号 */
  952. .border {
  953. position: absolute;
  954. top: 0;
  955. left: 20rpx;
  956. border: 8rpx solid #fff;
  957. width: calc(100% - 40rpx + 2rpx);
  958. min-width: 300px;
  959. height: 84px;
  960. z-index: 1;
  961. }
  962. </style>