Commit aea996db authored by Zhang Xiaojie's avatar Zhang Xiaojie

fix:ui

parent 23d14d85
...@@ -86,7 +86,7 @@ import { ...@@ -86,7 +86,7 @@ import {
} from "@/service/LoanProductService/index"; } from "@/service/LoanProductService/index";
import { simpleItemInfo } from "@/views/withMenu/Loan/types"; import { simpleItemInfo } from "@/views/withMenu/Loan/types";
import { iLoanProdcutItem } from "@/service/LoanProductService/type"; import { iLoanProdcutItem } from "@/service/LoanProductService/type";
import { Skeleton,Toast } from "vant"; import { Skeleton, Toast } from "vant";
import { import {
loanSearchState, loanSearchState,
setSearchResult, setSearchResult,
...@@ -101,7 +101,7 @@ export default defineComponent({ ...@@ -101,7 +101,7 @@ export default defineComponent({
LoanCard, LoanCard,
LoanFilter, LoanFilter,
Skeleton, Skeleton,
Toast Toast,
}, },
setup() { setup() {
const mode = ref(+useRoute().params.mode); const mode = ref(+useRoute().params.mode);
...@@ -241,11 +241,13 @@ export default defineComponent({ ...@@ -241,11 +241,13 @@ export default defineComponent({
checkInterstValid(): boolean { checkInterstValid(): boolean {
let isValid = true; let isValid = true;
if (this.max && this.min) { if (this.max && this.min) {
if (this.max <= this.min) {
isValid = false; isValid = false;
if (this.max <= this.min) Toast.fail("最高利率必须大于最低利率"); Toast.fail("最高利率必须大于最低利率");
} else { } else {
isValid = true; isValid = true;
} }
}
return isValid; return isValid;
}, },
checkAmountValid(): boolean { checkAmountValid(): boolean {
...@@ -305,7 +307,7 @@ export default defineComponent({ ...@@ -305,7 +307,7 @@ export default defineComponent({
min2: this.min2, min2: this.min2,
max2: this.max2, max2: this.max2,
}; };
if(this.checkAmountValid() && this.checkInterstValid()){ if (this.checkAmountValid() && this.checkInterstValid()) {
this.queryList(); this.queryList();
this.show = false; this.show = false;
} }
......
...@@ -24,11 +24,16 @@ ...@@ -24,11 +24,16 @@
</div> </div>
</div> </div>
<div class="main8 flex-col" v-if="eLoanMode.personal === mode"> <div class="main8 flex-col" v-if="eLoanMode.personal === mode">
<div class="outer4 flex-row"> <div class=" text-white text-lg flex items-center mt-5 justify-center">
<div class=" border-b border-white w-14 mr-4 border-opacity-25"></div>
个人小额借款(元)
<div class=" border-b border-white w-14 ml-4 border-opacity-25"></div>
</div>
<!-- <div class="outer4 flex-row">
<div class="outer5 flex-col"></div> <div class="outer5 flex-col"></div>
<span class="word26">个人小额借款(元)</span> <span class="word26">个人小额借款(元)</span>
<div class="outer6 flex-col"></div> <div class="outer6 flex-col"></div>
</div> </div> -->
<div class="outer7 flex-row"> <div class="outer7 flex-row">
<div class="section8 flex-col"> <div class="section8 flex-col">
<span class="paragraph1"> <span class="paragraph1">
......
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