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
提交
35ae5229
提交
35ae5229
编写于
1月 06, 2022
作者:
张磊
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add page-model
上级
1df7fb21
变更
4
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
31 行增加
和
3 行删除
+31
-3
vue-inject.js
src/plugins/vue-inject.js
+1
-1
index.js
src/router/index.js
+20
-0
jsbridge.js
src/utils/jsbridge.js
+0
-1
prolist.vue
src/views/prolist.vue
+10
-1
未找到文件。
src/plugins/vue-inject.js
浏览文件 @
35ae5229
...
@@ -2,7 +2,7 @@ import Vue from 'vue';
...
@@ -2,7 +2,7 @@ import Vue from 'vue';
import
rocNative
from
'@/utils/jsbridge'
;
import
rocNative
from
'@/utils/jsbridge'
;
import
{
Toast
}
from
'vant'
;
import
{
Toast
}
from
'vant'
;
const
echarts
=
window
.
echarts
;
const
echarts
=
window
.
echarts
;
console
.
log
(
'--rocNative'
,
rocNative
);
Vue
.
use
(
Toast
);
Vue
.
use
(
Toast
);
Vue
.
prototype
.
$echarts
=
echarts
;
Vue
.
prototype
.
$echarts
=
echarts
;
Vue
.
prototype
.
$rocNative
=
new
rocNative
();
Vue
.
prototype
.
$rocNative
=
new
rocNative
();
src/router/index.js
浏览文件 @
35ae5229
...
@@ -51,6 +51,26 @@ const routerConfig = [
...
@@ -51,6 +51,26 @@ const routerConfig = [
name
:
'prolist'
,
name
:
'prolist'
,
meta
:
{
meta
:
{
title
:
'专项合作'
,
title
:
'专项合作'
,
meta
:
{
content
:
[
{
name
:
'关注'
,
outShow
:
false
,
},
{
name
:
'客服'
,
outShow
:
true
,
},
{
name
:
'分享'
,
outShow
:
false
,
},
{
name
:
'首页'
,
outShow
:
false
,
},
],
},
},
},
component
:
()
=>
import
(
'@/views/prolist'
),
component
:
()
=>
import
(
'@/views/prolist'
),
},
},
...
...
src/utils/jsbridge.js
浏览文件 @
35ae5229
...
@@ -94,7 +94,6 @@ export default class PicaJsBridge {
...
@@ -94,7 +94,6 @@ export default class PicaJsBridge {
// register method width callback in window
// register method width callback in window
_registerMethod
(
method
)
{
_registerMethod
(
method
)
{
const
_this
=
this
;
const
_this
=
this
;
console
.
log
(
'-method'
,
method
,
_this
);
_this
[
method
]
=
(
param
)
=>
{
_this
[
method
]
=
(
param
)
=>
{
return
new
Promise
((
response
,
reject
)
=>
{
return
new
Promise
((
response
,
reject
)
=>
{
_this
.
_callNative
(
method
,
param
,
function
(
result
)
{
_this
.
_callNative
(
method
,
param
,
function
(
result
)
{
...
...
src/views/prolist.vue
浏览文件 @
35ae5229
...
@@ -2,7 +2,10 @@
...
@@ -2,7 +2,10 @@
<!-- 专项合作首页: 我参与的,其它项目 -->
<!-- 专项合作首页: 我参与的,其它项目 -->
<div
class=
"pro-list-container"
>
<div
class=
"pro-list-container"
>
<!--
<CommonHeader
:title=
"title"
></CommonHeader>
-->
<!--
<CommonHeader
:title=
"title"
></CommonHeader>
-->
<PageModel
:header-info=
"headerInfo"
/>
<PageModel
:header-info=
"headerInfo"
@
onService=
"goKf"
/>
<CoopListItem
<CoopListItem
style=
"margin: 10px 0"
style=
"margin: 10px 0"
:data-list=
"projectList"
:data-list=
"projectList"
...
@@ -15,6 +18,7 @@ import PageModel from '@pica-kit/page-model';
...
@@ -15,6 +18,7 @@ import PageModel from '@pica-kit/page-model';
import
CoopListItem
from
'@/components/bussiness/coop-list-item'
;
import
CoopListItem
from
'@/components/bussiness/coop-list-item'
;
import
{
getProjectList
}
from
'@/service'
;
import
{
getProjectList
}
from
'@/service'
;
import
{
BASE_URL
}
from
'@/utils/enumerate'
;
import
{
BASE_URL
}
from
'@/utils/enumerate'
;
import
{
goKfFn
}
from
'@/utils/kf'
;
const
{
VUE_APP_ENV
}
=
process
.
env
;
const
{
VUE_APP_ENV
}
=
process
.
env
;
const
cookies
=
require
(
'cookie-universal'
)();
const
cookies
=
require
(
'cookie-universal'
)();
...
@@ -85,6 +89,11 @@ export default {
...
@@ -85,6 +89,11 @@ export default {
}
}
});
});
},
},
goKf
()
{
goKfFn
({
code
:
'0002'
,
});
},
},
},
};
};
</
script
>
</
script
>
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录