|
|
@@ -273,22 +273,29 @@ function isImage(postfix) {
|
|
|
return imageTypes.includes(postfix.toLowerCase());
|
|
|
}
|
|
|
|
|
|
-function getProperty() {
|
|
|
+function getProperty(count = 0) {
|
|
|
let sa_customersid = uni.getStorageSync('userRecord').sa_customersid || 0
|
|
|
- if (sa_customersid) $Http.basic({
|
|
|
- id: 2025082115363003,
|
|
|
- content: {
|
|
|
- sa_customersid,
|
|
|
- pageSize: 9999
|
|
|
- }
|
|
|
- }).then(res => {
|
|
|
- console.log('个人资产', res);
|
|
|
- if (res.code == 1) assetsList.value = res.data.map(v => {
|
|
|
- //判断是否过保 当前的时间是否在 v.begdate 与 v.enddate 的之间
|
|
|
- v.isUnderWarranty = new Date() >= new Date(v.begdate) && new Date() <= new Date(v.enddate);
|
|
|
- return v
|
|
|
- });
|
|
|
- })
|
|
|
+ if (sa_customersid) {
|
|
|
+ $Http.basic({
|
|
|
+ id: 2025082115363003,
|
|
|
+ content: {
|
|
|
+ sa_customersid,
|
|
|
+ pageSize: 9999
|
|
|
+ }
|
|
|
+ }).then(res => {
|
|
|
+ console.log('个人资产', res);
|
|
|
+ if (res.code == 1) assetsList.value = res.data.map(v => {
|
|
|
+ //判断是否过保 当前的时间是否在 v.begdate 与 v.enddate 的之间
|
|
|
+ v.isUnderWarranty = new Date() >= new Date(v.begdate) && new Date() <= new Date(v.enddate);
|
|
|
+ return v
|
|
|
+ });
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ if (count == 5) return;
|
|
|
+ setTimeout(() => {
|
|
|
+ getProperty(count + 1);
|
|
|
+ }, 500);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
function logOut() {
|