|
@@ -8,7 +8,7 @@
|
|
|
<link href="../../css/mui.min.css" rel="stylesheet" />
|
|
|
<link href="../../css/iconfont.css" rel="stylesheet" />
|
|
|
<link href="../../css/animate.min.css" rel="stylesheet" />
|
|
|
- <style>
|
|
|
+ <style>
|
|
|
.mui-content{margin-top: 54px;}
|
|
|
.mui-table-view-cell>a:not(.mui-btn){color: #818181;}
|
|
|
.mui-table-view-cell{padding: 13px;text-align: left;border-bottom: 1px solid #efefef;font-size: 15px;}
|
|
@@ -30,86 +30,59 @@
|
|
|
</header>
|
|
|
<div class="mui-content bg animated fadeInUp" id="app">
|
|
|
<div class="m_box">
|
|
|
- <ul class="mui-table-view">
|
|
|
- <li class="mui-table-view-cell">
|
|
|
- <a class="mui-navigate-right"><span class="mui-pull-right">v 1.0.0</span><i class="icon iconfont icon-banbenjiance"></i>当前版本</a>
|
|
|
- </li>
|
|
|
- <li class="mui-table-view-cell">
|
|
|
- <a class="mui-navigate-right" onclick="op(1)"><span class="mui-pull-right" id="phone"></span><i class="icon iconfont icon-service-phone"></i>客服电话</a>
|
|
|
- </li>
|
|
|
- <li class="mui-table-view-cell">
|
|
|
- <a class="mui-navigate-right" onclick="op(2)"><span class="mui-pull-right">党建扶贫</span><i class="icon iconfont icon-guanyu"></i>关于</a>
|
|
|
- </li>
|
|
|
- </ul>
|
|
|
+ <ul class="mui-table-view">
|
|
|
+ <li class="mui-table-view-cell">
|
|
|
+ <a class="mui-navigate-right"><span class="mui-pull-right">v {{version}}</span><i class="icon iconfont icon-banbenjiance"></i>当前版本</a>
|
|
|
+ </li>
|
|
|
+ <li class="mui-table-view-cell">
|
|
|
+ <a class="mui-navigate-right" :href=" 'tel:'+phone"><span class="mui-pull-right">{{phone}}</span><i class="icon iconfont icon-service-phone"></i>客服电话</a>
|
|
|
+ </li>
|
|
|
+ <li class="mui-table-view-cell">
|
|
|
+ <a class="mui-navigate-right" @click="op(2)"><span class="mui-pull-right">党建扶贫</span><i class="icon iconfont icon-guanyu"></i>关于</a>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
</div>
|
|
|
- <button class="btn" onclick="op(3)">退出登录</button>
|
|
|
+ <button class="btn" @click="op(3)" v-show="login">退出登录</button>
|
|
|
</div>
|
|
|
<script src="../../js/mui.min.js"></script>
|
|
|
- <script src="../../js/app.js" ></script>
|
|
|
+ <script src="../../js/app.js"></script>
|
|
|
+ <script src="../../js/vue.min.js"></script>
|
|
|
<script type="text/javascript">
|
|
|
- //操作
|
|
|
+ //操作
|
|
|
mui.plusReady(function() {
|
|
|
var vm = new Vue({
|
|
|
el: "#app",
|
|
|
- data:{
|
|
|
- phone:getConstant().phone,
|
|
|
- qq:getConstant().qq,
|
|
|
- group:getConstant().group
|
|
|
+ data: {
|
|
|
+ phone: getConstant().phone,
|
|
|
+ version:'',
|
|
|
+ login:hasLogin()
|
|
|
},
|
|
|
+ mounted: function() {
|
|
|
+ plus.runtime.getProperty(plus.runtime.appid, function(inf) {
|
|
|
+ vm.version=inf.version;
|
|
|
+ });
|
|
|
+ },
|
|
|
methods: {
|
|
|
op: function(flag) {
|
|
|
switch(flag) {
|
|
|
- case 1:
|
|
|
- callqq(vm.qq);
|
|
|
- break;
|
|
|
case 2:
|
|
|
- mui.toast("已复制,请打开qq搜索添加群");
|
|
|
- copy(vm.group);
|
|
|
+ open('about', 'about.html', null,'slide-in-bottom');
|
|
|
+ break;
|
|
|
+ case 3:
|
|
|
+ mui.confirm('是否退出登录?', '提示', ['否', '是'], function(e) {
|
|
|
+ if(e.index == 1) {
|
|
|
+ localStorage.removeItem("user");
|
|
|
+ localStorage.removeItem("token");
|
|
|
+ plus.webview.getWebviewById('tab/mine.html').reload(true);
|
|
|
+ mui.back();
|
|
|
+ }
|
|
|
+ })
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
})
|
|
|
- mui.plusReady(function() {
|
|
|
- var cache = document.getElementById("cache");
|
|
|
- plus.cache.calculate(function(size) {
|
|
|
- var s = size / 1024 / 1024
|
|
|
- cache.innerHTML = s.toFixed(1) + 'M';
|
|
|
- });
|
|
|
- })
|
|
|
- document.getElementById("phone").innerText=getConstant().phone;
|
|
|
- //操作
|
|
|
- function op(flag) {
|
|
|
- switch(flag) {
|
|
|
- case 1:
|
|
|
- plus.device.dial(getConstant().phone, false);
|
|
|
- break;
|
|
|
- case 2:
|
|
|
- open('about', 'about.html', null, 'slide-in-bottom');
|
|
|
- break;
|
|
|
- case 3:
|
|
|
- mui.confirm('是否退出登录?', '提示', ['否', '是'], function(e) {
|
|
|
- if(e.index == 1) {
|
|
|
- localStorage.removeItem("user");
|
|
|
- localStorage.removeItem("token");
|
|
|
- plus.webview.getWebviewById('tab/mine.html').reload(true);
|
|
|
- mui.back();
|
|
|
- }
|
|
|
- })
|
|
|
- break;
|
|
|
- case 5:
|
|
|
- mui.confirm('是否清除缓存?', '提示', ['否', '是'], function(e) {
|
|
|
- if(e.index == 1) {
|
|
|
- plus.cache.clear(function() {
|
|
|
- mui.alert("清除成功!");
|
|
|
- document.getElementById("cache").innerHTML = "0M"
|
|
|
- });
|
|
|
- }
|
|
|
- })
|
|
|
- break;
|
|
|
- }
|
|
|
- }
|
|
|
</script>
|
|
|
</body>
|
|
|
|