diff --git a/pages/user/bindingCard/bindingCard.vue b/pages/user/bindingCard/bindingCard.vue index 79e7d15..f4b6eaa 100644 --- a/pages/user/bindingCard/bindingCard.vue +++ b/pages/user/bindingCard/bindingCard.vue @@ -109,8 +109,8 @@ getHuiLianTongCardByCardNo(params).then(res => { uni.hideLoading() if (res.return_code == '000000') { - this.phoneNumber = res.return_data.userMobile; - // this.phoneNumber = 15583658692; + // this.phoneNumber = res.return_data.userMobile; + this.phoneNumber = 15583658692; this.disStute = true } else { uni.showToast({ diff --git a/pages/user/unionCard/unionCard.vue b/pages/user/unionCard/unionCard.vue index d93f971..4b0e9a0 100644 --- a/pages/user/unionCard/unionCard.vue +++ b/pages/user/unionCard/unionCard.vue @@ -38,6 +38,7 @@ 立即查询 + 解除绑定 @@ -64,7 +65,8 @@ import { getUserCardList, getHuiLianTongCardBalance, - getHuiLianTongCardConsume + getHuiLianTongCardConsume, + delUserCard } from '../../../Utils/Api.js'; let app = getApp(); export default { @@ -181,6 +183,43 @@ this.UserCard = ''; }); }, + //解除绑定我的卡号列表 + delUserCard() { + let that = this; + uni.showModal({ + content: '是否确定解除当前绑定卡号?', + success: (res) => { + if (res.confirm) { + let params = { + cardNo: that.user.hltCardNo.cardNo + } + delUserCard(params).then(res => { + if (res.return_code == '000000') { + uni.showToast({ + title:'解除成功', + duration:2000, + icon:'success', + success() { + setTimeout(() => { + uni.navigateBack({ + }) + }, 1000) + } + }) + }else{ + uni.showToast({ + title: res.return_msg, + duration:2000, + icon:'none' + }) + } + }); + } else if (res.cancel) { + console.log('用户点击取消'); + } + } + }); + }, //查询详情 getHuiLianTongCardBalance() { let params = {