diff --git a/src/assets/css/list.less b/src/assets/css/list.less
index 044a9a13..a4e9eaaa 100644
--- a/src/assets/css/list.less
+++ b/src/assets/css/list.less
@@ -69,6 +69,32 @@
.m-filter--left {
.flex;
align-items: center;
+
+ .u-wujie-filter {
+ .flex;
+ align-items: center;
+
+ border: 1px solid #00dcda;
+ color: #3ae0f1;
+ background: #eff;
+ padding:1px 5px;
+ .r(2px);
+
+ .el-checkbox__label{
+ .fz(12px);
+ padding-left:5px;
+ color:#00dcda !important;
+ }
+
+ margin-left: 10px;
+
+ .el-checkbox__input {
+ .db;
+ }
+ .el-checkbox__inner{
+ .db;
+ }
+ }
}
@media screen and (max-width: @ipad) {
.m-archive-filter {
diff --git a/src/components/common-header.vue b/src/components/common-header.vue
index 9b26386d..6c77f250 100644
--- a/src/components/common-header.vue
+++ b/src/components/common-header.vue
@@ -19,6 +19,8 @@
+
+ 只看无界
@@ -49,7 +51,9 @@ export default {
tr: "繁體中文",
},
- rows: 1
+ rows: 1,
+
+ is_wujie: 0,
}
},
computed: {
@@ -68,6 +72,9 @@ export default {
onSearch() {
this.$emit('search', this.search)
},
+ onWujieChange() {
+ this.$emit('wujie', this.is_wujie)
+ }
}
}
diff --git a/src/views/Index.vue b/src/views/Index.vue
index 7b957f6d..ead6a991 100644
--- a/src/views/Index.vue
+++ b/src/views/Index.vue
@@ -4,6 +4,7 @@
@filterImperceptibly="filterImperceptibly"
@filterMeta="filterMeta"
@search="onSearch"
+ @wujie="onWujieChange"
>
@@ -97,6 +98,7 @@ export default {
search: "", //搜索字串
lang: "", //语言
zlp: "", //资料片
+ is_wujie: 0, //无界过滤
drawer: false,
drawer_title: "",
@@ -128,6 +130,7 @@ export default {
search: this.search,
lang: this.lang,
zlp: this.zlp,
+ is_wujie: this.is_wujie,
};
},
// 分页相关参数
@@ -228,6 +231,11 @@ export default {
filterImperceptibly: function (o) {
this[o["type"]] = o["val"];
},
+ // 无界过滤
+ onWujieChange: function (val) {
+ this.is_wujie = val;
+ this.replaceRoute({ is_wujie: val, page: 1 });
+ },
// 翻页加载
changePage: function (i) {
this.loadData();
diff --git a/vue.config.js b/vue.config.js
index 65123776..47e2efb2 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -48,7 +48,7 @@ module.exports = {
},
},
"/api/cms": {
- target: process.env["DEV_SERVER"] == "true" ? "http://localhost:5120" : "https://cms.jx3box.com",
+ target: process.env["DEV_SERVER"] == "true" ? "http://localhost:7100" : "https://cms.jx3box.com",
},
"/api/team": {
target: "https://team.api.jx3box.com",