Преглед на файлове

新设备霸屏去除弹框提示

wangtao преди 4 месеца
родител
ревизия
61ea0108e5
променени са 2 файла, в които са добавени 17 реда и са изтрити 16 реда
  1. 2 2
      src/manifest.json
  2. 15 14
      src/plugins/keyListen.plugins.js

+ 2 - 2
src/manifest.json

@@ -2,8 +2,8 @@
     "name" : "智能巡更",
     "appid" : "__UNI__BF1A1F0",
     "description" : "智能巡更app,是一款用于监督和记录巡逻人员按照预定路线和时间进行巡逻的系统。",
-    "versionName" : "2.2.3",
-    "versionCode" : 23,
+    "versionName" : "2.2.0",
+    "versionCode" : 20,
     "transformPx" : false,
     "app-plus" : {
         "compatible" : {

+ 15 - 14
src/plugins/keyListen.plugins.js

@@ -16,20 +16,21 @@ export default {
         if (needStopSystem) {
             if(plus.os.name == "Android"){
                 plus.key.addEventListener("backbutton", function (e) {
-                    uni.showModal({
-                        title:"提示",
-                        editable:true,
-                        placeholderText:"请输入霸屏退出密码",
-                        success(res) {
-                            if (res.confirm) {
-                                console.log(res)
-                                xunJianStores().modal.exitPassword = res.content
-                                xunJianStores().modalConfirm()
-                            } else if (res.cancel) {
-                                console.log('用户点击了取消');
-                            }
-                        }
-                    })
+                    //霸屏弹框
+                    // uni.showModal({
+                    //     title:"提示",
+                    //     editable:true,
+                    //     placeholderText:"请输入霸屏退出密码",
+                    //     success(res) {
+                    //         if (res.confirm) {
+                    //             console.log(res)
+                    //             xunJianStores().modal.exitPassword = res.content
+                    //             xunJianStores().modalConfirm()
+                    //         } else if (res.cancel) {
+                    //             console.log('用户点击了取消');
+                    //         }
+                    //     }
+                    // })
                     e.preventDefault();
                 },false);
             }