xiabx 5 gadi atpakaļ
vecāks
revīzija
60d4f5ca93
3 mainītis faili ar 5 papildinājumiem un 7 dzēšanām
  1. 1 1
      src/helper/interface.js
  2. 2 3
      src/views/Index/index.ux
  3. 2 3
      src/views/Reader/index.ux

+ 1 - 1
src/helper/interface.js

@@ -18,7 +18,7 @@ const getDeviceInfo = () => {
 const getShortCut = (fn) =>{
 const getShortCut = (fn) =>{
   shortcut.hasInstalled({
   shortcut.hasInstalled({
     success: (ret) => {
     success: (ret) => {
-      if(!ret) fn();
+      fn(ret);
     }
     }
   })
   })
   
   

+ 2 - 3
src/views/Index/index.ux

@@ -97,9 +97,8 @@ export default {
     this.getCoustom();
     this.getCoustom();
   },
   },
   onShow(){
   onShow(){
-    it.getShortCut(()=>{
-      this.showShortPop = true;
-
+    it.getShortCut((value)=>{
+      this.showShortPop = !value;
     })
     })
   },
   },
   onBackPress() {
   onBackPress() {

+ 2 - 3
src/views/Reader/index.ux

@@ -45,9 +45,8 @@ export default {
     }
     }
   },
   },
    onShow(){
    onShow(){
-    it.getShortCut(()=>{
-      this.showShortPop = true;
-
+    it.getShortCut((value)=>{
+      this.showShortPop = !value;
     })
     })
   },
   },
   addShelf() {
   addShelf() {