index.js 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. import {
  2. getResume
  3. } from '../../services/index.js'
  4. import {
  5. imgServerUrl
  6. } from '../../config/config.js'
  7. import {
  8. showToastW
  9. } from '../../utils/tips.js'
  10. import {
  11. formatTime
  12. } from '../../utils/util.js'
  13. const app = getApp();
  14. Page({
  15. data: {
  16. imgServerUrl: imgServerUrl,
  17. hpUserResumeId: '', //是否有简历
  18. eduList: ["请选择", "小学", "中学", "高中", "大专", "本科", "研究生", "博士", "博士后"],
  19. eduName: '', //学历
  20. expYear: "", //工作几年
  21. hpUserResumeId: '', //用户简历表id
  22. expectationPosition: ["普工", "客服", "销售", "服务员", "物流仓储", "司机", "才艺技能", "文员助理", "快递配送", "促销导购", "展会演出", "家教培训", "模特", "贸易采购", "厨师", "编辑", "线上推广", "设计", "技工", "保洁", "其它"],
  23. salaryList: [{
  24. "expectationSalary": -1,
  25. "hightNum": '不限'
  26. },
  27. {
  28. "expectationSalary": 0,
  29. "hightNum": '1000~2000'
  30. },
  31. {
  32. "expectationSalary": 1,
  33. "hightNum": '2000~3000'
  34. },
  35. {
  36. "expectationSalary": 2,
  37. "hightNum": '3000~4000'
  38. },
  39. {
  40. "expectationSalary": 3,
  41. "hightNum": '4000~5000'
  42. },
  43. {
  44. "expectationSalary": 4,
  45. "hightNum": '5000~6000'
  46. },
  47. {
  48. "expectationSalary": 5,
  49. "hightNum": '6000~7000'
  50. },
  51. {
  52. "expectationSalary": 6,
  53. "hightNum": '7000~8000'
  54. },
  55. {
  56. "expectationSalary": 7,
  57. "hightNum": '8000~9000'
  58. },
  59. {
  60. "expectationSalary": 9,
  61. "hightNum": '10000以上'
  62. }
  63. ],
  64. },
  65. onLoad: function (options) {
  66. var userResume = wx.getStorageSync('userResume');
  67. if (userResume.expectationSalary) {
  68. var salaryList = this.data.salaryList;
  69. for (var i = 0; i < salaryList.length; i++) {
  70. if (salaryList[i].expectationSalary == userResume.expectationSalary) {
  71. userResume.expectationSalary = salaryList[i].hightNum
  72. }
  73. }
  74. }
  75. this.setData({
  76. userResume: userResume
  77. })
  78. },
  79. onShow: function (options) {
  80. },
  81. })