-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcommitment.html
More file actions
139 lines (131 loc) · 4.99 KB
/
commitment.html
File metadata and controls
139 lines (131 loc) · 4.99 KB
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>[Please input title]</title>
<style type="text/css">
#ec_im_container{
position: absolute;
left: 400px;
}
/*.icons {
display: inline-block;
}
.icon {
display: inline-block;
width: 16px;
height: 16px;
line-height: 16px;
vertical-align: text-top;
background-image: url(src/tipicon/wholeIconNew.gif);
background-repeat: no-repeat;
margin: 0 5px 0 0;
}
.icon-commitment {
width: 36px;
background-position: 0px -819px;
}*/
.c-text{
display:inline-block;
height:12px;
padding:2px;
text-align:center;
vertical-align:
text-bottom;
font:normal normal 12px/12px simsun;
color:#fff;
overflow:hidden;
}
a.c-text{
text-decoration:none;
}
.c-text-empty {
padding-top: 1px;
padding-bottom: 1px;
border: 1px solid #d8d8d8;
cursor: pointer;
color: #23b9fd;
background-color: #fff;
}
.c-text-empty:hover {
border-color: #388bff;
}
.c-text-empty:active {
border-color: #a2a6ab;
background-color: #f0f0f0;
box-shadow: inset 1px 1px 1px #c7c7c7;
-webkit-box-shadow: inset 1px 1px 1px #c7c7c7;
-moz-box-shadow: inset 1px 1px 1px #c7c7c7;
-o-box-shadow: inset 1px 1px 1px #c7c7c7;
}
.c-text-mult{
padding-left:5px;
padding-right:5px;
}
.icons .c-text-mult{
margin-right: 5px;
}
</style>
<script type="text/javascript" src="src/tangram-1.3.9.source.js"></script>
<script src="http://s1.bdstatic.com/r/www/cache/ecom/esl/1-3-0/esl.js"></script>
</head>
<body>
<h1>承诺保障icon</h1>
<div id="ec_im_container">
<span class="icons EC_PP">
<a target="_blank" href="http://baozhang.baidu.com/guarantee/promise" class="c-text c-text-empty c-text-mult ec-ui-commitment" data-tooltips="bl" data-commitment="{item1: {text: '商家承诺保障酒店预订',url: 'http://www.qq.com', fm: '{%$adFm%}', p1: '{%$adId%}'},item2: {text: '商家承诺保障酒店预订',url: 'http://www.sina.com', fm: '{%$adFm%}', p1: '{%$adId%}'},item3: {text: '商家承诺保障酒店预订',url: 'http://www.sohu.com', fm: '{%$adFm%}', p1: '{%$adId%}'},item4: {text: '商家承诺保障酒店预订',url: 'http://www.baidu.com', fm: '{%$adFm%}', p1: '{%$adId%}'},item5: {text: '商家承诺保障酒店预订',url: 'http://www.baidu.com', fm: '{%$adFm%}', p1: '{%$adId%}'}}" onmousedown="return c({'title':this.innerHTML,'url':this.href,'fm':'{%$adFm%}','p1':'{%$adId%}'});">承诺</a>
<br><br>
<!-- <a class="icon icon-commitment ec-ui-commitment" href="#" data-tooltips="bl"
data-commitment="{
item1: {
text: '商家承诺保障酒店预订',
url: 'http://www.qq.com'
},
item2: {
text: '商家承诺保障酒店预订',
url: 'http://www.sina.com'
},
item3: {
text: '商家承诺保障酒店预订',
url: 'http://www.sohu.com'
},
item4: {
text: '商家承诺保障酒店预订',
url: 'http://www.baidu.com'
},
item5: {
text: '商家承诺保障酒店预订',
url: 'http://www.baidu.com'
}
}">
</a> -->
</span>
<!-- <div class="ecl-ui-tip ecl-ui-tip-ps" style="left: 398px; top: 110px;"><div class="ecl-ui-tip-arrow ecl-ui-tip-arrow-bottom" style="left: 5px;"><em></em><ins></ins></div><div class="ecl-ui-tip-title" style="display: none;"></div><div class="ecl-ui-tip-body"><ul><li class="icon-item1"><a href="http://www.qq.com" target="_blank">商家承诺保障酒店预订</a></li><li class="icon-item2"><a href="http://www.sina.com" target="_blank">商家承诺保障酒店预订</a></li><li class="icon-item3"><a href="http://www.sohu.com" target="_blank">商家承诺保障酒店预订</a></li><li class="icon-item4"><a href="http://www.baidu.com" target="_blank">商家承诺保障酒店预订</a></li></ul></div></div> -->
</div>
<script type="text/javascript">
require.config({
baseUrl: 'src',
paths: {
//配置测试机路径
ecom: 'http://1.wlstatic.newoffline.bae.baidu.com/lib/ecom'
// ecom: 'http://0.cgzero.newoffline.bae.baidu.com/lib/ecom'
},
packages: [ ]
});
// 引入测试机、线上js
require( ['ecom/common/api/commitment0902/commitment'], function(tipapi) {
// 引入本地js
// require( ['commitment/commitment'], function(tipapi) {
var opts = {
triggers:"ec-ui-commitment",
layerOffsetLeft:5,
layerOffsetTop:5,
arrowOffsetLeft: 8,
hideDelay:50,
statistics:{}
};
tipapi.init(opts);
});
</script>
</body>
</html>