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

feat: 新增环境变量名

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