Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hls-xcmg-vue-app
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
xugong
hls-xcmg-vue-app
Commits
345b5940
Commit
345b5940
authored
Sep 27, 2019
by
李晓兵
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'修改intoTab'
parent
01e0e733
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
53 additions
and
38 deletions
+53
-38
intoTab.vue
src/pages/intoApproval/intoApproval/intoTab.vue
+53
-38
No files found.
src/pages/intoApproval/intoApproval/intoTab.vue
View file @
345b5940
...
...
@@ -7,23 +7,26 @@
-->
<
template
>
<div
class=
"tab-style"
>
<span
:class=
"tabNum == 0?'check':'uncheck'"
@
click=
"tabNum = 0;sendTabNum()"
><img
:src=
"tabNum == 0?check1:uncheck1"
>
待审批
</span>
<span
:class=
"tabNum == 1?'check':'uncheck'"
@
click=
"tabNum = 1;sendTabNum()"
><img
:src=
"tabNum == 1?check2:uncheck2"
>
已审批
</span>
<div
:class=
"
{'tab-content-bg':tabNum == 0}" class="tab-content" @click="tabNum = 0;sendTabNum()">
<img
:src=
"tabNum == 0?signed:sign"
><span
:class=
"
{'colored':tabNum == 0}">待确认
</span></div>
<div
:class=
"
{'tab-content-bg':tabNum == 1}" class="tab-content" @click="tabNum = 1;sendTabNum()">
<img
:src=
"tabNum == 1?finished:finish"
><span
:class=
"
{'colored':tabNum == 1}">已确认
</span></div>
</div>
</
template
>
<
script
>
import
check1
from
'@/assets/intoApproval/checkF.png'
import
check2
from
'@/assets/intoApproval/checkS.png'
import
uncheck1
from
'@/assets/intoApproval/uncheckF.png'
import
uncheck2
from
'@/assets/intoApproval/uncheckS.png'
import
signed
from
'@/assets/distributorSign/icon-signed.png'
import
finished
from
'@/assets/distributorSign/icon-finished.png'
import
sign
from
'@/assets/distributorSign/icon-sign.png'
import
finish
from
'@/assets/distributorSign/icon-finish.png'
export
default
{
data
()
{
return
{
tabNum
:
0
,
check1
:
check1
,
check2
:
check2
,
uncheck1
:
uncheck1
,
uncheck2
:
uncheck2
,
signed
:
signed
,
finished
:
finished
,
sign
:
sign
,
finish
:
finish
,
}
},
methods
:
{
...
...
@@ -34,42 +37,54 @@ export default {
}
</
script
>
<
style
lang=
"less"
scoped
>
.tab-style
{
.tab-style
{
position: relative;
z-index: 50;
background-color: #fff;
display:flex;
//
justify-content: center;
padding-top:12px;
display:
flex;
justify-content: center;
padding-top:
12px;
padding-bottom: 8px;
align-items: center;
background: #fff;
box-shadow:0 2px 3px 0 rgba(220,220,221,0.50);
span{
display: block;
width:45.9%;
height: 32px;
border-radius:16px;
text-align: center;
line-height: 32px;
box-shadow: 0 2px 3px 0 rgba(220, 220, 221, 0.50);
.tab-content {
display: block;
width: 45.9%;
height: 32px;
background: rgba(220, 220, 221, 0.26);
border-radius: 16px;
display: flex;
justify-content: center;
align-items: center;
span {
margin-left: 2%;
font-size: 14px;
color: #383F45;
font-weight: 600;
font-family: PingFangSC-Semibold;
}
.colored {
color: #00469C
}
}
span:nth-of-type(1)
{
margin-left: 12px
.tab-content-bg
{
background: rgba(0,70,156,0.10);
}
img{
width:14px;
height: 14px;
.tab-content:nth-of-type(1) {
margin-left: 12px
}
span:nth-of-type(2){
margin-left:7px;
img {
height: 16px;
// margin-right:5.7px;
}
.check{
color:#00469C;
background-color:rgba(0,70,156,0.10)
;
.tab-content:nth-of-type(2) {
margin-left: 7px
;
}
.uncheck{
color:#383F45 ;
background: rgba(220,220,221,0.26);
}
}
}
</
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