You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

successHelper.js 1.1KB

1 jaar geleden
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. let success = {}
  2. // 新增成功返回到简历
  3. success.add = function() {
  4. wx.showToast({
  5. title: '保存成功',
  6. success(res) {
  7. wx.reLaunch({
  8. url: '/pages/home/job/resume/index',
  9. })
  10. }
  11. })
  12. }
  13. // 修改成功返回到简历
  14. success.update = function() {
  15. wx.showToast({
  16. title: '修改成功',
  17. success(res) {
  18. wx.reLaunch({
  19. url: '/pages/home/job/resume/index',
  20. })
  21. }
  22. })
  23. }
  24. // 搜索成功返回到简历
  25. success.search = function() {
  26. let self = this;
  27. return new Promise((resolve, reject) => {
  28. wx.showToast({
  29. title: '搜索成功',
  30. icon: 'none',
  31. success(res) {
  32. let searchTrue = true
  33. resolve(searchTrue)
  34. }
  35. })
  36. })
  37. }
  38. // 删除
  39. success.del = function(txt) {
  40. let self = this;
  41. return new Promise((resolve, reject) => {
  42. wx.showModal({
  43. title: txt,
  44. confirmText: '删除',
  45. showCancel: true,
  46. success(res) {
  47. if (res.confirm) {
  48. let conTrue = res.confirm;
  49. resolve(conTrue)
  50. }
  51. }
  52. })
  53. })
  54. }
  55. module.exports = success;