Commit c7efa747aa4644c9eb30fcb376e3a4f6aeb692f8
1 parent
6aca38b7
物流关闭设置时的bug优化,会员本身有默认的物流的时候
Showing
3 changed files
with
4 additions
and
4 deletions
packageC/pages/luckyGo/luckyGo_cart/luckyGo_cart.js
... | ... | @@ -655,7 +655,7 @@ Page({ |
655 | 655 | |
656 | 656 | //-----------拼装购物车结算的数组,如果有默认物流时要用默认物流编号,计算默认的物流,不管是不是自提都算一下----------------- |
657 | 657 | var m_wind = 0, def_exp_code = getApp().globalData.userInfo.def_exp_code; |
658 | - if (def_exp_code && !th.data.is_default_logistics ) { | |
658 | + if (def_exp_code && !th.data.is_default_logistics && th.data.wu_arr ) { | |
659 | 659 | for (var k = 0; k < th.data.wu_arr.length; k++) { |
660 | 660 | var item = th.data.wu_arr[k]; |
661 | 661 | if (def_exp_code == item.code) { | ... | ... |
packageC/pages/payForAnother/payForAnother.js
... | ... | @@ -601,7 +601,7 @@ Page({ |
601 | 601 | |
602 | 602 | //-----------拼装购物车结算的数组,如果有默认物流时要用默认物流编号,计算默认的物流,不管是不是自提都算一下----------------- |
603 | 603 | var m_wind = 0, def_exp_code = getApp().globalData.userInfo.def_exp_code; |
604 | - if (def_exp_code && !th.data.is_default_logistics) { | |
604 | + if (def_exp_code && !th.data.is_default_logistics && th.data.wu_arr) { | |
605 | 605 | for (var k = 0; k < th.data.wu_arr.length; k++) { |
606 | 606 | var item = th.data.wu_arr[k]; |
607 | 607 | if (def_exp_code == item.code) { | ... | ... |
packageE/pages/cart/cart2/cart2.js
... | ... | @@ -1072,7 +1072,7 @@ Page({ |
1072 | 1072 | |
1073 | 1073 | //-----------拼装购物车结算的数组,如果有默认物流时要用默认物流编号,计算默认的物流,不管是不是自提都算一下----------------- |
1074 | 1074 | var m_wind = 0, def_exp_code = getApp().globalData.userInfo.def_exp_code; |
1075 | - if (def_exp_code && !th.data.is_default_logistics) { | |
1075 | + if (def_exp_code && !th.data.is_default_logistics && th.data.wu_arr) { | |
1076 | 1076 | for (var k = 0; k < th.data.wu_arr.length; k++) { |
1077 | 1077 | var item = th.data.wu_arr[k]; |
1078 | 1078 | if (def_exp_code == item.code) { |
... | ... | @@ -1150,7 +1150,7 @@ Page({ |
1150 | 1150 | |
1151 | 1151 | //-----------拼装购物车结算的数组,如果有默认物流时要用默认物流编号,计算默认的物流,不管是不是自提都算一下----------------- |
1152 | 1152 | var m_wind = 0, def_exp_code = getApp().globalData.userInfo.def_exp_code; |
1153 | - if (def_exp_code && !th.data.is_default_logistics) { | |
1153 | + if (def_exp_code && !th.data.is_default_logistics && th.data.wu_arr) { | |
1154 | 1154 | for (var k = 0; k < th.data.wu_arr.length; k++) { |
1155 | 1155 | var item = th.data.wu_arr[k]; |
1156 | 1156 | if (def_exp_code == item.code) { | ... | ... |