enterprise.vue 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547
  1. <template>
  2. <div class="wrapper" v-if="vipList.length>0">
  3. <div class="title">企业会员</div>
  4. <div class="subtitle">新技术人力解决方案</div>
  5. <div class="content">
  6. <div class="explain">
  7. <div class="explain-title">权益内容</div>
  8. <div class="explain-content">
  9. <p>雇佣服务</p>
  10. <p>程序员聊一聊</p>
  11. <p>每月名片交换次数</p>
  12. <p>平台服务费减免</p>
  13. <p>企业认证</p>
  14. <p>短信限时抵扣</p>
  15. <p>技术信用服务</p>
  16. <p>
  17. 兼职招聘
  18. </p>
  19. <p>企业接单权限</p>
  20. <p style="display: none" class="questionArea" title>
  21. 解决方案高级服务
  22. <el-tooltip
  23. class="item"
  24. effect="dark"
  25. content="每天可置顶解决方案5次、支持自定义更换解决方案背景、客户线索管理后台、直接展示企业联系方式"
  26. placement="top-end"
  27. >
  28. <img src="@/assets/img/vip/icon_explain.png" alt title />
  29. </el-tooltip>
  30. </p>
  31. <p style="display: none">解决方案代理运营</p>
  32. </div>
  33. </div>
  34. <div class="ordinary">
  35. <div class="ordinary-title">普通企业方</div>
  36. <div class="ordinary-avatar">
  37. <img src="@/assets/img/vip/ordinary_avatar.png" alt />
  38. </div>
  39. <div class="ordinary-content">
  40. <p>{{vipList[3].userHire || 0}}次/天</p>
  41. <p>{{vipList[3].userChat || 0}}次/天</p>
  42. <p>{{vipList[3].name_card_num || 0}}人/月</p>
  43. <p>无</p>
  44. <p>无</p>
  45. <p>无</p>
  46. <p>无</p>
  47. <p>0</p>
  48. <p>无</p>
  49. <p style="display: none">无</p>
  50. <p style="display: none">无</p>
  51. </div>
  52. </div>
  53. <div class="newly">
  54. <div class="newly-title">
  55. <div class="st1">初创版</div>
  56. <!-- <div class="sdesc">(招聘企业)</div> -->
  57. </div>
  58. <div class="newly-avatar">
  59. <img src="@/assets/img/vip/newly_avatar.png" alt />
  60. </div>
  61. <div class="newly-content">
  62. <p>{{this.vipList[0]['hire_times']}}次/天</p>
  63. <p>{{this.vipList[0]['chat_times']}}次/天</p>
  64. <p>{{this.vipList[0]['name_card_num']}}人/月</p>
  65. <p>免费</p>
  66. <p>免费</p>
  67. <p>
  68. <span class="promo-tag">限时</span>短信消费全额抵扣
  69. <el-tooltip class="item" effect="dark" placement="top-end">
  70. <div slot="content">使用 <a href="https://unisms.apistd.com/?source=pi.pc.vip" target="_blank">UniSMS</a> 短信服务发送验证码或通知类短信,消费达到会员售价即可免费获得会员权益</div>
  71. <img class="helper-ico" src="@/assets/img/vip/icon_explain.png" alt="" title="">
  72. </el-tooltip>
  73. </p>
  74. <p>无</p>
  75. <p>最多开放{{vipList[0]['recruit_num']}}个岗位</p>
  76. <p>无</p>
  77. <p style="display: none">有</p>
  78. <p style="display: none">无</p>
  79. </div>
  80. <div class="newly-price">
  81. <span>¥{{this.vipList[0]['monthly_real_price']}}</span>/月
  82. </div>
  83. <div
  84. class="newly-btn"
  85. @click="clickPay('com')"
  86. >{{vipDetail.user_info && vipDetail.user_info.vip_type===2?'立即续费':'立即开通'}}</div>
  87. </div>
  88. <div class="enterprise">
  89. <div class="enterprise-title">
  90. <div class="st2">企业版</div>
  91. <!-- <div class="sdesc">(解决方案技术企业)</div> -->
  92. </div>
  93. <div class="enterprise-avatar">
  94. <img src="@/assets/img/vip/enterprise_avatar.png" alt />
  95. </div>
  96. <div class="newly-content">
  97. <p>{{this.vipList[2]['hire_times']}}次/天</p>
  98. <p>{{this.vipList[2]['chat_times']}}次/天</p>
  99. <p>{{this.vipList[2]['name_card_num']}}人/月</p>
  100. <p>免费</p>
  101. <p>免费</p>
  102. <p>
  103. <span class="promo-tag">限时</span>短信消费全额抵扣
  104. <el-tooltip class="item" effect="dark" placement="top-end">
  105. <div slot="content">使用 <a href="https://unisms.apistd.com/?source=pi.pc.vip" target="_blank">UniSMS</a> 短信服务发送验证码或通知类短信,消费达到会员售价即可免费获得会员权益</div>
  106. <img class="helper-ico" src="@/assets/img/vip/icon_explain.png" alt="" title="">
  107. </el-tooltip>
  108. </p>
  109. <p>免费</p>
  110. <p>不限次</p>
  111. <p>有</p>
  112. <p style="display: none">有</p>
  113. <p style="display: none">有</p>
  114. </div>
  115. <div class="enterprise-price">
  116. <span>¥{{this.vipList[2]['monthly_real_price']}}</span>/月
  117. </div>
  118. <div
  119. class="enterprise-btn"
  120. @click="clickPay('pre')"
  121. >{{vipDetail.user_info && vipDetail.user_info.vip_type===3?'立即续费':'立即开通'}}</div>
  122. </div>
  123. </div>
  124. <div class="tips">
  125. <div class="tips-title">说明</div>
  126. <div class="tips-content">
  127. <p>1.最低支持购买3个月,每个月按31天算;</p>
  128. <p>
  129. 2.开通会员即代表您已同意<a href="https://support.proginn.com/rule/member/" style="color: #308eff;">《程序员客栈会员服务条款》</a>;
  130. </p>
  131. <p>3.如有任何问题,欢迎咨询在线客服,或拨打热线:0571-28120931 转1</p>
  132. </div>
  133. </div>
  134. <buy-dialog
  135. :handleClose="handleClose"
  136. :buyDialog="buyDialog"
  137. :gotoPay="gotoPay"
  138. :type="type"
  139. :item="item"
  140. :vipDetail="vipDetail"
  141. :pricePrefix="pricePrefix"
  142. ></buy-dialog>
  143. </div>
  144. </template>
  145. <script>
  146. import buyDialog from "@/components/type/vip/buy-dialog";
  147. export default {
  148. data() {
  149. return {
  150. buyDialog: false,
  151. pricePrefix: "",
  152. type: "com", // com: 企业会员, dev: 开发者会员
  153. vipList: [],
  154. vipDetail: {},
  155. item: {},
  156. };
  157. },
  158. components: {
  159. buyDialog,
  160. },
  161. async mounted() {
  162. await this.getList();
  163. await this.getVipDetail();
  164. },
  165. methods: {
  166. async getList() {
  167. let extraHeaders = {};
  168. if (this.deviceType === "ios") {
  169. extraHeaders = this.getSign();
  170. }
  171. let res = await this.$axios.$post(`/api/vip/getList`, extraHeaders);
  172. this.vipList = res.data;
  173. },
  174. async getVipDetail() {
  175. let res = await this.$axios.$post("/api/vip/getVipUserDetail");
  176. this.vipDetail = res && res.data ? res.data : {};
  177. },
  178. clickPay(type) {
  179. switch (type) {
  180. case "com":
  181. this.item = this.vipList[0];
  182. this.type = "com";
  183. this.cnzz("会员购买","初创版开通","");
  184. break;
  185. case "pre":
  186. this.item = this.vipList[2];
  187. this.type = "pre";
  188. this.cnzz("会员购买","企业版开通","");
  189. break;
  190. }
  191. this.buyDialog = true;
  192. },
  193. handleClose() {
  194. this.buyDialog = false;
  195. },
  196. gotoPay(number) {
  197. const item = this.item;
  198. this.cnzz("会员购买",item.id==1?"初创版":"企业版","前往支付页");
  199. location.href = `/vip/pay?product_id=${item.id}&number=${number}&next=/type/vip/`;
  200. },
  201. // 点击会员计划
  202. clickProject(index) {
  203. let vip = this.vipList[index];
  204. window.open(recommend.seo_uri);
  205. },
  206. },
  207. };
  208. </script>
  209. <style lang="scss" scope>
  210. .wrapper {
  211. overflow: hidden;
  212. }
  213. .title {
  214. margin-top: 54px;
  215. line-height: 45px;
  216. text-align: center;
  217. font-weight: 600;
  218. font-size: 32px;
  219. color: #222222;
  220. }
  221. .subtitle {
  222. margin-top: 4px;
  223. line-height: 22px;
  224. text-align: center;
  225. font-size: 16px;
  226. color: #999999;
  227. }
  228. .content {
  229. margin: 49px auto 0;
  230. width: 100%;
  231. display: flex;
  232. justify-content: center;
  233. }
  234. .explain {
  235. overflow: hidden;
  236. width: 226px;
  237. height: 750px;
  238. border-radius: 2px;
  239. background-color: #ffffff;
  240. border: 1px solid #d6dbe3;
  241. box-shadow: 0px 4px 20px 0px rgba(0, 21, 53, 0.05);
  242. text-align: center;
  243. }
  244. .explain-title {
  245. margin-top: 40px;
  246. line-height: 28px;
  247. font-weight: 600;
  248. font-size: 20px;
  249. color: #666666;
  250. }
  251. .explain-content {
  252. overflow: hidden;
  253. line-height: 20px;
  254. font-size: 14px;
  255. color: #222222;
  256. }
  257. .explain-content p:nth-child(1) {
  258. margin-top: 114px;
  259. }
  260. .explain-content p:nth-child(n + 2) {
  261. margin-top: 23px;
  262. }
  263. .explain-content p:nth-child(4) {
  264. }
  265. .ordinary {
  266. overflow: hidden;
  267. width: 288px;
  268. height: 750px;
  269. border-radius: 2px;
  270. background-color: #ffffff;
  271. border: 1px solid #d6dbe3;
  272. box-shadow: 0px 4px 20px 0px rgba(0, 21, 53, 0.05);
  273. text-align: center;
  274. }
  275. .ordinary-title {
  276. margin-top: 40px;
  277. line-height: 28px;
  278. height: 28px;
  279. font-weight: 600;
  280. font-size: 20px;
  281. color: #666666;
  282. }
  283. .ordinary-avatar {
  284. margin: 21px auto 0;
  285. width: 66px;
  286. height: 66px;
  287. }
  288. .ordinary-avatar img {
  289. width: 100%;
  290. height: 100%;
  291. }
  292. .ordinary-content {
  293. overflow: hidden;
  294. line-height: 20px;
  295. font-size: 14px;
  296. color: #666666;
  297. }
  298. .ordinary-content p:nth-child(1) {
  299. margin-top: 27px;
  300. }
  301. .ordinary-content p:nth-child(n + 2) {
  302. margin-top: 23px;
  303. }
  304. .ordinary-content p:nth-child(4) {
  305. }
  306. .newly {
  307. overflow: hidden;
  308. width: 260px;
  309. height: 750px;
  310. border-radius: 2px;
  311. background-color: #f6faff;
  312. border: 1px solid #308eff;
  313. box-shadow: 0px 4px 20px 0px rgba(48, 142, 255, 0.15);
  314. text-align: center;
  315. }
  316. .newly-title {
  317. margin-top: 40px;
  318. line-height: 28px;
  319. font-weight: 600;
  320. font-size: 20px;
  321. color: #308eff;
  322. .st1 {
  323. }
  324. .sdesc {
  325. }
  326. }
  327. .newly-avatar {
  328. margin: 21px auto 0;
  329. width: 66px;
  330. height: 66px;
  331. }
  332. .newly-avatar img {
  333. width: 100%;
  334. height: 100%;
  335. }
  336. .newly-content {
  337. overflow: hidden;
  338. line-height: 20px;
  339. font-size: 14px;
  340. color: #111111;
  341. }
  342. .newly-content p:nth-child(1) {
  343. margin-top: 27px;
  344. }
  345. .newly-content p:nth-child(n + 2) {
  346. margin-top: 23px;
  347. }
  348. .newly-content p:nth-child(4) span {
  349. color: #308eff;
  350. }
  351. .newly-price {
  352. margin-top: 30px;
  353. font-size: 15px;
  354. color: #222222;
  355. }
  356. .newly-price span {
  357. line-height: 40px;
  358. font-weight: 600;
  359. font-size: 28px;
  360. color: #222222;
  361. }
  362. .newly-btn {
  363. margin: 21px auto 0;
  364. width: 195px;
  365. height: 44px;
  366. background-color: #308eff;
  367. line-height: 44px;
  368. text-align: center;
  369. font-weight: 500;
  370. font-size: 14px;
  371. color: #ffffff;
  372. cursor: pointer;
  373. }
  374. .enterprise {
  375. overflow: hidden;
  376. width: 260px;
  377. height: 750px;
  378. border-radius: 2px;
  379. background-color: #f3fffa;
  380. border: 1px solid #00c469;
  381. box-shadow: 0px 4px 20px 0px rgba(0, 196, 105, 0.14);
  382. text-align: center;
  383. }
  384. .enterprise-title {
  385. margin-top: 40px;
  386. line-height: 28px;
  387. font-weight: 600;
  388. font-size: 20px;
  389. color: #00c469;
  390. }
  391. .enterprise-avatar {
  392. margin: 21px auto 0;
  393. width: 66px;
  394. height: 66px;
  395. }
  396. .enterprise-avatar img {
  397. width: 100%;
  398. height: 100%;
  399. }
  400. .enterprise-content {
  401. overflow: hidden;
  402. line-height: 20px;
  403. font-size: 14px;
  404. color: #111111;
  405. }
  406. .explain-content p {
  407. display: flex;
  408. align-items: center;
  409. justify-content: center;
  410. }
  411. .explain-content img {
  412. margin-left: 5px;
  413. width: 13px;
  414. height: 13px;
  415. }
  416. .enterprise-content p:nth-child(1) {
  417. margin-top: 46px;
  418. }
  419. .enterprise-content p:nth-child(n + 2) {
  420. margin-top: 23px;
  421. }
  422. .enterprise-content p:nth-child(4) span {
  423. color: #00c469;
  424. }
  425. .enterprise-price {
  426. margin-top: 30px;
  427. font-size: 15px;
  428. color: #222222;
  429. }
  430. .enterprise-price span {
  431. line-height: 40px;
  432. font-weight: 600;
  433. font-size: 28px;
  434. color: #222222;
  435. }
  436. .enterprise-btn {
  437. margin: 21px auto 0;
  438. width: 195px;
  439. height: 44px;
  440. background-color: #00c469;
  441. line-height: 44px;
  442. text-align: center;
  443. font-weight: 500;
  444. font-size: 14px;
  445. color: #ffffff;
  446. cursor: pointer;
  447. }
  448. .tips {
  449. margin-top: 38px;
  450. }
  451. .tips-title {
  452. line-height: 20px;
  453. font-weight: 600;
  454. font-size: 14px;
  455. color: #666666;
  456. }
  457. .tips-content {
  458. margin-top: 3px;
  459. line-height: 28px;
  460. font-size: 14px;
  461. color: #919aa7;
  462. }
  463. .tips-content span {
  464. color: #308eff;
  465. }
  466. .questionArea {
  467. display: flex;
  468. align-items: center;
  469. justify-content: center;
  470. .question {
  471. margin-left: 5px;
  472. display: inline-block;
  473. width: 17px;
  474. height: 17px;
  475. background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAB5klEQVQ4T6WTP2gVQRDGv2/tU6VQVLATQSJvZx8qvIgimE5E1EJMMI1R0FLSpg3aKQSrGAsLFQkSEAXxL6i8mzteEMVOENHCyvq9G9njNlwObfS6uZn59tuZ3xL/+bHdXxTFrrIsLwHYA0DqvAL45Jxb6nQ6X5o9mwRU9TyAmwAemtlbkl9jsZntJHkQwEkAl0XkdhLZEFDVSQCvzOxMCOG+qoqZ7Y+FzrkX3vuPWZadJnkPwCEReR1zlUCWZeMAPpM8JiJaFMXhsizvAHgGYAuAoyTPeu9f1sJPAewOIfysBFT1GoAxEZmr44zkivf+Rh1fIDnjve/V8S0Av0TkahJ4QnItNfT7/YVut7vQHJaqmohU9XmeT5vZORGZSlf4AeBiCGH1T1tV1U0O4qZGo9G7EMLW5OAbgDkRWWsK5Hl+BcABM+uRvJ4cDgaDHcPh8L2IbE8Cj8zscQhhqW3bzBZJ3hWR9ZSrtzEtIseTwCKAbSIy03Lw3Ht/pH0tVY0b+i4i85VATd8HM5uNDKQGVY2THmsK1KcvO+f2RiqbIEUKlwGEyEJsam8jMhCxATCbaGyjPGlmqyQfkHxDsqLNzOL/npmdInkiUbhBYsviOMl5ABNmtq8qIgcA1uNAI31/fUz/8rJ/Aw0C8hFPWXYFAAAAAElFTkSuQmCC")
  476. no-repeat;
  477. background-size: cover;
  478. }
  479. }
  480. .promo-tag {
  481. background: linear-gradient(160deg, #ff0080, #ff6a00);
  482. text-shadow: 0 1px 2px rgba(255,106,0,0.5);
  483. color: #fff;
  484. padding: 0.125em 0.375em;
  485. font-size: 0.9em;
  486. border-radius: 4px;
  487. margin: 0 5px 0 -5px;
  488. }
  489. .helper-ico {
  490. margin-left: 2px;
  491. width: 13px;
  492. height: 13px;
  493. }
  494. </style>