Explorar o código

feat:修改签到跳转路由等

yangfeng %!s(int64=4) %!d(string=hai) anos
pai
achega
a0ba018af5

+ 1 - 1
src/jfw/modules/app/src/web/templates/me/mine.html

@@ -85,7 +85,7 @@
                 </div>
             </div>
             <!-- 签到 -->
-            <div class="sign" id="sign">
+            <div class="sign" id="sign" v-cloak>
               <div class="continuous">
                 <div class="days">
                   已连续签到 <em>${ signInfo.days }</em> 天

+ 4 - 3
src/jfw/modules/app/src/web/templates/weixin/search/mainSearch.html

@@ -923,9 +923,10 @@
                     if(userId==""){
                         window.location.href='/jyapp/free/login?back=index';
                     }else{
-                        try {
-                          JyObj.skipAppointTab('me')
-                        } catch (error) {}
+                        window.location.href='/page_points_app/home';
+                        // try {
+                        //   JyObj.skipAppointTab('me')
+                        // } catch (error) {}
                     }
                     break
                 }

+ 36 - 19
src/web/templates/frontRouter/pc/integral/sess/index.html

@@ -15,6 +15,22 @@
     <link href='{{Msg "seo" "cdn"}}/pccss/public-nav-1200.css?v={{Msg "seo" "version"}}' rel="stylesheet" type="text/css"/>
     <!-- S-注入  -->
     <meta name="importmap-type" content="systemjs-importmap">
+    <script>
+      if (String.prototype.startsWith === 'undefined') {
+        String.prototype.startsWith = function (str) {
+          if(str==null||str==""||this.length==0||str.length>this.length)
+            return false;
+          if(this.substr(0,str.length)==str)
+            return true;
+          else
+            return false;
+        }
+      }
+      if (typeof Promise === 'undefined')
+        document.write('<script src="https://unpkg.com/bluebird@3.7.2/js/browser/bluebird.core.min.js"><\/script>');
+      if (typeof fetch === 'undefined')
+        document.write('<script src="https://unpkg.com/whatwg-fetch@3.4.1/dist/fetch.umd.js"><\/script>');
+    </script>
     <script type="systemjs-importmap">
       {
         "imports": {
@@ -33,25 +49,7 @@
     <script src="https://cdnjs.cloudflare.com/ajax/libs/systemjs/6.8.3/extras/named-exports.js"></script>
     <script src="https://cdnjs.cloudflare.com/ajax/libs/systemjs/6.8.3/extras/named-register.min.js"></script>
     <script src="https://cdnjs.cloudflare.com/ajax/libs/systemjs/6.8.3/extras/use-default.min.js"></script>
-    <script>
-      (function() {
-        Promise.all([System.import('single-spa'), System.import('vue'), System.import('vue-router')]).then(function (modules) {
-          var singleSpa = modules[0];
-          var Vue = modules[1];
-          var VueRouter = modules[2];
-
-          Vue.use(VueRouter)
-
-          singleSpa.registerApplication(
-            'points',
-            () => System.import('points'),
-            location => location.pathname.startsWith('/')
-          )
-
-          singleSpa.start();
-        })
-      })()
-    </script>
+    
     <!-- E-注入  -->
 
     <style>
@@ -74,6 +72,25 @@
 <!-- See https://github.com/joeldenning/import-map-overrides#user-interface  -->
 <import-map-overrides-full show-when-local-storage="overrides-ui"></import-map-overrides-full>
 <!-- E-注入  -->
+<script>
+  (function() {
+    Promise.all([System.import('single-spa'), System.import('vue'), System.import('vue-router')]).then(function (modules) {
+      var singleSpa = modules[0];
+      var Vue = modules[1];
+      var VueRouter = modules[2];
+
+      Vue.use(VueRouter)
+
+      singleSpa.registerApplication(
+        'points',
+        () => System.import('points'),
+        location => location.pathname.startsWith('/')
+      )
+
+      singleSpa.start();
+    })
+  })()
+</script>
 
 <script src='{{Msg "seo" "cdn"}}/js/jquery.cookie.js?v={{Msg "seo" "version"}}' type="text/javascript"></script>
 <script src='{{Msg "seo" "cdn"}}/js/public-nav.js?v={{Msg "seo" "version"}}' type="text/javascript"></script>

+ 1 - 1
src/web/templates/weixin/my.html

@@ -65,7 +65,7 @@
         </div>
         <div class="j-main">
             <!-- 签到 -->
-            <div id="sign">
+            <div id="sign" v-cloak>
               <div class="sign">
                 <div class="continuous">
                   <div class="days">