-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
1,960 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/> | ||
<title>选择城市</title> | ||
<link rel="stylesheet" type="text/css" href="../css/api.css" /> | ||
<link rel="stylesheet" type="text/css" href="../css/fonts/css/font-awesome.min.css" /> | ||
<style> | ||
</style> | ||
</head> | ||
<body> | ||
|
||
</body> | ||
<script type="text/javascript" src="../script/api.js"></script> | ||
<script> | ||
|
||
apiready = function(){ | ||
var y = api.pageParam.headerH; | ||
var obj = api.require('cityList'); | ||
obj.open({ | ||
y: y, | ||
w: api.frameWidth, | ||
h: api.frameHeight, | ||
currentCity:'北京', | ||
resource:'widget://res/cityList.json' | ||
},function(ret,err){ | ||
if(ret){ | ||
// alert(JSON.stringify(ret)); | ||
|
||
var city = ret.cityInfo.city; | ||
api.execScript({ | ||
name: 'win_order', | ||
script: 'changeCity("'+ city +'");' | ||
}); | ||
setTimeout(function(){ | ||
api.closeWin(); | ||
},200); | ||
} | ||
}); | ||
}; | ||
</script> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/> | ||
<title>预约拉屎</title> | ||
<link rel="stylesheet" type="text/css" href="../css/api.css" /> | ||
<style> | ||
html,body{ | ||
height: 100%; width: 100%; background: transparent; | ||
} | ||
body{position: relative;} | ||
.header{ | ||
border-top: 2px solid #ff8903; height: 40px; line-height: 40px; | ||
overflow: hidden; background-color: #f5f5f5; | ||
} | ||
.header span{ | ||
color: #fd9e34; padding: 0 20px; font-size: 14px; | ||
} | ||
.header span:first-child{ | ||
float: left; | ||
} | ||
.header span:last-child{ | ||
float: right; | ||
} | ||
#selector{ | ||
position: absolute; bottom: 0; width: 100%; | ||
background-color: #fff; | ||
} | ||
.datetime{ | ||
height: 140px; overflow: auto; | ||
} | ||
.datetime ul{ | ||
line-height: 2; | ||
text-align: center; height: 140px; overflow: auto; | ||
position: absolute; z-index: 2; width: 33.33%; | ||
} | ||
.datetime ul:nth-child(2){ | ||
z-index: 3; left: 33.33%; | ||
} | ||
.datetime ul:nth-child(3){ | ||
z-index: 4; left: 66.66%; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div id="selector"> | ||
<div class="header"> | ||
<span>取消</span><span>确定</span> | ||
</div> | ||
<div class="datetime"> | ||
<ul class="date"> | ||
<li>今天</li> | ||
<li>明天</li> | ||
<li>后天</li> | ||
</ul> | ||
<ul class="hour"> | ||
<li>0点</li> | ||
<li>1点</li> | ||
<li>2点</li> | ||
<li>3点</li> | ||
<li>4点</li> | ||
<li>5点</li> | ||
<li>6点</li> | ||
<li>7点</li> | ||
<li>8点</li> | ||
<li>9点</li> | ||
<li>10点</li> | ||
<li>11点</li> | ||
<li>12点</li> | ||
<li>13点</li> | ||
<li>14点</li> | ||
<li>15点</li> | ||
<li>16点</li> | ||
<li>17点</li> | ||
<li>18点</li> | ||
<li>19点</li> | ||
<li>20点</li> | ||
<li>21点</li> | ||
<li>22点</li> | ||
<li>23点</li> | ||
</ul> | ||
<ul> | ||
<li>0分</li> | ||
<li>10分</li> | ||
<li>20分</li> | ||
<li>30分</li> | ||
<li>40分</li> | ||
<li>50分</li> | ||
</ul> | ||
</div> | ||
</div> | ||
</body> | ||
<script type="text/javascript" src="../script/api.js"></script> | ||
<script type="text/javascript" src="../script/zepto.js"></script> | ||
<script> | ||
apiready = function(){ | ||
|
||
}; | ||
</script> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/> | ||
<title>选择城市</title> | ||
<link rel="stylesheet" type="text/css" href="../css/api.css" /> | ||
<link rel="stylesheet" type="text/css" href="../css/fonts/css/font-awesome.min.css" /> | ||
<style> | ||
html,body{height: 100%;} | ||
body{ | ||
background-color: #f0f0f0; | ||
} | ||
#header{ | ||
text-align: center; background-color: #f5f5f5; | ||
width: 100%; border-bottom: 1px solid #e5e5e5; | ||
} | ||
#header h1{ | ||
position: relative; | ||
font-size: 20px; height: 44px; line-height: 44px; margin: 0em; | ||
} | ||
#header .cancel{ | ||
position: absolute; left: 10px; bottom: 0; width: 44px; height: 44px; | ||
font-size: 26px; | ||
|
||
} | ||
#header .cancel i{ | ||
border:1px solid #e0e0e0; color: #8c8c8c; width: 30px; height: 30px; | ||
border-radius: 30px; line-height: 30px; text-align: center; | ||
} | ||
#header .cancel i.active{ | ||
background-color: #e6e6e6; | ||
} | ||
#main{ | ||
|
||
} | ||
|
||
</style> | ||
</head> | ||
<body> | ||
<div id="header"> | ||
<h1> | ||
<span class="cancel" tapmode="active" onclick="api.closeWin();"> | ||
<i class="fa fa-angle-left"></i> | ||
</span> | ||
选择城市 | ||
</h1> | ||
</div> | ||
<div id="main"> | ||
|
||
</div> | ||
</body> | ||
<script type="text/javascript" src="../script/api.js"></script> | ||
<script type="text/javascript" src="../script/zepto.js"></script> | ||
<script> | ||
|
||
apiready = function(){ | ||
var header = $api.byId('header'); | ||
$api.fixIos7Bar(header); | ||
var headerPos = $api.offset(header); | ||
api.openFrame({ | ||
name: 'frm_city', | ||
url: 'frm_city.html', | ||
bounces: false, | ||
pageParam: { | ||
headerH: headerPos.h | ||
}, | ||
rect: { | ||
x: 0, | ||
y: headerPos.h, | ||
w: 'auto', | ||
h: 'auto' | ||
} | ||
}); | ||
|
||
}; | ||
</script> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.