const app = getApp()
Page({
  data: {
    popup_state: false,
    arr:[1,2,3]
  },
  signIn() {
    this.setData({
      popup_state: true
    })
  },
  cancleMask() {
    this.setData({
      popup_state: false
    })
  },
  onLoad: function() {
          this.fetchSign();
  },
  //fetch签到
  fetchSign(){
          let url ='/wxapp/user/sign';
          app.post(url).then(r=>{
                  console.log(r);
          });
  },
  // 消息中心
  get_message(){
    wx.navigateTo({
      url: '../my/activityInformation/activityInformation',
    })
  },
  // 修改个人信息
  getamend_person(){
    wx.navigateTo({
      url: '../my/modifyPersonInformation/modifyPersonInformation',
    })
  },
  // 兑换码充值
  get_activity(){
    wx.navigateTo({
      url: '../my/charger_code/charger_code',
    })
  },
  //点击积分抵现
integral(){
        wx.navigateTo({
                url: '../my/personal_center/personal_center'
        })
},
  // 待付款
  get_obligation(){
    wx.navigateTo({
      url: '../my/orderDetail/orderDetail',
    })
  },
  // 待发货
  get_dropshop(){
    wx.navigateTo({
      url: '../my/orderDetail/orderDetail',
    })
  },
  // 已发货
  get_shipped(){
    wx.navigateTo({
      url: '../my/orderDetail/orderDetail',
    })
  },
  // 待评价
  get_evaluate(){
    wx.navigateTo({
      url: '../my/orderDetail/orderDetail',
    })
  },
  // 售后
  get_sale(){
    wx.navigateTo({
      url: '../my/orderDetail/orderDetail',
    })
  },
  //优惠券
coupons(){
          wx.navigateTo({
                  url: '../my/coupons/coupons',
          })
  },
  // 储值有礼
  get_recharge(){
    wx.navigateTo({
      url: '../my/balance _center2/balance _center2',
    })
  },
  // 分享有礼
  get_share() {
    wx.navigateTo({
      url: 'invitationPolite/invitationPolite',
    })
  },
  // 我的收藏
  get_collection() {
    wx.navigateTo({
      url: '../my/myCollection/myCollection',
    })
  },
  // 地址管理
  get_address(){
    wx.navigateTo({
      url: '../my/myAddress/myAddress',
    })
  },
  // 常见问题
  get_issue(){
    wx.navigateTo({
      url: '../my/editAddress2/editAddress2',
    })
  }
})