xujing 5 lat temu
rodzic
commit
0896eecc7f
1 zmienionych plików z 14 dodań i 0 usunięć
  1. 14
    0
      src/onlineSelling/pages/detail/index.js

+ 14
- 0
src/onlineSelling/pages/detail/index.js Wyświetl plik

48
           houseDetail: !res ? {} : res,
48
           houseDetail: !res ? {} : res,
49
           buildingImgList: (res && res.buildingImgList) || []
49
           buildingImgList: (res && res.buildingImgList) || []
50
         })
50
         })
51
+      }).catch(err => {
52
+        Taro.hideToast()
53
+        if (err.message) {
54
+          Taro.showToast({
55
+            title: err.message,
56
+            icon: 'none',
57
+            duration: 3000
58
+          })
59
+          setTimeout(() => {
60
+            Taro.navigateBack({
61
+              delta: 1
62
+            })
63
+          }, 3000)
64
+        }
51
       })
65
       })
52
 
66
 
53
     })
67
     })