diff --git a/images/index/JM.png b/images/index/JM.png new file mode 100644 index 0000000..8b34311 Binary files /dev/null and b/images/index/JM.png differ diff --git a/images/index/house.png b/images/index/house.png new file mode 100644 index 0000000..76c2adb Binary files /dev/null and b/images/index/house.png differ diff --git a/subpages/resnoinformation/pages/resnoinformation/resnoinformation.js b/subpages/resnoinformation/pages/resnoinformation/resnoinformation.js index fd8b2ad..27baf58 100644 --- a/subpages/resnoinformation/pages/resnoinformation/resnoinformation.js +++ b/subpages/resnoinformation/pages/resnoinformation/resnoinformation.js @@ -29,7 +29,7 @@ Page({ cascaderValue:'', // 显示长度 maxLength:10, - // vue返回的值 + // value返回的值 cascaderName:null, //显示菜单 showStreet:false, @@ -79,6 +79,11 @@ getTopTreeData() { onChange(e) { // value等于 e.detail.value const { value, tabIndex, selectedOptions } = e.detail; + console.log(e.detail) + console.log(selectedOptions) + this.setData({ + cascaderName:e.detail.selectedOptions.map(item => item.label).join(' ') + }) // 判断是否是第二层,并且最后自己的level部位building if (tabIndex > 0 && selectedOptions[selectedOptions.length - 1].level != 'building') { const level = selectedOptions[selectedOptions.length - 1].level