Browse Source

在微信分享好友文章分享内容

jack 8 years ago
parent
commit
20a193f09e
1 changed files with 7 additions and 7 deletions
  1. 7 7
      app/js/professorArticle.js

+ 7 - 7
app/js/professorArticle.js

@ -94,7 +94,6 @@ mui.plusReady(function() {
94 94
							zlist += ',';
95 95
						}
96 96
					}
97
					oImgShare=baseUrl + '/data/article/' + $info.articleImg;
98 97
					//console.log(oImg)
99 98
					//alert(oImg)
100 99
					($info.professor.resources) ? proZlist.innerHTML = zlist: proZlist.innerText = '';
@ -108,6 +107,7 @@ mui.plusReady(function() {
108 107
					proticleName= $info.articleTitle;
109 108
					if($info.articleContent) {
110 109
						main_content.innerHTML = $info.articleContent;
110
						oImgShare=main_content.innerText;
111 111
						var oImg = main_content.getElementsByTagName("img");
112 112
						for(var i = 0; i < oImg.length; i++) {
113 113
							(function(n) {
@ -192,20 +192,20 @@ mui.plusReady(function() {
192 192
				var share = buildShareService();
193 193
				if(share) {
194 194
					shareMessage(share, "WXSceneSession", {
195
						content: "",
196
						title: proticleName,
195
						content: oImgShare,
196
						title: "【科袖文章】"+proticleName,
197 197
						href: baseUrl + "/ekexiu/shareArticalinfor.html?articleId="+proId ,
198
						thumbs: [oImgShare]
198
						thumbs: [baseUrl + "/images/logo180.png"]
199 199
					});
200 200
				}
201 201
			} else if(e.index == 2) {
202 202
				var share = buildShareService();
203 203
				if(share) {
204 204
					shareMessage(share, "WXSceneTimeline", {
205
						content: "",
206
						title: proticleName,
205
						content: oImgShare,
206
						title: "【科袖文章】"+proticleName,
207 207
						href: baseUrl + "/ekexiu/shareArticalinfor.html?articleId="+proId ,
208
						thumbs: [oImgShare]
208
						thumbs: [baseUrl + "/images/logo180.png"]
209 209
					});
210 210
				}
211 211
			}