xiaohaizhao %!s(int64=2) %!d(string=hai) anos
pai
achega
751e830756
Modificáronse 1 ficheiros con 9 adicións e 3 borrados
  1. 9 3
      components/Yl_HeadNav/index.js

+ 9 - 3
components/Yl_HeadNav/index.js

@@ -158,9 +158,15 @@ Component({
                 })
             } else if (id == "filtrate") {
                 let page = getCurrentPages()[getCurrentPages().length - 1].selectComponent("#Filtrate");
-                if (page) page.setData({
-                    show: true
-                })
+                if (page) {
+                    page.setData({
+                        show: true,
+                    })
+                } else {
+                    getCurrentPages()[getCurrentPages().length - 1].setData({
+                        modalName: 'viewModal'
+                    })
+                }
             }
         },
         /* 开启关闭搜索 */