Explorar o código

feature:增加喜马拉雅授权回调

zeng.chen hai 9 meses
pai
achega
df5ee5ddcb
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      src/pages/ximalaya/index.vue

+ 6 - 0
src/pages/ximalaya/index.vue

@@ -24,6 +24,11 @@ export default {
         this.type = 'clear'
         this.title = '授权失败!'
       }
+
+      const name = 'authXmlyWeb'
+      const code = res.code === 0 ? "1" : "0"
+      webChannel.postMessage(`?name=${name}&code=${code}`)
+
     })
   }
 }
@@ -47,6 +52,7 @@ export default {
   0% {
     transform: rotate(0deg)
   }
+
   100% {
     transform: rotate(360deg);
   }