|
|
|
@ -38,6 +38,7 @@ |
|
|
|
|
</view> |
|
|
|
|
</view> |
|
|
|
|
<view class="btnw94" @click="getHuiLianTongCardConsumeOpen()">立即查询</view> |
|
|
|
|
<view class="font14 fcor666 mart15 fotct" @click="delUserCard()">解除绑定</view> |
|
|
|
|
<view class="height22 backcorfff width100"></view> |
|
|
|
|
</view> |
|
|
|
|
<view class="width100 backcorfff mart10"> |
|
|
|
@ -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 = { |
|
|
|
|