Commit 908b25109dd725f85792144de6faea740071ba40
Merge branch 'dev' of http://git.vipzhuang.cn/wxd/MShopWeApp into dev
Showing
1 changed file
with
2 additions
and
2 deletions
pages/cart/cart2/cart2.js
@@ -946,7 +946,7 @@ Page({ | @@ -946,7 +946,7 @@ Page({ | ||
946 | await getApp().request.promiseGet("/api/weshop/areaFeemail/getAreaGoods",{ | 946 | await getApp().request.promiseGet("/api/weshop/areaFeemail/getAreaGoods",{ |
947 | data:{store_id:os.stoid,id:no_ex_id} | 947 | data:{store_id:os.stoid,id:no_ex_id} |
948 | }).then(res=>{ | 948 | }).then(res=>{ |
949 | - if(res.data.code==0){ | 949 | + if(res.data.code==0 && res.data.data && res.data.data.length>0){ |
950 | by_qc=res.data.data[0]; | 950 | by_qc=res.data.data[0]; |
951 | } | 951 | } |
952 | }) | 952 | }) |
@@ -1442,7 +1442,7 @@ Page({ | @@ -1442,7 +1442,7 @@ Page({ | ||
1442 | await getApp().request.promiseGet("/api/weshop/areaFeemail/getAreaGoods",{ | 1442 | await getApp().request.promiseGet("/api/weshop/areaFeemail/getAreaGoods",{ |
1443 | data:{store_id:os.stoid,id:no_ex_id} | 1443 | data:{store_id:os.stoid,id:no_ex_id} |
1444 | }).then(res=>{ | 1444 | }).then(res=>{ |
1445 | - if(res.data.code==0){ | 1445 | + if(res.data.code==0 && res.data.data && res.data.data.length>0){ |
1446 | no_by_data=res.data.data[0]; | 1446 | no_by_data=res.data.data[0]; |
1447 | //如果有设置不包邮区域的时候 | 1447 | //如果有设置不包邮区域的时候 |
1448 | if(res.data.data[0].region_list){ | 1448 | if(res.data.data[0].region_list){ |