1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8">
- <meta content="yes" name="apple-mobile-web-app-capable">
- <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0,minimum-scale=1.0,user-scalable=0" />
- <title>加入成功</title>
- <link rel="stylesheet" type="text/css" href="public/public_css.css"/>
- <style type="text/css">
- body{
- background: #FFFFFF;
- }
- .userImg{
- width: 0.87rem;
- height: 0.87rem;
- border-radius: 50%;
- margin: auto;
- margin-top: 0.41rem;
- margin-bottom: 0.22rem;
- }
- .inviting{
- max-width: 2.4rem;
- text-align: center;
- font-size: 0.16rem;
- color: #878787;
- line-height: 0.22rem;
- margin: auto;
- }
- .inviting text{
- color:#646464;
- }
- .button{
- width: 2.47rem;
- height: 0.41rem;
- background: #FFE100;
- color: #FFFFFF;
- font-size: 0.2rem;
- border-radius: 0.26rem;
- box-shadow:0px 0.02rem 0px rgba(251,179,179,0.5);
- border-radius:0.26rem;
- margin: auto;
- margin-top: 0.97rem;
- display: block;
- }
- </style>
- </head>
- <body>
- <img class="userImg" src="image/logo.png" />
- <p class="inviting">您已成功加入《<text>金牛记账</text>》<br/>名片:<span>---</span></p>
- <button class="button" onclick="goApp()">打开app,一起记账</button>
- </body>
- </html>
- <script type="text/javascript" src="public/jquery-2.1.0.js"></script>
- <script type="text/javascript">
- document.documentElement.style.fontSize = 100 * (document.documentElement.clientWidth/375) + "px";
- window.onresize = function(){
- document.documentElement.style.fontSize = 100 * (document.documentElement.clientWidth/375) + "px";
- }
- var appUrl = null;
- var avatar = '';
- var book_name = '';
- var user_name = '';
- appUrl = localStorage.getItem('appUrl')
- avatar = localStorage.getItem('avatar')
- book_name = localStorage.getItem('book_name')
- user_name = localStorage.getItem('user_name')
-
- window.onload = function (){
- if(avatar == "null" || avatar == ""){
- $(".userImg").attr("src","image/logo.png");
- }else{
- $(".userImg").attr("src",avatar);
- }
- $(".inviting text").html(book_name);
- $(".inviting span").html(user_name);
- }
- function goApp () {
- if(navigator.userAgent.match(/(iPhone|iPod|iPad);?/i)){
- window.location.href=appUrl;
- }
- if(navigator.userAgent.match(/android/i)){
- window.location.href='http://android.myapp.com/myapp/detail.htm?apkName=com.kuxuan.jinniunote';
- }
- }
- </script>
|