diff --git a/components/sl-filter/filter-view.vue b/components/sl-filter/filter-view.vue index ac73b55..574e983 100644 --- a/components/sl-filter/filter-view.vue +++ b/components/sl-filter/filter-view.vue @@ -159,19 +159,21 @@ * @property {Array} productCodeLable: 传入的新列表格式的列表标题 * @property {Function} setingFn: 调用微信接口获取code 通过code调用服务端接口换取请求头数据 */ - console.log(this.menuList,'打印列表列表') + // console.log(this.menuList,'打印列表列表') this.setingFn() - setTimeout(()=>{ - if(this.areaCodeList1.length<1){ - this.areaCodeList = uni.getStorageSync('areaCodeList') - }else{ - this.areaCodeList = this.areaCodeList1 - } - // this.areaCodeList = this.areaCodeList1 - console.log(this.areaCodeList,this.areaCodeList1,'11111111111111') - this.areaCodeList.unshift({areaName:'全部',childList:[{areaName:'',childList:[{areaName:''}]}]}) - },3000) - console.log('%c 子组件参数↓','font-size:30px;color:red') + this.areaCodeList = uni.getStorageSync('areaCodeList') + this.areaCodeList.unshift({areaName:'全部',childList:[{areaName:'',childList:[{areaName:''}]}]}) + // setTimeout(()=>{ + // if(this.areaCodeList1.length<1){ + // this.areaCodeList = uni.getStorageSync('areaCodeList') + // }else{ + // this.areaCodeList = this.areaCodeList1 + // } + // // this.areaCodeList = this.areaCodeList1 + // console.log(this.areaCodeList,this.areaCodeList1,'11111111111111') + // this.areaCodeList.unshift({areaName:'全部',childList:[{areaName:'',childList:[{areaName:''}]}]}) + // },3000) + // console.log('%c 子组件参数↓','font-size:30px;color:red') }, computed: { selectedTitleObj() { @@ -206,12 +208,12 @@ if(this.areaIndex[0] !== val[0]) { // 如果滑动的是第一列数据,让二三列恢复到0 this.areaIndex = [val[0], 0, 0] - console.log(this.areaCodeList[val[0]].childList[0].areaName,'打印是否[全部]') + // console.log(this.areaCodeList[val[0]].childList[0].areaName,'打印是否[全部]') } else if(this.areaIndex[1] !== val[1]) { this.areaIndex[1] = val[1] // 滑动的是第二列数据 this.areaIndex = [val[0], val[1], 0] - console.log(this.areaCodeList[val[0]].childList[val[1]].childList[0].areaName,'打印是否[全部]') + // console.log(this.areaCodeList[val[0]].childList[val[1]].childList[0].areaName,'打印是否[全部]') } else { this.areaIndex = e.detail.value; } @@ -246,13 +248,13 @@ this.seleIdex = e + '/'+ w + '/' + j } // this.oilCode = this.seleIdex - console.log(e,w,j,'aaaaaaaaaaaaaaaaa') + // console.log(e,w,j,'aaaaaaaaaaaaaaaaa') }, setingFn(){ if(this.productCodeList){ this.productCodeLable = Object.keys(this.productCodeList) } - console.log(this.productCodeLable,'ddddddddddddddddddd') + // console.log(this.productCodeLable,'ddddddddddddddddddd') }, getSelectedObj() { let obj = {} @@ -304,7 +306,7 @@ this.resetSelected(this.menuList[i].detailList,this.menuList[i].key); titles[this.menuList[i].key] = this.menuList[i].title; } - console.log(titles,'*************************') + // console.log(titles,'*************************') let obj = { 'result': this.result, 'titles': titles, @@ -384,7 +386,7 @@ this.$emit('update:menuList', val) }, menuTabClick(index) { - console.log(this.menuList,'展开') + // console.log(this.menuList,'展开') this.menuIndex = index; this.selectDetailList = this.menuList[index].detailList; this.selectDetailLists = this.menuList[index].detailLists; @@ -607,14 +609,14 @@ // #endif }, resetSelected(list, key,lists, keys) { - console.log('%c 重置方法第二步resetSelected函数参数↓','color:green;font-size:30px') + // console.log('%c 重置方法第二步resetSelected函数参数↓','color:green;font-size:30px') if (typeof this.result[key] == 'object') { this.result[key] = []; this.selectedTitleObj[key] = list[0].title; } else { this.result[key] = ''; this.selectedTitleObj[key] = list[0].title; - console.log(this.result,'重置之后的数据') + // console.log(this.result,'重置之后的数据') } for (let i = 0; i < list.length; i++) { if (i == 0) { @@ -630,7 +632,7 @@ } else { this.result[keys] = ''; this.selectedTitleObj[key] = lists[0].title; - console.log(this.result,'重置之后的数据') + // console.log(this.result,'重置之后的数据') } for (let i = 0; i < lists.length; i++) { if (i == 0) {