Commit 9c7af2e6c6029844a451f2a7bed7d71dc7200998
1 parent
8f3c1a58
获取取消支付元婴
Showing
1 changed file
with
6 additions
and
3 deletions
src/pages/myGiftBox/myGiftBox.vue
| @@ -425,14 +425,17 @@ export default { | @@ -425,14 +425,17 @@ export default { | ||
| 425 | this.actionSheetShow = true; | 425 | this.actionSheetShow = true; |
| 426 | // 解构数据 | 426 | // 解构数据 |
| 427 | let { data: datas } = res; | 427 | let { data: datas } = res; |
| 428 | - this.actions = datas.group; | 428 | + // this.actions = datas.group; |
| 429 | // 获取到的数组存到this.actions中去 | 429 | // 获取到的数组存到this.actions中去 |
| 430 | if (datas.group && datas.group.length > 0) { | 430 | if (datas.group && datas.group.length > 0) { |
| 431 | - for (let item in datas.group) { | 431 | + for (let i=0; i<datas.group.length; i++) { |
| 432 | + var obj = {} | ||
| 433 | + obj.name = datas.group[i] | ||
| 432 | // push到新数组中 | 434 | // push到新数组中 |
| 433 | - this.actions.push({ name: item }); | 435 | + this.actions.push(obj); |
| 434 | } | 436 | } |
| 435 | } | 437 | } |
| 438 | + console.log(this.actions); | ||
| 436 | } | 439 | } |
| 437 | }, | 440 | }, |
| 438 | // 跳转原声支付 | 441 | // 跳转原声支付 |