Skip to content

Commit cc9a24a

Browse files
committed
v1.2.1
1 parent 2295b2d commit cc9a24a

35 files changed

+2205
-826
lines changed

css/aui-calendar.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ tr {
2525
border-color: inherit;
2626
}
2727
.aui-calendar {
28-
padding: 15px;
28+
/*padding: 15px;*/
2929
background: #ffffff;
3030
color: #999999;
3131
}

css/aui-slide.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* aui-slide.css 轮播样式
3-
* verson 0.0.1
4-
* @author 流浪男 && Beck
3+
* verson 0.0.2
4+
* @author 流浪男
55
* http://www.auicss.com
66
* @todo more things to abstract, e.g. Loading css etc.
77
* Licensed under the MIT license.
@@ -46,8 +46,8 @@
4646
box-align: center;
4747
}
4848
.aui-slide-node img {
49-
max-width: 100%;
50-
max-height: 100%;
49+
width: 100%;
50+
height: 100%;
5151
}
5252
.aui-slide-page-wrap {
5353
width: 100%;
Lines changed: 23 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,15 @@
11
/*
22
* =========================================================================
33
* APIClud - AUI UI 框架 流浪男 QQ:343757327 http://www.auicss.com
4-
* 全屏上下滑动组件
5-
* Verson 0.0.1
4+
* 全屏滑动组件
5+
* Verson 0.0.2
66
* =========================================================================
77
*/
8-
.aui-slider-nav {
8+
.aui-slider-full {
99
position: relative;
1010
background: #000;
1111
}
12-
.aui-slider-nav ul {
13-
position: relative;
14-
}
15-
.aui-slider-nav ul,
16-
.aui-slider-nav li {
12+
.aui-slider-full > .aui-slider-list {
1713
list-style: none;
1814
margin: 0;
1915
padding: 0;
@@ -23,27 +19,40 @@
2319
background: #000000;
2420
color: #ffffff;
2521
}
26-
.aui-slider-nav li {
22+
.aui-slider-full > .aui-slider-list {
2723
position: absolute;
2824
-webkit-backface-visibility: hidden;
2925
}
30-
.aui-slider-nav li img {
26+
.aui-slider-full > .aui-slider-list img {
3127
width: 100%;
32-
height: 100%;
28+
height: auto;
3329
}
34-
.aui-up-slide {
30+
.aui-slider-up {
3531
position: absolute;
3632
bottom: 10px;
3733
left: 50%;
3834
width: 20px;
3935
height: 20px;
40-
z-index: 999999999;
36+
z-index: 9999;
4137
margin-left: -10px;
4238
color: #ffffff;
4339
text-align: center;
4440
font-weight: 700;
4541
}
46-
.aui-up-slide .aui-iconfont {
42+
.aui-silder-right {
43+
position: absolute;
44+
right: 10px;
45+
top: 50%;
46+
width: 20px;
47+
height: 20px;
48+
z-index: 9999;
49+
margin-top: -10px;
50+
color: #ffffff;
51+
text-align: center;
52+
font-weight: 700;
53+
}
54+
.aui-slider-up .aui-iconfont,
55+
.aui-slider-right .aui-iconfont {
4756
font-size: 28px;
4857
}
4958
.aui-slider-close {

html/calendar_frm.html

Lines changed: 14 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -21,40 +21,20 @@
2121
<script type="text/javascript" src="../script/aui-calendar.js"></script>
2222
<script type="text/javascript">
2323
apiready = function(){
24-
/**
25-
* 日历
26-
* $aui.calendar(el,opts,callback);
27-
* startDate = '2016-03-20'开始日期,不传时为今天,当没有天传入时,默认从当月开始日期
28-
* endDate = '2016-04-28' 结束日期
29-
* beforeStartDateClick 默认false,开始日期之前的当月是否允许点击
30-
* 当开始日期和结束日期都为空时,默认显示当月日历
31-
* 返回数据为点击某天后结果,格式 {status:'success',date:'2016-01-01'}
32-
**
33-
$aui.calendar($api.byId("calendar"),{
34-
startDate:'2016-03',
35-
endDate:'2016-08',
36-
beforeStartDateClick : false
37-
},function(ret){
38-
if(ret){
39-
// 返回点击的日期
40-
// alert(JSON.stringify(ret));
41-
}
42-
})
43-
*/
44-
var todayDate = new Date();
45-
var startDate = todayDate.getFullYear()+'-'+(todayDate.getMonth()+1)+'-'+todayDate.getDate();
46-
var endDate = (todayDate.getFullYear())+'-'+(todayDate.getMonth()+5);
47-
$aui.calendar($api.byId("calendar"),{
48-
startDate : startDate,
49-
endDate : endDate,
50-
beforeStartDateClick : false // 是否允许开始日期之前的可以点击,默认为false
51-
},function(ret){
52-
if(ret){
53-
// 返回点击的日期
54-
// alert(JSON.stringify(ret));
55-
$api.text($api.byId("result"),ret.date);
56-
}
57-
})
24+
}
25+
var todayDate = new Date();
26+
var startDate = todayDate.getFullYear()+'-'+(todayDate.getMonth()+1)+'-'+todayDate.getDate();
27+
var endDate = (todayDate.getFullYear())+'-'+(todayDate.getMonth()+5);
28+
var calendar = new auiCalendar({
29+
container:document.getElementById("calendar"),
30+
startDate:startDate,
31+
endDate:endDate,
32+
lunarShow:true,
33+
dateActive:dateActive,
34+
beforeStartDateClick:false
35+
});
36+
function dateActive(date){
37+
document.getElementById("result").textContent = date;
5838
}
5939
</script>
6040
</html>

html/club_win.html

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
<!doctype html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
6+
<title>Hello APP</title>
7+
<link rel="stylesheet" type="text/css" href="../css/aui-win.css" />
8+
<style type="text/css">
9+
.aui-bar,
10+
.aui-bar .aui-btn {
11+
background: #ffffff;
12+
}
13+
</style>
14+
</head>
15+
<body>
16+
<header class="aui-bar aui-bar-nav aui-border-b" id="aui-header">
17+
<a class="aui-btn aui-pull-left" tapmode onclick="closeWin()">
18+
<span class="aui-iconfont aui-icon-close aui-text-info"></span>
19+
</a>
20+
</header>
21+
</body>
22+
<script type="text/javascript" src="../script/api.js"></script>
23+
<script type="text/javascript">
24+
function closeWin(){
25+
api.closeWin();
26+
}
27+
apiready = function(){
28+
api.parseTapmode();
29+
var header = $api.byId('aui-header');
30+
$api.fixStatusBar(header);
31+
var headerPos = $api.offset(header);
32+
var body_h = $api.offset($api.dom('body')).h;
33+
api.openFrame({
34+
name: 'club_frm',
35+
url: 'http://www.auicss.com/club',
36+
bounces: false,
37+
progress:{
38+
type:"page",
39+
title:"加载中", //type为default时显示的加载框标题
40+
text:"请稍候", //type为default时显示的加载框内容
41+
color:""
42+
},
43+
rect: {
44+
x: 0,
45+
y: headerPos.h,
46+
w: headerPos.w,
47+
h: body_h - headerPos.h
48+
}
49+
})
50+
};
51+
</script>
52+
</html>

0 commit comments

Comments
 (0)