瀏覽代碼

json format

huai-sian 3 年之前
父節點
當前提交
77ebfe6d1f
共有 1 個文件被更改,包括 23 次插入0 次删除
  1. 23 0
      js/index-list-mb.js

+ 23 - 0
js/index-list-mb.js

@@ -1,6 +1,29 @@
 let userAgent;
 let isSafari = false;
 let browserName;
+
+$('.likeSee__views').click(function() {
+  window.location.href = './index_designerList.html'
+})
+
+$('.likeSee__sort').click(function() {
+  window.location.href = './index_designerList.html?q=dateSort'
+})
+
+function getpathId(){
+  let query = window.location.search.split('?').pop();
+  return query.split('=')[1];
+}
+
+function getQuery() {
+  let query = getpathId();
+  if(query == 'dateSort'){
+      filter = 'dateSort';
+  } else {
+      filter = 'views';
+  }
+}
+
 window.onload = function(){
   //window.scrollBy(0, 1);
   if(screen.width >= 901){