luyanan 7 years ago
parent
commit
08916b59d4
2 changed files with 8 additions and 6 deletions
  1. 4 4
      app/html/updateResearch.html
  2. 4 2
      app/js/updateResearch.js

+ 4 - 4
app/html/updateResearch.html

@ -27,13 +27,13 @@
27 27
				<div class="maincon">
28 28
					<div class="labelbox">
29 29
						<div class="addlabel mui-clearfix">
30
							<input type="text" class="mui-pull-left frmtype" placeholder="请填写您的研究方向" maxlength="30" id="title"/>
30
							<input type="text" class="mui-pull-left frmtype" placeholder="请填写您的研究方向" maxlength="30" id="title"/>                                                  
31 31
							<button class="mui-btn mui-pull-left addlabelbtn">添加</button>
32 32
						</div>
33 33
	                    <div class="labelarea">
34
	                    	<ul class="labelshow labelshowT" style="margin-right: -10px;">
35
					       		
36
					       	</ul>
34
	                    	<ul class="labelshow labelshowT">
35
						<!--<li style="background:white;float: none;"><span class='numThis mui-pull-left' style="margin-right:0px;">345</span><span class='otsave mui-pull-left' style="background: #e5e5e5;padding-left: 10px;padding-right: 10px;max-width: 80%;"> duduududududuududuhgduduududududuududuhgduduududududuududuhg</span><span class='closeThis' style="border-radius: 0 6px 6px 0;right:none;margin-left:0px;">删除</span></li>-->
36
					      	</ul>
37 37
	                    </div>
38 38
						
39 39
				    </div>

+ 4 - 2
app/js/updateResearch.js

@ -10,7 +10,7 @@ mui.ready(function() {
10 10
			var html = [];
11 11
			for(var i = 0; i < data.length; i++) {
12 12
				console.log(data[i].caption);
13
				html.push("<li><span class='numThis mui-pull-left'>"+ data[i].count+"</span><span class='otsave mui-pull-left'>" + data[i].caption + "</span><span class='closeThis'>删除</span></li><div></div>");
13
				html.push("<li style='background:white;float: none;'><span class='numThis mui-pull-left' style='margin-right:0px;'>"+ data[i].count+"</span><span class='otsave mui-pull-left' style='background: #e5e5e5;padding-left: 10px;padding-right: 10px;max-width: 80%;'>" + data[i].caption + "</span><span class='closeThis' style='border-radius: 0 6px 6px 0;right:auto;margin-left:0px;'>删除</span></li>");
14 14
			};
15 15
			document.getElementsByClassName("labelshowT")[0].innerHTML = html.join('');
16 16
		}
@ -49,7 +49,9 @@ mui.ready(function() {
49 49
					return;
50 50
				}
51 51
				var node = document.createElement("li");
52
				node.innerHTML = '<span class="numThis mui-pull-left">0</span><span class="otsave mui-pull-left">'+content + '</span><span class="closeThis">删除</span>';
52
				node.style.background="white";
53
				node.style.float="none";
54
				node.innerHTML = '<span class="numThis mui-pull-left" style="margin-right:0px;">0</span><span class="otsave mui-pull-left" style="background: #e5e5e5;padding-left: 10px;padding-right: 10px;max-width: 80%;">'+content + '</span><span class="closeThis" style="border-radius: 0 6px 6px 0;right:auto;margin-left:0px;">删除</span>';
53 55
				document.getElementsByClassName("labelshow")[0].appendChild(node);
54 56
				document.getElementsByTagName('input')[0].value = "";
55 57