Commit 0ace1c7b by 王君

update files

parent 32f99a15
...@@ -28,6 +28,12 @@ ...@@ -28,6 +28,12 @@
height: 1.5em; height: 1.5em;
object-fit: fill; object-fit: fill;
} }
.aui-list-item-arrow::before
{
border: 1px solid #858585 !important;
border-top: none !important;
border-right: none !important;
}
</style> </style>
<body> <body>
...@@ -56,6 +62,15 @@ ...@@ -56,6 +62,15 @@
</div> </div>
</div> </div>
</div> </div>
<div class="aui-list-item aui-list-item-arrow" tapmode onclick="show_privacy_policy()">
<div class="aui-list-item-label-icon">
<img class="leftbtn" src="../../res/btn/my/privacy_policy.png" />
</div>
<div class="aui-list-item-inner">
<div class="aui-list-item-title aui-font-size-14">隐私协议</div>
<div class="aui-list-item-right">
</div>
</div>
</div> </div>
<!--<div class="aui-list-item" tapmode onclick="open_test()"> <!--<div class="aui-list-item" tapmode onclick="open_test()">
<div class="aui-list-item-label-icon"> <div class="aui-list-item-label-icon">
...@@ -235,6 +250,16 @@ ...@@ -235,6 +250,16 @@
console.log('mylist',ret); console.log('mylist',ret);
}); });
} }
function show_privacy_policy(){
//打开隐私协议界面
//var url = '/home/page/showPage?pageName=privacy_policy_2';
api.openFrame({
name: 'privacy_policy_2',
url: '../privacy_policy_2.html',
bounces: false,
reload: true
});
}
</script> </script>
</html> </html>
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
padding-bottom: 6em; padding-bottom: 6em;
} }
#header{ #header{
background-color: #3D60F6; background-color: #4491FF;
height: 2em; height: 2em;
} }
.buttons{ .buttons{
......
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>隐私协议</title>
<link rel="stylesheet" type="text/css" href="../css/aui.2.0.css" />
<link rel="stylesheet" type="text/css" href="../css/vant.css">
<style>
body{
padding: 0px;
margin: 0px;
background-color: #fff;
}
.content{
overflow-x: hidden;
overflow-y: auto;
padding-left: 1em;
padding-right: 1em;
background: #fff;
}
.content_text{
padding-bottom: 6em;
}
#header{
background-color: #4491FF;
height: 2em;
}
.loading{
margin-top: 50%;
}
.header_img{
width: 100%;
height: 4em;
}
.title{
text-align: center;
color: #262626;
background: #fff;
font-size: 16px;
padding-top: 1em;
padding-bottom: 1em;
}
.van-nav-bar__title{
color: #262626 !important;
}
.van-nav-bar .van-icon{
color:#858585 !important;
}
[v-cloak]{
display: none;
}
</style>
</head>
<body>
<div id="privacy_policy" v-cloak>
<van-sticky offset-top="0" id="header_div">
<header id="header"></header>
<van-nav-bar title="隐私协议" left-text="" left-arrow @click-left="back"/>
</van-sticky>
<van-loading v-if="isLoading" size="24px" vertical class="loading">加载中...</van-loading>
<div class="content" id="content">
<div v-if="!isLoading">
<div v-html="content" class="content_text"></div>
</div>
</div>
</div>
<script type="text/javascript" src="../script/vue.min.js"></script>
<script type="text/javascript" src="../script/vant.min.js"></script>
<script type="text/javascript" src="../script/api.js"></script>
<script type="text/javascript" src="../script/common.js"></script>
<script type="text/javascript" src="../script/jquery.min.js"></script>
<script>
apiready = function() {
var app = new Vue({
el:"#privacy_policy",
data:{
content:'',
title:'',
isLoading:true,
headerHeight:0
},
watch:{
isLoading:function (newQuestion, oldQuestion) {
if(!newQuestion){
}
}
},
methods:{
init(){
},
back(){
api.closeFrame({});
},
setContent(){
var url = window.config.dev_path+"api/page/detail?id=17";
$api.post(url,{},function(ret){
if(1==ret.status){
Vue.set(app,'content',ret.data.content);
Vue.set(app,'title',ret.data.title);
Vue.set(app,'isLoading',false);
}
},'json');
}
}
})
app.init();
app.setContent();
}
</script>
</body>
</html>
\ No newline at end of file
...@@ -55,7 +55,7 @@ ...@@ -55,7 +55,7 @@
<script type="text/javascript" src="./script/api.js"></script> <script type="text/javascript" src="./script/api.js"></script>
<script type="text/javascript"> <script type="text/javascript">
apiready = function(){ apiready = function(){
$api.setStorage('first_run',1); //$api.setStorage('first_run',1);
var first_run=$api.getStorage('first_run'); var first_run=$api.getStorage('first_run');
if(first_run!=500){ if(first_run!=500){
api.openFrame({ api.openFrame({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment