developer.vue 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432
  1. <template>
  2. <div class="wrapper" v-if="vipList[1]">
  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>短信限时抵扣
  11. <el-tooltip class="item" effect="dark" placement="top-end">
  12. <div slot="content">使用 <a href="https://unisms.apistd.com/?source=pi.pc.vip" target="_blank">UniSMS</a> 短信服务发送验证码或通知类短信,消费达到会员售价即可免费获得会员权益</div>
  13. <img class="helper-ico" src="@/assets/img/vip/icon_explain.png" alt="" title="">
  14. </el-tooltip>
  15. </p>
  16. <p>系统优先派单</p>
  17. <p>同时接单数量</p>
  18. <p>Ping(接单意愿)权重
  19. <el-tooltip class="item" effect="dark" content="程序员列表、搜索结果页、兼职推荐开发者会员每天最多可ping5次" placement="top-end">
  20. <img src="@/assets/img/vip/icon_explain.png" alt="" title="">
  21. </el-tooltip>
  22. </p>
  23. <p>资质认证申请</p>
  24. <p>平台服务费减免</p>
  25. <p>交换名片次数</p>
  26. </div>
  27. </div>
  28. <div class="ordinary">
  29. <div class="ordinary-title">普通开发者</div>
  30. <div class="ordinary-avatar">
  31. <img src="@/assets/img/vip/ordinary_avatar.png" alt="">
  32. </div>
  33. <div class="ordinary-content">
  34. <p>每月最多确认接单{{vipList[3].devAcceptTimes}}次</p>
  35. <p>-</p>
  36. <p>不优先</p>
  37. <p>仅1单</p>
  38. <p>普通权重</p>
  39. <p>无折扣</p>
  40. <p>无减免</p>
  41. <p>{{vipList[4]['name_card_num']}}次/月</p>
  42. <p>每天岗位投递1次</p>
  43. <p>不可投递会员专属岗位</p>
  44. </div>
  45. </div>
  46. <div class="developer">
  47. <div class="developer-title">
  48. <img src="@/assets/img/vip/developer_title.png" alt="">
  49. </div>
  50. <div class="developer-avatar">
  51. <img src="@/assets/img/vip/ordinary_avatar.png" alt="">
  52. </div>
  53. <div class="developer-content">
  54. <p>不限次数</p>
  55. <p>
  56. <span class="promo-tag">限时</span>短信消费全额抵扣
  57. <el-tooltip class="item" effect="dark" placement="top-end">
  58. <div slot="content">使用 <a href="https://unisms.apistd.com/?source=pi.pc.vip" target="_blank">UniSMS</a> 短信服务发送验证码或通知类短信,消费达到会员售价即可免费获得会员权益</div>
  59. <img class="helper-ico" src="@/assets/img/vip/icon_explain.png" alt="" title="">
  60. </el-tooltip>
  61. </p>
  62. <p>优先</p>
  63. <p>会员+认证自由工作者可接{{vipList[1]['accept_count']}}单</p>
  64. <p>比普通权重高30%</p>
  65. <p>低至3-6折</p>
  66. <p>整包项目减免{{vipList[1]['project_reduction_rate']}}%、云端项目减免{{vipList[1]['job_reduction_rate']}}%</p>
  67. <p>{{vipList[1]['name_card_num']}}次/月</p>
  68. <p>每天岗位投递5次</p>
  69. <p>可投递会员专属岗位</p>
  70. </div>
  71. <div class="developer-price-wrapper">
  72. <div class="developer-price"><span>¥{{vipList[1]['monthly_real_price']}}</span>/月</div>
  73. <div class="original-price">原价¥{{vipList[1]['monthly_origin_price']}}/月</div>
  74. </div>
  75. <div class="developer-btn" @click="clickPay('dev')">
  76. <!-- vip_type: 1 - 企业;2 - 开发者;3 - -->
  77. {{vipDetail.user_info && vipDetail.user_info.vip_type == 2 ? "立即续费" : "立即开通"}}
  78. </div>
  79. </div>
  80. </div>
  81. <div class="tips">
  82. <div class="tips-title">说明</div>
  83. <div class="tips-content">
  84. <p>1.最低支持购买3个月,每个月按31天算;</p>
  85. <p>2.开通会员即代表您已同意<a href="https://support.proginn.com/rule/member/" style="color: #308eff;">《程序员客栈会员服务条款》</a>;</p>
  86. <p> 3.如有任何问题,欢迎咨询在线客服,或拨打热线:0571-28120931 转1</p>
  87. </div>
  88. </div>
  89. <buy-dialog
  90. :handleClose="handleClose"
  91. :buyDialog="buyDialog"
  92. :gotoPay="gotoPay"
  93. :type="type"
  94. :item="item"
  95. :vipDetail="vipDetail"
  96. :pricePrefix="pricePrefix"
  97. ></buy-dialog>
  98. <!-- <BuyDevDialog
  99. :handleClose="handleClose"
  100. :showDialog="showDialog"
  101. :item="item"
  102. :vipDetail="vipDetail"></BuyDevDialog> -->
  103. </div>
  104. </template>
  105. <script>
  106. import buyDialog from "@/components/type/vip/buy-dialog";
  107. // import BuyDevDialog from "@/components/type/vip/buy-dev-dialog";
  108. export default {
  109. data() {
  110. return {
  111. showDialog: false,
  112. buyDialog: false,
  113. pricePrefix: "",
  114. type: "dev", // com: 企业会员, dev: 开发者会员
  115. vipList: [],
  116. vipDetail: {},
  117. item: {}
  118. };
  119. },
  120. head() {
  121. const {
  122. title = "开发者会员-程序员客栈",
  123. keyword = "程序员客栈开发者会员,程序员等级认证,平台服务费减免",
  124. description = "PC、Android、iOS共享权益,程序员免费聊一聊,平台服务费减免,对接权限提升,同时接2单等。",
  125. } = this.head || {};
  126. let obj = {
  127. title: title,
  128. meta: [
  129. {
  130. name: "keywords",
  131. content: keyword
  132. },
  133. {
  134. name: "description",
  135. content: description
  136. }
  137. ]
  138. };
  139. return obj;
  140. },
  141. async mounted() {
  142. await this.getList();
  143. await this.getVipDetail();
  144. },
  145. components: {
  146. buyDialog,
  147. // BuyDevDialog
  148. },
  149. computed: {},
  150. methods: {
  151. async getList() {
  152. let extraHeaders = {};
  153. if (this.deviceType === "ios") {
  154. extraHeaders = this.getSign();
  155. }
  156. let res = await this.$axios.$post(`/api/vip/getList`, extraHeaders);
  157. this.vipList = res.data;
  158. },
  159. /**
  160. * 点击支付
  161. */
  162. clickPay(type) {
  163. this.type = type;
  164. this.item = this.vipList[1];
  165. this.buyDialog = true;
  166. this.cnzz("会员购买","开发者会员","");
  167. },
  168. handleClose() {
  169. this.buyDialog = false;
  170. },
  171. gotoPay(number) {
  172. const item = this.item;
  173. this.cnzz("会员购买","开发者会员","前往支付页");
  174. location.href = `/vip/pay?product_id=${item.id}&number=${number}&next=/type/vip/`;
  175. },
  176. // 点击会员计划
  177. clickProject(index) {
  178. let vip = this.vipList[index];
  179. window.open(recommend.seo_uri);
  180. },
  181. async getVipDetail() {
  182. let res = await this.$axios.$post("/api/vip/get_vip_user_detail");
  183. this.vipDetail = res && res.data ? res.data : {};
  184. }
  185. }
  186. }
  187. </script>
  188. <style lang="scss" scope>
  189. .wrapper {
  190. overflow: hidden;
  191. }
  192. .title {
  193. margin-top: 54px;
  194. line-height: 45px;
  195. text-align: center;
  196. font-weight: 600;
  197. font-size: 32px;
  198. color: #222222;
  199. }
  200. .subtitle {
  201. margin-top: 4px;
  202. line-height: 22px;
  203. text-align: center;
  204. font-size: 16px;
  205. color: #999999;
  206. }
  207. .content {
  208. margin: 49px auto 0;
  209. width: 100%;
  210. display: flex;
  211. justify-content: center;
  212. }
  213. .explain {
  214. overflow: hidden;
  215. width: 304px;
  216. height: 860px;
  217. border-radius: 2px;
  218. background-color: #FFFFFF;
  219. border: 1px solid #D6DBE3;
  220. box-shadow: 0px 4px 20px 0px rgba(0, 21, 53, 0.05);
  221. text-align: center;
  222. }
  223. .explain-title {
  224. margin-top: 45px;
  225. line-height: 28px;
  226. font-weight: 600;
  227. font-size: 20px;
  228. color: #8E5B15;
  229. }
  230. .explain-content {
  231. overflow: hidden;
  232. line-height: 20px;
  233. font-size: 14px;
  234. color: #222222;
  235. }
  236. .explain-content p {
  237. display: flex;
  238. align-items: center;
  239. justify-content: center;
  240. margin-top: 30px;
  241. }
  242. .explain-content p:nth-child(1) {
  243. margin-top: 125px;
  244. }
  245. .explain-content img {
  246. margin-left: 5px;
  247. width: 13px;
  248. height: 13px;
  249. }
  250. .ordinary {
  251. overflow: hidden;
  252. width: 315px;
  253. height: 860px;
  254. border-radius: 2px;
  255. background-color: #FFFFFF;
  256. border: 1px solid #D6DBE3;
  257. box-shadow: 0px 4px 20px 0px rgba(0, 21, 53, 0.05);
  258. text-align: center;
  259. }
  260. .ordinary-title {
  261. margin-top: 45px;
  262. line-height: 28px;
  263. font-weight: 600;
  264. font-size: 20px;
  265. color: #666666;
  266. }
  267. .ordinary-avatar {
  268. margin: 16px auto 0;
  269. width: 66px;
  270. height: 66px;
  271. }
  272. .ordinary-avatar img {
  273. width: 100%;
  274. height: 100%;
  275. }
  276. .ordinary-content {
  277. overflow: hidden;
  278. line-height: 20px;
  279. font-size: 14px;
  280. color: #666666;
  281. }
  282. .ordinary-content p {
  283. margin-top: 30px;
  284. }
  285. .ordinary-content p:nth-child(1) {
  286. margin-top: 43px;
  287. }
  288. .developer {
  289. overflow: hidden;
  290. width: 326px;
  291. height: 860px;
  292. border-radius: 2px;
  293. background-color: #FFF9ED;
  294. border: 1px solid #C89A29;
  295. box-shadow: 0px 4px 20px 0px rgba(199, 160, 61, 0.13);
  296. text-align: center;
  297. }
  298. .developer-title {
  299. margin-top: 47px;
  300. }
  301. .developer-title img {
  302. width: 156px;
  303. height: 23px;
  304. }
  305. .developer-avatar {
  306. margin: 19px auto 0;
  307. width: 66px;
  308. height: 66px;
  309. }
  310. .developer-avatar img {
  311. width: 100%;
  312. height: 100%;
  313. }
  314. .developer-content {
  315. overflow: hidden;
  316. line-height: 20px;
  317. font-weight: 600;
  318. font-size: 14px;
  319. color: #9E733A;
  320. }
  321. .developer-content p {
  322. margin-top: 30px;
  323. }
  324. .developer-content p:nth-child(1) {
  325. margin-top: 43px;
  326. }
  327. .developer-price-wrapper {
  328. margin-top: 52px;
  329. display: flex;
  330. justify-content: center;
  331. }
  332. .developer-price {
  333. font-size: 15px;
  334. color: #222222;
  335. }
  336. .developer-price span {
  337. line-height: 40px;
  338. font-weight: 600;
  339. font-size: 28px;
  340. color: #222222;
  341. }
  342. .original-price {
  343. margin-top: 15px;
  344. margin-left: 5px;
  345. line-height: 17px;
  346. font-size: 12px;
  347. color: #666666;
  348. text-decoration: line-through;
  349. }
  350. .developer-btn {
  351. margin: 21px auto 0;
  352. width: 195px;
  353. height: 44px;
  354. background-color: #D4AB4C;
  355. line-height: 44px;
  356. text-align: center;
  357. font-weight: 500;
  358. font-size: 14px;
  359. color: #0E0E0E;
  360. cursor: pointer;
  361. }
  362. .tips {
  363. margin-top: 38px;
  364. }
  365. .tips-title {
  366. line-height: 20px;
  367. font-weight: 600;
  368. font-size: 14px;
  369. color: #666666;
  370. }
  371. .tips-content {
  372. margin-top: 3px;
  373. line-height: 28px;
  374. font-size: 14px;
  375. color: #919AA7;
  376. }
  377. .tips-content span {
  378. color: #308EFF;
  379. }
  380. .promo-tag {
  381. background: linear-gradient(160deg, #ff0080, #ff6a00);
  382. text-shadow: 0 1px 2px rgba(255,106,0,0.5);
  383. color: #fff;
  384. padding: 0.125em 0.375em;
  385. font-size: 0.9em;
  386. border-radius: 4px;
  387. margin: 0 5px 0 -5px;
  388. }
  389. .helper-ico {
  390. margin-left: 2px;
  391. width: 13px;
  392. height: 13px;
  393. }
  394. </style>