|
@@ -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);
|
|
|
}
|