var app = getApp();
Page({
  data: {
    weburl: '',
  },
  onLoad: function (options) {//接收上个页面传的参数
    if (options.invite_key) {
      app.globalData.invite_key = options.invite_key;
    }
    if (options.weburl && app.webapi[options.weburl]){
      this.setData({
        weburl: app.webapi[options.weburl],
      });
    }else{
      app.HCerror('提示','缺少必要参数',false);
    }
  }
});