forked from dcloudio/casecode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdetail_main.html
77 lines (73 loc) · 2.29 KB
/
detail_main.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>36氪 - 文章详情</title>
<meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="stylesheet" href="css/mui.min.css">
<link rel="stylesheet" href="css/app.css?v=2015123" />
<style>
html,
body {
min-height: 100%;
background-color: #efeff4;
}
.kr-loader {
position: fixed;
top: 0;
bottom: 0;
padding: 55% 0;
width: 100%;
height: 100%;
color: #888;
font-size: 14px;
text-align: center;
background-color: #efeff4;
display: none;
}
/*.kr-article-bar {
-webkit-transition: -webkit-transform .3s, opacity .3s;
transition: transform .3s, opacity .3s;
-webkit-transform: translate3d(0, 100%, 0);
transform: translate3d(0, 100%, 0);
opacity: 1;
}
.kr-article-bar.mui-active {
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
opacity: 1;
}*/
</style>
</head>
<body class="kr-article-detail">
<div id="footer" class="kr-article-bar mui-bar mui-bar-standard mui-bar-footer">
<a id="back" class="mui-icon mui-icon-arrowleft mui-pull-left" style="padding: 10px;margin-left: -10px;"></a>
<div class="mui-pull-right">
<a id="share" class="mui-icon mui-icon-upload" href="javascript:;"> </a>
</div>
</div>
<script type="text/javascript" charset="UTF-8" src="js/mui.min.js"></script>
<script type="text/javascript" charset="UTF-8" src="js/app.js"></script>
<script>
(function($) {
var Intent = null,
main = null;
// H5 plus事件处理
$.plusReady(function() {
Intent = plus.android.importClass("android.content.Intent");
main = plus.android.runtimeMainActivity();
});
document.getElementById("share").addEventListener('tap', function(event) {
event.stopPropagation();
var intent = new Intent(Intent.ACTION_SEND);
intent.setType("text/plain");
intent.putExtra(Intent.EXTRA_TEXT, '123213');
intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
main.startActivity(Intent.createChooser(intent, "系统分享"));
});
})(mui);
</script>
</body>
</html>