recruitInfo.js 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. // pages/recruitInfo/recruitInfo.js
  2. Page({
  3. /**
  4. * 页面的初始数据
  5. */
  6. data: {
  7. imgUrl:'/images/icons/like_no.png'
  8. },
  9. /**
  10. * 生命周期函数--监听页面加载
  11. */
  12. onLoad: function (options) {
  13. },
  14. /**
  15. * 生命周期函数--监听页面初次渲染完成
  16. */
  17. onReady: function () {
  18. },
  19. /**
  20. * 生命周期函数--监听页面显示
  21. */
  22. onShow: function () {
  23. },
  24. /**
  25. * 生命周期函数--监听页面隐藏
  26. */
  27. onHide: function () {
  28. },
  29. /**
  30. * 生命周期函数--监听页面卸载
  31. */
  32. onUnload: function () {
  33. },
  34. /**
  35. * 页面相关事件处理函数--监听用户下拉动作
  36. */
  37. onPullDownRefresh: function () {
  38. },
  39. /**
  40. * 页面上拉触底事件的处理函数
  41. */
  42. onReachBottom: function () {
  43. },
  44. /**
  45. * 用户点击右上角分享
  46. */
  47. onShareAppMessage: function () {
  48. },
  49. saveLike:function(){
  50. var imgUrl = '/images/icons/like_no.png';
  51. if(this.data.imgUrl =='/images/icons/like_no.png'){
  52. imgUrl = '/images/icons/like_yes.png';
  53. wx.showToast({
  54. title: '已收藏',
  55. image:imgUrl,
  56. duration: 2000
  57. })
  58. }
  59. this.setData({
  60. imgUrl:imgUrl
  61. })
  62. },
  63. //投递简历
  64. saveResume:function(){
  65. wx.showModal({
  66. title: '提示',
  67. content: '您可申请2个社招职位,还剩2个,是否继续投递',
  68. confirmText:'确认投递',
  69. confirmColor:'#1296db',
  70. success (res) {
  71. if (res.confirm) {
  72. wx.navigateTo({
  73. url: '../resume/resume?type=2',
  74. })
  75. console.log('用户点击确定')
  76. } else if (res.cancel) {
  77. console.log('用户点击取消')
  78. }
  79. }
  80. })
  81. }
  82. })