From d34e9db37b5f0d1f129d0860fcb0f734407a5b5e Mon Sep 17 00:00:00 2001 From: yangsanTT <812952667@qq.com> Date: Thu, 9 Sep 2021 20:39:20 +0800 Subject: [PATCH] =?UTF-8?q?1.=E5=AF=B9=E6=8E=A5=E8=A7=A3=E9=99=A4=E7=BB=91?= =?UTF-8?q?=E5=AE=9A=E5=8D=A1=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/user/bindingCard/bindingCard.vue | 4 +-- pages/user/unionCard/unionCard.vue | 41 +++++++++++++++++++++++++- 2 files changed, 42 insertions(+), 3 deletions(-) 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 = {