Commit a0678d1f authored by chenqikuai's avatar chenqikuai

save

parent 9df498dd
...@@ -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 {
......
...@@ -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'
......
<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>
......
...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment