Эх сурвалжийг харах

feat: 微信端移除附件筛选

zhangyuhan 3 жил өмнө
parent
commit
7b872e3908

+ 32 - 27
src/web/staticres/common-module/big-member/js/ent_project_news.js

@@ -1,3 +1,34 @@
+var matchTypeListForComputed = [
+    {
+        label: '标题搜索',
+        value: 'title'
+    },
+    {
+        label: '正文搜索',
+        value: 'content'
+    },
+    {
+        label: '中标项目/标的物',
+        value: 'purchasing'
+    },
+    {
+        label: '采购单位',
+        value: 'buyer'
+    },
+    {
+        label: '招标代理机构',
+        value: 'agency'
+    },
+    {
+        label: '附件',
+        value: 'file'
+    }
+]
+try {
+    if (is_weixin()) {
+        matchTypeListForComputed.pop()
+    }
+} catch (e) {}
 var vConfig = {
     delimiters: ['${', '}'],
     el: '#ent-project-news',
@@ -38,33 +69,7 @@ var vConfig = {
             scrollTop: 0,
             list: []
         },
-        matchTypeList: [
-            {
-                label: '标题搜索',
-                value: 'title'
-            },
-            {
-                label: '正文搜索',
-                value: 'content'
-            },
-            {
-                label: '中标项目/标的物',
-                value: 'purchasing'
-            },
-            {
-                label: '采购单位',
-                value: 'buyer'
-            },
-            {
-                label: '招标代理机构',
-                value: 'agency'
-            },
-            {
-                label: '附件',
-                value: 'file'
-            },
-            
-        ],
+        matchTypeList: matchTypeListForComputed,
         publishTimeList: [
             {
                 label: '最近7天',