瀏覽代碼

Merge remote-tracking branch 'origin/feature/v4.8.67' into dev/v4.8.67_dx

duxin 1 年之前
父節點
當前提交
4af6f97880

+ 8 - 0
src/jfw/modules/app/src/web/staticres/jyapp/tags/js/index.js

@@ -15,6 +15,14 @@ var page = {
     this.initFooterPhoneCall()
     this.initFooterPhoneCall()
     // this.showAppFooterNavs()
     // this.showAppFooterNavs()
     this.initBack()
     this.initBack()
+    this.topSearchEvent()
+  },
+  topSearchEvent: function () {
+    $('.search-container').on('click', function (e) {
+      e.preventDefault()
+      localStorage.removeItem('JY-MOBILE-home-top-search')
+      location.href = '/jy_mobile/search/middle/bidding'
+    })
   },
   },
   showAppFooterNavs: function () {
   showAppFooterNavs: function () {
     var isInHomePage = location.pathname === '/jyapp/jylab/mainSearch'
     var isInHomePage = location.pathname === '/jyapp/jylab/mainSearch'

+ 5 - 0
src/jfw/modules/app/src/web/templates/weixin/wxinfocontent.html

@@ -3592,6 +3592,11 @@
       $('.h5-tabfix').css('top', headerTop)
       $('.h5-tabfix').css('top', headerTop)
       $('.wx-tabfix').css('top', headerTop)
       $('.wx-tabfix').css('top', headerTop)
       $('.tag-breadcrumb-navigation').css('background', '#EDEFF2')
       $('.tag-breadcrumb-navigation').css('background', '#EDEFF2')
+      $('.search-container').on('click', function (e) {
+        e.preventDefault()
+        localStorage.removeItem('JY-MOBILE-home-top-search')
+        location.href = '/jy_mobile/search/middle/bidding'
+      })
     })
     })
   </script>
   </script>
 {{end}}
 {{end}}