Browse Source

1.多个视频

guo 3 years ago
parent
commit
f88df90a38
1 changed files with 6 additions and 1 deletions
  1. 6 1
      pages/mobile/detail.vue

+ 6 - 1
pages/mobile/detail.vue

@@ -116,12 +116,17 @@
 
 					this.detailData = data
 
-
+					
+					console.log('contents1111',this.detailData.contents);
+					
 					if (this.detailData.contents) {
 						var replaceStr = "application/x-shockwave-flash"
 						this.detailData.contents = this.detailData.contents.replace(new RegExp(replaceStr, 'gm'),
 							'iframe') //(/''/g,"video/webm")
 						this.detailData.contents = this.detailData.contents.replace(/<embed([\s\w"-=\/\.:;]+)/ig,
+							'<iframe style="width: 100%;height:300px;" $1');
+							
+						this.detailData.contents = this.detailData.contents.replace(/<iframe([\s\w"-=\/\.:;]+)/ig,
 							'<iframe style="width: 100%;height:300px;" $1');
 
 					}