Commit 959bf6f4d8da4f3daf80ddd3be53cacd566ec925
1 parent
df0b1e16
更新阶梯团的状态,
Showing
1 changed file
with
3 additions
and
4 deletions
pages/goods/goodsInfo/goodsInfo.js
| ... | ... | @@ -1475,7 +1475,7 @@ Page({ |
| 1475 | 1475 | if (odr.pt_status == 1 && odr.order_status == 1) { |
| 1476 | 1476 | if (odr.is_zsorder == 4){ |
| 1477 | 1477 | getApp().request.promiseGet("/api/weshop/teamgroup/page/", { |
| 1478 | - data: { store_id: oo.stoid, team_id: odr.pt_prom_id, listno: odr.pt_listno } | |
| 1478 | + data: { store_id: os.stoid, team_id: odr.pt_prom_id, listno: odr.pt_listno } | |
| 1479 | 1479 | }).then(res => { |
| 1480 | 1480 | var now=ut.gettimestamp(); |
| 1481 | 1481 | var tgr = res.data.data.pageData[0]; |
| ... | ... | @@ -1487,7 +1487,6 @@ Page({ |
| 1487 | 1487 | user_order_pt_state: 2 |
| 1488 | 1488 | }); |
| 1489 | 1489 | } |
| 1490 | - | |
| 1491 | 1490 | }) |
| 1492 | 1491 | |
| 1493 | 1492 | }else{ |
| ... | ... | @@ -2601,11 +2600,11 @@ Page({ |
| 2601 | 2600 | getApp().request.put("/api/weshop/teamgroup/updateTeamOrder/"+os.stoid+"/"+id, { |
| 2602 | 2601 | success: function (ee) { |
| 2603 | 2602 | //--等于0是要去支付尾款,接口调用失败,就要去查看参团详情-- |
| 2604 | - if (ee.code==0) { | |
| 2603 | + if (ee.data.code==0) { | |
| 2605 | 2604 | th.setData({ |
| 2606 | 2605 | user_order_pt_state: 3, |
| 2607 | 2606 | }); |
| 2608 | - }else if(ee.code==-1){ | |
| 2607 | + }else if(ee.data.code==-1){ | |
| 2609 | 2608 | th.setData({ |
| 2610 | 2609 | user_order_pt_state: 2, |
| 2611 | 2610 | }); | ... | ... |