提交 7e0b2ffb 编写于 作者: 史文彬's avatar 史文彬

feat: 新增环境变量名

上级 1d42f5e0
......@@ -2,6 +2,9 @@ NODE_ENV=production
# 自定义 VUE_APP_ENV
VUE_APP_ENV ='dev'
# 微信小程序的环境变量
MINI_PROGRAM_ENV = 'trial'
VUE_APP_SERVICE_URL=https://dev-sc.yunqueyi.com
# 阿里云OSS对象存储地址
......
......@@ -3,6 +3,9 @@ NODE_ENV=production
# 自定义 VUE_APP_ENV
VUE_APP_ENV ='production'
# 微信小程序的环境变量
MINI_PROGRAM_ENV = 'release'
VUE_APP_SERVICE_URL=https://sc.yunqueyi.com
# 阿里云OSS对象存储地址
......
NODE_ENV=production
# 自定义 VUE_APP_ENV
VUE_APP_ENV ='testing'
VUE_APP_ENV ='production'
# 微信小程序的环境变量
MINI_PROGRAM_ENV = 'trial'
VUE_APP_SERVICE_URL=https://test1-sc.yunqueyi.com
# 阿里云OSS对象存储地址
......
......@@ -116,7 +116,6 @@
<script>
import { formatDate } from '@/utils/common';
const { VUE_APP_ENV } = process.env;
import { getEntitlementList, getBanner } from '@/api/entitlement';
export default {
data() {
......@@ -125,8 +124,7 @@ export default {
entitlementList: [],
emptyIconPath:
'https://files.yunqueyi.com/image/png/common/20230602155400880.png',
envVersion: VUE_APP_ENV == 'production' ? 'release' : 'trial',
// envVersion: 'trial',
envVersion: process.env.MINI_PROGRAM_ENV,
openWebAppConfig: {
username: 'gh_e92f58174364', // 小程序唯一username 1.gh_80d54796f2d5 云鹊助手 2. gh_e92f58174364 云鹊健康
path: 'pagesInsurance/all-entrance/index', // 打开页面
......
......@@ -204,7 +204,6 @@
import { createOrderSzV2 } from '@/api/question';
import { getBanner, getCardTypes } from '@/api/entitlement';
import DatePicker from './date-picker.vue';
const { VUE_APP_ENV } = process.env;
let that;
export default {
components: { DatePicker },
......@@ -231,7 +230,7 @@ export default {
showProtocol: false,
showCardTypeVisible: false,
cardTypes: [],
envVersion: VUE_APP_ENV == 'production' ? 'release' : 'trial',
envVersion: process.env.MINI_PROGRAM_ENV,
// envVersion: 'trial',
openWebAppConfigPositive: {
username: 'gh_e92f58174364', // 小程序唯一username 1.gh_80d54796f2d5 云鹊助手 2. gh_e92f58174364 云鹊健康
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册