diff --git a/pages/settlement/withdrawal/index.js b/pages/settlement/withdrawal/index.js index 1a4fad3..c982c4c 100644 --- a/pages/settlement/withdrawal/index.js +++ b/pages/settlement/withdrawal/index.js @@ -103,7 +103,7 @@ Page({ }, onConfirm: function({detail}){ var nowItem = this.data.banckCardList[detail.index] - console.log(nowItem) + // console.log(nowItem) this.data.chooseBankCard.cardName = nowItem.bankName + '(' + nowItem.cardNoSuffix + '-' + nowItem.ownerName + ')' this.data.chooseBankCard.cardId = nowItem.id this.setData({ visible: false, chooseBankCard: this.data.chooseBankCard }) @@ -123,7 +123,7 @@ Page({ wx.showLoading({ title: '加载中', mask: true }) paymentOrder({ factoryPermittedBankId: this.data.chooseBankCard.cardId, ids: this.data.checkIds }).then(res => { wx.hideLoading() - if(res.data.markedWords){ + if(res.data && res.data.markedWords){ Dialog.alert({ title: '温馨提示', message: res.data.markedWords }).then(() => { wx.navigateBack() })