// pages/writeReading/components/meterInfo/index.js
Component({

  /**
   * 组件的属性列表
   */
  properties: {
    meterInfo: Object,
    routeId: String,
    disabled: Boolean,
  },

  /**
   * 组件的初始数据
   */
  data: {

  },

  /**
   * 组件的方法列表
   */
  methods: {
    jumpToHistory() {
      const { meterInfo, routeId, disabled } = this.data;
      wx.navigateTo({
        url: `/pages/readingHistory/index?meter=${meterInfo?.id}&park=${meterInfo?.parkId}&routeId=${routeId}&disabled=${disabled}`,
      })
    },
  }
})