Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mongo-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ui
mongo-ui
Commits
ede2d66f
Commit
ede2d66f
authored
Aug 11, 2020
by
郝聪敏
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/add_service' into 'master'
Feature/add service See merge request
!33
parents
ee8e5daf
2e310b6d
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
213 additions
and
63 deletions
+213
-63
detail.huagui.shouxian.js
src/api/detail.huagui.shouxian.js
+20
-11
detail.huatai.zhongjixian.js
src/api/detail.huatai.zhongjixian.js
+7
-1
detail.taikang.yiliaobaozhang.js
src/api/detail.taikang.yiliaobaozhang.js
+12
-2
detail.zhongan.yiwai.js
src/api/detail.zhongan.yiwai.js
+1
-5
Collapse.vue
src/components/Collapse.vue
+24
-1
PopupWithIframe.vue
src/components/PopupWithIframe.vue
+0
-1
routes.js
src/router/routes.js
+5
-0
AIDetail.vue
src/views/Goods/Detail/AIDetail.vue
+4
-4
Guarantee.vue
src/views/Policy/Detail/Types/Guarantee.vue
+7
-3
index.less
src/views/Policy/Detail/index.less
+20
-9
InsuranceService.vue
src/views/Policy/Detail/modules/InsuranceService.vue
+56
-24
SecurityContent.vue
src/views/Policy/Detail/modules/SecurityContent.vue
+9
-2
index.vue
src/views/Policy/VirtualDetail/index.vue
+48
-0
No files found.
src/api/detail.huagui.shouxian.js
View file @
ede2d66f
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
* @Description: 华贵大麦2020定期寿险
* @Description: 华贵大麦2020定期寿险
* @Date: 2020-07-27 15:46:37
* @Date: 2020-07-27 15:46:37
* @LastEditors: gzw
* @LastEditors: gzw
* @LastEditTime: 2020-08-11 1
6:26:37
* @LastEditTime: 2020-08-11 1
7:03:21
*/
*/
import
goodsBg
from
"
@/assets/images/goods/detail/shouxian/bg.png
"
;
import
goodsBg
from
"
@/assets/images/goods/detail/shouxian/bg.png
"
;
...
@@ -100,18 +100,18 @@ export default {
...
@@ -100,18 +100,18 @@ export default {
{
label
:
"
350万
"
,
value
:
"
3500000
"
}
{
label
:
"
350万
"
,
value
:
"
3500000
"
}
],
],
termOptions
:
[
termOptions
:
[
{
label
:
"
10年
"
,
value
:
"
1
0
"
},
{
label
:
"
10年
"
,
value
:
"
1
"
},
{
label
:
"
20年
"
,
value
:
"
2
0
"
},
{
label
:
"
20年
"
,
value
:
"
2
"
},
{
label
:
"
30年
"
,
value
:
"
3
0
"
},
{
label
:
"
30年
"
,
value
:
"
3
"
},
{
label
:
"
保至60周岁
"
,
value
:
"
至60
"
},
{
label
:
"
保至60周岁
"
,
value
:
"
4
"
},
{
label
:
"
保至65周岁
"
,
value
:
"
至6
5
"
},
{
label
:
"
保至65周岁
"
,
value
:
"
5
"
},
{
label
:
"
保至70周岁
"
,
value
:
"
至70
"
}
{
label
:
"
保至70周岁
"
,
value
:
"
6
"
}
],
],
benefitOptions
:
[
benefitOptions
:
[
{
label
:
"
交5年
"
,
value
:
"
5
"
},
{
label
:
"
交5年
"
,
value
:
"
1
"
},
{
label
:
"
交10年
"
,
value
:
"
10
"
},
{
label
:
"
交10年
"
,
value
:
"
2
"
},
{
label
:
"
交20年
"
,
value
:
"
20
"
},
{
label
:
"
交20年
"
,
value
:
"
3
"
},
{
label
:
"
交30年
"
,
value
:
"
30
"
}
{
label
:
"
交30年
"
,
value
:
"
4
"
}
// { label: "一次付清", value: "5" }
// { label: "一次付清", value: "5" }
],
],
popupArray
:
[
popupArray
:
[
...
@@ -143,6 +143,15 @@ export default {
...
@@ -143,6 +143,15 @@ export default {
url
:
"
http://mangguo-contract.qthbx.com/hua-gui-ren-shen-bao-xian-tou-bao-ti-shi-shu-v1/
"
url
:
"
http://mangguo-contract.qthbx.com/hua-gui-ren-shen-bao-xian-tou-bao-ti-shi-shu-v1/
"
}
}
],
],
protocolData
:
[
{
title
:
"
保险条款
"
,
id
:
0
},
{
title
:
"
投保须知与声明
"
,
id
:
2
},
{
title
:
"
服务协议
"
,
id
:
3
},
{
title
:
"
转账授权书
"
,
id
:
1
},
{
title
:
"
人身保险投保提示书
"
,
id
:
8
},
{
title
:
"
税收居民身份证明
"
,
id
:
3
},
{
title
:
"
风控查询授权书
"
,
id
:
3
}
],
caseInfo
:
{
caseInfo
:
{
name
:
"
张先生
"
,
name
:
"
张先生
"
,
info
:
"
33岁 北京
"
,
info
:
"
33岁 北京
"
,
...
...
src/api/detail.huatai.zhongjixian.js
View file @
ede2d66f
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
* @Description:华太30万轻重疾险
* @Description:华太30万轻重疾险
* @Date: 2020-07-27 15:46:37
* @Date: 2020-07-27 15:46:37
* @LastEditors: gzw
* @LastEditors: gzw
* @LastEditTime: 2020-08-11 1
4:41:0
5
* @LastEditTime: 2020-08-11 1
7:04:4
5
*/
*/
import
goodsBg
from
"
@/assets/images/goods/detail/zhongjixian/bg.png
"
;
import
goodsBg
from
"
@/assets/images/goods/detail/zhongjixian/bg.png
"
;
...
@@ -157,6 +157,12 @@ export default {
...
@@ -157,6 +157,12 @@ export default {
url
:
"
http://mangguo-contract.qthbx.com/zi-dong-xu-bao-fu-wu-xie-yi-v1/
"
url
:
"
http://mangguo-contract.qthbx.com/zi-dong-xu-bao-fu-wu-xie-yi-v1/
"
}
}
],
],
protocolData
:
[
{
title
:
"
保险条款
"
,
id
:
0
},
{
title
:
"
健康告知
"
,
id
:
1
},
{
title
:
"
投保须知及声明
"
,
id
:
2
},
{
title
:
"
平台服务协议
"
,
id
:
3
}
],
caseInfo
:
{
caseInfo
:
{
name
:
"
吴先生
"
,
name
:
"
吴先生
"
,
info
:
"
46岁 北京 有社保
"
,
info
:
"
46岁 北京 有社保
"
,
...
...
src/api/detail.taikang.yiliaobaozhang.js
View file @
ede2d66f
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
* @Description: 泰康600万医疗保障
* @Description: 泰康600万医疗保障
* @Date: 2020-07-27 15:46:37
* @Date: 2020-07-27 15:46:37
* @LastEditors: gzw
* @LastEditors: gzw
* @LastEditTime: 2020-08-11 1
6:10:05
* @LastEditTime: 2020-08-11 1
7:05:02
*/
*/
import
goodsBg
from
"
@/assets/images/goods/detail/yiliaoxian/bg.png
"
;
import
goodsBg
from
"
@/assets/images/goods/detail/yiliaoxian/bg.png
"
;
...
@@ -63,7 +63,11 @@ export default {
...
@@ -63,7 +63,11 @@ export default {
{
title
:
""
,
value
:
""
,
divider
:
true
},
{
title
:
""
,
value
:
""
,
divider
:
true
},
{
title
:
"
发生以下指定费用,赔付不超过对应限额
"
,
value
:
""
,
inline
:
true
},
{
title
:
"
发生以下指定费用,赔付不超过对应限额
"
,
value
:
""
,
inline
:
true
},
{
title
:
"
指定检查费用保险金
"
,
value
:
"
5000元
"
},
{
title
:
"
指定检查费用保险金
"
,
value
:
"
5000元
"
},
{
title
:
"
特定疾病保险金
"
,
value
:
"
5000元
"
}
{
title
:
"
特定疾病保险金
"
,
value
:
"
5000元
"
},
{
title
:
""
,
value
:
""
,
divider
:
true
},
{
title
:
"
免费增值服务
"
,
value
:
""
,
inline
:
true
},
{
title
:
"
押金垫付
"
,
value
:
"
住院费用垫付服务
"
},
{
title
:
"
就医绿色通道
"
,
value
:
"
全国1233家知名三甲医院
"
}
],
],
planTipOptions
:
[
"
不限社保
"
,
"
报销自费药
"
,
"
额外400万特定赔付
"
],
planTipOptions
:
[
"
不限社保
"
,
"
报销自费药
"
,
"
额外400万特定赔付
"
],
insuredOptions
:
[
insuredOptions
:
[
...
@@ -117,6 +121,12 @@ export default {
...
@@ -117,6 +121,12 @@ export default {
url
:
"
http://mangguo-contract.qthbx.com/zi-dong-xu-bao-fu-wu-xie-yi-v1/
"
url
:
"
http://mangguo-contract.qthbx.com/zi-dong-xu-bao-fu-wu-xie-yi-v1/
"
}
}
],
],
protocolData
:
[
{
title
:
"
保险条款
"
,
id
:
0
},
{
title
:
"
健康告知
"
,
id
:
1
},
{
title
:
"
投保须知及声明
"
,
id
:
2
},
{
title
:
"
平台服务协议
"
,
id
:
3
}
],
caseInfo
:
{
caseInfo
:
{
name
:
"
吴先生
"
,
name
:
"
吴先生
"
,
info
:
"
46岁 北京 有社保
"
,
info
:
"
46岁 北京 有社保
"
,
...
...
src/api/detail.zhongan.yiwai.js
View file @
ede2d66f
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
* @Description:众安50万意外险
* @Description:众安50万意外险
* @Date: 2020-07-27 15:46:37
* @Date: 2020-07-27 15:46:37
* @LastEditors: gzw
* @LastEditors: gzw
* @LastEditTime: 2020-08-11 1
4:41:35
* @LastEditTime: 2020-08-11 1
7:05:56
*/
*/
import
goodsBg
from
"
@/assets/images/goods/detail/yiwaixian/bg.png
"
;
import
goodsBg
from
"
@/assets/images/goods/detail/yiwaixian/bg.png
"
;
...
@@ -132,10 +132,6 @@ export default {
...
@@ -132,10 +132,6 @@ export default {
title
:
"
保险条款
"
,
title
:
"
保险条款
"
,
url
:
"
http://mangguo-contract.qthbx.com/zhong-an-baoxiantiaokuan-v1/
"
url
:
"
http://mangguo-contract.qthbx.com/zhong-an-baoxiantiaokuan-v1/
"
},
},
{
title
:
"
健康告知
"
,
url
:
"
http://mangguo-contract.qthbx.com/huatai-jian-kang-gao-zhi-v1/
"
},
{
{
title
:
"
投保须知及声明
"
,
title
:
"
投保须知及声明
"
,
url
:
"
http://mangguo-contract.qthbx.com/zhong-an-tou-bao-xu-zhi-v1/
"
url
:
"
http://mangguo-contract.qthbx.com/zhong-an-tou-bao-xu-zhi-v1/
"
...
...
src/components/Collapse.vue
View file @
ede2d66f
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
class=
"collapse-item"
class=
"collapse-item"
:class=
"
{
:class=
"
{
show: item.show,
show: item.show,
'hide-icon': hideIcon,
more: index > initLength
&&
!more
&&
moreBtn
more: index > initLength
&&
!more
&&
moreBtn
}"
}"
v-for="(item, index) in list"
v-for="(item, index) in list"
...
@@ -19,7 +20,11 @@
...
@@ -19,7 +20,11 @@
<i
class=
"collapse-item-content-icon"
>
A:
</i>
<i
class=
"collapse-item-content-icon"
>
A:
</i>
<div
class=
"collapse-item-content-txt"
v-html=
"item.a"
></div>
<div
class=
"collapse-item-content-txt"
v-html=
"item.a"
></div>
</div>
</div>
<cr-divider
:hairline=
"false"
:style=
"
{ color: '#ebebeb', margin: 0 }" />
<cr-divider
:hairline=
"false"
:style=
"
{ color: '#ebebeb', margin: 0 }"
v-if="index !== list.length - 1"
/>
</div>
</div>
</div>
</div>
<div
class=
"collapse-more"
:class=
"
{ active: more }" v-if="moreBtn">
<div
class=
"collapse-more"
:class=
"
{ active: more }" v-if="moreBtn">
...
@@ -49,6 +54,10 @@ export default {
...
@@ -49,6 +54,10 @@ export default {
initLength
:
{
initLength
:
{
type
:
Number
,
type
:
Number
,
default
:
2
default
:
2
},
hideIcon
:
{
type
:
Boolean
,
default
:
false
}
}
},
},
watch
:
{
watch
:
{
...
@@ -90,6 +99,20 @@ export default {
...
@@ -90,6 +99,20 @@ export default {
&.more {
&.more {
display: none;
display: none;
}
}
&.hide-icon {
.collapse-item-title-icon {
display: none;
}
.collapse-item-content-icon {
display: none;
}
.collapse-item-title-txt {
margin-left: 0;
}
.collapse-item-content-txt {
margin-left: 0;
}
}
&-title {
&-title {
display: flex;
display: flex;
color: @black;
color: @black;
...
...
src/components/PopupWithIframe.vue
View file @
ede2d66f
...
@@ -96,7 +96,6 @@ export default {
...
@@ -96,7 +96,6 @@ export default {
methods
:
{
methods
:
{
pdfTask
()
{
pdfTask
()
{
this
.
pdfUrl
=
pdf
.
createLoadingTask
(
this
.
url
);
this
.
pdfUrl
=
pdf
.
createLoadingTask
(
this
.
url
);
console
.
log
(
this
.
pdfUrl
);
this
.
pdfUrl
.
promise
this
.
pdfUrl
.
promise
.
then
(
pdf
=>
{
.
then
(
pdf
=>
{
this
.
pdfNumPages
=
pdf
.
numPages
;
this
.
pdfNumPages
=
pdf
.
numPages
;
...
...
src/router/routes.js
View file @
ede2d66f
...
@@ -84,6 +84,11 @@ export default [
...
@@ -84,6 +84,11 @@ export default [
name
:
"
Detail
"
,
name
:
"
Detail
"
,
component
:
()
=>
import
(
"
../views/Policy/Detail/index.vue
"
)
component
:
()
=>
import
(
"
../views/Policy/Detail/index.vue
"
)
},
},
{
path
:
"
/policy/virtual-detail
"
,
name
:
"
PolicyVirtualDetail
"
,
component
:
()
=>
import
(
"
../views/Policy/VirtualDetail/index.vue
"
)
},
{
{
path
:
"
/policy/success
"
,
path
:
"
/policy/success
"
,
name
:
"
Sucess
"
,
name
:
"
Sucess
"
,
...
...
src/views/Goods/Detail/AIDetail.vue
View file @
ede2d66f
...
@@ -203,10 +203,10 @@ export default {
...
@@ -203,10 +203,10 @@ export default {
},
},
onSubmit
()
{
onSubmit
()
{
this
.
goInsureState
=
true
;
this
.
goInsureState
=
true
;
sessionStorage
.
setItem
(
//
sessionStorage.setItem(
"
policyFormData
"
,
//
"policyFormData",
JSON
.
stringify
(
Object
.
assign
(
this
.
formData
,
{
productNo
:
this
.
goodId
}))
//
JSON.stringify(Object.assign(this.formData, { productNo: this.goodId }))
);
//
);
},
},
onFailed
(
errorInfo
)
{
onFailed
(
errorInfo
)
{
const
{
errors
}
=
errorInfo
;
const
{
errors
}
=
errorInfo
;
...
...
src/views/Policy/Detail/Types/Guarantee.vue
View file @
ede2d66f
...
@@ -15,8 +15,8 @@
...
@@ -15,8 +15,8 @@
:autoRenewPremium=
"data.autoRenewPremium"
:autoRenewPremium=
"data.autoRenewPremium"
:policyNo=
"data.policyNo"
:policyNo=
"data.policyNo"
></insurance-card>
></insurance-card>
<security-content
:data=
"data"
:detail=
"p
roductInfo
"
></security-content>
<security-content
:data=
"data"
:detail=
"p
lanDetail
"
></security-content>
<insurance-service></insurance-service>
<insurance-service
:detail=
"qaDetail"
></insurance-service>
<customer-service></customer-service>
<customer-service></customer-service>
<insurance-recommend
class=
"Pdb-recommend"
/>
<insurance-recommend
class=
"Pdb-recommend"
/>
</div>
</div>
...
@@ -69,11 +69,15 @@ export default {
...
@@ -69,11 +69,15 @@ export default {
showPayCost
()
{
showPayCost
()
{
return
[
"
2
"
,
"
4
"
].
includes
(
this
.
data
?.
cardConfig
?.
key
);
return
[
"
2
"
,
"
4
"
].
includes
(
this
.
data
?.
cardConfig
?.
key
);
},
},
Security
Detail
()
{
plan
Detail
()
{
const
{
type
,
planCellInfo
:
info
}
=
this
.
productInfo
;
const
{
type
,
planCellInfo
:
info
}
=
this
.
productInfo
;
const
{
amountInsured
}
=
this
.
data
.
productItem
;
const
{
amountInsured
}
=
this
.
data
.
productItem
;
const
planCellInfo
=
amountInsured
?
info
[
amountInsured
]
:
info
;
const
planCellInfo
=
amountInsured
?
info
[
amountInsured
]
:
info
;
return
{
type
,
planCellInfo
:
planCellInfo
};
return
{
type
,
planCellInfo
:
planCellInfo
};
},
qaDetail
()
{
const
{
qaInfo
,
protocolData
,
popupArray
}
=
this
.
productInfo
;
return
{
qaInfo
,
protocolData
,
popupArray
};
}
}
},
},
methods
:
{
methods
:
{
...
...
src/views/Policy/Detail/index.less
View file @
ede2d66f
...
@@ -270,7 +270,7 @@
...
@@ -270,7 +270,7 @@
.card-body();
.card-body();
}
}
&-question {
&-question {
margin-top: 24px;
//
margin-top: 24px;
.card-head();
.card-head();
}
}
&-divider {
&-divider {
...
@@ -282,14 +282,25 @@
...
@@ -282,14 +282,25 @@
}
}
&-agreement {
&-agreement {
display: flex;
display: flex;
justify-content: space-between;
padding-top: 3px;
font-size: 0;
align-items: center;
span {
flex-wrap: wrap;
font-size: 12px;
a {
font-weight: 400;
font-size: 12px;
color: #333333;
color: #333;
line-height: 24px;
&::after {
}
display: inline-block;
content: " ";
width: 0;
height: 12px;
border-right: 1px #333 solid;
margin: 0 5px;
vertical-align: -2px;
}
&:last-child::after {
display: none;
}
}
}
}
}
}
.Pdb-operation {
.Pdb-operation {
...
...
src/views/Policy/Detail/modules/InsuranceService.vue
View file @
ede2d66f
<
template
>
<
template
>
<div
class=
"Pdb-service"
>
<div
class=
"Pdb-service"
>
<div
class=
"Pdb-service-head"
>
<div
class=
"Pdb-service-question"
@
click=
"showQa = !showQa"
>
<span>
增值服务
</span>
<span>
查看详情
</span>
</div>
<div
class=
"Pdb-service-body"
>
<div>
<span>
重疾快速就医
</span>
<span></span>
</div>
<div>
<span>
住院押金垫付
</span>
<span></span>
</div>
</div>
<div
class=
"Pdb-service-question"
>
<span>
常见问题
</span>
<span>
常见问题
</span>
<svg-icon
icon-class=
"arrow"
/>
<svg-icon
icon-class=
"arrow"
:style=
"
{ transform: `rotate(${showQa ? '90deg' : '0deg'})` }"
/>
</div>
</div>
<collapse
:collapse-data=
"detail.qaInfo"
:more-btn=
"false"
:hide-icon=
"true"
:init-length=
"3"
v-show=
"showQa"
/>
<cr-divider
class=
"Pdb-service-divider"
:hairline=
"false"
/>
<cr-divider
class=
"Pdb-service-divider"
:hairline=
"false"
/>
<div
class=
"Pdb-service-agreement"
>
<div
class=
"Pdb-service-agreement"
>
<span>
保险条款
</span>
<a
<span>
|
</span>
href=
"javascript:;"
<span>
健康告知
</span>
@
click=
"openIframePupop(item.id)"
<span>
|
</span>
v-for=
"(item, index) in detail.protocolData"
<span>
投保须知与声明
</span>
:key=
"index"
<span>
|
</span>
>
<span>
服务协议
</span>
{{
item
.
title
}}
</a>
</div>
</div>
<popup-with-iframe
v-model=
"popupShow"
:title=
"pupopData.title"
:content=
"pupopData.content"
:url=
"pupopData.url"
/>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
Collapse
from
"
@/components/Collapse
"
;
import
PopupWithIframe
from
"
@/components/PopupWithIframe
"
;
export
default
{
export
default
{
name
:
"
InsuranceService
"
,
name
:
"
InsuranceService
"
,
components
:
{
PopupWithIframe
,
Collapse
},
props
:
{
detail
:
{
type
:
Object
,
default
()
{
return
{};
}
}
},
computed
:
{
pupopData
()
{
const
{
currentPupopIndex
}
=
this
;
const
{
popupArray
}
=
this
.
detail
;
return
popupArray
[
currentPupopIndex
]
||
{};
}
},
data
()
{
data
()
{
return
{};
return
{
showQa
:
false
,
popupShow
:
false
,
currentPupopIndex
:
null
};
},
methods
:
{
openIframePupop
(
index
)
{
this
.
currentPupopIndex
=
index
;
this
.
popupShow
=
true
;
}
}
}
};
};
</
script
>
</
script
>
...
...
src/views/Policy/Detail/modules/SecurityContent.vue
View file @
ede2d66f
...
@@ -81,8 +81,15 @@ export default {
...
@@ -81,8 +81,15 @@ export default {
}
}
},
},
methods
:
{
methods
:
{
showPdf
()
{}
showPdf
()
{
this
.
$router
.
push
({
path
:
"
/policy/virtual-detail
"
,
query
:
{
url
:
this
.
data
.
policyUrl
}
});
}
}
}
};
};
</
script
>
</
script
>
<
style
lang=
"less"
src=
"../index.less"
scoped
></
style
>
<
style
lang=
"less"
src=
"../index.less"
scoped
>
container {
width: 100%;
height: 100%;
}
</
style
>
src/views/Policy/VirtualDetail/index.vue
0 → 100644
View file @
ede2d66f
<
template
>
<div
class=
"container"
>
<pdf
v-for=
"(item, index) in pdfNumPages"
:key=
"index"
:src=
"pdfUrl"
:page=
"index + 1"
/>
</div>
</
template
>
<
script
>
import
pdf
from
"
vue-pdf
"
;
import
{
mapActions
}
from
"
vuex
"
;
export
default
{
name
:
"
PolicyVirtualDetail
"
,
components
:
{
pdf
},
data
()
{
return
{
url
:
""
,
pdfUrl
:
""
,
pdfNumPages
:
null
};
},
mounted
()
{
this
.
setDetail
();
},
methods
:
{
...
mapActions
([
"
setIsLoading
"
]),
setDetail
()
{
const
{
url
}
=
this
.
$route
.
query
;
this
.
setIsLoading
(
true
);
if
(
!
url
)
this
.
$router
.
back
();
this
.
url
=
url
;
this
.
pdfTask
();
},
pdfTask
()
{
this
.
pdfUrl
=
pdf
.
createLoadingTask
(
this
.
url
);
this
.
pdfUrl
.
promise
.
then
(
pdf
=>
{
this
.
pdfNumPages
=
pdf
.
numPages
;
this
.
setIsLoading
(
false
);
})
.
catch
(
err
=>
{
console
.
error
(
err
);
});
}
}
};
</
script
>
<
style
lang=
"less"
scoped
></
style
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment