Browse Source

修改支付接口传值

yy 3 years ago
parent
commit
bc5c35bd9b
1 changed files with 2 additions and 6 deletions
  1. 2 6
      src/views/PersonalCenter/ExaminationPayment.vue

+ 2 - 6
src/views/PersonalCenter/ExaminationPayment.vue

@ -144,11 +144,7 @@ export default {
144 144
    },
145 145
    check(row) {
146 146
      this.showMain = false;
147
      for(let item in this.tableData){
148
        if(row.uuid == this.tableData[item].uuid){
149
          this.form = this.tableData[item]
150
        }
151
      }
147
      this.form = row;
152 148
    },
153 149
    toPay() {
154 150
      if(this.payState == 'true'){
@ -161,7 +157,7 @@ export default {
161 157
        xhr.setRequestHeader('content-type', 'application/json;charset=UTF-8')
162 158
        xhr.setRequestHeader('Authorization', 'Bearer 1');
163 159
        var data = {
164
            enroll_id:'0b716740f24544939d40685c02333ddb'
160
          enroll_id: this.form.uuid
165 161
        };
166 162
        xhr.send(JSON.stringify(data));
167 163