123456789101112131415161718192021222324252627282930313233343536 |
- mui.ready(function() {
-
- var removeId = document.getElementById("removeid");
- var security = document.getElementById("security");
-
- security.addEventListener('tap',function(){
- mui.openWindow({
- url: '../html/security.html',
- id: '../html/security.html',
- show: {
- aniShow: "slide-in-right"
- }
- });
- });
-
- removeId.addEventListener('tap', function() {
- var btn = ["退出", "取消"];
- mui.confirm("是否退出", "提示", btn, function(e) {
- if(e.index == 0) {
- plus.storage.removeItem("userid");
- var userId = "null";
- mui.currentWebview.close();
- mui.back();
- var myaccountPage = plus.webview.getWebviewById('html/myaccount.html');
- mui.fire(myaccountPage, 'closeUser', {
- id: userId
- });
- }
- });
- })
- });
|