浏览代码

feat: 微信端移除附件筛选

zhangyuhan 3 年之前
父节点
当前提交
7b872e3908
共有 1 个文件被更改,包括 32 次插入27 次删除
  1. 32 27
      src/web/staticres/common-module/big-member/js/ent_project_news.js

+ 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天',