liwei2496 2 years ago
parent
commit
c1549b3075
3 changed files with 38088 additions and 0 deletions
  1. 37627 0
      static/ezuikit.js
  2. 34 0
      static/sp.html
  3. 427 0
      utils/qrcode.js

File diff suppressed because it is too large
+ 37627 - 0
static/ezuikit.js


+ 34 - 0
static/sp.html

@@ -0,0 +1,34 @@
+<script type="text/javascript" src="ezuikit.js"></script>
+<script src="https://cdn.bootcdn.net/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
+<title></title>
+<body>
+  <div id="myPlayer">
+  </div>
+  <script>
+	window.onload=()=>{
+		
+		//标题设置为空,如果不设置为空,会与uni-app自带标题冲突
+		document.title='\u200E';
+		// 截取url与accessToken
+		//  console.log('111111111111111111',window.location.href)
+		
+		let url=window.location.href.split('?')[1].split('&')[0].split('=')[1]//url
+		let accessToken=window.location.href.split('?')[1].split('&')[1].split('=')[1]//token
+		init(url,accessToken);
+		
+		function init(url,accessToken) 
+		{
+			var player = new EZUIKit.EZUIKitPlayer({
+				id: 'myPlayer',
+				url: url,
+				template: 'standard',
+				accessToken: accessToken,
+				autoplay: true,
+				width: 750,
+				height: 400,
+			});	
+		}
+	}
+ 
+  </script>
+</body>

File diff suppressed because it is too large
+ 427 - 0
utils/qrcode.js