提交 60dfa685 编写于 作者: 史文彬's avatar 史文彬

feat: env 新增

上级 37862322
NODE_ENV=development NODE_ENV=development
VUE_APP_ENV=development VUE_APP_ENV=development
VUE_APP_MINI_PROGRAM_ENV='trial'
VUE_APP_SERVICE_URL= VUE_APP_SERVICE_URL=
# 模拟用户信息 # 模拟用户信息
......
...@@ -4,7 +4,7 @@ NODE_ENV=production ...@@ -4,7 +4,7 @@ NODE_ENV=production
VUE_APP_ENV ='production' VUE_APP_ENV ='production'
# 微信小程序的环境变量 # 微信小程序的环境变量
MINI_PROGRAM_ENV = 'release' VUE_APP_MINI_PROGRAM_ENV = 'release'
VUE_APP_SERVICE_URL=https://sc.yunqueyi.com VUE_APP_SERVICE_URL=https://sc.yunqueyi.com
......
...@@ -4,7 +4,7 @@ NODE_ENV=production ...@@ -4,7 +4,7 @@ NODE_ENV=production
VUE_APP_ENV ='production' VUE_APP_ENV ='production'
# 微信小程序的环境变量 # 微信小程序的环境变量
MINI_PROGRAM_ENV='trial' VUE_APP_MINI_PROGRAM_ENV='trial'
VUE_APP_SERVICE_URL=https://test1-sc.yunqueyi.com VUE_APP_SERVICE_URL=https://test1-sc.yunqueyi.com
# 阿里云OSS对象存储地址 # 阿里云OSS对象存储地址
......
...@@ -117,7 +117,7 @@ ...@@ -117,7 +117,7 @@
<script> <script>
import { formatDate } from '@/utils/common'; import { formatDate } from '@/utils/common';
import { getEntitlementList, getBanner } from '@/api/entitlement'; import { getEntitlementList, getBanner } from '@/api/entitlement';
console.log('env change', process.env.MINI_PROGRAM_ENV); console.log('env change', process.env.process.env.VUE_APP_MINI_PROGRAM_ENV);
export default { export default {
data() { data() {
return { return {
...@@ -125,7 +125,7 @@ export default { ...@@ -125,7 +125,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: 'trial', // process.env.MINI_PROGRAM_ENV, envVersion: process.env.VUE_APP_MINI_PROGRAM_ENV,
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', // 打开页面
......
...@@ -231,7 +231,7 @@ export default { ...@@ -231,7 +231,7 @@ export default {
showCardTypeVisible: false, showCardTypeVisible: false,
cardTypes: [], cardTypes: [],
// envVersion: process.env.MINI_PROGRAM_ENV, // envVersion: process.env.MINI_PROGRAM_ENV,
envVersion: 'trial', envVersion: process.env.VUE_APP_MINI_PROGRAM_ENV,
openWebAppConfigPositive: { openWebAppConfigPositive: {
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', // 打开页面
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册