Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-cooperation-cme
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
com.pica.cloud.education.frontend
pica-cooperation-cme
提交
ff69ee54
提交
ff69ee54
编写于
12月 26, 2019
作者:
guangjun.yang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
添加埋点信息
上级
99167f48
变更
9
展开全部
隐藏空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
669 行增加
和
9 行删除
+669
-9
cell-list-detail.vue
src/components/business/cell-list-detail.vue
+14
-1
coop-list-item.vue
src/components/business/coop-list-item.vue
+1
-1
main.js
src/main.js
+1
-1
fetch.js
src/utils/fetch.js
+2
-2
index.js
src/utils/index.js
+2
-0
credit-detail.vue
src/views/credit-detail.vue
+8
-2
credit-edit.vue
src/views/credit-edit.vue
+1
-1
index.vue
src/views/index.vue
+8
-1
merge-detail copy.vue
src/views/merge-detail copy.vue
+632
-0
未找到文件。
src/components/business/cell-list-detail.vue
浏览文件 @
ff69ee54
...
@@ -94,6 +94,13 @@ const actionMap = {
...
@@ -94,6 +94,13 @@ const actionMap = {
22
:
"继续学习"
,
22
:
"继续学习"
,
23
:
"去复习"
23
:
"去复习"
};
};
const
sendBuriedDataMap
=
{
11
:
"211012"
,
12
:
"211013"
,
21
:
"211009"
,
22
:
"211010"
,
23
:
"211011"
}
export
default
{
export
default
{
name
:
"cell-list-item"
,
name
:
"cell-list-item"
,
data
()
{
data
()
{
...
@@ -224,7 +231,13 @@ export default {
...
@@ -224,7 +231,13 @@ export default {
}
else
if
(
item
.
type
==
2
)
{
}
else
if
(
item
.
type
==
2
)
{
this
.
gotoCourse
(
item
.
id
);
this
.
gotoCourse
(
item
.
id
);
}
}
console
.
log
(
item
);
// 埋点:去学习、继续学习、复习、去考试、重考
let
actionCode
=
sendBuriedDataMap
[
item
.
status
];
if
(
actionCode
)
{
this
.
$sendBuriedData
({
component_tag
:
`211#
${
actionCode
}
#
${
this
.
projectId
}
`
});
}
},
},
// 跳转到课程
// 跳转到课程
...
...
src/components/business/coop-list-item.vue
浏览文件 @
ff69ee54
...
@@ -140,7 +140,7 @@ export default {
...
@@ -140,7 +140,7 @@ export default {
}
}
this
.
$sendBuriedData
({
this
.
$sendBuriedData
({
component_tag
:
'089#400081
#0#'
+
item
.
projectName
component_tag
:
`210#210002#
${
item
.
id
}
#
${
item
.
projectName
}
`
//'210#210002
#0#'+item.projectName
});
});
// if (item.courseRequire == 1) { //对课程完成度有控制,需判断版本号
// if (item.courseRequire == 1) { //对课程完成度有控制,需判断版本号
// let appVersion = getAppVersion(this.userInfo.appVersion);
// let appVersion = getAppVersion(this.userInfo.appVersion);
...
...
src/main.js
浏览文件 @
ff69ee54
...
@@ -73,7 +73,7 @@ if (process.env.BUILD_ENV === 'prod') {
...
@@ -73,7 +73,7 @@ if (process.env.BUILD_ENV === 'prod') {
}
}
Vue
.
use
(
BuriedPoint
,
{
Vue
.
use
(
BuriedPoint
,
{
class_name
:
`web_app_cooperation`
,
class_name
:
'web_app_cme'
,
url
:
`
${
domain
}
/file/log/trace1`
url
:
`
${
domain
}
/file/log/trace1`
});
});
Vue
.
prototype
.
$sendBuriedData
=
sendBuriedData
;
Vue
.
prototype
.
$sendBuriedData
=
sendBuriedData
;
...
...
src/utils/fetch.js
浏览文件 @
ff69ee54
...
@@ -17,9 +17,9 @@ service.interceptors.request.use(config => {
...
@@ -17,9 +17,9 @@ service.interceptors.request.use(config => {
if
(
config
.
data
.
token
){
if
(
config
.
data
.
token
){
config
.
headers
[
'token'
]
=
config
.
data
.
token
||
'0F32D60C3D7042158BCF1FB574E482BE'
config
.
headers
[
'token'
]
=
config
.
data
.
token
||
'0F32D60C3D7042158BCF1FB574E482BE'
if
(
process
.
env
.
BUILD_ENV
==
"development"
){
// 本地开发环境
if
(
process
.
env
.
BUILD_ENV
==
"development"
){
// 本地开发环境
config
.
headers
[
'token'
]
=
'
C85C482D4E854364815C85485C6277F1
'
||
'F5CE3BAEC4934864B1022C1C4D39EB40'
;
config
.
headers
[
'token'
]
=
'
DA2A4E43343E47DEB4C4B708288D02D4
'
||
'F5CE3BAEC4934864B1022C1C4D39EB40'
;
}
}
delete
config
.
data
.
token
;
//
delete config.data.token;
}
}
config
.
headers
[
'deviceInfo'
]
=
JSON
.
stringify
({
"app_channel"
:
""
,
"app_mac"
:
""
,
"app_uuid"
:
""
,
"app_version"
:
""
,
"device_brand"
:
""
,
"device_ip"
:
""
,
"device_model"
:
""
,
"device_net"
:
""
,
"device_ops"
:
""
,
"resolution_wh"
:
""
,
"system_level"
:
""
,
"device_type"
:
'10'
})
config
.
headers
[
'deviceInfo'
]
=
JSON
.
stringify
({
"app_channel"
:
""
,
"app_mac"
:
""
,
"app_uuid"
:
""
,
"app_version"
:
""
,
"device_brand"
:
""
,
"device_ip"
:
""
,
"device_model"
:
""
,
"device_net"
:
""
,
"device_ops"
:
""
,
"resolution_wh"
:
""
,
"system_level"
:
""
,
"device_type"
:
'10'
})
...
...
src/utils/index.js
浏览文件 @
ff69ee54
...
@@ -119,9 +119,11 @@ export function mergeObjs(...ojbs){
...
@@ -119,9 +119,11 @@ export function mergeObjs(...ojbs){
}
}
// 跳转:在App中使用原生跳转,在浏览器中使用本地路由跳转
export
function
gotoPage
(
context
,
pageUrl
)
{
export
function
gotoPage
(
context
,
pageUrl
)
{
if
(
__isWeb
)
{
if
(
__isWeb
)
{
context
.
$router
.
push
(
pageUrl
)
context
.
$router
.
push
(
pageUrl
)
// context.$router.push({path: pageUrl, query: query});
}
else
{
}
else
{
let
paramList
=
[
let
paramList
=
[
{
{
...
...
src/views/credit-detail.vue
浏览文件 @
ff69ee54
...
@@ -218,11 +218,17 @@ export default {
...
@@ -218,11 +218,17 @@ export default {
// this.permission();
// this.permission();
// alert("去学习");
// alert("去学习");
}
else
if
(
this
.
formData
.
status
==
2
)
{
}
else
if
(
this
.
formData
.
status
==
2
)
{
this
.
applicationCredit
();
// alert("调用申请学分的接口");
// alert("调用申请学分的接口");
this
.
$sendBuriedData
({
component_tag
:
`211#211002#${this.projectId
}
`
}
);
this
.
applicationCredit
();
}
else
if
(
this
.
formData
.
status
==
4
)
{
}
else
if
(
this
.
formData
.
status
==
4
)
{
gotoPage
(
this
,
`cme/#/credit-edit?creditId=${this.creditId
}
`
);
// alert("调用重新提交的接口");
// alert("调用重新提交的接口");
this
.
$sendBuriedData
({
component_tag
:
`211#211006#${this.projectId
}
`
}
);
gotoPage
(
this
,
`cme/#/credit-edit?creditId=${this.creditId
}
`
);
}
}
}
,
}
,
...
...
src/views/credit-edit.vue
浏览文件 @
ff69ee54
...
@@ -137,7 +137,7 @@ export default {
...
@@ -137,7 +137,7 @@ export default {
this
.
GET
(
"cme/credit/doctor/info"
,
param
).
then
(
res
=>
{
this
.
GET
(
"cme/credit/doctor/info"
,
param
).
then
(
res
=>
{
this
.
formData
.
name
=
res
.
data
.
name
;
this
.
formData
.
name
=
res
.
data
.
name
;
this
.
formData
.
idCardNumber
=
res
.
data
.
card
;
this
.
formData
.
idCardNumber
=
res
.
data
.
card
;
this
.
isShowDialog
=
true
//
this.isShowDialog = true
})
})
},
},
...
...
src/views/index.vue
浏览文件 @
ff69ee54
...
@@ -110,6 +110,13 @@ export default {
...
@@ -110,6 +110,13 @@ export default {
// document.documentElement.scrollTop = 0;
// document.documentElement.scrollTop = 0;
// document.body.scrollTop = 0;
// document.body.scrollTop = 0;
};
};
// 打开页面埋点
this
.
$sendBuriedData
({
action
:
'打开页面'
,
component_tag
:
'210#0#0#0'
});
},
},
mounted
()
{
mounted
()
{
var
_this
=
this
;
var
_this
=
this
;
...
@@ -132,7 +139,7 @@ export default {
...
@@ -132,7 +139,7 @@ export default {
});
});
},
},
changeTab
(
index
)
{
changeTab
(
index
)
{
let
tag
=
index
==
1
?
'
089#400079'
:
'089#400080
'
;
let
tag
=
index
==
1
?
'
210#210001#0'
:
'210#210001#1
'
;
this
.
tabIndex
=
index
;
this
.
tabIndex
=
index
;
if
(
index
==
1
&&
!
this
.
userMobile
)
{
if
(
index
==
1
&&
!
this
.
userMobile
)
{
rocNative
.
gotoLogin
();
rocNative
.
gotoLogin
();
...
...
src/views/merge-detail copy.vue
0 → 100644
浏览文件 @
ff69ee54
此差异已折叠。
点击以展开。
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录