Quellcode durchsuchen

分享微信图片修改

twt vor 1 Monat
Ursprung
Commit
85e4820ccf
1 geänderte Dateien mit 7 neuen und 1 gelöschten Zeilen
  1. 7 1
      pages/activity/jkDetail.vue

+ 7 - 1
pages/activity/jkDetail.vue

@@ -1106,6 +1106,11 @@
 		onShareAppMessage(res) {
 			console.log(res)
 			var img='';
+			if(this.mainImg){
+				img=this.mainImg
+			}else{
+				img="http://dmsphoto.66km.com.cn/thFiles/83074F71-F5C9-4C8E-B23F-2D195788960B.png"
+			}
 			/* if(this.info.ImgList.length>0){
 				img=this.info.ImgList[0].url
 			} */
@@ -1119,8 +1124,9 @@
 			
 			return {
 				title: this.info.activityName,
+				imageUrl:img,
 				//imageUrl:this.mainImg,
-				imageUrl:'http://dmsphoto.66km.com.cn/thFiles/83074F71-F5C9-4C8E-B23F-2D195788960B.png',
+				//imageUrl:'http://dmsphoto.66km.com.cn/thFiles/83074F71-F5C9-4C8E-B23F-2D195788960B.png',
 				path:url,
 				success(res){
 					uni.showToast({