rabin 2 years ago
parent
commit
84f55f0fa9
1 changed files with 9 additions and 3 deletions
  1. 9 3
      data/payback/active.html

+ 9 - 3
data/payback/active.html

@@ -52,7 +52,7 @@ src="https://wx.gtimg.com/pay_h5/goldplan/js/jgoldplan-1.0.0.js"></script>
   <div class="app">
     <img src="./icon-success.68ddda96.png" alt="" />
     <span id="msg">购买成功!<br />请耐心等待并关注活动变动</span>
-    <a class="button" id="backHome" onclick="jumpOut()" href="javascript:;">返回代理商系统</a>
+    <a class="button" id="backHome" href="javascript:;">返回代理商系统</a>
   </div>
 </body>
 <script type="text/javascript">
@@ -85,8 +85,8 @@ src="https://wx.gtimg.com/pay_h5/goldplan/js/jgoldplan-1.0.0.js"></script>
   if (!order_id) {
       $('#msg').html('购买失败!<br />请耐心等待并关注活动变动');
       function jumpOut() {
-        location.href = jump;
-    }
+          location.href = jump;
+      }
   } else {
     function jumpOut() {
       var mchData = {action: 'jumpOut', jumpOutUrl: jump}
@@ -106,8 +106,14 @@ src="https://wx.gtimg.com/pay_h5/goldplan/js/jgoldplan-1.0.0.js"></script>
         if (data.status == 1) {
             if (data.data.info.status == 2) {
                 $('#msg').html('购买成功!<br />请耐心等待并关注活动变动');
+                $('#backHome').click(function() {
+                    jumpOut();
+                });
             } else {
               $('#msg').html('购买失败!<br />请耐心等待并关注活动变动');
+              $('#backHome').click(function() {
+                    location.href = jump;
+                });
             }
             
         } else {