// pages/user/mine/mine.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    imgUrl:'https://developers.weixin.qq.com/miniprogram/dev/image/cat/0.jpg?t=18102320',
    editUrl:'../../../static/image/white.png',
    nickName:'凤姐',
    editTitle: '修改资料',
    address: ['北京市', '海淀区中关村三小']
  },
  editDetail: function(e){
    let title = e.currentTarget.dataset.title;
    console.log(title);
    wx.navigateTo({
      url: `../myEdit/myEdit?title=${title}`
    });
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {
    console.log(options.title);
    if (options.title) {
      wx.setNavigationBarTitle({
        title: options.title //页面标题为路由参数
      });
      this.setData({
        title: options.title
      });
    }
  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  }
})