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
c86172f3
Commit
c86172f3
authored
Nov 08, 2019
by
786817560
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
'修改tab'
parent
0cd35f95
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
56 additions
and
32 deletions
+56
-32
base.png
src/assets/distributorSign/base.png
+0
-0
sign.png
src/assets/distributorSign/sign.png
+0
-0
trial.png
src/assets/distributorSign/trial.png
+0
-0
unbase.png
src/assets/distributorSign/unbase.png
+0
-0
unsigned.png
src/assets/distributorSign/unsigned.png
+0
-0
untrial.png
src/assets/distributorSign/untrial.png
+0
-0
details-tab.vue
src/pages/distributorSign/details-tab.vue
+56
-32
No files found.
src/assets/distributorSign/base.png
0 → 100644
View file @
c86172f3
469 Bytes
src/assets/distributorSign/sign.png
0 → 100644
View file @
c86172f3
550 Bytes
src/assets/distributorSign/trial.png
0 → 100644
View file @
c86172f3
969 Bytes
src/assets/distributorSign/unbase.png
0 → 100644
View file @
c86172f3
489 Bytes
src/assets/distributorSign/unsigned.png
0 → 100644
View file @
c86172f3
594 Bytes
src/assets/distributorSign/untrial.png
0 → 100644
View file @
c86172f3
1.02 KB
src/pages/distributorSign/details-tab.vue
View file @
c86172f3
...
@@ -2,33 +2,36 @@
...
@@ -2,33 +2,36 @@
* @Description: 详情tab
* @Description: 详情tab
* @Author: your name
* @Author: your name
* @Date: 2019-09-25 19:47:59
* @Date: 2019-09-25 19:47:59
* @LastEditTime: 2019-
09-27 13:33:08
* @LastEditTime: 2019-
11-08 17:00:06
* @LastEditors: Please set LastEditors
* @LastEditors: Please set LastEditors
-->
-->
<
template
>
<
template
>
<div
class=
"tab-style"
>
<div
class=
"tab-style"
>
<span
@
click=
"tabNum = 0;sendTabNum()"
><img
:src=
"tabNum == 0?check1:uncheck1"
></span>
<div
:class=
"
{'tab-content-bg':tabNum == 0}" class="tab-content" @click="tabNum = 0;sendTabNum()">
<img
:src=
"tabNum == 0?base:unbase"
><span
<span
@
click=
"tabNum = 1;sendTabNum()"
><img
:src=
"tabNum == 1?check2:uncheck2"
></span>
:class=
"
{'colored':tabNum == 0}">基本信息
</span></div>
<span
@
click=
"tabNum = 2;sendTabNum()"
><img
:src=
"tabNum == 2?check3:uncheck3"
></span>
<div
:class=
"
{'tab-content-bg':tabNum == 1}" class="tab-content" @click="tabNum = 1;sendTabNum()">
<img
:src=
"tabNum == 1?trial:untrial"
><span
:class=
"
{'colored':tabNum == 1}">租赁信息
</span></div>
<div
:class=
"
{'tab-content-bg':tabNum == 2}" class="tab-content" @click="tabNum = 2;sendTabNum()">
<img
:src=
"tabNum == 2?sign:unsigned"
><span
:class=
"
{'colored':tabNum == 2}">担保协议
</span></div>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
check1
from
'@/assets/distributorSign/check1
.png'
import
base
from
'@/assets/distributorSign/base
.png'
import
check2
from
'@/assets/distributorSign/check2
.png'
import
sign
from
'@/assets/distributorSign/sign
.png'
import
check3
from
'@/assets/distributorSign/guaranteed
.png'
import
trial
from
'@/assets/distributorSign/trial
.png'
import
un
check1
from
'@/assets/distributorSign/uncheck1
.png'
import
un
base
from
'@/assets/distributorSign/unbase
.png'
import
un
check2
from
'@/assets/distributorSign/uncheck2
.png'
import
un
signed
from
'@/assets/distributorSign/unsigned
.png'
import
un
check3
from
'@/assets/distributorSign/guarantee
.png'
import
un
trial
from
'@/assets/distributorSign/untrial
.png'
export
default
{
export
default
{
data
()
{
data
()
{
return
{
return
{
tabNum
:
0
,
tabNum
:
0
,
check1
:
check1
,
base
:
base
,
check2
:
check2
,
unbase
:
unbase
,
check3
:
check3
,
sign
:
sign
,
un
check1
:
uncheck1
,
un
signed
:
unsigned
,
uncheck2
:
uncheck2
,
trial
:
trial
,
un
check3
:
uncheck3
,
un
trial
:
untrial
,
}
}
},
},
methods
:
{
methods
:
{
...
@@ -39,29 +42,50 @@ export default {
...
@@ -39,29 +42,50 @@ export default {
}
}
</
script
>
</
script
>
<
style
lang=
"less"
scoped
>
<
style
lang=
"less"
scoped
>
.tab-style{
.tab-style
{
position: relative;
position: relative;
z-index: 50;
z-index: 50;
background-color: #fff;
background-color: #fff;
display:flex;
display:
flex;
justify-content: center;
justify-content: center;
padding-top:12px;
padding-top:
12px;
padding-bottom: 8px;
padding-bottom: 8px;
align-items: center;
align-items: center;
box-shadow:0 2px 3px 0 rgba(220,220,221,0.50);
box-shadow: 0 2px 3px 0 rgba(220, 220, 221, 0.50);
span{
display: block;
.tab-content {
width:112px;
display: block;
height: 32px;
width: 45.9%;
border-radius:16px;
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: @headerColor
}
}
}
img{
.tab-content-bg{
width:112px;
background: rgba(0,70,156,0.10);
height: 32px;
margin-right:5.7px;
}
}
span:nth-of-type(2){
margin:0 10px;
img {
height: 16px;
// margin-right:5.7px;
}
}
}
.tab-content:nth-of-type(2) {
margin-left: 7px;
}
}
</
style
>
</
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