// pages/home/home.js
Page({

    /**
     * 页面的初始数据
     */
    data: {
      bannerdata:[
        "home-banner",
        "home-banner",
        "home-banner"
      ],
      itemView: [
        {
          icon: "诊前约号",
          title: "诊前约号"
        },
        {
          icon: "代办买药",
          title: "代办买药"
        },
        {
          icon: "取送结果",
          title: "取送结果"
        },
        {
          icon: "出入院办理",
          title: "出入院办理"
        }
      ],
      hospitalData: [
        {
          img: "https://bkimg.cdn.bcebos.com/pic/8326cffc1e178a828fa58d64f303738da877e85d?x-bce-process=image/resize,m_lfit,w_536,limit_1",
          name: "西京医院",
          grade: "三甲",
          genre: "综合医院",
          skiled: "消化内科、心血管内科",
          address: "西安市高新区长乐西路127号",
          id: "1"
        },{
          img: "https://bkimg.cdn.bcebos.com/pic/8326cffc1e178a828fa58d64f303738da877e85d?x-bce-process=image/resize,m_lfit,w_536,limit_1",
          name: "西京医院",
          grade: "三甲",
          genre: "综合医院",
          skiled: "消化内科、心血管内科",
          address: "西安市高新区长乐西路127号",
          id: "1"
        },{
          img: "https://bkimg.cdn.bcebos.com/pic/8326cffc1e178a828fa58d64f303738da877e85d?x-bce-process=image/resize,m_lfit,w_536,limit_1",
          name: "西京医院",
          grade: "三甲",
          genre: "综合医院",
          skiled: "消化内科、心血管内科",
          address: "西安市高新区长乐西路127号",
          id: "1"
        },{
          img: "https://bkimg.cdn.bcebos.com/pic/8326cffc1e178a828fa58d64f303738da877e85d?x-bce-process=image/resize,m_lfit,w_536,limit_1",
          name: "西京医院",
          grade: "三甲",
          genre: "综合医院",
          skiled: "消化内科、心血管内科",
          address: "西安市高新区长乐西路127号",
          id: "1"
        }
      ]
    },
  
    /**
     * 诊前约号、代办买药、取送结果、出入院办理、就医陪诊、园内护理
     */
    itemClick (options) {
      console.log(options.currentTarget.dataset.id)
    },
  
    /**
     * 医院列表
     */
    listItemTap(options){
      console.log(options),
      wx.navigateTo({
        url: '/pages/peihu/peihu',
      })
    },
  
    /**
     * 生命周期函数--监听页面加载
     */
    onLoad(options) {
  
    },
  
    /**
     * 生命周期函数--监听页面初次渲染完成
     */
    onReady() {
  
    },
  
    /**
     * 生命周期函数--监听页面显示
     */
    onShow() {
  
    },
  
    /**
     * 生命周期函数--监听页面隐藏
     */
    onHide() {
  
    },
  
    /**
     * 生命周期函数--监听页面卸载
     */
    onUnload() {
  
    },
  
    /**
     * 页面相关事件处理函数--监听用户下拉动作
     */
    onPullDownRefresh() {
  
    },
  
    /**
     * 页面上拉触底事件的处理函数
     */
    onReachBottom() {
  
    },
  
    /**
     * 用户点击右上角分享
     */
    onShareAppMessage() {
  
    }
  })