微信小程序
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

88 rindas
1.4 KiB

  1. // pages/escrowAccount/balance/balance.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. },
  12. /**
  13. * 生命周期函数--监听页面加载
  14. */
  15. onLoad(options) {
  16. var that = this;
  17. let id = options.id;
  18. UTIL.httpRequest(API.URL_GET_GETTACCOUNTGET+id, {method:'GET'}, {
  19. success: (res2) => {
  20. that.setData({
  21. taccount:res2.data
  22. })
  23. }
  24. })
  25. UTIL.httpRequest(API.URL_GET_GETTACCOUNTGET1, {method:'GET'}, {
  26. success: (res2) => {
  27. that.setData({
  28. taccountList:res2.rows
  29. })
  30. }
  31. })
  32. },
  33. back:function(){
  34. wx.navigateBack({
  35. delta: 1
  36. })
  37. },
  38. /**
  39. * 生命周期函数--监听页面初次渲染完成
  40. */
  41. onReady() {
  42. },
  43. /**
  44. * 生命周期函数--监听页面显示
  45. */
  46. onShow() {
  47. },
  48. /**
  49. * 生命周期函数--监听页面隐藏
  50. */
  51. onHide() {
  52. },
  53. /**
  54. * 生命周期函数--监听页面卸载
  55. */
  56. onUnload() {
  57. },
  58. /**
  59. * 页面相关事件处理函数--监听用户下拉动作
  60. */
  61. onPullDownRefresh() {
  62. },
  63. /**
  64. * 页面上拉触底事件的处理函数
  65. */
  66. onReachBottom() {
  67. },
  68. /**
  69. * 用户点击右上角分享
  70. */
  71. onShareAppMessage() {
  72. }
  73. })