diff --git a/pages/exchangeCard/exchangeCard.js b/pages/exchangeCard/exchangeCard.js index 62b3dd7..bdfbd64 100644 --- a/pages/exchangeCard/exchangeCard.js +++ b/pages/exchangeCard/exchangeCard.js @@ -29,7 +29,7 @@ Page({ this.setData({ code: code }) - this.getCardDetail(code) + this.getCardDetailOrGoGive(code) }, // 更改手机号 @@ -123,7 +123,7 @@ Page({ }, /** 根据卡id查询卡详情*/ - getCardDetail(cardId, goGive) { + getCardDetailOrGoGive(cardId, goGive) { const that = this Http.get({ url: config.api.getCardDetail, @@ -216,7 +216,7 @@ Page({ }, goGive() { - this.getCardDetail(this.data.code, true) + this.getCardDetailOrGoGive(this.data.code, true) }, // 检查用户登录状态