Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fns_front_2
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
chenqikuai
fns_front_2
Commits
a0678d1f
Commit
a0678d1f
authored
Sep 08, 2021
by
chenqikuai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
save
parent
9df498dd
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
23 deletions
+21
-23
index.vue
src/components/PopUp/index.vue
+13
-12
main.ts
src/main.ts
+0
-1
index.vue
src/views/ActivityList/index.vue
+2
-2
index.vue
src/views/LoanList/index.vue
+6
-8
No files found.
src/components/PopUp/index.vue
View file @
a0678d1f
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
<Popup
<Popup
v-model:show=
"visible"
v-model:show=
"visible"
position=
"right"
position=
"right"
style=
"height: 100vh; width: 86%"
style=
"height: 100vh; width: 86%
;
"
>
>
<div
class=
"flex flex-col h-full"
>
<div
class=
"flex flex-col h-full"
>
<div
class=
"mx-5 flex items-center justify-center relative mt-2.5"
>
<div
class=
"mx-5 flex items-center justify-center relative mt-2.5"
>
...
@@ -12,11 +12,11 @@
...
@@ -12,11 +12,11 @@
class=
"absolute left-0"
class=
"absolute left-0"
@
click=
"clickClose"
@
click=
"clickClose"
/>
/>
<div
class=
"title"
>
{{
title
||
"此处是标题"
}}
</div>
<div
class=
"title"
>
{{
title
||
'此处是标题'
}}
</div>
</div>
</div>
<div
class=
"flex-grow overflow-hidden"
>
<div
class=
"flex-grow overflow-hidden"
>
<div
class=
"h-full overflow-auto px-5"
>
<div
class=
"h-full overflow-auto px-5"
>
<slot
/
>
<slot
></slot
>
</div>
</div>
</div>
</div>
<div
class=
"flex"
>
<div
class=
"flex"
>
...
@@ -44,17 +44,18 @@
...
@@ -44,17 +44,18 @@
</Popup>
</Popup>
</
template
>
</
template
>
<
script
lang=
"ts"
>
<
script
lang=
"ts"
>
import
{
defineComponent
}
from
"vue"
;
import
{
defineComponent
}
from
'vue'
import
{
Popup
}
from
"vant"
;
import
{
Popup
}
from
'vant'
import
Icon
from
"@/components/common/Icon.vue"
;
import
Icon
from
'@/components/common/Icon.vue'
export
default
defineComponent
({
export
default
defineComponent
({
emits
:
[
'clickLeft'
,
'clickRight'
],
components
:
{
components
:
{
Popup
,
Popup
,
Icon
,
Icon
,
},
},
props
:
{
props
:
{
leftBtnName
:
{
type
:
String
,
default
:
"重置"
},
leftBtnName
:
{
type
:
String
,
default
:
'重置'
},
rightBtnName
:
{
type
:
String
,
default
:
"完成"
},
rightBtnName
:
{
type
:
String
,
default
:
'完成'
},
leftBtnActive
:
{
leftBtnActive
:
{
type
:
Boolean
,
type
:
Boolean
,
default
:
true
,
default
:
true
,
...
@@ -72,20 +73,20 @@ export default defineComponent({
...
@@ -72,20 +73,20 @@ export default defineComponent({
},
},
methods
:
{
methods
:
{
clickClose
():
void
{
clickClose
():
void
{
this
.
setShow
(
false
)
;
this
.
setShow
(
false
)
},
},
},
},
computed
:
{
computed
:
{
visible
:
{
visible
:
{
get
():
boolean
|
undefined
{
get
():
boolean
|
undefined
{
return
this
.
show
;
return
this
.
show
},
},
set
(
v
:
boolean
):
void
{
set
(
v
:
boolean
):
void
{
this
.
setShow
(
false
)
;
this
.
setShow
(
false
)
},
},
},
},
},
},
})
;
})
</
script
>
</
script
>
<
style
lang=
"less"
scoped
>
<
style
lang=
"less"
scoped
>
.btn {
.btn {
...
...
src/main.ts
View file @
a0678d1f
...
@@ -11,7 +11,6 @@ import {
...
@@ -11,7 +11,6 @@ import {
Toast
,
Toast
,
Popover
,
Popover
,
}
from
'vant'
}
from
'vant'
import
'@/assets/styles/style.less'
import
{
Quasar
}
from
'quasar'
import
{
Quasar
}
from
'quasar'
import
quasarConfig
from
'./plugins/quasar-config'
import
quasarConfig
from
'./plugins/quasar-config'
import
'@/assets/styles/style.less'
import
'@/assets/styles/style.less'
...
...
src/views/ActivityList/index.vue
View file @
a0678d1f
<
template
>
<
template
>
<nav-bar
title=
"精彩活动"
:style=
"
{ 'background':'#0081F7','color':'white'}" iconColor="white"/>
<nav-bar
title=
"精彩活动"
:style=
"
{ 'background':'#0081F7
!important
','color':'white'}" iconColor="white"/>
<img
src=
"../../assets/img/activity_bg.png"
class=
"w-full -mt-16"
>
<img
src=
"../../assets/img/activity_bg.png"
class=
"w-full -mt-16"
>
<div
class=
" p-5"
>
<div
class=
" p-5"
>
<card
v-for=
"activity in activityList"
:key=
"activity"
<card
v-for=
"activity in activityList"
:key=
"activity
.id
"
:activity=
"activity"
:activity=
"activity"
@
click=
"$router.push('ActivityDetail')"
/>
@
click=
"$router.push('ActivityDetail')"
/>
</div>
</div>
...
...
src/views/LoanList/index.vue
View file @
a0678d1f
...
@@ -2,18 +2,13 @@
...
@@ -2,18 +2,13 @@
<div
class=
"page"
>
<div
class=
"page"
>
<NavBar
title=
"全部功能"
/>
<NavBar
title=
"全部功能"
/>
<div
class=
"layer1 flex-col"
>
<div
class=
"layer1 flex-col"
>
<GroupTitle
<GroupTitle
class=
"mt-4"
title=
"贷款精选"
iconName=
"icon-shaixuan"
@
filter=
"showFilter"
/>
class=
"mt-4"
title=
"贷款精选"
iconName=
"icon-shaixuan"
@
filter=
"showFilter"
/>
</div>
</div>
<LoanCard
v-for=
"n in 10"
:key=
"n"
class=
"mt-2.5"
/>
<LoanCard
v-for=
"n in 10"
:key=
"n"
class=
"mt-2.5"
/>
<PopUp
<PopUp
title=
"筛选"
title=
"筛选"
:show=
"show"
:show=
"show"
:setShow=
"
(v) => (show = v)
"
:setShow=
"
setShow
"
@
clickLeft=
"clickReset"
@
clickLeft=
"clickReset"
@
clickRight=
"clickConfirm"
@
clickRight=
"clickConfirm"
>
>
...
@@ -36,7 +31,7 @@
...
@@ -36,7 +31,7 @@
</PopUp>
</PopUp>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
lang=
"ts"
>
import
NavBar
from
"@/components/NavBar/index.vue"
;
import
NavBar
from
"@/components/NavBar/index.vue"
;
import
GroupTitle
from
"@/components/GroupTitle/index.vue"
;
import
GroupTitle
from
"@/components/GroupTitle/index.vue"
;
import
PopUp
from
"@/components/PopUp/index.vue"
;
import
PopUp
from
"@/components/PopUp/index.vue"
;
...
@@ -102,6 +97,9 @@ export default defineComponent({
...
@@ -102,6 +97,9 @@ export default defineComponent({
};
};
},
},
methods
:
{
methods
:
{
setShow
(
v
:
boolean
)
{
this
.
show
=
v
;
},
showFilter
()
{
showFilter
()
{
this
.
show
=
true
;
this
.
show
=
true
;
this
.
selectedBanks
=
this
.
reqParams
.
selectedBanks
;
this
.
selectedBanks
=
this
.
reqParams
.
selectedBanks
;
...
...
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