提交 e130bad9 编写于 作者: 张磊's avatar 张磊

add my expert

上级 ae451e6b
...@@ -39,7 +39,7 @@ ...@@ -39,7 +39,7 @@
<script> <script>
import { goNativePage, goPageByNative, parseTime } from '@/utils/index'; import { goNativePage, goPageByNative, parseTime } from '@/utils/index';
import { BASE_URL } from '@/utils/enumerate'; import { BASE_URL } from '@/utils/enumerate';
const { NODE_ENV } = process.env; const { VUE_APP_ENV } = process.env;
export default { export default {
name: 'CoopListItem', name: 'CoopListItem',
...@@ -86,7 +86,7 @@ export default { ...@@ -86,7 +86,7 @@ export default {
this.$sendBuriedData({ this.$sendBuriedData({
component_tag: `467#400141#${pInfo.id}#${pInfo.projectName}`, component_tag: `467#400141#${pInfo.id}#${pInfo.projectName}`,
class_name: 'learning_report', class_name: 'learning_report',
url: `${BASE_URL[NODE_ENV]}/file/log/trace1`, url: `${BASE_URL[VUE_APP_ENV]}/file/log/trace1`,
}); });
if (pInfo.pType == 1) { if (pInfo.pType == 1) {
goNativePage(this, pInfo); goNativePage(this, pInfo);
......
...@@ -58,15 +58,15 @@ Vue.use(PicaGuideApp) ...@@ -58,15 +58,15 @@ Vue.use(PicaGuideApp)
.use(SwipeItem) .use(SwipeItem)
.use(PageModel); .use(PageModel);
const { NODE_ENV } = process.env; const { VUE_APP_ENV } = process.env;
Vue.use(WebBuriedPoint, { Vue.use(WebBuriedPoint, {
class_name: 'template_v2', class_name: 'template_v2',
url: `${BASE_URL[NODE_ENV]}/file/log/trace1`, url: `${BASE_URL[VUE_APP_ENV]}/file/log/trace1`,
}); });
Vue.prototype.$sendBuriedData = sendBuriedData; Vue.prototype.$sendBuriedData = sendBuriedData;
Vue.prototype.$cookies = cookies; Vue.prototype.$cookies = cookies;
Vue.prototype.$callApp = callApp; Vue.prototype.$callApp = callApp;
Vue.prototype.ClipboardJS = ClipboardJS; Vue.prototype.ClipboardJS = ClipboardJS;
Vue.prototype.$WX_TYPE = WX_TYPE_MAP[NODE_ENV]; Vue.prototype.$WX_TYPE = WX_TYPE_MAP[VUE_APP_ENV];
...@@ -20,10 +20,10 @@ import CoopListItem from '@/components/bussiness/coop-list-item'; ...@@ -20,10 +20,10 @@ import CoopListItem from '@/components/bussiness/coop-list-item';
// import Loading from '@/components/common/common-loading'; // import Loading from '@/components/common/common-loading';
import { getProjectList } from '@/service'; import { getProjectList } from '@/service';
import { BASE_URL } from '@/utils/enumerate'; import { BASE_URL } from '@/utils/enumerate';
const { NODE_ENV } = process.env; const { VUE_APP_ENV } = process.env;
const cookies = require('cookie-universal')(); const cookies = require('cookie-universal')();
console.log('--BASE_URL', BASE_URL); console.log('--BASE_URL', BASE_URL);
console.log('--NODE_ENV', NODE_ENV); console.log('--VUE_APP_ENV', VUE_APP_ENV);
export default { export default {
components: { components: {
...@@ -55,7 +55,7 @@ export default { ...@@ -55,7 +55,7 @@ export default {
action: 'ACTION_WEB_ENTER', action: 'ACTION_WEB_ENTER',
component_tag: '467', component_tag: '467',
class_name: 'learning_report', class_name: 'learning_report',
url: `${BASE_URL[NODE_ENV]}/file/log/trace1`, url: `${BASE_URL[VUE_APP_ENV]}/file/log/trace1`,
}); });
}, },
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册