Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
traceSourceMb
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
yanyanhong
traceSourceMb
Commits
89efafb6
Commit
89efafb6
authored
Dec 18, 2020
by
chenqikuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 更新iconfont地址、更新弹出框组件UI、更新部分图标"
parent
df2871ee
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
56 additions
and
25 deletions
+56
-25
index.html
public/index.html
+1
-1
MoreAction.vue
src/components/MoreAction.vue
+42
-10
proof.ts
src/mixins/proof.ts
+13
-13
Index.vue
src/views/proof/Index.vue
+0
-1
No files found.
public/index.html
View file @
89efafb6
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
<link
rel=
"icon"
href=
"<%= BASE_URL %>favicon.ico"
>
<link
rel=
"icon"
href=
"<%= BASE_URL %>favicon.ico"
>
<!-- <title><%= htmlWebpackPlugin.options.title %></title> -->
<!-- <title><%= htmlWebpackPlugin.options.title %></title> -->
<title><
%=
VUE_APP_NAME
%
></title>
<title><
%=
VUE_APP_NAME
%
></title>
<script
src=
"//at.alicdn.com/t/font_1750816_
fjvcnnzthp
.js"
></script>
<script
src=
"//at.alicdn.com/t/font_1750816_
8787con57tr
.js"
></script>
</head>
</head>
<body
ontouchstart
>
<body
ontouchstart
>
...
...
src/components/MoreAction.vue
View file @
89efafb6
<
template
>
<
template
>
<van-popup
v-model=
"showAction"
round
class=
"more-action"
position=
"bottom"
>
<van-popup
v-model=
"showAction"
round
class=
"more-action"
position=
"bottom"
>
<div
@
click=
"handleClickClose"
class=
"arrow-down"
>
<common-svg
name=
"quxiao2x"
width=
"40px"
></common-svg>
</div>
<div
class=
"action-title"
v-if=
"title"
>
<div
class=
"action-title"
v-if=
"title"
>
<van-image
<van-image
class=
"icon"
class=
"icon"
...
@@ -11,20 +14,18 @@
...
@@ -11,20 +14,18 @@
<div
class=
"update-time"
>
更新于
{{
date
|
formatTime
}}
</div>
<div
class=
"update-time"
>
更新于
{{
date
|
formatTime
}}
</div>
</div>
</div>
</div>
</div>
<van-grid
:column-num=
"3"
:gutter=
"10"
:border=
"false"
>
<div>
<van-grid-item
<div
class=
"action-item"
v-for=
"(
{ icon, text, callback }, index) in menuList"
v-for=
"(
{ icon, text, callback }, index) in menuList"
:key="index"
:key="index"
icon="photo-o"
:text="text"
@click="actionHandler(callback)"
@click="actionHandler(callback)"
>
>
<template
#
icon
>
<common-svg
:name=
"icon"
width=
"20px"
height=
"20px"
></common-svg>
<common-svg
:name=
"icon"
width=
"44px"
height=
"44px"
></common-svg>
<p
class=
"text"
>
{{
text
}}
</p>
</
template
>
</div>
</van-grid-item>
</div>
</van-grid>
<div
class=
"btn-cancel"
@
click=
"cancel"
>
取消
</div>
<van-button
block
round
@
click=
"cancel"
>
取消
</van-button>
</van-popup>
</van-popup>
</
template
>
</
template
>
...
@@ -73,14 +74,35 @@ export default class MoreAction extends Vue {
...
@@ -73,14 +74,35 @@ export default class MoreAction extends Vue {
private
cancel
()
{
private
cancel
()
{
this
.
showAction
=
false
;
this
.
showAction
=
false
;
}
}
private
handleClickClose
()
{
this
.
showAction
=
false
;
}
}
}
</
script
>
</
script
>
<
style
scoped
lang=
"scss"
>
<
style
scoped
lang=
"scss"
>
.more-action
{
.more-action
{
.arrow-down
{
display
:
flex
;
justify-content
:
center
;
align-items
:
flex-end
;
height
:
31px
;
margin-bottom
:
15px
;
}
.action-item
{
display
:
flex
;
align-items
:
center
;
height
:
44px
;
margin-left
:
19px
;
.text
{
margin-left
:
21px
;
}
}
.action-title
{
.action-title
{
display
:
flex
;
display
:
flex
;
height
:
33px
;
height
:
33px
;
margin
:
0
16px
;
margin
:
0
16px
;
margin-bottom
:
15px
;
text-align
:
left
;
text-align
:
left
;
.icon
{
.icon
{
width
:
28px
;
width
:
28px
;
...
@@ -100,5 +122,15 @@ export default class MoreAction extends Vue {
...
@@ -100,5 +122,15 @@ export default class MoreAction extends Vue {
color
:
#b6b5ba
;
color
:
#b6b5ba
;
}
}
}
}
.btn-cancel
{
border-top
:
1px
solid
#cdcdcd
;
text-align
:
center
;
line-height
:
50px
;
height
:
50px
;
font-size
:
16px
;
font-family
:
PingFangSC-Medium
,
PingFang
SC
;
font-weight
:
500
;
color
:
#b6b5ba
;
}
}
}
</
style
>
</
style
>
src/mixins/proof.ts
View file @
89efafb6
...
@@ -14,55 +14,55 @@ export default class Proof extends Vue {
...
@@ -14,55 +14,55 @@ export default class Proof extends Vue {
protected
ActionList
:
any
=
{
protected
ActionList
:
any
=
{
blockChain
:
{
blockChain
:
{
key
:
'blockChain'
,
key
:
'blockChain'
,
icon
:
'shanglian
1
'
,
icon
:
'shanglian'
,
text
:
'上链'
,
text
:
'上链'
,
callback
:
this
.
blockChainProof
,
callback
:
this
.
blockChainProof
,
},
},
edit
:
{
edit
:
{
key
:
'edit'
,
key
:
'edit'
,
icon
:
'bianji
1
'
,
icon
:
'bianji
2x
'
,
text
:
'编辑'
,
text
:
'编辑'
,
callback
:
this
.
goProofDetail
,
callback
:
this
.
goProofDetail
,
},
},
del
:
{
del
:
{
key
:
'del'
,
key
:
'del'
,
icon
:
'shanchu
3
'
,
icon
:
'shanchu
2x
'
,
text
:
'
删除
'
,
text
:
'
移至回收站
'
,
callback
:
this
.
delProof
,
callback
:
this
.
delProof
,
},
},
copy
:
{
copy
:
{
key
:
'copy'
,
key
:
'copy'
,
icon
:
'
fuzhi1
'
,
icon
:
'
chuangjianfuben2x
'
,
text
:
'
复制
'
,
text
:
'
创建副本
'
,
callback
:
this
.
copyProof
,
callback
:
this
.
copyProof
,
},
},
blockquery
:
{
blockquery
:
{
key
:
'blockquery'
,
key
:
'blockquery'
,
icon
:
'qukuailianchaxun'
,
icon
:
'qukuailianchaxun
2x
'
,
text
:
'区块链查询'
,
text
:
'区块链查询'
,
callback
:
this
.
goToBrowser
,
callback
:
this
.
goToBrowser
,
},
},
copyhash
:
{
copyhash
:
{
key
:
'copyhash'
,
key
:
'copyhash'
,
icon
:
'fuzhiH
ashdizhi
'
,
icon
:
'fuzhiH
ASHdizhi2x
'
,
text
:
'复制hash地址'
,
text
:
'复制hash地址'
,
callback
:
this
.
copyHash
,
callback
:
this
.
copyHash
,
},
},
del2
:
{
del2
:
{
key
:
'del2'
,
key
:
'del2'
,
icon
:
'shanchu
3
'
,
icon
:
'shanchu
2x
'
,
text
:
'
删除
'
,
text
:
'
移至回收站
'
,
callback
:
this
.
abandonProof
,
callback
:
this
.
abandonProof
,
},
},
zengliang
:
{
zengliang
:
{
key
:
'zengliang'
,
key
:
'zengliang'
,
icon
:
'
zenglianggengxin2
'
,
icon
:
'
shanglian
'
,
text
:
'增量'
,
text
:
'增量
更新
'
,
callback
:
this
.
increment
,
callback
:
this
.
increment
,
},
},
hide
:
{
hide
:
{
key
:
'hide'
,
key
:
'hide'
,
icon
:
'
zenglianggengxin2
'
,
icon
:
'
yinsishezhi2x
'
,
text
:
'隐私设置'
,
text
:
'隐私设置'
,
callback
:
this
.
hide
,
callback
:
this
.
hide
,
},
},
...
...
src/views/proof/Index.vue
View file @
89efafb6
...
@@ -307,7 +307,6 @@ header {
...
@@ -307,7 +307,6 @@ header {
font-size
:
14px
;
font-size
:
14px
;
}
}
.more-action
{
.more-action
{
padding
:
20px
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
.content
{
.content
{
display
:
grid
;
display
:
grid
;
...
...
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