浏览代码

需求修改

LIPENGTAO1313 7 年之前
父节点
当前提交
a373858950
共有 2 个文件被更改,包括 3 次插入8 次删除
  1. 0 3
      app/html/demandPublish.html
  2. 3 5
      app/js/needShow.js

+ 0 - 3
app/html/demandPublish.html

34
		    <h1 class="mui-title toptit">需求发布</h1>
34
		    <h1 class="mui-title toptit">需求发布</h1>
35
		</header>
35
		</header>
36
		<div class="mui-content" style="padding-top:34px;">
36
		<div class="mui-content" style="padding-top:34px;">
37
			<div class="mui-input-group mainbox">
38
				<div class="littip-top">只能发布您所在机构的需求<br />您可以使用【修改资料】功能,变更您的所在机构</div>
39
		   </div>
40
			<div class="mui-input-group mainbox">
37
			<div class="mui-input-group mainbox">
41
				<div class="infocontit infocontitM">需求主题<span class="requiredThis"> *</span></div>
38
				<div class="infocontit infocontitM">需求主题<span class="requiredThis"> *</span></div>
42
				<div class="infocon">
39
				<div class="infocon">

+ 3 - 5
app/js/needShow.js

58
		
58
		
59
		if(userid){
59
		if(userid){
60
			ifcollectionAbout(demandId,oifCollect, 7);
60
			ifcollectionAbout(demandId,oifCollect, 7);
61
			ifcollectionAbout(orgThis,attBtn, 6,1);
61
			
62
		}
62
		}
63
		attBtn.addEventListener('tap', function() {
63
		attBtn.addEventListener('tap', function() {
64
			if(userid && userid != null && userid != "null") {
64
			if(userid && userid != null && userid != "null") {
136
				"async": false,
136
				"async": false,
137
				"dataType": "json",
137
				"dataType": "json",
138
				"success": function(data) {
138
				"success": function(data) {
139
					console.log(111111111111111111111)
140
					console.log(JSON.stringify(data));
141
					if(data.success) {
139
					if(data.success) {
142
						var ws=plus.webview.currentWebview();
140
						var ws=plus.webview.currentWebview();
143
						
141
						
218
							}
216
							}
219
						}
217
						}
220
						cmpFun($da.orgName);
218
						cmpFun($da.orgName);
221
						
222
						orgThis=$da.orgId;
223
						consuId = $da.creator;
219
						consuId = $da.creator;
224
						demandTitle = $da.title;
220
						demandTitle = $da.title;
225
						demandContent = $da.descp;
221
						demandContent = $da.descp;
244
				"success": function(data) {
240
				"success": function(data) {
245
					if(data.success) {
241
					if(data.success) {
246
						if(data.data != null) {
242
						if(data.data != null) {
243
							orgThis=data.data.id;
247
							tiaoFlag = true;
244
							tiaoFlag = true;
248
							document.getElementById('attBtn').style.display = 'block';
245
							document.getElementById('attBtn').style.display = 'block';
249
							if(data.data.forShort) {
246
							if(data.data.forShort) {
251
							}else{
248
							}else{
252
								document.getElementById("cmpname").innerHTML=data.data.name;
249
								document.getElementById("cmpname").innerHTML=data.data.name;
253
							}
250
							}
251
							ifcollectionAbout(orgThis,attBtn, 6,1);
254
							var img="../images/default-icon.jpg";
252
							var img="../images/default-icon.jpg";
255
							if(data.data.hasOrgLogo==1){
253
							if(data.data.hasOrgLogo==1){
256
								img=baseUrl+"/images/org/" + data.data.id + ".jpg";
254
								img=baseUrl+"/images/org/" + data.data.id + ".jpg";