heyang 2 years ago
parent
commit
cf6345fad5
1 changed files with 20 additions and 2 deletions
  1. 20 2
      static/screenAndroid/WXtrialInterface.html

+ 20 - 2
static/screenAndroid/WXtrialInterface.html

@@ -304,8 +304,7 @@
     <script>
       var url = window.location.href;
       url = url.split('/');
-      //var baseUrl = url[0] + '//' + url[2];
-      var baseUrl = 'https://prese.phone.androidscloud.com'
+      var baseUrl = url[0] + '//' + url[2];
 
       var parameters = GetRequest();
       var token = parameters['token'];
@@ -1433,6 +1432,11 @@
             $('.countdown-wrap').eq(0).show();
             residueTimer = setInterval(() => {
               time--;
+              if(time < 0) {
+                $('.apply-wrap').eq(0).hide();
+                $('.countdown-wrap').eq(0).hide();
+                $('.time-lang-wrap').eq(0).show();
+              }
               showTime = getResultTime(time);
 						  $('.countdown-time').eq(0).text(showTime);
             }, 1000)
@@ -1523,6 +1527,20 @@
         getRecommend();
       })
 
+      // 点击了续时长
+      $('.time-lang-btn')[0].addEventListener('click',() => {
+        if (window.__wxjs_environment === 'miniprogram') {
+          wx.miniProgram.navigateTo({
+            url:`/packageA/order/renew/index?record=` + userCardId
+          });
+        } else {
+          uni.webView.navigateTo({
+            url: '/pages/order/renew?record=' + userCardId
+          })
+        }
+        
+      })
+
       //广告信息
       var adData = null; // 广告数据
       var adLastTime = 0; // 广告时间