Contrast.vue 17 KB

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