Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-annual-summary
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
com.pica.cloud.education.frontend
pica-annual-summary
提交
393b0d2e
提交
393b0d2e
编写于
1月 28, 2021
作者:
guangjun.yang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
登陆验证等
上级
f9e7dc9c
变更
2
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
132 行增加
和
16 行删除
+132
-16
detail.vue
src/views/annual-summary/detail.vue
+98
-10
index.vue
src/views/annual-summary/index.vue
+34
-6
未找到文件。
src/views/annual-summary/detail.vue
浏览文件 @
393b0d2e
...
@@ -7,30 +7,118 @@
...
@@ -7,30 +7,118 @@
<!--
<Card4></Card4>
-->
<!--
<Card4></Card4>
-->
<!--
<Card5></Card5>
-->
<!--
<Card5></Card5>
-->
<Card6></Card6>
<Card6></Card6>
<Loading
v-show=
"showLoading"
/>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
Card1
from
'@/components/annual-summary/card-1'
import
Loading
from
"@/components/common/common-loading"
;
import
Card1No
from
'@/components/annual-summary/card-1-no'
import
{
Progress
,
Toast
}
from
"vant"
;
import
Card2
from
'@/components/annual-summary/card-2'
import
Card3
from
'@/components/annual-summary/card-3'
import
Card1
from
"@/components/annual-summary/card-1"
;
import
Card4
from
'@/components/annual-summary/card-4'
import
Card1No
from
"@/components/annual-summary/card-1-no"
;
import
Card5
from
'@/components/annual-summary/card-5'
import
Card2
from
"@/components/annual-summary/card-2"
;
import
Card6
from
'@/components/annual-summary/card-6'
import
Card3
from
"@/components/annual-summary/card-3"
;
import
Card4
from
"@/components/annual-summary/card-4"
;
import
Card5
from
"@/components/annual-summary/card-5"
;
import
Card6
from
"@/components/annual-summary/card-6"
;
import
{
mapGetters
,
mapActions
}
from
"vuex"
;
let
_this
=
null
;
export
default
{
export
default
{
components
:
{
components
:
{
Loading
,
Card1
,
Card1
,
Card1No
,
Card1No
,
Card2
,
Card2
,
Card3
,
Card3
,
Card4
,
Card4
,
Card5
,
Card5
,
Card6
,
Card6
},
data
()
{
return
{
isWeb
:
window
.
__isWeb
,
isInfresh
:
false
,
showLoading
:
false
};
},
computed
:
{
...
mapGetters
([
"userInfo"
])
},
created
()
{
_this
=
this
;
window
.
__getUserInfoAS
=
function
(
param
)
{
console
.
log
(
"__getUserInfoAS"
,
param
);
_this
.
token
=
param
.
userToken
;
_this
.
userMobile
=
param
.
userMobile
;
_this
.
setUserInfo
(
param
);
_this
.
checkToken
();
_this
.
initData
();
};
if
(
_this
.
isWeb
)
{
_this
.
initData
();
}
}
}
window
.
__refresh
=
function
()
{
_this
.
isInfresh
=
true
;
_this
.
getUserInfo
();
};
_this
.
getUserInfo
();
},
methods
:
{
...
mapActions
([
"setUserInfo"
]),
// 获取数据
initData
()
{
let
param
=
{
token
:
this
.
token
,
setEntry
:
true
};
// this.showLoading = true;
// this.GET(`portal/titleTest/user/getBrushTitleInfo/${this.secondSubjectId}`, param).then(res => {
// if (res.code == "000000") {
// this.showLoading = false;
// } else {
// this.$toast(res.message);
// }
// });
},
//获取用户信息
getUserInfo
()
{
rocNative
.
getUserInfo
({
__funcName
:
"__getUserInfoAS"
});
},
// token是否失效校验
checkToken
()
{
let
param
=
{
token
:
this
.
userInfo
.
userToken
||
this
.
token
,
setEntry
:
true
};
this
.
GET
(
"campaign/admin/task/checkToken"
,
param
).
then
(
res
=>
{
if
(
res
.
code
!==
"000000"
)
{
console
.
log
(
"跳登录"
,
this
.
isInfresh
);
if
(
this
.
isInfresh
)
{
rocNative
.
goBack
();
}
else
{
rocNative
.
gotoLogin
();
}
this
.
isInfresh
=
false
;
}
else
{
}
});
}
}
};
</
script
>
</
script
>
<
style
lang=
"less"
scoped
>
<
style
lang=
"less"
scoped
>
.as-swipper-wrapper {
.as-swipper-wrapper {
}
}
</
style
>
</
style
>
\ No newline at end of file
src/views/annual-summary/index.vue
浏览文件 @
393b0d2e
...
@@ -39,7 +39,7 @@
...
@@ -39,7 +39,7 @@
<img
v-show=
"isSelect"
src=
"~@/images/annual/rect-2.png"
alt
/>
<img
v-show=
"isSelect"
src=
"~@/images/annual/rect-2.png"
alt
/>
<span>
我同意云鹊医使用我的历史数据生成《年度个人清单》数据报告
</span>
<span>
我同意云鹊医使用我的历史数据生成《年度个人清单》数据报告
</span>
</div>
</div>
<div
class=
"b-btn
"
>
<div
v-show=
"isHide"
class=
"b-btn"
@
click=
"gotoDetail
"
>
<img
src=
"~@/images/annual/index-btn.png"
alt
/>
<img
src=
"~@/images/annual/index-btn.png"
alt
/>
</div>
</div>
</section>
</section>
...
@@ -47,32 +47,60 @@
...
@@ -47,32 +47,60 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
Logo
from
"@/components/annual-summary/logo"
;
import
Logo
from
"@/components/annual-summary/logo"
;
let
_this
=
null
;
export
default
{
export
default
{
components
:
{
components
:
{
Logo
Logo
},
},
data
()
{
data
()
{
return
{
return
{
isSelect
:
false
isSelect
:
false
,
isHide
:
true
,
};
};
},
},
created
()
{
created
()
{
_this
=
this
;
// 截屏时通知前端
// 截屏时通知前端
window
.
screenCaptureEvent
=
function
()
{
window
.
screenCaptureEvent
=
function
()
{
console
.
log
(
'in screenCaptureEvent'
);
console
.
log
(
'in screenCaptureEvent'
);
this
.
$sendBuriedData
({
_
this
.
$sendBuriedData
({
component_tag
:
'557#557002'
component_tag
:
'557#557002'
});
});
}
}
// 保存图片的回调
window
.
__savePage2Picture
=
function
(
param
)
{
this
.
isHide
=
false
;
console
.
log
(
"__savePage2Picture"
,
param
);
}
},
},
methods
:
{
methods
:
{
// 选择协议
selectProt
()
{
selectProt
()
{
this
.
isSelect
=
!
this
.
isSelect
;
this
.
isSelect
=
!
this
.
isSelect
;
},
},
// 保存图片
savePage2Picture
()
{
savePage2Picture
()
{
rocNative
.
savePage2Picture
();
this
.
isHide
=
false
;
this
.
$forceUpdate
()
this
.
$nextTick
(
()
=>
{
rocNative
.
savePage2Picture
({
__funcName
:
"__savePage2Picture"
});
})
},
// 跳转到详情页面
gotoDetail
()
{
if
(
this
.
isSelect
)
{
this
.
$router
.
push
(
'/as-detail'
);
}
else
{
Toast
(
"请勾选我同意后查看"
);
}
}
},
}
}
};
};
</
script
>
</
script
>
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录