Contrast.vue 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663
  1. <template>
  2. <div class="sub-contrast">
  3. <div class="contrast-header">
  4. <div class="line-flex">
  5. <span class="split-box--before"></span>
  6. <div class="second-desc">免费订阅</div>
  7. <img class="text-vs" src="@/assets/images/sub-compare.png" alt="对比" />
  8. <div class="second-desc">超级订阅</div>
  9. <span class="split-box--after"></span>
  10. </div>
  11. </div>
  12. <div class="contrast-main">
  13. <ul
  14. class="contrast-main-header flex-r-c"
  15. ref="stickyHeader"
  16. v-stickyed="stickyed"
  17. >
  18. <li class="top-title modify-left">功能/产品</li>
  19. <li class="top-title modify-center gray">免费订阅</li>
  20. <li class="top-title modify-right flex-r-c center">
  21. <img
  22. src="@/assets/images/subscribe/new-crown.png"
  23. style="width: 28px; position: relative"
  24. />
  25. <div style="margin-left: 8px">超级订阅</div>
  26. </li>
  27. </ul>
  28. <div class="contrast-main-center" ref="main">
  29. <div class="center-left">
  30. <ul class="clearfix">
  31. <li class="top-title modify-left">功能/产品</li>
  32. <li class="double">
  33. <div style="display: flex; align-items: center">
  34. <div>企业画像</div>
  35. <img
  36. src="@/assets/images/subscribe/new-logo.png"
  37. alt=""
  38. style="margin-left: 8px; width: 40px"
  39. />
  40. </div>
  41. <div>提供企业中标项目分析、重点客户等多维分析</div>
  42. </li>
  43. <li class="gray double">
  44. <div style="display: flex; align-items: center">
  45. <div>采购单位画像</div>
  46. <img
  47. src="@/assets/images/subscribe/new-logo.png"
  48. alt=""
  49. style="margin-left: 8px; width: 40px"
  50. />
  51. </div>
  52. <div>提供重点供应商、采购预算/方式等分析</div>
  53. </li>
  54. <li class="double">
  55. <div style="display: flex; align-items: center">
  56. <div>附件下载</div>
  57. <img
  58. src="@/assets/images/subscribe/new-logo.png"
  59. alt=""
  60. style="margin-left: 8px; width: 40px"
  61. />
  62. </div>
  63. <div>招标文件/采购清单一键下载</div>
  64. </li>
  65. <li class="double">
  66. <div style="display: flex; align-items: center">
  67. <div>查看公告原文链接</div>
  68. <img
  69. src="@/assets/images/subscribe/new-logo.png"
  70. alt=""
  71. style="margin-left: 8px; width: 40px"
  72. />
  73. </div>
  74. <div>支持用户点击原文链接查看公告原地址,鉴别信息真伪</div>
  75. </li>
  76. <li class="gray" style="display: flex; align-items: center">
  77. <div>项目报告下载</div>
  78. <img
  79. src="@/assets/images/subscribe/new-logo.png"
  80. alt=""
  81. style="margin-left: 8px; width: 40px"
  82. />
  83. </li>
  84. <li>订阅关键词</li>
  85. <li>中标企业联系方式</li>
  86. <li>订阅区域</li>
  87. <li>订阅推送</li>
  88. <li>匹配方式</li>
  89. <li class="double">
  90. <div>推送设置</div>
  91. <div>固定时间/实时推送</div>
  92. </li>
  93. <li class="gray double">
  94. <div>标讯高级搜索</div>
  95. <div>按联系方式、附件、项目名称/标的物、发布时间搜索</div>
  96. </li>
  97. <li class="double">
  98. <div>企业搜索</div>
  99. <div>按中标项目/标的物、联系方式等搜索企业信息</div>
  100. </li>
  101. <li class="double">
  102. <div>采购单位搜索</div>
  103. <div>按地区、采购单位类型等搜索采购单位信息,高效精准拓客</div>
  104. </li>
  105. <li class="gray">月报/周报</li>
  106. <li class="double">
  107. <div>标讯收藏</div>
  108. <div>关注项目一键收藏,重要信息不遗漏</div>
  109. </li>
  110. <li class="gray">专属资源社群对接</li>
  111. </ul>
  112. </div>
  113. <div class="center-center">
  114. <ul class="clearfix">
  115. <li class="top-title modify-center gray">免费订阅</li>
  116. <li class="double"><i class="wrong"></i></li>
  117. <li class="gray double"><i class="wrong"></i></li>
  118. <li class="double"><i class="wrong"></i></li>
  119. <li class="double"><i class="wrong"></i></li>
  120. <li class="gray"><i class="wrong"></i></li>
  121. <li>10组</li>
  122. <li>公告公示</li>
  123. <li>免费订阅1个省</li>
  124. <li>300条/天</li>
  125. <li>标题</li>
  126. <li class="double"><i class="wrong"></i></li>
  127. <li class="gray double"><i class="wrong"></i></li>
  128. <li class="double">4条/次</li>
  129. <li class="double"><i class="right"></i></li>
  130. <li class="gray"><i class="wrong"></i></li>
  131. <li class="double">100条</li>
  132. <li class="gray"><i class="wrong"></i></li>
  133. </ul>
  134. </div>
  135. <div class="center-right">
  136. <ul class="clearfix">
  137. <li class="top-title modify-right flex-r-c center">
  138. <img
  139. src="@/assets/images/subscribe/new-crown.png"
  140. alt=""
  141. style="width: 28px; position: relative"
  142. />
  143. <div style="margin-left: 8px">超级订阅</div>
  144. </li>
  145. <li class="double">50个画像/省/月</li>
  146. <li class="gold double">5个画像/省/月</li>
  147. <li class="double">10个/月</li>
  148. <li class="double"><i class="right"></i></li>
  149. <li class="gold"><i class="right"></i></li>
  150. <li>300组</li>
  151. <li>招标公告+国家企业公示</li>
  152. <li>根据套餐类型可选</li>
  153. <li>2000条/天</li>
  154. <li>标题+全文</li>
  155. <li class="double">可选</li>
  156. <li class="gold double"><i class="right"></i></li>
  157. <li class="double">150条/次</li>
  158. <li class="double"><i class="right"></i></li>
  159. <li class="gold"><i class="right"></i></li>
  160. <li class="double">5000条</li>
  161. <li class="gold"><i class="right"></i></li>
  162. </ul>
  163. </div>
  164. </div>
  165. </div>
  166. <div class="view-all" @click="viewAll">查看全部权益 <i class="iconfont icon-more"></i></div>
  167. </div>
  168. </template>
  169. <script>
  170. export default {
  171. name: 'contrast',
  172. data() {
  173. return {
  174. stickyed: {
  175. className: ['contrast-fixed'],
  176. startFixedTop: 1000, // 从高度为startFixedTop处开始置顶
  177. forbid: false
  178. }
  179. }
  180. },
  181. mounted() {
  182. setTimeout(this.calcStickyNav, 100)
  183. this.$refs.stickyHeader.windowScrollStickyEventCallback =
  184. this.stickyCallback
  185. },
  186. methods: {
  187. calcStickyNav() {
  188. const offset = $(this.$refs.main).offset()
  189. if (offset) {
  190. this.stickyed.startFixedTop = offset.top - 70
  191. }
  192. },
  193. stickyCallback() {
  194. const $ = this.$querySelector.bind(this)
  195. // 表格顶部固定
  196. const tableDom = $(this.$refs.main)
  197. const tableHeaderChangeDom = $(this.$refs.stickyHeader)
  198. const tableMaxHeight =
  199. tableDom.height() +
  200. this.stickyed.startFixedTop -
  201. tableHeaderChangeDom.height()
  202. const show =
  203. $(window).scrollTop() > this.stickyed.startFixedTop &&
  204. $(window).scrollTop() < tableMaxHeight
  205. this.stickyed.forbid = !show
  206. },
  207. viewAll () {
  208. window.open('/product/index?serviceType=0', '_blank')
  209. }
  210. }
  211. }
  212. </script>
  213. <style lang="scss" scoped>
  214. .split-box {
  215. &--before {
  216. margin-right: 25px;
  217. &::before {
  218. content: '';
  219. display: inline-block;
  220. width: 120px;
  221. height: 1px;
  222. margin-bottom: 4px;
  223. background: linear-gradient(90deg, rgba(204, 173, 135, 0), #ccad87 100%);
  224. }
  225. &::after {
  226. content: '';
  227. display: inline-block;
  228. width: 8px;
  229. height: 8px;
  230. background: #ccad87;
  231. transform: rotate(45deg);
  232. }
  233. }
  234. &--after {
  235. margin-left: 25px;
  236. &::before {
  237. content: '';
  238. display: inline-block;
  239. width: 8px;
  240. height: 8px;
  241. background: #ccad87;
  242. transform: rotate(45deg);
  243. }
  244. &::after {
  245. content: '';
  246. display: inline-block;
  247. width: 120px;
  248. height: 1px;
  249. margin-bottom: 4px;
  250. background: linear-gradient(90deg, #ccad87, rgba(204, 173, 135, 0) 100%);
  251. }
  252. }
  253. }
  254. .line-flex {
  255. display: flex;
  256. justify-content: center;
  257. align-items: center;
  258. height: 100%;
  259. }
  260. .text-vs {
  261. width: 39px;
  262. height: 18px;
  263. margin: 0 10px;
  264. }
  265. .second-desc {
  266. font-size: 24px;
  267. color: #1d1d1d;
  268. line-height: 36px;
  269. }
  270. .sub-contrast {
  271. width: 100%;
  272. min-height: 1020px;
  273. padding-top: 79px;
  274. background-color: #fff;
  275. .contrast-header {
  276. width: 100%;
  277. height: 31px;
  278. }
  279. .contrast-main {
  280. width: 100%;
  281. height: 1170px;
  282. margin-top: 32px;
  283. $border-color: #ececec;
  284. i {
  285. &.wrong {
  286. width: 100%;
  287. height: 100%;
  288. &::before {
  289. display: block;
  290. width: 100%;
  291. height: 100%;
  292. content: '';
  293. background: url(~@/assets/images/icon/guan.png) no-repeat center;
  294. background-size: 16px 16px;
  295. }
  296. }
  297. &.right::before {
  298. display: block;
  299. width: 100%;
  300. height: 100%;
  301. content: '';
  302. background-image: url(~@/assets/images/icon/right.png);
  303. background-size: 24px 24px;
  304. background-repeat: no-repeat;
  305. background-position: center;
  306. }
  307. }
  308. .top-title {
  309. height: 68px;
  310. text-align: center;
  311. transition: all 0.5s;
  312. line-height: 68px;
  313. font-size: 20px;
  314. font-family: Microsoft YaHei;
  315. font-weight: 400;
  316. color: rgba(29, 29, 29, 1);
  317. opacity: 1;
  318. border-bottom: 1px solid $border-color;
  319. }
  320. .contrast-main-header {
  321. display: none;
  322. padding: 0 30px;
  323. height: 68px;
  324. flex-wrap: nowrap;
  325. .modify-left {
  326. width: 468px;
  327. height: 100%;
  328. background-color: #fff;
  329. border: 1px solid $border-color;
  330. }
  331. .modify-center {
  332. width: 336px;
  333. height: 100%;
  334. background: #f5f5fb;
  335. border: 1px solid $border-color;
  336. }
  337. /* 选中VIP订阅专属服务 */
  338. .modify-right {
  339. width: 336px !important;
  340. height: 100%;
  341. background: rgba(52, 53, 90, 1);
  342. color: rgba(255, 218, 177, 1);
  343. position: relative;
  344. border-right: 0;
  345. width: 100%;
  346. background-image: url(~@/assets/images/vip/mengban.png);
  347. background-repeat: no-repeat;
  348. background-position: right bottom;
  349. img {
  350. background: rgba(52, 53, 90, 1);
  351. color: rgba(255, 218, 177, 1);
  352. position: absolute;
  353. right: 0;
  354. bottom: 0;
  355. width: 174px;
  356. }
  357. }
  358. }
  359. .contrast-fixed {
  360. display: block;
  361. }
  362. .contrast-main-center {
  363. display: flex;
  364. justify-content: center;
  365. padding: 0 32px;
  366. width: 100%;
  367. .gray {
  368. background: #f5f5fb;
  369. }
  370. .gold {
  371. background: #fbf5eb !important;
  372. }
  373. /* 功能/价格 */
  374. /* li+li表示选中除第一个li其他所有的li */
  375. .center-left {
  376. flex: 4;
  377. & > ul {
  378. width: 100%;
  379. margin: 0;
  380. li + li {
  381. color: rgba(29, 29, 29, 1);
  382. padding-left: 24px;
  383. width: 100%;
  384. opacity: 1;
  385. border-left: 1px solid #ececec;
  386. border-bottom: 1px solid $border-color;
  387. border-right: 1px solid $border-color;
  388. font-family: Microsoft YaHei;
  389. &.double {
  390. height: 74px;
  391. font-size: 16px;
  392. font-weight: 400;
  393. color: rgba(29, 29, 29, 1);
  394. display: flex;
  395. flex-direction: column;
  396. justify-content: center;
  397. & > div:nth-child(1) {
  398. font-size: 16px;
  399. line-height: 24px;
  400. color: #1d1d1d;
  401. font-weight: 400;
  402. }
  403. }
  404. &:not(.double) {
  405. height: 52px;
  406. line-height: 52px;
  407. font-size: 16px;
  408. font-weight: 400;
  409. color: rgba(29, 29, 29, 1);
  410. }
  411. &.double,
  412. &.double > div:nth-child(2) {
  413. font-size: 14px;
  414. font-weight: 400;
  415. color: #686868;
  416. line-height: 22px;
  417. }
  418. }
  419. }
  420. .modify-left {
  421. width: 100%;
  422. border-left: 1px solid $border-color;
  423. border-top: 1px solid $border-color;
  424. }
  425. }
  426. // 免费版
  427. .center-center {
  428. flex: 3;
  429. transition: all 0.5s;
  430. & > ul {
  431. width: 100%;
  432. transition: all 0.5s;
  433. margin: 0;
  434. li + li {
  435. transition: all 0.5s;
  436. width: 100%;
  437. text-align: center;
  438. font-size: 14px;
  439. font-family: Microsoft YaHei;
  440. font-weight: 400;
  441. color: rgba(29, 29, 29, 1);
  442. opacity: 1;
  443. border-bottom: 1px solid $border-color;
  444. border-right: 1px solid $border-color;
  445. &.double {
  446. height: 74px;
  447. line-height: 74px;
  448. }
  449. &:not(.double) {
  450. height: 52px;
  451. line-height: 52px;
  452. }
  453. }
  454. li {
  455. &:last-of-type {
  456. display: flex;
  457. transition: all 0.5s;
  458. justify-content: center;
  459. align-items: center;
  460. .btn-free {
  461. display: block;
  462. cursor: pointer;
  463. transition: all 0.5s;
  464. width: 90px;
  465. height: 30px;
  466. background: rgba(246, 246, 246, 1);
  467. opacity: 1;
  468. border-radius: 4px;
  469. font-size: 16px;
  470. font-family: Microsoft YaHei;
  471. font-weight: 400;
  472. line-height: 26px;
  473. color: rgba(104, 104, 104, 1);
  474. }
  475. }
  476. }
  477. }
  478. /* 免费版滑过特效 */
  479. &:hover {
  480. position: relative;
  481. ul {
  482. transition: 0.5s;
  483. box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.2);
  484. margin-top: -22px;
  485. .modify-center {
  486. height: 90px;
  487. line-height: 90px;
  488. transition: 0.5s;
  489. }
  490. li {
  491. &:last-of-type {
  492. height: 65px;
  493. transition: 0.5s;
  494. line-height: 80px;
  495. display: flex;
  496. justify-content: center;
  497. align-items: center;
  498. .btn-free {
  499. transition: 0.5s;
  500. background: rgba(44, 183, 202, 1);
  501. color: white;
  502. }
  503. }
  504. }
  505. }
  506. }
  507. }
  508. /* VIP订阅专属服务 */
  509. .center-right {
  510. flex: 3;
  511. transition: all 0.5s;
  512. border-right: 1px solid $border-color;
  513. & > ul {
  514. width: 100%;
  515. margin: 0;
  516. transition: all 0.5s;
  517. li + li {
  518. width: 100%;
  519. text-align: center;
  520. transition: all 0.5s;
  521. font-size: 14px;
  522. font-family: Microsoft YaHei;
  523. font-weight: 400;
  524. color: #714402;
  525. background: rgba(255, 226, 193, 0.08);
  526. opacity: 1;
  527. border-bottom: 1px solid $border-color;
  528. &.double {
  529. height: 74px;
  530. line-height: 74px;
  531. }
  532. &:not(.double) {
  533. height: 52px;
  534. line-height: 52px;
  535. }
  536. }
  537. li {
  538. &:last-of-type {
  539. align-items: center;
  540. transition: all 0.5s;
  541. .On-trial {
  542. width: 90px;
  543. height: 30px;
  544. border: 1px solid rgba(207, 173, 137, 1);
  545. transition: all 0.5s;
  546. opacity: 1;
  547. border-radius: 4px;
  548. display: block;
  549. text-align: center;
  550. line-height: 30px;
  551. font-size: 14px;
  552. font-family: MicrosoftYaHei;
  553. color: rgba(207, 173, 137, 1);
  554. margin-left: 16px;
  555. text-decoration: none !important;
  556. }
  557. }
  558. }
  559. }
  560. /* VIP订阅滑过特效 */
  561. &:hover {
  562. position: relative;
  563. ul {
  564. margin-top: -22px;
  565. box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.2);
  566. transition: all 0.5s;
  567. .modify-right {
  568. height: 90px;
  569. line-height: 90px;
  570. transition: all 0.5s;
  571. }
  572. li {
  573. &:last-of-type {
  574. height: 65px;
  575. line-height: 80px;
  576. transition: all 0.5s;
  577. .On-trial {
  578. background: #34355a;
  579. font-size: 14px;
  580. font-family: MicrosoftYaHei;
  581. line-height: 30px;
  582. color: rgba(255, 218, 177, 1);
  583. transition: all 0.5s;
  584. opacity: 1;
  585. text-decoration: none;
  586. }
  587. }
  588. }
  589. }
  590. }
  591. }
  592. ul {
  593. /* 选中免费版 */
  594. .modify-center {
  595. background: #f5f5fb;
  596. width: 100%;
  597. }
  598. /* 选中VIP订阅专属服务 */
  599. .modify-right {
  600. background: rgba(52, 53, 90, 1);
  601. color: rgba(255, 218, 177, 1);
  602. position: relative;
  603. border-right: 0;
  604. width: 100%;
  605. background-image: url(~@/assets/images/vip/mengban.png);
  606. background-repeat: no-repeat;
  607. background-position: right bottom;
  608. img {
  609. background: rgba(52, 53, 90, 1);
  610. color: rgba(255, 218, 177, 1);
  611. position: absolute;
  612. right: 0;
  613. bottom: 0;
  614. width: 174px;
  615. }
  616. }
  617. li > p {
  618. font-size: 14px;
  619. font-family: Microsoft YaHei-Regular, Microsoft YaHei;
  620. font-weight: 400;
  621. color: #686868;
  622. line-height: 22px;
  623. }
  624. }
  625. }
  626. }
  627. }
  628. .view-all{
  629. cursor: pointer;
  630. font-size:16px;
  631. line-hieght: 24px;
  632. color: $color_main;
  633. text-align: center;
  634. padding-bottom:20px;
  635. }
  636. </style>