網頁裡引用mui的日曆,城市,自定義選擇標籤
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=0.5, maximum-scale=2.0, user-scalable=no" />
<title></title>
<link rel="stylesheet" href="css/mui.min.css">
<link rel="stylesheet" type="text/css" href="css/mui.picker.min.css" />
<link href="css/mui.poppicker.css" rel="stylesheet" />
<script src="js/mui.min.js"></script>
<script src="js/mui.picker.min.js"></script>
<script src="js/mui.poppicker.js"></script>
<script src="js/city.data-3.js" type="text/javascript" charset="utf-8"></script>
<style>
div,span{box-sizing: border-box;}
.si_div{margin-left: 5%;width: 90%;line-height:50px;position: relative;height:35px;margin-top:25px;}
.si_div div{float:left;}
.si_font{width:15%;color:#333333;}
.si_da{width:85%;border-bottom: 1px #D9D9D9 solid;}
.si_fu{padding-left: 20px;color:#CDCDCD;font-size: 15px;}
.si_fu_b{width: 30px;float:right;margin-top: 13px;}
</style>
</head>
<body style="background: #FFFFFF;">
<section>
<div class="si_div" id="shengri" data-options='{"type":"date","beginYear":1956,"endYear":2016,"value":"1990-10-10"}'>
<div class="si_font">生日</div>
<div class="si_da">
<span class="si_fu" id="shenri_span">如:1991-01-01</span>
<span class="si_fu_b"><img src="images/bottom.png"></span>
</div>
</div>
<div class="si_div" id="shengao">
<div class="si_font" >身高</div>
<div class="si_da">
<span class="si_fu" id="shengao_span">選擇身高範圍</span>
<span class="si_fu_b"><img src="images/bottom.png"></span>
</div>
</div>
<div class="si_div" id="chengshi">
<div class="si_font">城市</div>
<div class="si_da">
<span class="si_fu" id="chengshi_span">如:浙江 杭州</span>
<span class="si_fu_b"><img src="images/bottom.png"></span>
</div>
</div>
<div class="si_div">
<div class="si_font">微信</div>
<div class="si_da" style="height:52px;">
<input class="si_fu" type="text" style="border:none;padding-left: 21px;" value="用於交流" id="weixin">
</div>
</div>
<div class="su_nextg" style="position: absolute;top:320px;" id="finisfu">完 成</div>
<div style="margin-top: 5px;text-align: center;font-size: 14px;color:#999999;position: absolute;top:390px;width: 100%;">(2/2)</div>
</section>
<a href="http://s.jf3q.com">click</a>
</body>
<script>
(function($) {
$.init();
/*---shengri*/
var shengri=document.getElementById("shengri");
shengri.addEventListener('tap', function() {
var optionsJson = this.getAttribute('data-options') || '{}';
var options = JSON.parse(optionsJson);
var picker = new $.DtPicker(options);
picker.show(function(rs) {
inputv("shenri_span",rs.text);
picker.dispose();
});
}, false);
/*---shengao-----*/
var userPicker = new $.PopPicker();
userPicker.setData([{
value: '150-155com',
text: '150-155com'
}, {
value: '155-160com',
text: '155-160com'
}, {
value: '160-165com',
text: '160-165com'
}, {
value: '165-170cm',
text: '165-170cm'
}, {
value: '170-175cm',
text: '170-175cm'
}, {
value: '175-180cm',
text: '175-180cm'
}, {
value: '180-185cm',
text: '180-185cm'
}, {
value: '185-190cm',
text: '185-190cm'
}, {
value: '190cm以上',
text: '190cm以上'
}]);
var showUserPickerButton = document.getElementById('shengao');
showUserPickerButton.addEventListener('tap', function(event) {
userPicker.show(function(items) {
inputv("shengao_span",items[0].value);
});
}, false);
/*---chengshi-----*/
var cityPicker3 = new $.PopPicker({
layer: 3
});
cityPicker3.setData(cityData3);
var chengshi = document.getElementById('chengshi');
chengshi.addEventListener('tap', function(event) {
cityPicker3.show(function(items) {
var city=items[0].text + " " + items[1].text + " " + items[2].text;
inputv("chengshi_span",city);
});
}, false);
})(mui);
</script>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=0.5, maximum-scale=2.0, user-scalable=no" />
<title></title>
<link rel="stylesheet" href="css/mui.min.css">
<link rel="stylesheet" type="text/css" href="css/mui.picker.min.css" />
<link href="css/mui.poppicker.css" rel="stylesheet" />
<script src="js/mui.min.js"></script>
<script src="js/mui.picker.min.js"></script>
<script src="js/mui.poppicker.js"></script>
<script src="js/city.data-3.js" type="text/javascript" charset="utf-8"></script>
<style>
div,span{box-sizing: border-box;}
.si_div{margin-left: 5%;width: 90%;line-height:50px;position: relative;height:35px;margin-top:25px;}
.si_div div{float:left;}
.si_font{width:15%;color:#333333;}
.si_da{width:85%;border-bottom: 1px #D9D9D9 solid;}
.si_fu{padding-left: 20px;color:#CDCDCD;font-size: 15px;}
.si_fu_b{width: 30px;float:right;margin-top: 13px;}
</style>
</head>
<body style="background: #FFFFFF;">
<section>
<div class="si_div" id="shengri" data-options='{"type":"date","beginYear":1956,"endYear":2016,"value":"1990-10-10"}'>
<div class="si_font">生日</div>
<div class="si_da">
<span class="si_fu" id="shenri_span">如:1991-01-01</span>
<span class="si_fu_b"><img src="images/bottom.png"></span>
</div>
</div>
<div class="si_div" id="shengao">
<div class="si_font" >身高</div>
<div class="si_da">
<span class="si_fu" id="shengao_span">選擇身高範圍</span>
<span class="si_fu_b"><img src="images/bottom.png"></span>
</div>
</div>
<div class="si_div" id="chengshi">
<div class="si_font">城市</div>
<div class="si_da">
<span class="si_fu" id="chengshi_span">如:浙江 杭州</span>
<span class="si_fu_b"><img src="images/bottom.png"></span>
</div>
</div>
<div class="si_div">
<div class="si_font">微信</div>
<div class="si_da" style="height:52px;">
<input class="si_fu" type="text" style="border:none;padding-left: 21px;" value="用於交流" id="weixin">
</div>
</div>
<div class="su_nextg" style="position: absolute;top:320px;" id="finisfu">完 成</div>
<div style="margin-top: 5px;text-align: center;font-size: 14px;color:#999999;position: absolute;top:390px;width: 100%;">(2/2)</div>
</section>
<a href="http://s.jf3q.com">click</a>
</body>
<script>
(function($) {
$.init();
/*---shengri*/
var shengri=document.getElementById("shengri");
shengri.addEventListener('tap', function() {
var optionsJson = this.getAttribute('data-options') || '{}';
var options = JSON.parse(optionsJson);
var picker = new $.DtPicker(options);
picker.show(function(rs) {
inputv("shenri_span",rs.text);
picker.dispose();
});
}, false);
/*---shengao-----*/
var userPicker = new $.PopPicker();
userPicker.setData([{
value: '150-155com',
text: '150-155com'
}, {
value: '155-160com',
text: '155-160com'
}, {
value: '160-165com',
text: '160-165com'
}, {
value: '165-170cm',
text: '165-170cm'
}, {
value: '170-175cm',
text: '170-175cm'
}, {
value: '175-180cm',
text: '175-180cm'
}, {
value: '180-185cm',
text: '180-185cm'
}, {
value: '185-190cm',
text: '185-190cm'
}, {
value: '190cm以上',
text: '190cm以上'
}]);
var showUserPickerButton = document.getElementById('shengao');
showUserPickerButton.addEventListener('tap', function(event) {
userPicker.show(function(items) {
inputv("shengao_span",items[0].value);
});
}, false);
/*---chengshi-----*/
var cityPicker3 = new $.PopPicker({
layer: 3
});
cityPicker3.setData(cityData3);
var chengshi = document.getElementById('chengshi');
chengshi.addEventListener('tap', function(event) {
cityPicker3.show(function(items) {
var city=items[0].text + " " + items[1].text + " " + items[2].text;
inputv("chengshi_span",city);
});
}, false);
})(mui);
</script>
</html>
相關文章
- iOS 自定義日曆(日期選擇)控制元件iOS控制元件
- 自定義分頁標籤詳解
- HarmonyOS NEXT應用開發案例—自定義日曆選擇器
- android自定義佈局——城市選擇介面Android
- 自定義標籤【迭代標籤】薦
- RN自定義元件封裝 – 拖拽選擇日期的日曆元件封裝
- RN自定義元件封裝 - 拖拽選擇日期的日曆元件封裝
- 【例項】PowerQuery的自定義日曆
- 自定義標籤FlowTagLayout
- ThinkPHP自定義標籤PHP
- java自定義標籤Java
- tlds自定義標籤可以使用uri配置來更改引用
- ViewPager之標籤的自定義Viewpager
- spring 自定義標籤Spring
- 建立自定義標籤庫
- jQuery Mobile 自定義標籤jQuery
- 【Swift】彈出日曆選擇框Swift
- 怎樣向自定義標籤裡傳遞用Controller裡的assign()傳遞到頁面上的值Controller
- 關於自定義標籤庫
- 有關自定義標籤庫
- Vue日曆的編寫,可顯示周和月的模式(其中可以自定義日曆裡內容的顯示)Vue模式
- android利用RecyclerView+自定義View實現城市選擇介面AndroidView
- Struts2+Hibernate+Spring分頁自定義標籤Spring
- 微信小程式 vue 自定義日曆 sku微信小程式Vue
- Flutter日曆,可以自定義風格UIFlutterUI
- mui toast自定義樣式UIAST
- K8S標籤與標籤選擇器K8S
- Calendar -『為移動端而生』的自定義日曆
- 深入淺出自定義標籤(三)操作標籤體薦
- 08.Django自定義模板,自定義標籤和自定義過濾器Django過濾器
- css標籤選擇器的使用注意CSS
- 微信小程式自定義元件-城市選擇微信小程式元件
- JSP 自定義標籤介紹JS
- 【14】vue.js — 自定義標籤Vue.js
- spring2自定義標籤Spring
- 自定義標籤出現問題
- 微信網頁自定義分享踩坑日誌網頁
- 自定義view之實現日曆介面(一)View