constants.js 1011 Bytes
Newer Older
陈龙's avatar
陈龙 committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
export const SERVICE_APP_GET_UI_META = 'app.getUIMeta';

export const SERVICE_APP_LOGIN_MODE = {
  password: 'password',
  dingding: 'dingding',
  weixin: 'weixin',
  phone: 'phone',
};

export const LOGIN_DISPLAY = {
  Account: 'Account',
  WeChart: 'WeChart',
  Mobile: 'Mobile',
};
export const LOGIN_WAY = {
  Account: 'pdw',
  WeChart: 'iotWechat',
  Mobile: 'iotPhone',
};

export const WX_REDIRECT_URI = 'https://panda-water.com/civbase/user/login';

export const SERVICE_INTERFACE_SUCCESS_CODE = 0;
export const SERVICE_INTERFACE_PARAMS_EXCEPTION_CODE = -1; // 服务参数异常
export const SERVICE_INTERFACE_HANDLE_EXCEPTION_CODE = -2; // 服务处理异常

export const SERVICE_APP_CLOSE_ALL_TABS = 'app.close.tabs';

export const REQUEST_HTTP = 'http';
export const REQUEST_POP = 'pop';
export const REQUEST_METHOD_GET = 'get';
export const REQUEST_METHOD_POST = 'post';
export const REQUEST_METHOD_PUT = 'put';
export const REQUEST_METHOD_DELETE = 'delete';

export const RESPONSE_TYPE = 'blob';