Просмотр исходного кода

首页搜索,搜索页面,提示文字修改

xuchunyang лет назад: 8
Родитель
Сommit
3dad110fd5
3 измененных файлов с 13 добавлено и 2 удалено
  1. 1 1
      app/html/index_home.html
  2. 7 1
      app/html/search-home.html
  3. 5 0
      app/js/searchhome.js

+ 1 - 1
app/html/index_home.html

@ -13,7 +13,7 @@
13 13
<!-- 主页面标题 -->
14 14
<header class="mui-bar mui-bar-nav toptitbox">
15 15
    <div class="searchbox bgRadius" id="search">
16
    	<em class="mui-icon mui-icon-search searchtxt" ><span>搜索专家、合作资源</span></em>
16
    	<em class="mui-icon mui-icon-search searchtxt" ><span>搜索专家、研发资源</span></em>
17 17
	    <!--<input type="search" class="mui-input-clear searchtxt" placeholder="搜索专家、合作资源">-->
18 18
	</div>
19 19
</header>

+ 7 - 1
app/html/search-home.html

@ -24,7 +24,7 @@
24 24
				</div>
25 25
	        	<em class="mui-icon mui-icon-arrowdown"></em>
26 26
		    </div>
27
		    <input type="text" class="mui-input-clear mui-pull-right searchtxt2" placeholder="搜索专家、设备资源" id="searchval">
27
		    <input type="text" class="mui-input-clear mui-pull-right searchtxt2" placeholder="输入专家姓名、研究方向等关键字" id="searchval">
28 28
        </div>
29 29
	</header>
30 30
	
@ -82,6 +82,12 @@
82 82
			//console.log(bigClass)
83 83
			selectblock.innerHTML = this.innerHTML;
84 84
			showblock.style.display = 'none';
85
			if(bigClass==1){
86
				searchVal.setAttribute("placeholder","输入专家姓名、研究方向等关键字");
87
			}else{
88
				searchVal.setAttribute("placeholder","输入资源名称、应用用途等关键字");
89
			}
90
			
85 91
		});
86 92
		
87 93
		/*点击热门搜索*/

+ 5 - 0
app/js/searchhome.js

@ -104,6 +104,11 @@ selectblock.addEventListener('tap', function() {
104 104
mui("#li_show").on('tap', 'li', function() {
105 105
	pageNo = 1
106 106
	bigClass = this.getAttribute("data-num");
107
	if(bigClass==1){
108
		searchVal.setAttribute("placeholder","输入专家姓名、研究方向等关键字");
109
	}else{
110
		searchVal.setAttribute("placeholder","输入资源名称、应用用途等关键字");
111
	}
107 112
	selectblock.innerHTML = this.innerHTML;
108 113
	showblock.style.display = 'none';
109 114
	plus.nativeUI.showWaiting();