Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-learning-report
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
com.pica.cloud.education.frontend
pica-learning-report
提交
0ba2a581
提交
0ba2a581
编写于
2月 20, 2020
作者:
guangjun.yang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
报错问题等
上级
4753722e
变更
3
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
13 行增加
和
12 行删除
+13
-12
common-header.vue
components/common/common-header.vue
+1
-0
prolist.vue
pages/prolist.vue
+4
-4
vue-inject.js
plugins/vue-inject.js
+8
-8
未找到文件。
components/common/common-header.vue
浏览文件 @
0ba2a581
...
@@ -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
;
...
...
pages/prolist.vue
浏览文件 @
0ba2a581
...
@@ -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
.
__getUserInfo
InProList
=
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
(
param
s
));
this
.
token
=
params
.
userToken
;
this
.
token
=
params
.
userToken
;
cookies
.
set
(
"lreporttoken"
,
_this
.
token
);
cookies
.
set
(
"lreporttoken"
,
_this
.
token
);
this
.
getProjectList
();
this
.
getProjectList
();
...
...
plugins/vue-inject.js
浏览文件 @
0ba2a581
...
@@ -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
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录