Commit 9c7af2e6c6029844a451f2a7bed7d71dc7200998

Authored by zhiyangdu
1 parent 8f3c1a58

获取取消支付元婴

src/pages/myGiftBox/myGiftBox.vue
... ... @@ -425,14 +425,17 @@ export default {
425 425 this.actionSheetShow = true;
426 426 // 解构数据
427 427 let { data: datas } = res;
428   - this.actions = datas.group;
  428 + // this.actions = datas.group;
429 429 // 获取到的数组存到this.actions中去
430 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 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 // 跳转原声支付
... ...