lsc 3 days ago
parent
commit
3b95487895

File diff suppressed because it is too large
+ 0 - 0
dist/index.html


File diff suppressed because it is too large
+ 1 - 1
dist/report.html


+ 1 - 1
dist/static/css/chunk-507a53f6.6eb125d1.css → dist/static/css/chunk-8d2e1580.f1574958.css

@@ -1 +1 @@
-.wechat-auth-container[data-v-5650409a]{min-height:100vh;background:-webkit-linear-gradient(315deg,#667eea,#764ba2);background:linear-gradient(135deg,#667eea,#764ba2);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;padding:.53333rem}.wechat-auth-container .auth-content[data-v-5650409a]{background:#fff;border-radius:.42667rem;padding:1.06667rem .8rem;text-align:center;box-shadow:0 .26667rem .8rem rgba(0,0,0,.1);max-width:10.66667rem;width:100%}.wechat-auth-container .auth-content .logo[data-v-5650409a]{margin-bottom:.8rem}.wechat-auth-container .auth-content .logo img[data-v-5650409a]{width:2.13333rem;height:2.13333rem;border-radius:50%}.wechat-auth-container .auth-content .auth-status .van-icon[data-v-5650409a],.wechat-auth-container .auth-content .auth-status .van-loading[data-v-5650409a]{margin-bottom:.53333rem}.wechat-auth-container .auth-content .auth-status p[data-v-5650409a]{margin:.26667rem 0;font-size:.42667rem;color:#333}.wechat-auth-container .auth-content .auth-status p.user-info[data-v-5650409a]{font-size:.37333rem;color:#666;margin-top:.26667rem}.wechat-auth-container .auth-content .auth-status p.auth-desc[data-v-5650409a]{font-size:.37333rem;color:#999;margin:.4rem 0 .66667rem}.wechat-auth-container .auth-content .auth-status p.error-message[data-v-5650409a]{font-size:.37333rem;color:#ee0a24;margin:.4rem 0 .66667rem}.wechat-auth-container .auth-content .auth-status .van-button[data-v-5650409a]{margin-top:.53333rem;width:5.33333rem;height:1.17333rem;border-radius:.58667rem}@media (max-width:480px){.wechat-auth-container[data-v-5650409a]{padding:.26667rem}.wechat-auth-container .auth-content[data-v-5650409a]{padding:.8rem .53333rem}.wechat-auth-container .auth-content .auth-status .van-button[data-v-5650409a]{width:100%}}
+.wechat-auth-container[data-v-2d39495a]{min-height:100vh;background:-webkit-linear-gradient(315deg,#667eea,#764ba2);background:linear-gradient(135deg,#667eea,#764ba2);display:-webkit-box;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-box-align:center;-webkit-align-items:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;-ms-flex-pack:center;justify-content:center;padding:.53333rem}.wechat-auth-container .auth-content[data-v-2d39495a]{background:#fff;border-radius:.42667rem;padding:1.06667rem .8rem;text-align:center;box-shadow:0 .26667rem .8rem rgba(0,0,0,.1);max-width:10.66667rem;width:100%}.wechat-auth-container .auth-content .logo[data-v-2d39495a]{margin-bottom:.8rem}.wechat-auth-container .auth-content .logo img[data-v-2d39495a]{width:2.13333rem;height:2.13333rem;border-radius:50%}.wechat-auth-container .auth-content .auth-status .van-icon[data-v-2d39495a],.wechat-auth-container .auth-content .auth-status .van-loading[data-v-2d39495a]{margin-bottom:.53333rem}.wechat-auth-container .auth-content .auth-status p[data-v-2d39495a]{margin:.26667rem 0;font-size:.42667rem;color:#333}.wechat-auth-container .auth-content .auth-status p.user-info[data-v-2d39495a]{font-size:.37333rem;color:#666;margin-top:.26667rem}.wechat-auth-container .auth-content .auth-status p.auth-desc[data-v-2d39495a]{font-size:.37333rem;color:#999;margin:.4rem 0 .66667rem}.wechat-auth-container .auth-content .auth-status p.error-message[data-v-2d39495a]{font-size:.37333rem;color:#ee0a24;margin:.4rem 0 .66667rem}.wechat-auth-container .auth-content .auth-status .van-button[data-v-2d39495a]{margin-top:.53333rem;width:5.33333rem;height:1.17333rem;border-radius:.58667rem}@media (max-width:480px){.wechat-auth-container[data-v-2d39495a]{padding:.26667rem}.wechat-auth-container .auth-content[data-v-2d39495a]{padding:.8rem .53333rem}.wechat-auth-container .auth-content .auth-status .van-button[data-v-2d39495a]{width:100%}}

File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.00dd4657.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-507a53f6.704cba18.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-8d2e1580.edb4a73d.js


+ 31 - 6
src/views/wechatAuth/index.vue

@@ -189,8 +189,8 @@ export default {
         this.$message.error(this.errorMessage)
         // 如果授权失败,跳转到登录页面
         // setTimeout( async () => {
-        await this.getLogin();
-        setTimeout( async () => {
+        await this.getLogin()
+        setTimeout(async () => {
           this.$router.replace('/login2')
         }, 2000)
       }
@@ -264,7 +264,7 @@ export default {
     },
     async getLogin() {
       this.loading = true
-      try{
+      try {
         const userid = await this.login()
         let redirect_uri = Cookies.get('redirectUri')
         if (!redirect_uri || redirect_uri === 'undefined') {
@@ -272,15 +272,40 @@ export default {
         }
         this.Loading = false
         console.log(redirect_uri)
+        const courseId = this.$store.getters.courseId
+        const testId = this.$store.getters.testId
+        const shareCourseId = this.$store.getters.shareCourseId
+        this.$store.commit('SET_TESTID', '')
+        this.$store.commit('SET_COURSEID', '')
+        this.$store.commit('SET_SHARECOURSEID', '')
+
         if (userid) {
           if (redirect_uri) {
             // Cookies.remove('redirectUri')
             window.location.href = redirect_uri
+          } else if (courseId) {
+            this.$router.replace({
+              path: '/courseDetail',
+              query: { courseid: courseId, userid: userid },
+              replace: true
+            })
+          } else if (testId) {
+            this.$router.replace({
+              path: '/testDetail',
+              query: { courseid: testId, userid: userid },
+              replace: true
+            })
+          } else if (shareCourseId) {
+            this.$router.replace({
+              path: '/courseDetail',
+              query: { courseid: shareCourseId, urlType: 1, userid: userid },
+              replace: true
+            })
           } else {
             this.$router.replace('/appStoreCopy')
           }
         }
-      }catch(e){
+      } catch (e) {
         console.log(e)
       }
       // eduGet().then(res => {})
@@ -295,10 +320,10 @@ export default {
       Cookies.set('isWeChat', '1')
       this.$router.replace('/login2')
       return
-    }else{
+    } else {
       Cookies.set('isWeChat', '2')
     }
-    await this.getLogin();
+    await this.getLogin()
 
     // 如果有code参数,说明是从微信授权回调过来的
     if (this.code) {

Some files were not shown because too many files changed in this diff