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

112 regels
1.7 KiB

  1. // pages/pay/payee/payee.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. activeName:'',
  12. value:'',
  13. list:{},
  14. array:{},
  15. checked:false
  16. },
  17. onChange(event) {
  18. this.setData({
  19. activeName: event.detail,
  20. });
  21. },
  22. onChangeCheck(event) {
  23. var that = this ;
  24. this.setData({
  25. checked: !that.data.checked,
  26. });
  27. if(that.data.checked){
  28. let array = [];
  29. for (let i = 0; i < that.data.list.length; i++) {
  30. const element = that.data.list[i];
  31. if(element.transferStatus == '6'){
  32. array.push(element)
  33. }
  34. }
  35. that.setData({
  36. array:array
  37. })
  38. }else{
  39. that.setData({
  40. array:that.data.list
  41. })
  42. }
  43. },
  44. /**
  45. * 生命周期函数--监听页面加载
  46. */
  47. onLoad(options) {
  48. console.log(JSON.parse(options.options));
  49. this.setData({
  50. list: JSON.parse(options.options),
  51. array: JSON.parse(options.options),
  52. });
  53. },
  54. back:function(){
  55. wx.navigateBack({
  56. delta: 1
  57. })
  58. },
  59. /**
  60. * 生命周期函数--监听页面初次渲染完成
  61. */
  62. onReady() {
  63. },
  64. /**
  65. * 生命周期函数--监听页面显示
  66. */
  67. onShow() {
  68. },
  69. /**
  70. * 生命周期函数--监听页面隐藏
  71. */
  72. onHide() {
  73. },
  74. /**
  75. * 生命周期函数--监听页面卸载
  76. */
  77. onUnload() {
  78. },
  79. /**
  80. * 页面相关事件处理函数--监听用户下拉动作
  81. */
  82. onPullDownRefresh() {
  83. },
  84. /**
  85. * 页面上拉触底事件的处理函数
  86. */
  87. onReachBottom() {
  88. },
  89. /**
  90. * 用户点击右上角分享
  91. */
  92. onShareAppMessage() {
  93. }
  94. })