Browse Source

查研观向11.0 宣传单页需分享

hbchen 1 year ago
parent
commit
499a5177e7
1 changed files with 10 additions and 1 deletions
  1. 10 1
      pages-purchaser/leaflet/leaflet.vue

+ 10 - 1
pages-purchaser/leaflet/leaflet.vue

@@ -8,6 +8,7 @@
 	export default {
 		data() {
 			return {
+				leafletImageUrlParams:'',
 				leafletImageUrl:''
 			}
 		},
@@ -15,8 +16,16 @@
 			
 		},
 		onLoad(option) {
+			this.leafletImageUrlParams = option.leafletImage
 			this.leafletImageUrl = option.leafletImage?decodeURIComponent(option.leafletImage):''
-		}
+		},
+		/** 用户点击分享 */
+		onShareAppMessage: function (res) {
+		  return {
+		    title: "买方研选宣传单",
+		    path: "/pages-purchaser/leaflet/leaflet?leafletImage="+this.leafletImageUrlParams,
+		  };
+		},
 	}
 </script>