enterprise.vue 10 KB

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