张延森 5 years ago
parent
commit
bac638bbeb

+ 2
- 5
src/onlineSelling/pages/raiseMoney/index.js View File

72
       } = this.$router.params
72
       } = this.$router.params
73
 
73
 
74
       if (!salesBatchId && !raiseRecordId) {
74
       if (!salesBatchId && !raiseRecordId) {
75
-        Taro.showToast({
76
-          title: '错误, 请返回上一步',
77
-          icon: 'none',
78
-        })
75
+        this.setState({ current: 4, failInfo: { title: '认筹失败', desc: '未确定批次或者认筹单记录' } })
79
         return;
76
         return;
80
       }
77
       }
81
 
78
 
104
 
101
 
105
       // 销售批次已被取消发布
102
       // 销售批次已被取消发布
106
       if (res.status != 1) {
103
       if (res.status != 1) {
107
-        this.setState({ current: 4, failInfo: { title: '认筹失败', desc: '销售批次已被取消发布' } })  
104
+        this.setState({ current: 4, failInfo: { title: '认筹失败', desc: '销售批次已被取消发布' } })
108
       }
105
       }
109
 
106
 
110
       // 不在认筹时间内
107
       // 不在认筹时间内

+ 2
- 2
src/onlineSelling/pages/records/index.js View File

133
   }
133
   }
134
 
134
 
135
   handleSubmit = () => {
135
   handleSubmit = () => {
136
-    const { recordList, chooseList, salesBatchId } = this.state
136
+    const { recordList, chooseList } = this.state
137
     if (!chooseList.length) {
137
     if (!chooseList.length) {
138
       Taro.showToast({ title: '请选择房源', icon: 'none' })
138
       Taro.showToast({ title: '请选择房源', icon: 'none' })
139
       return;
139
       return;
153
     this.props.dispatchFlush2Cart(houseList);
153
     this.props.dispatchFlush2Cart(houseList);
154
 
154
 
155
     Taro.navigateTo({
155
     Taro.navigateTo({
156
-      url: `/onlineSelling/pages/raiseMoney/index?salesBatchId=${salesBatchId}`
156
+      url: `/onlineSelling/pages/raiseMoney/index?salesBatchId=${checkHouse.salesBatchId}`
157
     })
157
     })
158
   }
158
   }
159
 
159