张延森 vor 3 Jahren
Ursprung
Commit
39b9421a60

+ 4
- 0
src/pages/mine/mortgageCalc/components/Result.jsx Datei anzeigen

@@ -50,10 +50,13 @@ export default (props) => {
50 50
     if (!dataSource[0] && !dataSource[1]) return;
51 51
 
52 52
     if (isMixed) {
53
+      // console.log('------dataSource[0]------>', dataSource[0])
54
+      // console.log('------dataSource[1]------>', dataSource[1])
53 55
       //
54 56
       const bj = {
55 57
         summary: {
56 58
           money: dataSource[0].bj.summary.money + dataSource[1].bj.summary.money,
59
+          moneyOfFirstMonth: dataSource[0].bj.summary.moneyOfFirstMonth + dataSource[1].bj.summary.moneyOfFirstMonth,
57 60
           totalRate: dataSource[0].bj.summary.totalRate + dataSource[1].bj.summary.totalRate,
58 61
           totalMoney: dataSource[0].bj.summary.totalMoney + dataSource[1].bj.summary.totalMoney,
59 62
         },
@@ -62,6 +65,7 @@ export default (props) => {
62 65
       const bx = {
63 66
         summary: {
64 67
           money: dataSource[0].bx.summary.money + dataSource[1].bx.summary.money,
68
+          moneyOfFirstMonth: dataSource[0].bx.summary.moneyOfFirstMonth + dataSource[1].bx.summary.moneyOfFirstMonth,
65 69
           totalRate: dataSource[0].bx.summary.totalRate + dataSource[1].bx.summary.totalRate,
66 70
           totalMoney: dataSource[0].bx.summary.totalMoney + dataSource[1].bx.summary.totalMoney,
67 71
         },

+ 4
- 0
src/pages/mine/mortgageCalc/index.jsx Datei anzeigen

@@ -48,6 +48,8 @@ export default withLayout(() => {
48 48
       }
49 49
     }
50 50
 
51
+    Taro.showLoading()
52
+
51 53
     setLoading(true)
52 54
     const syResult = {}
53 55
     const gjjResult = {}
@@ -62,6 +64,8 @@ export default withLayout(() => {
62 64
     }
63 65
     setLoading(false)
64 66
 
67
+    Taro.hideLoading()
68
+
65 69
     const res = [undefined, undefined]
66 70
     if (current !== 2) {
67 71
       res[0] = syResult