Browse Source

更新活动模板

ChenLiang 4 years ago
parent
commit
8204e36fde
2 changed files with 9 additions and 7 deletions
  1. 6 4
      活动模板/index.html
  2. 3 3
      活动模板/js/api.js

+ 6 - 4
活动模板/index.html

@@ -14,7 +14,7 @@
 
     </div>
 
-    <!-- 题目 -->
+    <!-- 游戏 -->
     <div class="subjects">
 
     </div>
@@ -48,7 +48,8 @@
 
         }
     }
-    
+
+
     // 切换窗口,并指定焦点移动位置,支持关闭所有窗口,支持同时打开另一个界面
     function changeWindow(id, className, currentIndex, id2) {
         var popups = document.getElementsByClassName('popup')
@@ -65,12 +66,13 @@
             btn.reSetClass(className, currentIndex)
         }
     }
-    
+
+
     // 返回方法
     function backRule() {
 
     }
-
+    
     btn = new tvSysBtnBind(tsConfig)
     window.onBackEvent = backRule
 </script>

+ 3 - 3
活动模板/js/api.js

@@ -5,18 +5,18 @@ var actApi = {
         uid: 12138,
         baseUrl: '', // 公用地址
         // ↓其他接口的地址
-        
+        xxx: ''
     },
 
     portsTemplate: function() {
         return new MyPromise(function(resolve, reject) {
             comm.ajax({
                 type: 'GET',
-                url: actApi.data.baseUrl + '',
+                url: actApi.data.baseUrl + actApi.xxx,
                 data: {
 
                 },
-                success: function() { resolve() }
+                success: function(res) { resolve(res) }
             })
         })
     }