1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- mui.ready(function() {
-
- var removeId = document.getElementById("removeid");
- var security = document.getElementById("security");
- var userAgreement = document.getElementById("userAgreement");
- var about = document.getElementById("about");
- var kefu = document.getElementById("kefu");
-
-
- security.addEventListener('tap',function(){
- plus.nativeUI.showWaiting();
- webviewShow = plus.webview.create("../html/security.html","../html/security.html");
- });
-
-
- about.addEventListener('tap',function(){
- mui.openWindow({
- url: '../html/aboutus.html',
- id: '../html/aboutus.html',
- show: {
- aniShow: "slide-in-right"
- }
- });
-
- });
-
-
- userAgreement.addEventListener('tap',function(){
- mui.openWindow({
- url: '../html/privacy.html',
- id: '../html/privacy.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
- });
- }
- });
- });
-
-
- kefu.addEventListener('tap',function(){
- mui.openWindow({
- url: '../html/kefuhelp.html',
- id: '../html/kefuhelp.html',
- show: {
- aniShow: "slide-in-right"
- }
- });
-
- });
-
-
-
- });
|