Commit 8192fd18 authored by chenqikuai's avatar chenqikuai

fix: CCBFNS-29

parent de128a29
...@@ -9,7 +9,7 @@ import leftBg from "@/assets/img/left_bg.png"; ...@@ -9,7 +9,7 @@ import leftBg from "@/assets/img/left_bg.png";
import crown from "@/assets/img/crown.png"; import crown from "@/assets/img/crown.png";
import { useRoute } from "vue-router"; import { useRoute } from "vue-router";
import { queryLoanProductInfo } from "@/service/LoanProductService/index" import { queryLoanProductInfo } from "@/service/LoanProductService/index"
import { iLoanProdcutItem,eGuaranteeType } from "@/service/LoanProductService/type" import { iLoanProdcutItem, eGuaranteeType } from "@/service/LoanProductService/type"
import { filterGuaranteeType } from "@/utils/guarantee-type" import { filterGuaranteeType } from "@/utils/guarantee-type"
import { Skeleton } from "vant" import { Skeleton } from "vant"
import { iNearbyOutLet } from "@/service/AddressService/types" import { iNearbyOutLet } from "@/service/AddressService/types"
...@@ -42,41 +42,40 @@ export default defineComponent({ ...@@ -42,41 +42,40 @@ export default defineComponent({
const uuid = ref('') const uuid = ref('')
const min_amount = ref(0) const min_amount = ref(0)
const max_amount = ref(0) const max_amount = ref(0)
const rate_lower= ref(0) const rate_lower = ref(0)
const rate_upper= ref(0) const rate_upper = ref(0)
const inst_name= ref('') const inst_name = ref('')
const product_name= ref('') const product_name = ref('')
const min_date= ref(0) const min_date = ref(0)
const max_date= ref(0) const max_date = ref(0)
const guarantee_type = ref(eGuaranteeType.credit) const guarantee_type = ref(eGuaranteeType.credit)
const products= ref('') const products = ref('')
const features= ref('') const features = ref('')
const apply_to= ref('') const apply_to = ref('')
const apply_cond= ref('') const apply_cond = ref('')
const submit_cond= ref('') const submit_cond = ref('')
const state = reactive({ const state = reactive({
outletList: [] as iNearbyOutLet[], outletList: [] as iNearbyOutLet[],
loading: false, loading: false,
}) })
const fetchBranch = async () => const fetchBranch = async () => {
{ state.loading = true;
state.loading = true; const ret = await AddressService.getInstance().getNearby({
const ret = await AddressService.getInstance().getNearby({ bank_code: Number(process.env.VUE_APP_BANK_CODE),
bank_code: Number(process.env.VUE_APP_BANK_CODE), number: 1,
number: 1, })
}) if (ret.code === 200) {
if (ret.code === 200) { state.outletList = ret.data;
state.outletList = ret.data; console.log(state.outletList[0]);
console.log(state.outletList[0]); }
} state.loading = false;
state.loading = false; }
}
onMounted(() => { onMounted(() => {
uuid.value = useRoute().params.uuid as string uuid.value = useRoute().params.uuid as string
queryLoanProductInfo({uuid:uuid.value}).then((ret)=>{ queryLoanProductInfo({ uuid: uuid.value }).then((ret) => {
if(ret.code === 200){ if (ret.code === 200) {
console.log(ret); console.log(ret);
const productItem = ret.data const productItem = ret.data
min_amount.value = productItem.min_amount min_amount.value = productItem.min_amount
...@@ -95,7 +94,7 @@ export default defineComponent({ ...@@ -95,7 +94,7 @@ export default defineComponent({
submit_cond.value = productItem.submit_cond submit_cond.value = productItem.submit_cond
} }
fetchBranch() fetchBranch()
}) })
const barEle = document.querySelector(".theBar"); const barEle = document.querySelector(".theBar");
...@@ -116,8 +115,8 @@ export default defineComponent({ ...@@ -116,8 +115,8 @@ export default defineComponent({
<div class="group1 flex-col"> <div class="group1 flex-col">
<NavBar <NavBar
title={"产品详情"} title={"产品详情"}
iconColor="white" iconColor={canSeeApplyBtn.value ? "white" : 'black'}
style={{ 'background':' #2C3C92 !important', 'color': 'white' }} style={{ 'background': canSeeApplyBtn.value ? '#2C3C92 !important' : 'white !important', 'color': canSeeApplyBtn.value ? 'white' : 'black' }}
showSecondIcon={true} showSecondIcon={true}
occupyPosition={false} occupyPosition={false}
/> />
...@@ -226,10 +225,10 @@ export default defineComponent({ ...@@ -226,10 +225,10 @@ export default defineComponent({
</div> </div>
</div> </div>
</div> </div>
<LoanDetailDescribe class=" mt-5" products={products.value} features={features.value} apply_to={apply_to.value} apply_cond={apply_cond.value} submit_cond={submit_cond.value}/> <LoanDetailDescribe class=" mt-5" products={products.value} features={features.value} apply_to={apply_to.value} apply_cond={apply_cond.value} submit_cond={submit_cond.value} />
<div class="title mx-5 mt-5" >营业网点</div> <div class="title mx-5 mt-5" >营业网点</div>
<Skeleton loading={state.loading} row={4} class="mt-2"> <Skeleton loading={state.loading} row={4} class="mt-2">
{ state.outletList[0]&&( {state.outletList[0] && (
<branch <branch
class="my-3 mx-5" class="my-3 mx-5"
name={state.outletList[0].name} name={state.outletList[0].name}
...@@ -244,7 +243,7 @@ export default defineComponent({ ...@@ -244,7 +243,7 @@ export default defineComponent({
/> />
) )
} }
</Skeleton> </Skeleton>
</div> </div>
<div class="h-12"></div> <div class="h-12"></div>
<transition name="fade" mode="out-in"> <transition name="fade" mode="out-in">
......
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