123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8">
- <title>设置-爽客邦</title>
- <meta name="keywords" content="设置-爽客邦">
- <meta name="description" content="设置-爽客邦">
- <meta content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,shrink-to-fit=no,user-scalable=no" name="viewport" viewport="cover">
- <meta name="apple-mobile-web-app-capable" content="yes">
- <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
- <meta content="telephone=no" name="format-detection">
- <meta content="email=no" name="format-detection">
- <meta name="apple-mobile-web-app-title" content="设置-爽客邦">
- <meta http-equiv="Cache-Control" content="no-siteapp">
- <link rel="stylesheet" href="./static/css/main.css">
- </head>
- <body class="bgc-back">
- <div id="app" v-cloak>
- <van-nav-bar class="user_rank_explan_title user_title_normal" left-arrow title="设置" v-if="toptitleisshow" @click-left="goback">
- <template #left> <img src="./static/images/left.png" alt=""></template>
- </van-nav-bar>
- <van-cell-group class="bt8f7f7f7" :border="false" v-cloak>
- <van-cell title="修改登录手机号" value="" is-link @click="verfifcationbtn('changephone')"></van-cell>
- <van-cell title="修改登录密码" value="" is-link @click="changepwd"></van-cell>
- <van-cell title="手势密码" value="" is-link>
- <template #right-icon>
- <van-switch v-model="checked" size="24" @click="gesture"></van-switch>
- </template>
- </van-cell>
- </van-cell-group>
- <van-cell-group class="bt8f7f7f7" :border="false" v-cloak>
- <van-cell title="清理缓存" value="" is-link @click="cleardataisshow = true"></van-cell>
- <van-cell title="关于爽客邦" value="" is-link @click="about"></van-cell>
- </van-cell-group>
- <div class="bt8f7f7f7">
- <van-button class="nb" color="#ff502a" plain block @click="dialogisshow = true">安全退出</van-button>
- </div>
- <van-dialog style="border-radius:4px;" v-model="dialogisshow" title="确定退出登录。" show-cancel-button @confirm="gologin" @cancel="dialogisshow = false"> </van-dialog>
- <van-dialog style="border-radius:4px;" v-model="cleardataisshow" title="清理缓存" width="70%" message="是否清理缓存,清理缓存之后将重新登录" show-cancel-button @confirm="cleardata" @cancel="cleardataisshow = false"> </van-dialog>
- <van-dialog style="border-radius:4px;" v-model="closegestureisshow" title="关闭手势密码" width="70%" message="是否关闭手势密码" show-cancel-button @confirm="closegesture" @cancel="unclosegesture"> </van-dialog>
- </div>
- <script src="./static/js/klm-vv.min.js"></script>
- <script src="./static/js/klm-axios-config.js"></script>
- <script>
- // 通过 CDN 引入时不会自动注册 Lazyload 组件
- // 可以通过下面的方式手动注册
- Vue.use(vant.Lazyload);
-
- // 在 #app 标签下渲染一个按钮组件
- let app = new Vue({
- el: '#app',
- data() {
- return {
- toptitleisshow:false,
- active: 0,
- curversion: '1.1.3',
- version: '1.1.4',
- hasNew: false,
- checked: '',
- closegestureisshow:false,
- dialogisshow:false,
- cleardataisshow:false,
- };
- },
- created() {
- this.toptitleisshow = toptitleisshow;
- if(PublicLib.getCookieInfo('step') === '2') {
- this.checked = true;
- }
- },
- methods: {
- clearDot(str) {
- str = str.replace(/\./g, "");
- return str;
- },
- //- //- 确认退出
- gologin(){
- const id = PublicLib.getCookieInfo('userId');
- postRequest('/api/v1/users/logout',JSON.stringify({UserId:id}));
- PublicLib.Goto({Url:'user-login'});
- PublicLib.putCookieInfo('userId', '');
- },
- //- 清理缓存并确认退出
- loginout(){
- const id = PublicLib.getCookieInfo('userId');
- postRequest('/api/v1/users/logout',JSON.stringify({UserId:id}));
- PublicLib.Goto({Url:'user-login'});
- PublicLib.putCookieInfo('passwordxx', '');
- PublicLib.putCookieInfo('chooseType', '');
- PublicLib.putCookieInfo('step', '');
- PublicLib.putCookieInfo('userId', '');
- },
- //- 手势密码
- gesture(){
- if(this.checked){
- this.closegestureisshow = true;
- }else{
- PublicLib.putCookieInfo('issetting', 1);
- PublicLib.Goto({Url:'gesture-setpassword'});
- }
- },
- //- 关闭手势密码
- closegesture(){
- PublicLib.putCookieInfo('passwordxx', '');
- PublicLib.putCookieInfo('chooseType', '');
- PublicLib.putCookieInfo('step', '');
- },
- //- 取消关闭手势密码
- unclosegesture(){
- this.closegestureisshow = false;
- this.checked = true;
- },
- goback(){
- PublicLib.GoBack({Level:1});
- },
- //- 修改登录密码
- changepwd(){
- PublicLib.Goto({Url:'user-changepwd'});
- },
- //- 清理缓存
- cleardata(){
- PublicLib.ClearAppCache();
- },
- //- 关于
- about(){
- PublicLib.Goto({Url:'user-about'});
- },
- verfifcationbtn(type){
- PublicLib.putCookieInfo("settingto",type);
- PublicLib.Goto({Url:'user-verification'});
- },
-
- }
- });
- </script>
- </body>
- </html>
|