浏览代码

支付绑定

panhui 4 年之前
父节点
当前提交
5a31a5a415
共有 2 个文件被更改,包括 2 次插入4 次删除
  1. 1 1
      src/views/user/Banks.vue
  2. 1 3
      src/views/user/BanksAdd.vue

+ 1 - 1
src/views/user/Banks.vue

@@ -101,7 +101,7 @@ export default {
                 forbidClick: true
             });
             this.$http
-                .post('/user/removeBankCard')
+                .post('/userBankCard/unbind')
                 .then(res => {
                     this.$toast.success('解绑成功');
                     this.getBank();

+ 1 - 3
src/views/user/BanksAdd.vue

@@ -98,11 +98,9 @@ export default {
                 .post('/userBankCard/bindCard?phone=' + this.form.phone + '&bankNo=' + bankNo)
                 .then(res => {
                     this.bindCardId = res.bindCardId;
-                    return this.$http.post('/userBankCard/bindCardCaptcha?bindCardId=' + res.bindCardId);
-                })
-                .then(() => {
                     this.$toast.success('发送成功');
                     this.$refs.code.init();
+                    // return this.$http.post('/userBankCard/bindCardCaptcha?bindCardId=' + res.bindCardId);
                 })
                 .catch(e => {
                     this.$toast(e.error);