commit
Showing
1 changed file
with
14 additions
and
14 deletions
| ... | @@ -327,22 +327,22 @@ | ... | @@ -327,22 +327,22 @@ |
| 327 | </el-form> | 327 | </el-form> |
| 328 | </el-col> | 328 | </el-col> |
| 329 | <el-col :span="8"> | 329 | <el-col :span="8"> |
| 330 | <el-form ref="deleteClues" :model="deleteClues" label-width="0px"> | 330 | <el-form ref="updateBe" :model="updateBe" label-width="0px"> |
| 331 | <el-card class="darkred" shadow="always"> | 331 | <el-card class="darkred" shadow="always"> |
| 332 | <div slot="header" class="clearfix"> | 332 | <div slot="header" class="clearfix"> |
| 333 | <span>删除线索</span> | 333 | <span>充值健康币</span> |
| 334 | </div> | 334 | </div> |
| 335 | <div class="text item"> | 335 | <div class="text item"> |
| 336 | <el-form-item> | 336 | <el-form-item> |
| 337 | <el-input placeholder="代理人UID" v-model="deleteClues.agentUid" clearable></el-input> | 337 | <el-input placeholder="请输入手机号" v-model="updateBe.phone" clearable></el-input> |
| 338 | </el-form-item> | 338 | </el-form-item> |
| 339 | <div style="margin: 15px 0;"></div> | 339 | <div style="margin: 15px 0;"></div> |
| 340 | <el-form-item> | 340 | <el-form-item> |
| 341 | <el-input placeholder="该代理人名下的健康坊用户UID" v-model="deleteClues.customUid" clearable></el-input> | 341 | <el-input placeholder="请输入健康币充值数量" v-model="updateBe.chongzhi" clearable></el-input> |
| 342 | </el-form-item> | 342 | </el-form-item> |
| 343 | <div style="margin: 15px 0;"></div> | 343 | <div style="margin: 15px 0;"></div> |
| 344 | <el-form-item> | 344 | <el-form-item> |
| 345 | <el-button round @click="onSubmit">删除线索</el-button> | 345 | <el-button round @click="onSubmit">充值</el-button> |
| 346 | </el-form-item> | 346 | </el-form-item> |
| 347 | </div> | 347 | </div> |
| 348 | </el-card> | 348 | </el-card> |
| ... | @@ -445,9 +445,9 @@ | ... | @@ -445,9 +445,9 @@ |
| 445 | export default { | 445 | export default { |
| 446 | data() { | 446 | data() { |
| 447 | return { | 447 | return { |
| 448 | deleteClues: { | 448 | updateBe: { |
| 449 | agentUid: '', | 449 | phone: '', |
| 450 | customUid: '' | 450 | chongzhi: '' |
| 451 | }, | 451 | }, |
| 452 | bizData: { | 452 | bizData: { |
| 453 | myData: '', | 453 | myData: '', |
| ... | @@ -616,21 +616,21 @@ | ... | @@ -616,21 +616,21 @@ |
| 616 | 'Content-Type': 'application/x-www-form-urlencoded' | 616 | 'Content-Type': 'application/x-www-form-urlencoded' |
| 617 | } | 617 | } |
| 618 | } | 618 | } |
| 619 | this.$http.get('/tool/money/delete?'+this.$qs.stringify({ | 619 | this.$http.get('/tool/updateBe?'+this.$qs.stringify({ |
| 620 | uid: this.deleteClues.agentUid, | 620 | phone: this.updateBe.phone, |
| 621 | ref_id: this.deleteClues.customUid | 621 | be: this.updateBe.chongzhi |
| 622 | }),config).then((res)=>{ | 622 | }),config).then((res)=>{ |
| 623 | console.log(res); | 623 | console.log(res); |
| 624 | if(res.data=='success') { | 624 | if(res.data=='success') { |
| 625 | this.$message({ | 625 | this.$message({ |
| 626 | showClose: true, | 626 | showClose: true, |
| 627 | message: '删除线索成功', | 627 | message: '充值成功', |
| 628 | type: 'success' | 628 | type: 'success' |
| 629 | }); | 629 | }); |
| 630 | } else { | 630 | } else if(res.data=='usernull') { |
| 631 | this.$message({ | 631 | this.$message({ |
| 632 | showClose: true, | 632 | showClose: true, |
| 633 | message: '删除线索失败', | 633 | message: '用户手机号不存在', |
| 634 | type: 'error' | 634 | type: 'error' |
| 635 | }); | 635 | }); |
| 636 | } | 636 | } | ... | ... |
-
Please register or sign in to post a comment