// let domain = "https://www.shuibeibyg.com/front-api"; // 正式环境IP
let domain = "https://test.shuibeibyg.com/front-api"; // 测试环境IP
// let domain = 'http://192.168.100.199:8081' // 晋守桦IP
// let domain = 'http://192.168.100.246:8081' // 韩朝龙IP
// let domain = "http://192.168.8.29:8081"; // 宏广IP

// export const H5_BASE_URL = "http://192.168.8.10:5174"; // 本地测试
// export const H5_BASE_URL = "http://192.168.8.16:5173"; // 本地测试
// export const H5_BASE_URL = "http://192.168.100.35:5175"; // 本地测试
export const H5_BASE_URL = "https://test.shuibeibyg.com/web-h5/"; // 测试环境H5地址
// export const H5_BASE_URL = "https://www.shuibeibyg.com/web-h5/"; // 正式环境H5地址

let share = "https://www.shuibeibyg.com";

let imgUrl =
  "https://sb-admin.oss-cn-shenzhen.aliyuncs.com/shuibei-mini/new-mini/"; //服務器上图片地址

// PC 后台 API 地址（用于上传图片）
export const HTTP_ADMIN_URL = domain;

// 本小程序唯一码
export const APP_CODE = "shangcheng";

export const HTTP_REQUEST_URL = domain;
export const HTTP_REQUEST_URL_SHARE = share;
export const HTTP_REQUEST_URL_IMG = imgUrl;

// 请求头
export const HEADER = {
  "content-type": "application/json",
};

// 表单提交头
export const HEADERPARAMS = {
  "content-type": "application/x-www-form-urlencoded",
};

// token 名称
export const TOKENNAME = "Authori-zation";

// 缓存时间，0 为永久
export const EXPIRE = 0;

// 分页默认限制条数
export const LIMIT = 10;

// 401白名单
export const WHITELIST = [
  "/pages/index/index",
  "/pages/user/index",
  "/pages/users/login/index",
  "/pages/change_password/change_password",
  "/pages/users/vault/index",
  "/pages/users/ranking_list/index",
  "/pages/users/browsing_history/index",
  "/pages/users/user_goods_collection/index",
  "/pages/users/user_address_list/index",
  "/pages/users/personal_info/personal_info",
  "/pages/order_list/index",
  "/pages/users/VIP/VIP",
  "/pages/order_addcart/order_addcart",
  "/pages/mall/dapan",
  // "/pages/merchantCenters/merchant",
];

// oss对象存储地址
export const BASE_OSS_URL = "https://sb-admin.oss-cn-shenzhen.aliyuncs.com/";
