{"size": 875, "ext": "js", "max_stars_repo_path": "pages/common/tips/tips.js", "max_stars_repo_name": "songhx/carpool-weixin-app", "max_stars_repo_stars_event_min_datetime": "2022-01-17T03:10:43.000Z", "max_stars_repo_stars_event_max_datetime": "2022-01-17T03:10:43.000Z", "max_issues_repo_path": "pages/common/tips/tips.js", "max_issues_repo_name": "songhx/carpool-weixin-app", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "pages/common/tips/tips.js", "max_forks_repo_name": "songhx/carpool-weixin-app", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 18.2291666667, "max_line_length": 51, "alphanum_fraction": 0.5188571429}
var app = getApp();
Page({
  data: {
    basePath: app.globalData._base_path, //基础路径
    id : 0,
    rs: "",
    times: 0, // 剩余发布次数
    errno: 0,
    ueserInfo: {},
    tip: null,
  },
  onLoad: function (options) {
    let that = this;
    let userInfo = wx.getStorageSync('userInfo');
    var tip = options.tip;
    var times = options.times;
    console.log("times----------" + options.times);
    if (-1 != times && !isNaN(times)) {
      tip = "今天您还可以发布" + times + "次";
    }
    this.setData({
      userInfo: app.globalData.userInfo,
      rs: options.rs,
      errno: options.errno,
      tip: tip,
    });
  },
  onShow: function () {
    // 页面显示
  },
  

  //查看订单
  toOrder:function(){
    wx.switchTab({
      url: '/pages/user/index/index',
    })
  },

  //跳转首页(知道了)
  toIndex:function(){
     wx.switchTab({
       url: '/pages/index/index',
     })
  }
  

})