Browse Source

图片修改

xuchunyang 8 years ago
parent
commit
f44173cc05
3 changed files with 6 additions and 2 deletions
  1. 4 0
      app/js/attentions.js
  2. 1 1
      app/js/index.js
  3. 1 1
      app/js/searchhome.js

+ 4 - 0
app/js/attentions.js

92
			dataType: 'json', //数据格式类型
92
			dataType: 'json', //数据格式类型
93
			type: 'GET', //http请求类型
93
			type: 'GET', //http请求类型
94
			//timeout: 10000,
94
			//timeout: 10000,
95
			async:false, 
95
			success: function(data) {
96
			success: function(data) {
96
				if(data.success && data.data.data != "") {
97
				if(data.success && data.data.data != "") {
97
					var datalist = data.data.data;
98
					var datalist = data.data.data;
120
			dataType: 'json', //数据格式类型
121
			dataType: 'json', //数据格式类型
121
			type: 'GET', //http请求类型
122
			type: 'GET', //http请求类型
122
			//timeout: 10000,
123
			//timeout: 10000,
124
			async:false,
123
			success: function(data) {
125
			success: function(data) {
124
				plus.nativeUI.closeWaiting();
126
				plus.nativeUI.closeWaiting();
125
				plus.webview.currentWebview().show("slide-in-right", 150);
127
				plus.webview.currentWebview().show("slide-in-right", 150);
151
				dataType: 'json', //数据格式类型
153
				dataType: 'json', //数据格式类型
152
				type: 'GET', //http请求类型
154
				type: 'GET', //http请求类型
153
				timeout: 10000,
155
				timeout: 10000,
156
				async:false,
154
				success: function(data) {
157
				success: function(data) {
155
					console.log(data.success)
158
					console.log(data.success)
156
					if(data.success && data.data.data != "") {
159
					if(data.success && data.data.data != "") {
191
				dataType: 'json', //数据格式类型
194
				dataType: 'json', //数据格式类型
192
				type: 'GET', //http请求类型
195
				type: 'GET', //http请求类型
193
				timeout: 10000,
196
				timeout: 10000,
197
				async:false,
194
				success: function(data) {
198
				success: function(data) {
195
					console.log(data.success)
199
					console.log(data.success)
196
					if(data.success && data.data.data != "") {
200
					if(data.success && data.data.data != "") {

+ 1 - 1
app/js/index.js

138
		
138
		
139
		/*获取头像*/
139
		/*获取头像*/
140
		if(item.hasHeadImage == 1) {
140
		if(item.hasHeadImage == 1) {
141
			var img = "../images/head/" + item.id + "_m.jpg";
141
			var img = baseUrl + "/images/head/" + item.id + "_l.jpg";
142
		} else {
142
		} else {
143
			var img = "../images/default-photo.jpg";
143
			var img = "../images/default-photo.jpg";
144
		}
144
		}

+ 1 - 1
app/js/searchhome.js

438
		
438
		
439
		/*获取头像*/
439
		/*获取头像*/
440
		if(item.hasHeadImage == 1) {
440
		if(item.hasHeadImage == 1) {
441
			var img = baseUrl + "/images/head/" + item.id + "_m.jpg";
441
			var img = baseUrl + "/images/head/" + item.id + "_l.jpg";
442
		} else {
442
		} else {
443
			var img = "../images/default-photo.jpg";
443
			var img = "../images/default-photo.jpg";
444
		}
444
		}