提交 0ba2a581 编写于 作者: guangjun.yang's avatar guangjun.yang

报错问题等

上级 4753722e
...@@ -126,6 +126,7 @@ export default { ...@@ -126,6 +126,7 @@ export default {
} }
} }
.nav-top { .nav-top {
font-size: 18px;
height: 56px; height: 56px;
// margin-top: 20px; // margin-top: 20px;
padding-top: 20px; padding-top: 20px;
......
...@@ -31,9 +31,9 @@ export default { ...@@ -31,9 +31,9 @@ export default {
created() { created() {
if (process.client) { if (process.client) {
var _this = this; var _this = this;
window.__getUserInfo = function(param) { window.__getUserInfoInProList = function(param) {
console.log('$$$$$', JSON.stringify(param)); console.log('$$$$$', JSON.stringify(param));
// _this.token = param.userToken; _this.token = param.userToken;
cookies.set("lreporttoken", _this.token); cookies.set("lreporttoken", _this.token);
_this.getProjectList(); _this.getProjectList();
}; };
...@@ -52,9 +52,9 @@ export default { ...@@ -52,9 +52,9 @@ export default {
methods: { methods: {
// 与原生交互,获取用户信息 // 与原生交互,获取用户信息
getUserInfo() { getUserInfo() {
!this.$rocNative.isWeb && this.$rocNative.getUserInfo && this.$rocNative.getUserInfo &&
this.$rocNative.getUserInfo().then(params => { this.$rocNative.getUserInfo().then(params => {
console.log('#####', JSON.stringify(param)); console.log('#####', JSON.stringify(params));
this.token = params.userToken; this.token = params.userToken;
cookies.set("lreporttoken", _this.token); cookies.set("lreporttoken", _this.token);
this.getProjectList(); this.getProjectList();
......
...@@ -2,16 +2,16 @@ import Vue from 'vue' ...@@ -2,16 +2,16 @@ import Vue from 'vue'
import rocNative from '@/utils/jsbridge' import rocNative from '@/utils/jsbridge'
import echarts from 'echarts' import echarts from 'echarts'
import { Toast } from 'vant'; import { Toast } from 'vant';
import { BASE_URL } from '@/utils/enumerate';
import WebBuriedPoint, { sendBuriedData } from 'web-buried-point';
// import { BASE_URL } from '@/utils/enumerate'; const { NUXT_ENV_APP } = process.env;
// const { NUXT_ENV_APP } = process.env; Vue.use(WebBuriedPoint, {
// import WebBuriedPoint, { sendBuriedData } from 'web-buried-point'; class_name: `learning_report`,
// Vue.use(WebBuriedPoint, { url: `${BASE_URL[NUXT_ENV_APP]}/file/log/trace1`
// class_name: `learning_report`, });
// url: `${BASE_URL[NUXT_ENV_APP]}/file/log/trace1`
// });
// Vue.prototype.$sendBuriedData = sendBuriedData; Vue.prototype.$sendBuriedData = sendBuriedData;
Vue.use(Toast); Vue.use(Toast);
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册