diff --git a/pages/cart/cart2/cart2.js b/pages/cart/cart2/cart2.js index 46b7daf..12434fd 100644 --- a/pages/cart/cart2/cart2.js +++ b/pages/cart/cart2/cart2.js @@ -82,6 +82,7 @@ Page({ expres_name:"",//点击选定 isopen:0,//券的说明 is_coupon:0,//选择券的控制属性 + is_shipping_code:"",//插入用户默认地址 }, onLoad: function(t) { @@ -153,7 +154,7 @@ Page({ var th = this; to.getwuliu(function (e) { console.log("ws"); - console.log(e); + console.log("物流的数据77777777777777",e); th.setData({ wu_arr: e }) typeof func == "function" && func(); }) @@ -349,6 +350,7 @@ Page({ }) if(frozenQuan){ + console.log("券列表111111111111111111",arr[ind].quan_list); arr[ind].quan_list=th.check_is_frozenQuan(arr[ind].quan_list,frozenQuan); } @@ -407,6 +409,7 @@ Page({ }).then(res=>{ if(res.data.code==0) quanlist=res.data.data.pageData; + console.log("22222222222222222222券的列表", quanlist); }) } @@ -425,7 +428,7 @@ Page({ t.data.data.prom_id = 0; t.data.data.prom_type = 0; - console.log("44444444444444券的列表", quanlist); + th.setData({ bn_goods: t.data.data, bn_pickname: gg.pick_name, bn_exp_type: et, bn_pick: gg.pick_id, bn_t_exp_t: distr_t,selected_quan_list:quanlist @@ -456,6 +459,7 @@ Page({ }).then(res=>{ if(res.data.code==0) quanlist=res.data.data.pageData; + console.log("券接口的列表333333333333333",quanlist); }) var frozenQuan=null; @@ -1079,6 +1083,10 @@ Page({ //--------立即购买时,选择自提和物流----------- setexptype_w:function(t){ + + var uerinfo= getApp().globalData.userInfo.def_exp_code; + + console.log(getApp().globalData.userInfo, "获取默认的物流地址", uerinfo ); var th=this; var ty = t.currentTarget.dataset.t, txt = t.currentTarget.dataset.txt, ont = t.currentTarget.dataset.ont; @@ -1096,10 +1104,24 @@ Page({ th.setData({ is_all_zt: iszt }); } + //判断有没有默认的物流地址值 + if (uerinfo != "" && uerinfo != null && uerinfo !=undefined) { + var wu_arr=this.data.wu_arr; + if (wu_arr!= null && wu_arr!=""){ + for(var i=0;i - + 自提 - + 物流 + {{wu_arr[index].name}} + @@ -463,7 +465,7 @@ - + Γ @@ -479,8 +481,8 @@ 确定 - - 设为默认 + + 设为默认 diff --git a/pages/goods/categoryList/categoryList.js b/pages/goods/categoryList/categoryList.js index 2d17669..9afd7b3 100644 --- a/pages/goods/categoryList/categoryList.js +++ b/pages/goods/categoryList/categoryList.js @@ -36,7 +36,8 @@ Page({ brand_list:null,//品牌列表 one_level_classify:[],// 新的版本左边的边分类1级 - is_level_three:0//判断有没有3级 + is_level_three:0,//判断有没有3级 + cat_id:0, }, onLoad: function(tt) { const res = wx.getSystemInfoSync(), @@ -461,7 +462,7 @@ Page({ } } - this.setData({ select_classify_on: indexs, index: indexs, classify_name: name }); + this.setData({ select_classify_on: indexs, index: indexs, classify_name: name, cat_id: cid}); }, // 图片失败 diff --git a/pages/goods/categoryList/categoryList.wxml b/pages/goods/categoryList/categoryList.wxml index 7164fa2..2825a7a 100644 --- a/pages/goods/categoryList/categoryList.wxml +++ b/pages/goods/categoryList/categoryList.wxml @@ -207,7 +207,7 @@ - + {{classify_name}} 选择更多