ソースを参照

搜索为空,不跳转

li 7 年 前
コミット
8a7433b894
共有2 個のファイルを変更した4 個の追加1 個の削除を含む
  1. 1 1
      app/html/searchNew.html
  2. 3 0
      app/js/searchfirst.js

+ 1 - 1
app/html/searchNew.html

@ -17,7 +17,7 @@
17 17
			<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left topback leftnav"></a>
18 18
			<div class="searchboxNew">
19 19
				<form onsubmit="return false;">
20
					<input type="search" class="mui-input-clear searchtxtNew" placeholder="搜索专家、资源、文章" id="searchval" />
20
					<input type="search" class="mui-input-clear searchtxtNew" placeholder="请输入关键词" id="searchval" />
21 21
				</form>
22 22
			</div>
23 23
		</header>

+ 3 - 0
app/js/searchfirst.js

@ -79,6 +79,9 @@ mui.plusReady(function() {
79 79
		if(e.keyCode == 13) {
80 80
			if(this.value.replace(/^\s*|\s*$/,"")) {
81 81
				wlog("kw", this.value);
82
			}else{
83
				plus.nativeUI.toast("请输入关键词", toastStyle);
84
				return;
82 85
			}
83 86
			search.createWin(this.value);
84 87
		}