Commit 93b04b06 authored by Zhang Xiaojie's avatar Zhang Xiaojie

fix:避免查询空uuid

parent 2ef4f9e7
...@@ -17,6 +17,7 @@ ...@@ -17,6 +17,7 @@
/> />
<Skeleton :loading="skeLoading" :row="3" class="mt-2"> <Skeleton :loading="skeLoading" :row="3" class="mt-2">
<LoanCard <LoanCard
v-if="product_name"
:max_amount="max_amount" :max_amount="max_amount"
:product_name="product_name" :product_name="product_name"
:features="features" :features="features"
...@@ -187,16 +188,17 @@ export default defineComponent({ ...@@ -187,16 +188,17 @@ export default defineComponent({
this.skeLoading = false; this.skeLoading = false;
this.hotLoanUuid = ret.data.uuid[0]; this.hotLoanUuid = ret.data.uuid[0];
const uuid = this.hotLoanUuid; const uuid = this.hotLoanUuid;
queryLoanProductInfo({ uuid }).then((ret) => { if(uuid){
console.log("uuid", uuid); queryLoanProductInfo({ uuid }).then((ret) => {
console.log("uuid", uuid);
if (ret.code === 200) { if (ret.code === 200) {
this.max_amount = ret.data.max_amount; this.max_amount = ret.data.max_amount;
this.inst_name = ret.data.inst_name; this.inst_name = ret.data.inst_name;
this.product_name = ret.data.product_name; this.product_name = ret.data.product_name;
this.features = ret.data.features; this.features = ret.data.features;
} }
}); });
}
} }
}, },
}, },
......
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