看到一个项目,刚开始还以为是APP,只能用微信打开。仔细看了下原来是个web项目,只是禁用了其他浏览器打开,只能用微信浏览器打开。加上前端页面用了类似mui的模板,就更像APP了。
百度了下,参考 https://blog.csdn.net/qq_27721169/article/details/80512535
特此做个记录
一、HTML限制只能微信浏览器打开
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
</head>
<body>
<script type="text/javascript">
var ua = navigator.userAgent.toLowerCase();
var isWeixin = ua.indexOf('micromessenger') != -1;
var isAndroid = ua.indexOf('android') != -1;
var isIos = (ua.indexOf('iphone') != -1) || (ua.indexOf('ipad') != -1);
if (!isWeixin) {
document.head.innerHTML = '<title>抱歉,出错了</title><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=0"><link rel="stylesheet" type="text/css" href="weua.css">';
document.body.innerHTML = '<div class="weui_msg"><div class="weui_icon_area"><i class="weui_icon_info weui_icon_msg"></i></div><div class="weui_text_area"><h4 class="weui_msg_title">请在微信客户端打开链接</h4></div></div>';
}
</script>
</body>
</html>
CSS,冗余部分比较多,实际应用请自行去除冗余部分。
/*!
* WeUI v0.4.1 (https://github.com/weui/weui)
* Copyright 2016 Tencent, Inc.
* Licensed under the MIT license
*/
html {
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
}
body {
line-height: 1.6;
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
* {
margin:;
padding:;
}
a img {
border:;
}
a {
text-decoration: none;
}
@font-face {
font-weight: normal;
font-style: normal;
font-family: "weui";
src: url('data:application/octet-stream;base64,AAEAAAALAIAAAwAwR1NVQrD+s+0AAAE4AAAAQk9TLzJAKEx1AAABfAAAAFZjbWFw64JcfgAAAhQAAAI0Z2x5ZvCBJt8AAARsAAAHLGhlYWQIuM5WAAAA4AAAADZoaGVhCC0D+AAAALwAAAAkaG10eDqYAAAAAAHUAAAAQGxvY2EO3Azs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AbwBqAGUAYwB0AC4AaAB0AHQAcAA6AC8ALwBmAG8AbgB0AGUAbABsAG8ALgBjAG8AbQAAAAIAAAAAAAAACgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAECAQMBBAEFAQYBBwEIAQkBCgELAQwBDQEOAQ8BEAERAAZjaXJjbGUIZG93bmxvYWQEaW5mbwxzYWZlX3N1Y2Nlc3MJc2FmZV93YXJuB3N1Y2Nlc3MOc3VjY2Vzc19jaXJjbGURc3VjY2Vzc19ub19jaXJjbGUHd2FpdGluZw53YWl0aW5nX2NpcmNsZQR3YXJuC2luZm9fY2lyY2xlBmNhbmNlbAZzZWFyY2gFY2xvc2UAAAAA') format('truetype');
}
[class^="weui_icon_"]:before,
[class*=" weui_icon_"]:before {
font-family: "weui";
font-style: normal;
font-weight: normal;
speak: none;
display: inline-block;
vertical-align: middle;
text-decoration: inherit;
width: 1em;
margin-right: .2em;
text-align: center;
/* opacity: .8; */
/* For safety - reset parent styles, that can break glyph codes*/
font-variant: normal;
text-transform: none;
/* fix buttons height, for twitter bootstrap */
line-height: 1em;
/* Animation center compensation - margins should be symmetric */
/* remove if not needed */
margin-left: .2em;
/* you can be more comfortable with increased icons size */
/* font-size: 120%; */
/* Uncomment for 3D effect */
/* text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3); */
}
.weui_icon_circle:before {
content: "\EA01";
}
/* '' */
.weui_icon_download:before {
content: "\EA02";
}
/* '' */
.weui_icon_info:before {
content: "\EA03";
}
/* '' */
.weui_icon_safe_success:before {
content: "\EA04";
}
/* '' */
.weui_icon_safe_warn:before {
content: "\EA05";
}
/* '' */
.weui_icon_success:before {
content: "\EA06";
}
/* '' */
.weui_icon_success_circle:before {
content: "\EA07";
}
/* '' */
.weui_icon_success_no_circle:before {
content: "\EA08";
}
/* '' */
.weui_icon_waiting:before {
content: "\EA09";
}
/* '' */
.weui_icon_waiting_circle:before {
content: "\EA0A";
}
/* '' */
.weui_icon_warn:before {
content: "\EA0B";
}
/* '' */
.weui_icon_info_circle:before {
content: "\EA0C";
}
/* '' */
.weui_icon_cancel:before {
content: "\EA0D";
}
/* '' */
.weui_icon_search:before {
content: "\EA0E";
}
/* '' */
.weui_icon_clear:before {
content: "\EA0F";
}
/* '' */
[class^="weui_icon_"]:before,
[class*=" weui_icon_"]:before {
margin:;
}
.weui_icon_success:before {
font-size: 23px;
color: #09BB07;
}
.weui_icon_waiting:before {
font-size: 23px;
color: #10AEFF;
}
.weui_icon_warn:before {
font-size: 23px;
color: #F43530;
}
.weui_icon_info:before {
font-size: 23px;
color: #10AEFF;
}
.weui_icon_info.red:before {
font-size: 23px;
color: #d04967;
}
.weui_icon_success_circle:before {
font-size: 23px;
color: #09BB07;
}
.weui_icon_success_no_circle:before {
font-size: 23px;
color: #09BB07;
}
.weui_icon_waiting_circle:before {
font-size: 23px;
color: #10AEFF;
}
.weui_icon_circle:before {
font-size: 23px;
color: #C9C9C9;
}
.weui_icon_download:before {
font-size: 23px;
color: #09BB07;
}
.weui_icon_info_circle:before {
font-size: 23px;
color: #09BB07;
}
.weui_icon_safe_success:before {
color: #09BB07;
}
.weui_icon_safe_warn:before {
color: #FFBE00;
}
.weui_icon_cancel:before {
color: #F43530;
font-size: 22px;
}
.weui_icon_search:before {
color: #B2B2B2;
font-size: 14px;
}
.weui_icon_clear:before {
color: #B2B2B2;
font-size: 14px;
}
.weui_icon_msg:before {
font-size: 104px;
}
.weui_icon_msg.red:before {
font-size: 104px;
}
.weui_icon_warn.weui_icon_msg:before {
color: #F76260;
}
.weui_icon_safe:before {
font-size: 104px;
}
.weui_btn.weui_btn_mini {
line-height: 1.9;
font-size: 14px;
padding: 0 .75em;
display: inline-block;
}
button.weui_btn,
input.weui_btn {
width: 100%;
border-width:;
outline:;
-webkit-appearance: none;
}
button.weui_btn:focus,
input.weui_btn:focus {
outline:;
}
button.weui_btn_inline,
input.weui_btn_inline,
button.weui_btn_mini,
input.weui_btn_mini {
width: auto;
}
/*gap between btn*/
.weui_btn + .weui_btn {
margin-top: 15px;
}
.weui_btn.weui_btn_inline + .weui_btn.weui_btn_inline {
margin-top: auto;
margin-left: 15px;
}
.weui_btn_area {
margin: 1.17647059em 15px 0.3em;
}
.weui_btn_area.weui_btn_area_inline {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
}
.weui_btn_area.weui_btn_area_inline .weui_btn {
margin-top: auto;
margin-right: 15px;
width: 100%;
-webkit-box-flex:;
-webkit-flex:;
-ms-flex:;
flex:;
}
.weui_btn_area.weui_btn_area_inline .weui_btn:last-child {
margin-right:;
}
.weui_btn {
position: relative;
display: block;
margin-left: auto;
margin-right: auto;
padding-left: 14px;
padding-right: 14px;
box-sizing: border-box;
font-size: 18px;
text-align: center;
text-decoration: none;
color: #FFFFFF;
line-height: 2.33333333;
border-radius: 5px;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
overflow: hidden;
}
.weui_btn:after {
content: " ";
width: 200%;
height: 200%;
position: absolute;
top:;
left:;
border: 1px solid rgba(0, 0, 0, 0.2);
-webkit-transform: scale(0.5);
transform: scale(0.5);
-webkit-transform-origin: 0 0;
transform-origin: 0 0;
box-sizing: border-box;
border-radius: 10px;
}
.weui_btn.weui_btn_inline {
display: inline-block;
}
.weui_btn_default {
background-color: #F7F7F7;
color: #454545;
}
.weui_btn_default:not(.weui_btn_disabled):visited {
color: #454545;
}
.weui_btn_default:not(.weui_btn_disabled):active {
color: #A1A1A1;
background-color: #DEDEDE;
}
.weui_btn_primary {
background-color: #04BE02;
}
.weui_btn_primary:not(.weui_btn_disabled):visited {
color: #FFFFFF;
}
.weui_btn_primary:not(.weui_btn_disabled):active {
color: rgba(255, 255, 255, 0.4);
background-color: #039702;
}
.weui_btn_warn {
background-color: #EF4F4F;
}
.weui_btn_warn:not(.weui_btn_disabled):visited {
color: #FFFFFF;
}
.weui_btn_warn:not(.weui_btn_disabled):active {
color: rgba(255, 255, 255, 0.4);
background-color: #C13E3E;
}
.weui_btn_disabled {
color: rgba(255, 255, 255, 0.6);
}
.weui_btn_disabled.weui_btn_default {
color: #C9C9C9;
}
.weui_btn_plain_primary {
color: #04BE02;
border: 1px solid #04BE02;
}
button.weui_btn_plain_primary,
input.weui_btn_plain_primary {
border-width: 1px;
background-color: transparent;
}
.weui_btn_plain_primary:active {
border-color: #039702;
}
.weui_btn_plain_primary:after {
border-width:;
}
.weui_btn_plain_default {
color: #5A5A5A;
border: 1px solid #5A5A5A;
}
button.weui_btn_plain_default,
input.weui_btn_plain_default {
border-width: 1px;
background-color: transparent;
}
.weui_btn_plain_default:after {
border-width:;
}
.weui_cell {
position: relative;
}
.weui_cell:before {
content: " ";
position: absolute;
left:;
top:;
width: 100%;
height: 1px;
border-top: 1px solid #D9D9D9;
color: #D9D9D9;
-webkit-transform-origin: 0 0;
transform-origin: 0 0;
-webkit-transform: scaleY(0.5);
transform: scaleY(0.5);
left: 15px;
}
.weui_cell:first-child:before {
display: none;
}
.weui_cells {
margin-top: 1.17647059em;
background-color: #FFFFFF;
line-height: 1.41176471;
font-size: 17px;
overflow: hidden;
position: relative;
}
.weui_cells:before {
content: " ";
position: absolute;
left:;
top:;
width: 100%;
height: 1px;
border-top: 1px solid #D9D9D9;
color: #D9D9D9;
-webkit-transform-origin: 0 0;
transform-origin: 0 0;
-webkit-transform: scaleY(0.5);
transform: scaleY(0.5);
}
.weui_cells:after {
content: " ";
position: absolute;
left:;
bottom:;
width: 100%;
height: 1px;
border-bottom: 1px solid #D9D9D9;
color: #D9D9D9;
-webkit-transform-origin: 0 100%;
transform-origin: 0 100%;
-webkit-transform: scaleY(0.5);
transform: scaleY(0.5);
}
.weui_cells_title {
margin-top: .77em;
margin-bottom: .3em;
padding-left: 15px;
padding-right: 15px;
color: #888;
font-size: 14px;
}
.weui_cells_title + .weui_cells {
margin-top:;
}
.weui_cells_tips {
margin-top: .3em;
color: #888;
padding-left: 15px;
padding-right: 15px;
font-size: 14px;
}
.weui_cell {
padding: 10px 15px;
position: relative;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
}
.weui_cell_ft {
text-align: right;
color: #888;
}
.weui_cell_primary {
-webkit-box-flex:;
-webkit-flex:;
-ms-flex:;
flex:;
}
.weui_cells_access .weui_cell:not(.no_access) {
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
.weui_cells_access .weui_cell:not(.no_access):active {
background-color: #ECECEC;
}
.weui_cells_access a.weui_cell {
color: inherit;
}
.weui_cells_access .weui_cell_ft:after {
content: " ";
display: inline-block;
-webkit-transform: rotate(45deg);
transform: rotate(45deg);
height: 6px;
width: 6px;
border-width: 2px 2px 0 0;
border-color: #C8C8CD;
border-style: solid;
position: relative;
top: -2px;
top: -1px;
margin-left: .3em;
}
.weui_check_label {
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
.weui_check {
position: absolute;
left: -9999em;
}
.weui_cells_radio .weui_cell_ft {
padding-left: 0.35em;
}
.weui_cells_radio .weui_cell:active {
background-color: #ECECEC;
}
.weui_cells_radio .weui_check:checked + .weui_icon_checked:before {
display: block;
content: '\EA08';
color: #09BB07;
font-size: 16px;
}
.weui_cells_checkbox .weui_cell_hd {
padding-right: 0.35em;
}
.weui_cells_checkbox .weui_cell:active {
background-color: #ECECEC;
}
.weui_cells_checkbox .weui_icon_checked:before {
content: '\EA01';
color: #C9C9C9;
font-size: 23px;
display: block;
}
.weui_cells_checkbox .weui_check:checked + .weui_icon_checked:before {
content: '\EA06';
color: #09BB07;
}
.weui_label {
display: block;
width: 3em;
}
.weui_input {
width: 100%;
border:;
outline:;
-webkit-appearance: none;
background-color: transparent;
font-size: inherit;
color: inherit;
height: 1.41176471em;
line-height: 1.41176471;
}
.weui_input::-webkit-outer-spin-button,
.weui_input::-webkit-inner-spin-button {
-webkit-appearance: none;
margin:;
}
.weui_textarea {
display: block;
border:;
resize: none;
width: 100%;
color: inherit;
font-size: 1em;
line-height: inherit;
outline:;
}
.weui_textarea_counter {
color: #B2B2B2;
text-align: right;
}
.weui_cell_warn .weui_textarea_counter {
color: #E64340;
}
.weui_toptips {
display: none;
position: fixed;
-webkit-transform: translateZ(0);
width: 100%;
top:;
line-height: 2.3;
font-size: 14px;
text-align: center;
color: #FFF;
z-index:;
}
.weui_toptips.weui_warn {
background-color: #E64340;
}
.weui_cells_form .weui_cell_warn {
color: #E64340;
}
.weui_cells_form .weui_cell_warn .weui_icon_warn {
display: inline-block;
}
.weui_cells_form .weui_cell_hd {
padding-right: .3em;
}
.weui_cells_form .weui_cell_ft {
font-size:;
}
.weui_cells_form .weui_icon_warn {
display: none;
}
.weui_cells_form input,
.weui_cells_form textarea,
.weui_cells_form label[for] {
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
.weui_cell_select {
padding:;
}
.weui_cell_select .weui_select {
padding-right: 30px;
}
.weui_cell_select .weui_cell_bd:after {
content: " ";
display: inline-block;
-webkit-transform: rotate(45deg);
transform: rotate(45deg);
height: 6px;
width: 6px;
border-width: 2px 2px 0 0;
border-color: #C8C8CD;
border-style: solid;
position: relative;
top: -2px;
position: absolute;
top: 50%;
right: 15px;
margin-top: -3px;
}
.weui_select {
-webkit-appearance: none;
border:;
outline:;
background-color: transparent;
width: 100%;
font-size: inherit;
height: 44px;
position: relative;
z-index:;
padding-left: 15px;
}
.weui_select_before {
padding-right: 15px;
}
.weui_select_before .weui_select {
width: auto;
}
.weui_select_before .weui_cell_hd {
position: relative;
}
.weui_select_before .weui_cell_hd:after {
content: " ";
position: absolute;
right:;
top:;
width: 1px;
height: 100%;
border-right: 1px solid #D9D9D9;
color: #D9D9D9;
-webkit-transform-origin: 100% 0;
transform-origin: 100% 0;
-webkit-transform: scaleX(0.5);
transform: scaleX(0.5);
}
.weui_select_before .weui_cell_hd:before {
content: " ";
display: inline-block;
-webkit-transform: rotate(45deg);
transform: rotate(45deg);
height: 6px;
width: 6px;
border-width: 2px 2px 0 0;
border-color: #C8C8CD;
border-style: solid;
position: relative;
top: -2px;
position: absolute;
top: 50%;
right: 15px;
margin-top: -3px;
}
.weui_select_before .weui_cell_bd {
padding-left: 15px;
}
.weui_select_before .weui_cell_bd:after {
display: none;
}
.weui_select_after {
padding-left: 15px;
}
.weui_vcode {
padding-top:;
padding-right:;
padding-bottom:;
}
.weui_vcode .weui_cell_ft img {
margin-left: 5px;
height: 44px;
vertical-align: middle;
}
.weui_cell_switch {
padding-top: 6px;
padding-bottom: 6px;
}
.weui_switch {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
position: relative;
width: 52px;
height: 32px;
border: 1px solid #DFDFDF;
outline:;
border-radius: 16px;
box-sizing: border-box;
background: #DFDFDF;
}
.weui_switch:before {
content: " ";
position: absolute;
top:;
left:;
width: 50px;
height: 30px;
border-radius: 15px;
background-color: #FDFDFD;
-webkit-transition: -webkit-transform .3s;
transition: -webkit-transform .3s;
transition: transform .3s;
transition: transform .3s, -webkit-transform .3s;
}
.weui_switch:after {
content: " ";
position: absolute;
top:;
left:;
width: 30px;
height: 30px;
border-radius: 15px;
background-color: #FFFFFF;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
-webkit-transition: -webkit-transform .3s;
transition: -webkit-transform .3s;
transition: transform .3s;
transition: transform .3s, -webkit-transform .3s;
}
.weui_switch:checked {
border-color: #04BE02;
background-color: #04BE02;
}
.weui_switch:checked:before {
-webkit-transform: scale(0);
transform: scale(0);
}
.weui_switch:checked:after {
-webkit-transform: translateX(20px);
transform: translateX(20px);
}
.weui_uploader_hd {
padding-top:;
padding-right:;
padding-left:;
}
.weui_uploader_hd .weui_cell_ft {
font-size: 1em;
}
.weui_uploader_bd {
margin-bottom: -4px;
margin-right: -9px;
overflow: hidden;
}
.weui_uploader_files {
list-style: none;
}
.weui_uploader_file {
float: left;
margin-right: 9px;
margin-bottom: 9px;
width: 79px;
height: 79px;
background: no-repeat center center;
background-size: cover;
}
.weui_uploader_status {
position: relative;
}
.weui_uploader_status:before {
content: " ";
position: absolute;
top:;
right:;
bottom:;
left:;
background-color: rgba(0, 0, 0, 0.5);
}
.weui_uploader_status .weui_uploader_status_content {
position: absolute;
top: 50%;
left: 50%;
-webkit-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
color: #FFFFFF;
}
.weui_uploader_status .weui_icon_warn {
display: block;
}
.weui_uploader_input_wrp {
float: left;
position: relative;
margin-right: 9px;
margin-bottom: 9px;
width: 77px;
height: 77px;
border: 1px solid #D9D9D9;
}
.weui_uploader_input_wrp:before,
.weui_uploader_input_wrp:after {
content: " ";
position: absolute;
top: 50%;
left: 50%;
-webkit-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
background-color: #D9D9D9;
}
.weui_uploader_input_wrp:before {
width: 2px;
height: 39.5px;
}
.weui_uploader_input_wrp:after {
width: 39.5px;
height: 2px;
}
.weui_uploader_input_wrp:active {
border-color: #999999;
}
.weui_uploader_input_wrp:active:before,
.weui_uploader_input_wrp:active:after {
background-color: #999999;
}
.weui_uploader_input {
position: absolute;
z-index:;
top:;
left:;
width: 100%;
height: 100%;
opacity:;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
.weui_msg {
padding-top: 36px;
text-align: center;
}
.weui_msg .weui_icon_area {
margin-bottom: 30px;
}
.weui_msg .weui_text_area {
margin-bottom: 25px;
padding: 0 20px;
}
.weui_msg .weui_msg_title {
margin-bottom: 5px;
font-weight:;
font-size: 20px;
}
.weui_msg .weui_msg_desc {
font-size: 14px;
color: #888;
}
.weui_msg .weui_opr_area {
margin-bottom: 25px;
}
.weui_msg .weui_extra_area {
margin-bottom: 15px;
font-size: 14px;
color: #888;
}
.weui_msg .weui_extra_area a {
color: #61749B;
}
@media screen and (min-height: 438px) {
.weui_extra_area {
position: fixed;
left:;
bottom:;
width: 100%;
text-align: center;
}
}
.weui_article {
padding: 20px 15px;
font-size: 15px;
}
.weui_article section {
margin-bottom: 1.5em;
}
.weui_article h1 {
font-size: 17px;
font-weight:;
margin-bottom: .75em;
}
.weui_article h2 {
font-size: 16px;
font-weight:;
margin-bottom: .3em;
}
.weui_article h3 {
font-weight:;
font-size: 15px;
}
.weui_tabbar {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
position: absolute;
bottom:;
width: 100%;
background-color: #f7f7fa;
}
.weui_tabbar:before {
content: " ";
position: absolute;
left:;
top:;
width: 100%;
height: 1px;
border-top: 1px solid #979797;
color: #979797;
-webkit-transform-origin: 0 0;
transform-origin: 0 0;
-webkit-transform: scaleY(0.5);
transform: scaleY(0.5);
}
.weui_tabbar_item {
display: block;
-webkit-box-flex:;
-webkit-flex:;
-ms-flex:;
flex:;
padding: 7px 0 0;
-webkit-tap-highlight-color: transparent;
}
.weui_tabbar_item.weui_bar_item_on .weui_tabbar_label {
color: #09BB07;
}
.weui_tabbar_icon {
margin: 0 auto;
width: 24px;
height: 24px;
}
.weui_tabbar_icon img {
display: block;
width: 100%;
height: 100%;
}
.weui_tabbar_icon + .weui_tabbar_label {
margin-top: 5px;
}
.weui_tabbar_label {
text-align: center;
color: #888;
font-size: 12px;
}
.weui_navbar {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
position: absolute;
z-index:;
top:;
width: 100%;
background-color: #fafafa;
}
.weui_navbar:after {
content: " ";
position: absolute;
left:;
bottom:;
width: 100%;
height: 1px;
border-bottom: 1px solid #BCBAB6;
color: #BCBAB6;
-webkit-transform-origin: 0 100%;
transform-origin: 0 100%;
-webkit-transform: scaleY(0.5);
transform: scaleY(0.5);
}
.weui_navbar + .weui_tab_bd {
padding-top: 50px;
padding-bottom:;
}
.weui_navbar_item {
position: relative;
display: block;
-webkit-box-flex:;
-webkit-flex:;
-ms-flex:;
flex:;
padding: 13px 0;
text-align: center;
font-size: 15px;
-webkit-tap-highlight-color: transparent;
}
.weui_navbar_item:active {
background-color: #ededed;
}
.weui_navbar_item.weui_bar_item_on {
background-color: #eaeaea;
}
.weui_navbar_item:after {
content: " ";
position: absolute;
right:;
top:;
width: 1px;
height: 100%;
border-right: 1px solid #cccccc;
color: #cccccc;
-webkit-transform-origin: 100% 0;
transform-origin: 100% 0;
-webkit-transform: scaleX(0.5);
transform: scaleX(0.5);
}
.weui_navbar_item:last-child:after {
display: none;
}
.weui_tab {
position: relative;
height: 100%;
}
.weui_tab_bd {
box-sizing: border-box;
height: 100%;
padding-bottom: 55px;
overflow: auto;
-webkit-overflow-scrolling: touch;
}
.weui_tab_bd_item {
display: none;
}
.weui_progress {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
}
.weui_progress_bar {
background-color: #EBEBEB;
height: 3px;
-webkit-box-flex:;
-webkit-flex:;
-ms-flex:;
flex:;
}
.weui_progress_inner_bar {
width:;
height: 100%;
background-color: #09BB07;
}
.weui_progress_opr {
display: block;
margin-left: 15px;
font-size:;
}
.weui_panel {
background-color: #FFFFFF;
margin-top: 10px;
position: relative;
overflow: hidden;
}
.weui_panel:first-child {
margin-top:;
}
.weui_panel:before {
content: " ";
position: absolute;
left:;
top:;
width: 100%;
height: 1px;
border-top: 1px solid #E5E5E5;
color: #E5E5E5;
-webkit-transform-origin: 0 0;
transform-origin: 0 0;
-webkit-transform: scaleY(0.5);
transform: scaleY(0.5);
}
.weui_panel:after {
content: " ";
position: absolute;
left:;
bottom:;
width: 100%;
height: 1px;
border-bottom: 1px solid #E5E5E5;
color: #E5E5E5;
-webkit-transform-origin: 0 100%;
transform-origin: 0 100%;
-webkit-transform: scaleY(0.5);
transform: scaleY(0.5);
}
.weui_panel_hd {
padding: 14px 15px 10px;
color: #999999;
font-size: 13px;
position: relative;
}
.weui_panel_hd:after {
content: " ";
position: absolute;
left:;
bottom:;
width: 100%;
height: 1px;
border-bottom: 1px solid #E5E5E5;
color: #E5E5E5;
-webkit-transform-origin: 0 100%;
transform-origin: 0 100%;
-webkit-transform: scaleY(0.5);
transform: scaleY(0.5);
left: 15px;
}
.weui_panel_ft {
padding: 10px 15px 12px;
color: #999999;
font-size: 14px;
position: relative;
}
.weui_panel_ft:before {
content: " ";
position: absolute;
left:;
top:;
width: 100%;
height: 1px;
border-top: 1px solid #E5E5E5;
color: #E5E5E5;
-webkit-transform-origin: 0 0;
transform-origin: 0 0;
-webkit-transform: scaleY(0.5);
transform: scaleY(0.5);
left: 15px;
}
.weui_panel_access .weui_panel_ft {
display: block;
color: #586C94;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
.weui_panel_access .weui_panel_ft:active {
background-color: #ECECEC;
}
.weui_panel_access .weui_panel_ft:after {
content: " ";
display: inline-block;
-webkit-transform: rotate(45deg);
transform: rotate(45deg);
height: 6px;
width: 6px;
border-width: 2px 2px 0 0;
border-color: #C7C7CC;
border-style: solid;
position: relative;
top: -2px;
position: absolute;
right: 15px;
top: 50%;
margin-top: -4px;
}
.weui_media_box {
padding: 15px;
position: relative;
}
.weui_media_box:before {
content: " ";
position: absolute;
left:;
top:;
width: 100%;
height: 1px;
border-top: 1px solid #E5E5E5;
color: #E5E5E5;
-webkit-transform-origin: 0 0;
transform-origin: 0 0;
-webkit-transform: scaleY(0.5);
transform: scaleY(0.5);
left: 15px;
}
.weui_media_box:first-child:before {
display: none;
}
a.weui_media_box {
color: #000000;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
a.weui_media_box:active {
background-color: #ECECEC;
}
.weui_media_box .weui_media_title {
font-weight:;
font-size: 17px;
width: auto;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
word-wrap: normal;
word-wrap: break-word;
word-break: break-all;
}
.weui_media_box .weui_media_desc {
color: #999999;
font-size: 13px;
line-height: 1.2;
overflow: hidden;
text-overflow: ellipsis;
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp:;
}
.weui_media_box.weui_media_text .weui_media_title {
margin-bottom: 8px;
}
.weui_media_box.weui_media_text .weui_media_info {
margin-top: 15px;
padding-bottom: 5px;
font-size: 13px;
color: #CECECE;
line-height: 1em;
list-style: none;
overflow: hidden;
}
.weui_media_box.weui_media_text .weui_media_info_meta {
float: left;
padding-right: 1em;
}
.weui_media_box.weui_media_text .weui_media_info_meta.weui_media_info_meta_extra {
padding-left: 1em;
border-left: 1px solid #CECECE;
}
.weui_media_box.weui_media_appmsg {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-webkit-align-items: center;
-ms-flex-align: center;
align-items: center;
}
.weui_media_box.weui_media_appmsg .weui_media_hd {
margin-right: .8em;
width: 60px;
height: 60px;
line-height: 60px;
text-align: center;
}
.weui_media_box.weui_media_appmsg .weui_media_appmsg_thumb {
width: 100%;
max-height: 100%;
vertical-align: middle;
}
.weui_media_box.weui_media_appmsg .weui_media_bd {
-webkit-box-flex:;
-webkit-flex:;
-ms-flex:;
flex:;
min-width:;
}
.weui_media_box.weui_media_small_appmsg {
padding:;
}
.weui_media_box.weui_media_small_appmsg .weui_cells {
margin-top:;
}
.weui_media_box.weui_media_small_appmsg .weui_cells:before {
display: none;
}
.weui_grids {
position: relative;
overflow: hidden;
}
.weui_grids:before {
content: " ";
position: absolute;
left:;
top:;
width: 100%;
height: 1px;
border-top: 1px solid #D9D9D9;
color: #D9D9D9;
-webkit-transform-origin: 0 0;
transform-origin: 0 0;
-webkit-transform: scaleY(0.5);
transform: scaleY(0.5);
}
.weui_grids:after {
content: " ";
position: absolute;
left:;
top:;
width: 1px;
height: 100%;
border-left: 1px solid #D9D9D9;
color: #D9D9D9;
-webkit-transform-origin: 0 0;
transform-origin: 0 0;
-webkit-transform: scaleX(0.5);
transform: scaleX(0.5);
}
.weui_grid {
position: relative;
float: left;
padding: 20px 10px;
width: 33.33333333%;
box-sizing: border-box;
}
.weui_grid:before {
content: " ";
position: absolute;
right:;
top:;
width: 1px;
height: 100%;
border-right: 1px solid #D9D9D9;
color: #D9D9D9;
-webkit-transform-origin: 100% 0;
transform-origin: 100% 0;
-webkit-transform: scaleX(0.5);
transform: scaleX(0.5);
}
.weui_grid:after {
content: " ";
position: absolute;
left:;
bottom:;
width: 100%;
height: 1px;
border-bottom: 1px solid #D9D9D9;
color: #D9D9D9;
-webkit-transform-origin: 0 100%;
transform-origin: 0 100%;
-webkit-transform: scaleY(0.5);
transform: scaleY(0.5);
}
.weui_grid:active {
background-color: #E4E4E4;
}
.weui_grid_icon {
width: 28px;
height: 28px;
margin: 0 auto;
}
.weui_grid_icon img {
display: block;
width: 100%;
height: 100%;
}
.weui_grid_icon + .weui_grid_label {
margin-top: 5px;
}
.weui_grid_label {
display: block;
text-align: center;
color: #000;
font-size: 14px;
}
.weui_dialog {
position: fixed;
z-index:;
width: 85%;
top: 50%;
left: 50%;
-webkit-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
background-color: #FAFAFC;
text-align: center;
border-radius: 3px;
}
.weui_dialog_confirm .weui_dialog .weui_dialog_hd {
padding: 1.2em 20px .5em;
}
.weui_dialog_confirm .weui_dialog .weui_dialog_bd {
text-align: left;
}
.weui_dialog_hd {
padding: 1.2em 0 .5em;
}
.weui_dialog_title {
font-weight:;
font-size: 17px;
}
.weui_dialog_bd {
padding: 0 20px;
font-size: 15px;
color: #888;
word-wrap: break-word;
word-break: break-all;
}
.weui_dialog_ft {
position: relative;
line-height: 42px;
margin-top: 20px;
font-size: 17px;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
}
.weui_dialog_ft a {
display: block;
-webkit-box-flex:;
-webkit-flex:;
-ms-flex:;
flex:;
color: #3CC51F;
text-decoration: none;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
.weui_dialog_ft a:active {
background-color: #EEEEEE;
}
.weui_dialog_ft:after {
content: " ";
position: absolute;
left:;
top:;
width: 100%;
height: 1px;
border-top: 1px solid #D5D5D6;
color: #D5D5D6;
-webkit-transform-origin: 0 0;
transform-origin: 0 0;
-webkit-transform: scaleY(0.5);
transform: scaleY(0.5);
}
.weui_dialog_confirm .weui_dialog_ft a {
position: relative;
}
.weui_dialog_confirm .weui_dialog_ft a:after {
content: " ";
position: absolute;
left:;
top:;
width: 1px;
height: 100%;
border-left: 1px solid #D5D5D6;
color: #D5D5D6;
-webkit-transform-origin: 0 0;
transform-origin: 0 0;
-webkit-transform: scaleX(0.5);
transform: scaleX(0.5);
}
.weui_dialog_confirm .weui_dialog_ft a:first-child:after {
display: none;
}
.weui_btn_dialog.default {
color: #353535;
}
.weui_btn_dialog.primary {
color: #0BB20C;
}
@media screen and (min-width: 1024px) {
.weui_dialog {
width: 35%;
}
}
.weui_toast {
position: fixed;
z-index:;
width: 7.6em;
min-height: 7.6em;
top: 180px;
left: 50%;
margin-left: -3.8em;
background: rgba(40, 40, 40, 0.75);
text-align: center;
border-radius: 5px;
color: #FFFFFF;
}
.weui_icon_toast {
margin: 22px 0 0;
display: block;
}
.weui_icon_toast:before {
content: '\EA08';
color: #FFFFFF;
font-size: 55px;
}
.weui_toast_content {
margin: 0 0 15px;
}
.weui_loading_toast .weui_toast_content {
margin-top: 64%;
font-size: 14px;
}
.weui_loading {
position: absolute;
width: 0px;
z-index:;
left: 50%;
top: 38%;
}
.weui_loading_leaf {
position: absolute;
top: -1px;
opacity: 0.25;
}
.weui_loading_leaf:before {
content: " ";
position: absolute;
width: 8.14px;
height: 3.08px;
background: #d1d1d5;
box-shadow: rgba(0, 0, 0, 0.0980392) 0px 0px 1px;
border-radius: 1px;
-webkit-transform-origin: left 50% 0px;
transform-origin: left 50% 0px;
}
.weui_loading_leaf_0 {
-webkit-animation: opacity-60-25-0-12 1.25s linear infinite;
animation: opacity-60-25-0-12 1.25s linear infinite;
}
.weui_loading_leaf_0:before {
-webkit-transform: rotate(0deg) translate(7.92px, 0px);
transform: rotate(0deg) translate(7.92px, 0px);
}
.weui_loading_leaf_1 {
-webkit-animation: opacity-60-25-1-12 1.25s linear infinite;
animation: opacity-60-25-1-12 1.25s linear infinite;
}
.weui_loading_leaf_1:before {
-webkit-transform: rotate(30deg) translate(7.92px, 0px);
transform: rotate(30deg) translate(7.92px, 0px);
}
.weui_loading_leaf_2 {
-webkit-animation: opacity-60-25-2-12 1.25s linear infinite;
animation: opacity-60-25-2-12 1.25s linear infinite;
}
.weui_loading_leaf_2:before {
-webkit-transform: rotate(60deg) translate(7.92px, 0px);
transform: rotate(60deg) translate(7.92px, 0px);
}
.weui_loading_leaf_3 {
-webkit-animation: opacity-60-25-3-12 1.25s linear infinite;
animation: opacity-60-25-3-12 1.25s linear infinite;
}
.weui_loading_leaf_3:before {
-webkit-transform: rotate(90deg) translate(7.92px, 0px);
transform: rotate(90deg) translate(7.92px, 0px);
}
.weui_loading_leaf_4 {
-webkit-animation: opacity-60-25-4-12 1.25s linear infinite;
animation: opacity-60-25-4-12 1.25s linear infinite;
}
.weui_loading_leaf_4:before {
-webkit-transform: rotate(120deg) translate(7.92px, 0px);
transform: rotate(120deg) translate(7.92px, 0px);
}
.weui_loading_leaf_5 {
-webkit-animation: opacity-60-25-5-12 1.25s linear infinite;
animation: opacity-60-25-5-12 1.25s linear infinite;
}
.weui_loading_leaf_5:before {
-webkit-transform: rotate(150deg) translate(7.92px, 0px);
transform: rotate(150deg) translate(7.92px, 0px);
}
.weui_loading_leaf_6 {
-webkit-animation: opacity-60-25-6-12 1.25s linear infinite;
animation: opacity-60-25-6-12 1.25s linear infinite;
}
.weui_loading_leaf_6:before {
-webkit-transform: rotate(180deg) translate(7.92px, 0px);
transform: rotate(180deg) translate(7.92px, 0px);
}
.weui_loading_leaf_7 {
-webkit-animation: opacity-60-25-7-12 1.25s linear infinite;
animation: opacity-60-25-7-12 1.25s linear infinite;
}
.weui_loading_leaf_7:before {
-webkit-transform: rotate(210deg) translate(7.92px, 0px);
transform: rotate(210deg) translate(7.92px, 0px);
}
.weui_loading_leaf_8 {
-webkit-animation: opacity-60-25-8-12 1.25s linear infinite;
animation: opacity-60-25-8-12 1.25s linear infinite;
}
.weui_loading_leaf_8:before {
-webkit-transform: rotate(240deg) translate(7.92px, 0px);
transform: rotate(240deg) translate(7.92px, 0px);
}
.weui_loading_leaf_9 {
-webkit-animation: opacity-60-25-9-12 1.25s linear infinite;
animation: opacity-60-25-9-12 1.25s linear infinite;
}
.weui_loading_leaf_9:before {
-webkit-transform: rotate(270deg) translate(7.92px, 0px);
transform: rotate(270deg) translate(7.92px, 0px);
}
.weui_loading_leaf_10 {
-webkit-animation: opacity-60-25-10-12 1.25s linear infinite;
animation: opacity-60-25-10-12 1.25s linear infinite;
}
.weui_loading_leaf_10:before {
-webkit-transform: rotate(300deg) translate(7.92px, 0px);
transform: rotate(300deg) translate(7.92px, 0px);
}
.weui_loading_leaf_11 {
-webkit-animation: opacity-60-25-11-12 1.25s linear infinite;
animation: opacity-60-25-11-12 1.25s linear infinite;
}
.weui_loading_leaf_11:before {
-webkit-transform: rotate(330deg) translate(7.92px, 0px);
transform: rotate(330deg) translate(7.92px, 0px);
}
@-webkit-keyframes opacity-60-25-0-12 {
0% {
opacity: 0.25;
}
0.01% {
opacity: 0.25;
}
0.02% {
opacity:;
}
60.01% {
opacity: 0.25;
}
100% {
opacity: 0.25;
}
}
@-webkit-keyframes opacity-60-25-1-12 {
0% {
opacity: 0.25;
}
8.34333% {
opacity: 0.25;
}
8.35333% {
opacity:;
}
68.3433% {
opacity: 0.25;
}
100% {
opacity: 0.25;
}
}
@-webkit-keyframes opacity-60-25-2-12 {
0% {
opacity: 0.25;
}
16.6767% {
opacity: 0.25;
}
16.6867% {
opacity:;
}
76.6767% {
opacity: 0.25;
}
100% {
opacity: 0.25;
}
}
@-webkit-keyframes opacity-60-25-3-12 {
0% {
opacity: 0.25;
}
25.01% {
opacity: 0.25;
}
25.02% {
opacity:;
}
85.01% {
opacity: 0.25;
}
100% {
opacity: 0.25;
}
}
@-webkit-keyframes opacity-60-25-4-12 {
0% {
opacity: 0.25;
}
33.3433% {
opacity: 0.25;
}
33.3533% {
opacity:;
}
93.3433% {
opacity: 0.25;
}
100% {
opacity: 0.25;
}
}
@-webkit-keyframes opacity-60-25-5-12 {
0% {
opacity: 0.270958333333333;
}
41.6767% {
opacity: 0.25;
}
41.6867% {
opacity:;
}
1.67667% {
opacity: 0.25;
}
100% {
opacity: 0.270958333333333;
}
}
@-webkit-keyframes opacity-60-25-6-12 {
0% {
opacity: 0.375125;
}
50.01% {
opacity: 0.25;
}
50.02% {
opacity:;
}
10.01% {
opacity: 0.25;
}
100% {
opacity: 0.375125;
}
}
@-webkit-keyframes opacity-60-25-7-12 {
0% {
opacity: 0.479291666666667;
}
58.3433% {
opacity: 0.25;
}
58.3533% {
opacity:;
}
18.3433% {
opacity: 0.25;
}
100% {
opacity: 0.479291666666667;
}
}
@-webkit-keyframes opacity-60-25-8-12 {
0% {
opacity: 0.583458333333333;
}
66.6767% {
opacity: 0.25;
}
66.6867% {
opacity:;
}
26.6767% {
opacity: 0.25;
}
100% {
opacity: 0.583458333333333;
}
}
@-webkit-keyframes opacity-60-25-9-12 {
0% {
opacity: 0.687625;
}
75.01% {
opacity: 0.25;
}
75.02% {
opacity:;
}
35.01% {
opacity: 0.25;
}
100% {
opacity: 0.687625;
}
}
@-webkit-keyframes opacity-60-25-10-12 {
0% {
opacity: 0.791791666666667;
}
83.3433% {
opacity: 0.25;
}
83.3533% {
opacity:;
}
43.3433% {
opacity: 0.25;
}
100% {
opacity: 0.791791666666667;
}
}
@-webkit-keyframes opacity-60-25-11-12 {
0% {
opacity: 0.895958333333333;
}
91.6767% {
opacity: 0.25;
}
91.6867% {
opacity:;
}
51.6767% {
opacity: 0.25;
}
100% {
opacity: 0.895958333333333;
}
}
.weui_mask {
position: fixed;
z-index:;
width: 100%;
height: 100%;
top:;
left:;
background: rgba(0, 0, 0, 0.6);
}
.weui_mask_transparent {
position: fixed;
z-index:;
width: 100%;
height: 100%;
top:;
left:;
}
.weui_mask_transition {
display: none;
position: fixed;
z-index:;
width: 100%;
height: 100%;
top:;
left:;
background: rgba(0, 0, 0, 0);
-webkit-transition: background .3s;
transition: background .3s;
}
.weui_fade_toggle {
background: rgba(0, 0, 0, 0.6);
}
.weui_actionsheet {
position: fixed;
left:;
bottom:;
-webkit-transform: translate(0, 100%);
transform: translate(0, 100%);
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
z-index:;
width: 100%;
background-color: #EFEFF4;
-webkit-transition: -webkit-transform .3s;
transition: -webkit-transform .3s;
transition: transform .3s;
transition: transform .3s, -webkit-transform .3s;
}
.weui_actionsheet_menu {
background-color: #FFFFFF;
}
.weui_actionsheet_action {
margin-top: 6px;
background-color: #FFFFFF;
}
.weui_actionsheet_cell {
position: relative;
padding: 10px 0;
text-align: center;
font-size: 18px;
}
.weui_actionsheet_cell:before {
content: " ";
position: absolute;
left:;
top:;
width: 100%;
height: 1px;
border-top: 1px solid #D9D9D9;
color: #D9D9D9;
-webkit-transform-origin: 0 0;
transform-origin: 0 0;
-webkit-transform: scaleY(0.5);
transform: scaleY(0.5);
}
.weui_actionsheet_cell:active {
background-color: #ECECEC;
}
.weui_actionsheet_cell:first-child:before {
display: none;
}
.weui_actionsheet_toggle {
-webkit-transform: translate(0, 0);
transform: translate(0, 0);
}
.weui_search_bar {
position: relative;
padding: 8px 10px;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
box-sizing: border-box;
background-color: #EFEFF4;
z-index:;
}
.weui_search_bar:before {
content: " ";
position: absolute;
left:;
top:;
width: 100%;
height: 1px;
border-top: 1px solid #C7C7C7;
color: #C7C7C7;
-webkit-transform-origin: 0 0;
transform-origin: 0 0;
-webkit-transform: scaleY(0.5);
transform: scaleY(0.5);
}
.weui_search_bar:after {
content: " ";
position: absolute;
left:;
bottom:;
width: 100%;
height: 1px;
border-bottom: 1px solid #C7C7C7;
color: #C7C7C7;
-webkit-transform-origin: 0 100%;
transform-origin: 0 100%;
-webkit-transform: scaleY(0.5);
transform: scaleY(0.5);
}
.weui_search_bar.weui_search_focusing .weui_search_cancel {
display: block;
}
.weui_search_bar.weui_search_focusing .weui_search_text {
display: none;
}
.weui_search_outer {
position: relative;
-webkit-box-flex:;
-webkit-flex: auto;
-ms-flex: auto;
flex: auto;
background-color: #EFEFF4;
}
.weui_search_outer:after {
content: '';
position: absolute;
left:;
top:;
width: 200%;
height: 200%;
-webkit-transform: scale(0.5);
transform: scale(0.5);
-webkit-transform-origin: 0 0;
transform-origin: 0 0;
border-radius: 10px;
border: 1px solid #E6E6EA;
box-sizing: border-box;
background: #FFFFFF;
}
.weui_search_inner {
position: relative;
padding-left: 30px;
padding-right: 30px;
height: 100%;
width: 100%;
box-sizing: border-box;
z-index:;
}
.weui_search_inner .weui_search_input {
padding: 4px 0;
width: 100%;
height: 1.42857143em;
border:;
font-size: 14px;
line-height: 1.42857143em;
box-sizing: content-box;
background: transparent;
}
.weui_search_inner .weui_search_input:focus {
outline: none;
}
.weui_search_inner .weui_icon_search {
position: absolute;
left: 10px;
top: -2px;
line-height: 28px;
}
.weui_search_inner .weui_icon_clear {
position: absolute;
top: -2px;
right:;
padding: 0 10px;
line-height: 28px;
}
.weui_search_text {
position: absolute;
top: 1px;
right: 1px;
bottom: 1px;
left: 1px;
z-index:;
border-radius: 3px;
text-align: center;
color: #9B9B9B;
background: #FFFFFF;
}
.weui_search_text span {
display: inline-block;
font-size: 14px;
vertical-align: middle;
}
.weui_search_text .weui_icon_search {
margin-right: 5px;
}
.weui_search_cancel {
display: none;
margin-left: 10px;
line-height: 28px;
color: #09BB07;
}
.weui_search_input:not(:valid) ~ .weui_icon_clear {
display: none;
}
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
display: none;
}
二、禁止分享和浏览器打开等选项禁用
var ua = navigator.userAgent.toLowerCase();
var isWeixin = ua.indexOf('micromessenger') != -1;
if (!isWeixin) {
var opened = window.open('wxError.html', '_self');
}
$(function(){
/*禁用微信分享功能 */
function onBridgeReady() {
WeixinJSBridge.call('hideOptionMenu');
} if (typeof WeixinJSBridge == "undefined") {
if (document.addEventListener) {
document.addEventListener('WeixinJSBridgeReady', onBridgeReady, false);
} else if (document.attachEvent) {
document.attachEvent('WeixinJSBridgeReady', onBridgeReady);
document.attachEvent('onWeixinJSBridgeReady', onBridgeReady);
}
} else {
onBridgeReady();
}
if (isWeixin) {
window.alert = function(name){
var iframe = document.createElement("IFRAME");
iframe.style.display="none";
iframe.setAttribute("src", 'data:text/plain,');
document.documentElement.appendChild(iframe);
window.frames[0].window.alert(name);
iframe.parentNode.removeChild(iframe);
}
}});