XiaBx 3 éve
szülő
commit
1175b3a7a8
4 módosított fájl, 13 hozzáadás és 3 törlés
  1. 1 0
      index.prod.html
  2. 5 0
      src/components/reader/bus.js
  3. 6 2
      src/view/reader.vue
  4. 1 1
      src/view/yun.vue

+ 1 - 0
index.prod.html

@@ -5,6 +5,7 @@
   <meta charset="utf-8">
   <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
   <meta name="application-name" content="追书云">
+  <meta name="apple-mobile-web-app-title" content="追书云">
   <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
   <meta name="x5-fullscreen" content="true">
   <meta name="x5-page-mode" content="app">

+ 5 - 0
src/components/reader/bus.js

@@ -1,8 +1,13 @@
 import Vue from "vue";
+import qs from "qs";
 
 function parseQueryString(url) {
   url = url == null ? window.location.href : url;
+
+
   var search = url.substring(url.lastIndexOf("?") + 1);
+
+  return qs.s
   if (url.indexOf('reader') === -1) return {};
   if (!search) return {};
   return JSON.parse(

+ 6 - 2
src/view/reader.vue

@@ -167,6 +167,7 @@ import {
   BookShare,
   BookRecent
 } from "./namespace.js";
+
 import {
   SingActive,
   Book1,
@@ -747,13 +748,16 @@ export default {
     if (yun) this.yun = yun;
 
     let data = await getUserInfo();
-    if (!data.bind_phone) {
+    if (!data.bind_phone && window.navigator.standalone) {
       goLogin();
     }
 
     const token = localStorage.getItem("token");
     if (token) {
-      setUserMode(Number(window.navigator.standalone) || 0,sendid).then(res => {});
+      setUserMode(
+        Number(window.navigator.standalone) || 0,
+        sendid
+      ).then(res => {});
     }
 
     if (

+ 1 - 1
src/view/yun.vue

@@ -29,7 +29,7 @@ export default {
           this.$router.replace("/");
         } else {
           this.$router.replace(
-            `/reader?yun=1&bid=${bid}&cid=${cid}&sendid=${this.$route.params.id}`
+            `/reader?yun=1&bid=${bid}&cid=${cid}&sendid=${this.$route.params.id} || 0`
           );
         }
       });