| | |
| | | env: { |
| | | NODE_ENV: '"development"', |
| | | BASE_URL: '"http://localhost:57190"', |
| | | BASE_URL_H5: '"/"', |
| | | BASE_URL_JX: '"https://api.jx818.com"', |
| | | |
| | | OSS_URL: '"https://waterdroptest2.oss-cn-hangzhou.aliyuncs.com/"', |
| | |
| | | router: { |
| | | mode: 'browser', |
| | | }, |
| | | devServer: { |
| | | proxy: { |
| | | '/api': { |
| | | target: 'http://localhost:57190', // 目标服务器地址 |
| | | changeOrigin: true, |
| | | }, |
| | | }, |
| | | }, |
| | | postcss: { |
| | | autoprefixer: { |
| | | enable: true, |
| | |
| | | env: { |
| | | NODE_ENV: '"production"', |
| | | BASE_URL: '"https://api.81812333.com"', |
| | | BASE_URL_H5: '"/"', |
| | | BASE_URL_JX: '"https://api.jx818.com"', |
| | | |
| | | OSS_URL: '"https://parkmanagement.oss-cn-hangzhou.aliyuncs.com"', |
| | |
| | | env: { |
| | | // BASE_URL: '"https://testrlywx.boleyuma.com"', |
| | | BASE_URL: '"https://api.81812333.com"', |
| | | BASE_URL_H5: '"/"', |
| | | BASE_URL_JX: '"https://api.jx818.com"', |
| | | |
| | | OSS_URL: '"https://waterdroptest2.oss-cn-hangzhou.aliyuncs.com/"', |
| | |
| | | |
| | | function goPhoneBillRecharge() { |
| | | Taro.navigateTo({ |
| | | url: RouterPath.phoneBillRecharge, |
| | | url: `${RouterPath.phoneBillRecharge}`, |
| | | }) |
| | | .then(() => { |
| | | console.log('Navigate successfully'); |
| | |
| | | import qs from 'qs'; |
| | | import Taro from '@tarojs/taro'; |
| | | import { getToken, Message } from '@/utils'; |
| | | import { isWeb } from '@/utils/env'; |
| | | import { tokenIsExpired, SensitiveManage } from '@life-payment/utils'; |
| | | import { useUserStoreWithOut } from '@/stores/modules/user'; |
| | | |
| | |
| | | } |
| | | |
| | | const AxiosOptions: AxiosRequestConfig = { |
| | | baseURL: process.env.BASE_URL, |
| | | baseURL: isWeb ? process.env.BASE_URL_H5 : process.env.BASE_URL, |
| | | timeout: 10 * 1000, |
| | | headers: { |
| | | Accept: 'application/json, text/plain, */*', |