MenuBox.js 984 Bytes
Component({
  data: {},
  properties: {
    menuList: {
      type: Array,
      value: []
    }
  },
  methods: {
    toNewPage(e) {
      const { item } = e.currentTarget.dataset
      let url = '', para = {}
      if (item.supplier == 'GL_ROAD_RESCUE') {
        url = '/packageEquity/pages/road/index/index'
      } else if (item.appearance == 1) {
        para = {
          supplier: item.supplier,
          brandName: item.brandName,
          location: true
        }
        const temp = JSON.stringify(para)
        url = '/packageSaveMoney/pages/detail/detail'
      } else if (item.appearance == 2) {
        para = {
          supplier: item.supplier,
          brandName: item.brandName,
          icon: item.equityIcon
        }
        const temp = JSON.stringify(para)
        url = '/packageSaveMoney/pages/chargeDetail/chargeDetail'
      }

      wx.p.router.go(url, {param:para,notIntercept:true})
      // wx.navigateTo({
      //   url
      // })
    }
  }
})