developer.vue 11 KB

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