developer.vue 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411
  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>每天岗位投递3次</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>每天岗位投递10次</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. async mounted() {
  121. await this.getList();
  122. await this.getVipDetail();
  123. },
  124. components: {
  125. buyDialog,
  126. // BuyDevDialog
  127. },
  128. computed: {},
  129. methods: {
  130. async getList() {
  131. let extraHeaders = {};
  132. if (this.deviceType === "ios") {
  133. extraHeaders = this.getSign();
  134. }
  135. let res = await this.$axios.$post(`/api/vip/getList`, extraHeaders);
  136. this.vipList = res.data;
  137. },
  138. /**
  139. * 点击支付
  140. */
  141. clickPay(type) {
  142. this.type = type;
  143. this.item = this.vipList[1];
  144. this.buyDialog = true;
  145. this.cnzz("会员购买","开发者会员","");
  146. },
  147. handleClose() {
  148. this.buyDialog = false;
  149. },
  150. gotoPay(number) {
  151. const item = this.item;
  152. this.cnzz("会员购买","开发者会员","前往支付页");
  153. location.href = `/vip/pay?product_id=${item.id}&number=${number}&next=/type/vip/`;
  154. },
  155. // 点击会员计划
  156. clickProject(index) {
  157. let vip = this.vipList[index];
  158. window.open(recommend.seo_uri);
  159. },
  160. async getVipDetail() {
  161. let res = await this.$axios.$post("/api/vip/get_vip_user_detail");
  162. this.vipDetail = res && res.data ? res.data : {};
  163. }
  164. }
  165. }
  166. </script>
  167. <style lang="scss" scope>
  168. .wrapper {
  169. overflow: hidden;
  170. }
  171. .title {
  172. margin-top: 54px;
  173. line-height: 45px;
  174. text-align: center;
  175. font-weight: 600;
  176. font-size: 32px;
  177. color: #222222;
  178. }
  179. .subtitle {
  180. margin-top: 4px;
  181. line-height: 22px;
  182. text-align: center;
  183. font-size: 16px;
  184. color: #999999;
  185. }
  186. .content {
  187. margin: 49px auto 0;
  188. width: 100%;
  189. display: flex;
  190. justify-content: center;
  191. }
  192. .explain {
  193. overflow: hidden;
  194. width: 304px;
  195. height: 860px;
  196. border-radius: 2px;
  197. background-color: #FFFFFF;
  198. border: 1px solid #D6DBE3;
  199. box-shadow: 0px 4px 20px 0px rgba(0, 21, 53, 0.05);
  200. text-align: center;
  201. }
  202. .explain-title {
  203. margin-top: 45px;
  204. line-height: 28px;
  205. font-weight: 600;
  206. font-size: 20px;
  207. color: #8E5B15;
  208. }
  209. .explain-content {
  210. overflow: hidden;
  211. line-height: 20px;
  212. font-size: 14px;
  213. color: #222222;
  214. }
  215. .explain-content p {
  216. display: flex;
  217. align-items: center;
  218. justify-content: center;
  219. margin-top: 30px;
  220. }
  221. .explain-content p:nth-child(1) {
  222. margin-top: 125px;
  223. }
  224. .explain-content img {
  225. margin-left: 5px;
  226. width: 13px;
  227. height: 13px;
  228. }
  229. .ordinary {
  230. overflow: hidden;
  231. width: 315px;
  232. height: 860px;
  233. border-radius: 2px;
  234. background-color: #FFFFFF;
  235. border: 1px solid #D6DBE3;
  236. box-shadow: 0px 4px 20px 0px rgba(0, 21, 53, 0.05);
  237. text-align: center;
  238. }
  239. .ordinary-title {
  240. margin-top: 45px;
  241. line-height: 28px;
  242. font-weight: 600;
  243. font-size: 20px;
  244. color: #666666;
  245. }
  246. .ordinary-avatar {
  247. margin: 16px auto 0;
  248. width: 66px;
  249. height: 66px;
  250. }
  251. .ordinary-avatar img {
  252. width: 100%;
  253. height: 100%;
  254. }
  255. .ordinary-content {
  256. overflow: hidden;
  257. line-height: 20px;
  258. font-size: 14px;
  259. color: #666666;
  260. }
  261. .ordinary-content p {
  262. margin-top: 30px;
  263. }
  264. .ordinary-content p:nth-child(1) {
  265. margin-top: 43px;
  266. }
  267. .developer {
  268. overflow: hidden;
  269. width: 326px;
  270. height: 860px;
  271. border-radius: 2px;
  272. background-color: #FFF9ED;
  273. border: 1px solid #C89A29;
  274. box-shadow: 0px 4px 20px 0px rgba(199, 160, 61, 0.13);
  275. text-align: center;
  276. }
  277. .developer-title {
  278. margin-top: 47px;
  279. }
  280. .developer-title img {
  281. width: 156px;
  282. height: 23px;
  283. }
  284. .developer-avatar {
  285. margin: 19px auto 0;
  286. width: 66px;
  287. height: 66px;
  288. }
  289. .developer-avatar img {
  290. width: 100%;
  291. height: 100%;
  292. }
  293. .developer-content {
  294. overflow: hidden;
  295. line-height: 20px;
  296. font-weight: 600;
  297. font-size: 14px;
  298. color: #9E733A;
  299. }
  300. .developer-content p {
  301. margin-top: 30px;
  302. }
  303. .developer-content p:nth-child(1) {
  304. margin-top: 43px;
  305. }
  306. .developer-price-wrapper {
  307. margin-top: 52px;
  308. display: flex;
  309. justify-content: center;
  310. }
  311. .developer-price {
  312. font-size: 15px;
  313. color: #222222;
  314. }
  315. .developer-price span {
  316. line-height: 40px;
  317. font-weight: 600;
  318. font-size: 28px;
  319. color: #222222;
  320. }
  321. .original-price {
  322. margin-top: 15px;
  323. margin-left: 5px;
  324. line-height: 17px;
  325. font-size: 12px;
  326. color: #666666;
  327. text-decoration: line-through;
  328. }
  329. .developer-btn {
  330. margin: 21px auto 0;
  331. width: 195px;
  332. height: 44px;
  333. background-color: #D4AB4C;
  334. line-height: 44px;
  335. text-align: center;
  336. font-weight: 500;
  337. font-size: 14px;
  338. color: #0E0E0E;
  339. cursor: pointer;
  340. }
  341. .tips {
  342. margin-top: 38px;
  343. }
  344. .tips-title {
  345. line-height: 20px;
  346. font-weight: 600;
  347. font-size: 14px;
  348. color: #666666;
  349. }
  350. .tips-content {
  351. margin-top: 3px;
  352. line-height: 28px;
  353. font-size: 14px;
  354. color: #919AA7;
  355. }
  356. .tips-content span {
  357. color: #308EFF;
  358. }
  359. .promo-tag {
  360. background: linear-gradient(160deg, #ff0080, #ff6a00);
  361. text-shadow: 0 1px 2px rgba(255,106,0,0.5);
  362. color: #fff;
  363. padding: 0.125em 0.375em;
  364. font-size: 0.9em;
  365. border-radius: 4px;
  366. margin: 0 5px 0 -5px;
  367. }
  368. .helper-ico {
  369. margin-left: 2px;
  370. width: 13px;
  371. height: 13px;
  372. }
  373. </style>