[调整]优化搜索页面,进入页面后自动调起键盘

This commit is contained in:
唐明明
2020-12-27 15:55:59 +08:00
parent d3fa1d743c
commit 17ea653313
4 changed files with 6 additions and 5 deletions

View File

@@ -2,6 +2,7 @@
"pages": [
"pages/welcome/index",
"pages/company/index",
"pages/company/search/search",
"pages/shortVideo/index",
"pages/richText/richText",
"pages/login/login",
@@ -10,8 +11,7 @@
"pages/home/index",
"pages/mall/index",
"pages/live/index",
"pages/ticket/index",
"pages/company/search/search"
"pages/ticket/index"
],
"window": {
"backgroundTextStyle": "light",

View File

@@ -1,5 +1,6 @@
{
"usingComponents": {},
"navigationBarTitleText": "企业广场",
"navigationBarBackgroundColor": "#f8f8f8"
"navigationBarBackgroundColor": "#f8f8f8",
"backgroundColorTop": "#f8f8f8"
}

View File

@@ -2,7 +2,7 @@
<view class="search-header">
<form class="search" bindsubmit="searchForm">
<image class="search-icon" src="/static/icons/search_icon.png" mode="widthFix"></image>
<input class="search-input" type="text" name="search" placeholder="输入关键字搜索"></input>
<input class="search-input" adjust-position="false" focus type="text" name="search" placeholder="输入关键字搜索"></input>
<button class="search-btn" form-type="submit" size="mini">搜索</button>
</form>
</view>

View File

@@ -4,7 +4,7 @@
"ignore": []
},
"setting": {
"urlCheck": false,
"urlCheck": true,
"es6": true,
"enhance": false,
"postcss": true,