+
@@ -24,21 +33,21 @@
-
+
+
+
+
+
+
+
+
登陆
-
@@ -82,7 +91,14 @@
},
mainLogoBtnStyle: {
color: "rgb(255, 106, 0)"
- }
+ },
+ searchInputStyle: {
+ "max-width": "400px",
+ width: "150px"
+ },
+ logged: false,
+ showSearchInput: false,
+ searchInputText: null
}
},
created() {
@@ -98,13 +114,19 @@
//初始化(异步)
async initAsync() {
//注册浏览器resize监听
- window.addEventListener('resize', this.getMainElContainerStyleHeight);
- //获得容器高度
- this.getMainElContainerStyleHeight();
+ window.addEventListener('resize', this.resizeListener);
+ this.resizeListener();
},
- //获得容器高度
- getMainElContainerStyleHeight() {
+ //resize监听器
+ resizeListener() {
+ //设定容器高度
this.mainElContainerStyle.height = window.innerHeight + 'px';
+ //设定框宽度
+ this.searchInputStyle.width = window.innerWidth - 200 - 10 + 'px';
+ },
+ //搜索输入框显示和隐藏
+ searchInputDivShowHidden() {
+ this.showSearchInput = !this.showSearchInput;
}
}
}
@@ -172,6 +194,26 @@
float: right;
height: 50px;
+ .searchDiv {
+ height: 50px;
+ padding-right: 10px;
+ display: table-cell;
+ vertical-align: middle;
+ text-align: center;
+ font-size: 18px;
+ cursor: pointer;
+ }
+
+ .searchInputDiv {
+ height: 50px;
+ padding-right: 10px;
+ display: table-cell;
+ vertical-align: middle;
+ text-align: center;
+ font-size: 18px;
+ cursor: pointer;
+ }
+
.toolDiv {
height: 50px;
padding-right: 10px;
+
注册
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+