otherDeductDetail.js 1.5 KB
// pages/main/finalpay/otherDeductDetail/otherDeductDetail.js
Page({

  /**
   * Page initial data
   */
  data: {
    settlement_record_id: "",
    endowment_account: "0",
    health_account: "0"
  },

  /**
   * Lifecycle function--Called when page load
   */
  onLoad: function(options) {
    console.log("id", options)
    this.setData({
      settlement_record_id: options.id,
      endowment_account: options.endowment_account,
      health_account: options.health_account
    })
  },

  /**
   * Lifecycle function--Called when page is initially rendered
   */
  onReady: function() {

  },

  /**
   * Lifecycle function--Called when page show
   */
  onShow: function() {

  },

  // 商业健康保险
  healthInsurDetail: function() {
    wx.navigateTo({
      url: 'healthInsurDetail?id=' + this.data.settlement_record_id,
    })
  },

  // 税延养老保险
  endowmentInsurDetail: function() {
    wx.navigateTo({
      url: 'endowmentInsurDetail?id=' + this.data.settlement_record_id,
    })
  },

  /**
   * Lifecycle function--Called when page hide
   */
  onHide: function() {

  },

  /**
   * Lifecycle function--Called when page unload
   */
  onUnload: function() {

  },

  /**
   * Page event handler function--Called when user drop down
   */
  onPullDownRefresh: function() {

  },

  /**
   * Called when page reach bottom
   */
  onReachBottom: function() {

  },

  /**
   * Called when user click on the top right corner to share
   */
  onShareAppMessage: function() {

  }
})