微信小程序
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.

123 line
2.2 KiB

  1. // pages/apply/paymentTemplate/add/add.js
  2. import * as UTIL from '../../../../utils/util.js';
  3. import * as API from '../../../../utils/API.js';
  4. const app = getApp();
  5. Page({
  6. /**
  7. * 页面的初始数据
  8. */
  9. data: {
  10. isIPX: app.globalData.isIPX,
  11. radio:'1',
  12. steps: [
  13. {
  14. assigneeName: '同意',
  15. activityName: '测试测试',
  16. durationInMillis: '描述信息',
  17. endTime: '2022-01-02',
  18. comment: '同意',
  19. type: '1'
  20. },
  21. {
  22. assigneeName: '申请中',
  23. activityName: '测试测试',
  24. durationInMillis: '描述信息',
  25. endTime: '2022-01-02',
  26. comment: '同意',
  27. type: '2'
  28. },
  29. {
  30. assigneeName: '驳回',
  31. activityName: '测试测试',
  32. durationInMillis: '描述信息',
  33. endTime: '2022-01-02',
  34. comment: '同意',
  35. type: '3'
  36. },
  37. {
  38. assigneeName: '步骤四',
  39. activityName: '测试测试',
  40. durationInMillis: '描述信息',
  41. endTime: '2022-01-02',
  42. comment: '同意'
  43. },
  44. ],
  45. active:0
  46. },
  47. /**
  48. * 生命周期函数--监听页面加载
  49. */
  50. onLoad(options) {
  51. },
  52. back:function(){
  53. wx.navigateBack({
  54. delta: 1
  55. })
  56. },
  57. //跳转支出申请
  58. goApproval:function(e){
  59. console.log(e.currentTarget.dataset.current);
  60. // let cur = e.currentTarget.dataset.current;
  61. // if (this.data.currentTaB == cur) {
  62. // return false;
  63. // }else{
  64. // wx.navigateTo({
  65. // url: '../inCome/index?id=' + id,
  66. // })
  67. // }
  68. wx.navigateTo({
  69. url: '/pages/apply/approval/approval',
  70. })
  71. },
  72. /**
  73. * 生命周期函数--监听页面初次渲染完成
  74. */
  75. onReady() {
  76. },
  77. /**
  78. * 生命周期函数--监听页面显示
  79. */
  80. onShow() {
  81. },
  82. /**
  83. * 生命周期函数--监听页面隐藏
  84. */
  85. onHide() {
  86. },
  87. /**
  88. * 生命周期函数--监听页面卸载
  89. */
  90. onUnload() {
  91. },
  92. /**
  93. * 页面相关事件处理函数--监听用户下拉动作
  94. */
  95. onPullDownRefresh() {
  96. },
  97. /**
  98. * 页面上拉触底事件的处理函数
  99. */
  100. onReachBottom() {
  101. },
  102. /**
  103. * 用户点击右上角分享
  104. */
  105. onShareAppMessage() {
  106. }
  107. })