Wang 5 년 전
부모
커밋
6740edfc5a
1개의 변경된 파일22개의 추가작업 그리고 6개의 파일을 삭제
  1. 22 6
      h5v2/mw_20200108_act/index.html

+ 22 - 6
h5v2/mw_20200108_act/index.html

@@ -10,7 +10,7 @@
         <div class="main">
             <div class="code">
                 <img id="QRcode" src="" alt="" />
-                <span>扫码上萌娃贺岁视频</span>
+                <span>扫码上萌娃贺岁视频</span>
                 <span>拼人气赢大奖</span>
             </div>
             <div class="page_btn pg0"></div>
@@ -139,11 +139,13 @@
                 ip_btn:{
                     line:6,
                     onEnterPress:function(){
-                        if(init.oursProduct_isVip == 1){
-                            fullscreenPlay(videoArr[this.currentIndex]);
-                        }else{
-                            order(0);
-                        }
+                        details_page(videoArr[this.currentIndex])
+                        // mylib.goToDetailsOrPlay(videoArr[this.currentIndex]);
+                        // if(init.oursProduct_isVip == 1){
+                        //     fullscreenPlay(videoArr[this.currentIndex]);
+                        // }else{
+                        //     order(0);
+                        // }
                     },
                     onPress:function(){
                         if(this.event.keyCode == 38 || this.event.keyCode == "UP"){
@@ -199,6 +201,19 @@
                 main.reSetClass("page_btn",1);
             }
 
+            function details_page (id) {
+                var playIntent = {
+                    package:"com.hunantv.operator",
+                    action: "mangotv://com.hunantv.operator/detail",
+                    data:"",
+                    extras: {
+                        media_assets_id: id,
+                    },
+                    flags: []
+                };
+                Webview.sendIntent("startActivity", playIntent);
+            }
+
 
             function order(idx){
                 var pid = init.oursId;
@@ -327,6 +342,7 @@
                 })
             }
 
+        
 
             function fullscreenPlay(mid) {
                 var playIntent = {