You need to sign in or sign up before continuing.
config.js 971 Bytes
/*
 * @Date: 2026-01-29 10:48:35
 * @LastEditors: hookehuyr hookehuyr@gmail.com
 * @LastEditTime: 2026-02-02 16:43:52
 * @FilePath: /manulife-weapp/src/utils/config.js
 * @Description: 文件描述
 */
/*
 * @Description: 服务器环境配置
 * @Template: 请根据实际项目修改 BASE_URL 和 REQUEST_DEFAULT_PARAMS
 */

/**
 * @description 接口基础域名
 * - 小程序端由 taro 构建时注入 NODE_ENV
 * - 请根据实际项目修改开发/生产环境地址
 * @type {string}
 */
const BASE_URL = process.env.NODE_ENV === 'production'
    ? 'https://manulife.onwall.cn'  // 生产环境域名
    : 'https://manulife.onwall.cn'    // 开发环境域名
    // : 'https://oa-dev.onwall.cn'    // 开发环境域名

/**
 * 接口默认公共参数(避免在多个文件里硬编码)
 * - f:业务模块标识
 * - a: 接口功能参数
 */
export const REQUEST_DEFAULT_PARAMS = {
    f: 'manulife',  // 业务模块标识
}

export default BASE_URL