Commit 3c168d6b by 邓丽

city-picker 压缩

parent 18b41a3b
No preview for this file type
No preview for this file type
No preview for this file type
......@@ -79,11 +79,11 @@
</li>
<li>
<label class="icon icon-icon_tex"><i></i>需求:</label>
<input type="text" id='picker' placeholder="非空" value="会议直播"/>
<input type="text" id='picker' placeholder="非空" value="会议直播" data-id=""/>
</li>
<li>
<label class="icon icon-icon_time"><i></i>时间:</label>
<input type="text" id='datetime-picker' placeholder="非空" value="2017-2-10 16:54"/>
<input type="text" id='datetime-picker' placeholder="非空" value=""/>
</li>
<li>
<label class="icon icon-icon_tel tel"><i></i>联系方式:</label>
......@@ -151,8 +151,43 @@
<script src="../../lib/hammer.js/hammer.min.js"></script>
<script src="../js/appoint.min.js"></script>
<script>
+function($){
$.rawCitiesData = [
{
"name":"A",
"sub":[
{
"id": "462",
"name": "阿拉善盟"
},
{
"id": "492",
"name": "鞍山市"
},
{
"id": "1098",
"name": "安庆市"
}
]
},
{ "name":"B",
"sub":[
{
"id": "2",
"name": "北京市"
},
{
"id": "124",
"name": "保定市"
}
]
}
]
}($);
</script>
<script type="text/javascript" src="../../lib/jquery-weui/js/city-picker.min.js" charset="utf-8"></script>
<script type="text/javascript" src="../../lib/jquery-weui/js/city-picker.min.js" charset="utf-8"></script>
<script>
/*选择拍摄地点*/
$("#city-picker").cityPicker({
......@@ -162,16 +197,18 @@
$("#place").val(displayValues[1]);
}
});
/*选择拍摄需求*/
$("#picker").picker({
title: "请选择服务需求",
cols: [
{
textAlign: 'center',
values: ['会议直播', '婚礼纪实', '企业宣传片', '课程教学', '产品发布会', '培训']
values: ['会议直播', '婚礼纪实', '企业宣传片', '课程教学', '产品发布会', '培训']
}
]
],
onChange: function (picker,values, displayValues) {
}
});
/*选择拍摄时间*/
......@@ -183,7 +220,8 @@
}
];
},
value: '2012-12-12 ',
datetimeSplit:' ',
// value: '2017-4-5 ',
onChange: function (picker, values, displayValues) { //此处不用可删除
/* console.log(values);*/
}
......
......@@ -70,7 +70,7 @@
<section class="live_content" id="live_content">
<section id="main-container">
<!--图片模式-->
<div class="picture_mode show">
<div class="picture_mode show" >
<ul class="work">
<li class="cover"><img data-node="pic" src="../img/tokyo.png"/></li>
<li class="cover"><img data-node="pic" src="../img/tokyo.png"/></li>
......@@ -200,10 +200,8 @@
var loading = false; //状态标记
$(document.body).infinite(0).on("infinite", function() {
$(".weui-loadmore").addClass("block");
console.log("1111");
if(loading) return;
//此处加载数据
setTimeout(function() {
loading = true;
......
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -59,11 +59,11 @@
</li>
<li>
<label class="icon icon-icon_tex"><i></i>需求:</label>
<input type="text" id='picker' placeholder="非空" value="会议直播"/>
<input type="text" id='picker' placeholder="非空" value="会议直播" data-id=""/>
</li>
<li>
<label class="icon icon-icon_time"><i></i>时间:</label>
<input type="text" id='datetime-picker' placeholder="非空" value="2017-2-10 16:54"/>
<input type="text" id='datetime-picker' placeholder="非空" value=""/>
</li>
<li>
<label class="icon icon-icon_tel tel"><i></i>联系方式:</label>
......@@ -116,8 +116,43 @@
<script src="../../lib/hammer.js/hammer.min.js"></script>
<script src="../js/appoint.min.js"></script>
<script>
+function($){
$.rawCitiesData = [
{
"name":"A",
"sub":[
{
"id": "462",
"name": "阿拉善盟"
},
{
"id": "492",
"name": "鞍山市"
},
{
"id": "1098",
"name": "安庆市"
}
]
},
{ "name":"B",
"sub":[
{
"id": "2",
"name": "北京市"
},
{
"id": "124",
"name": "保定市"
}
]
}
]
}($);
</script>
<script type="text/javascript" src="../../lib/jquery-weui/js/city-picker.min.js" charset="utf-8"></script>
<script type="text/javascript" src="../../lib/jquery-weui/js/city-picker.min.js" charset="utf-8"></script>
<script>
/*选择拍摄地点*/
$("#city-picker").cityPicker({
......@@ -127,16 +162,18 @@
$("#place").val(displayValues[1]);
}
});
/*选择拍摄需求*/
$("#picker").picker({
title: "请选择服务需求",
cols: [
{
textAlign: 'center',
values: ['会议直播', '婚礼纪实', '企业宣传片', '课程教学', '产品发布会', '培训']
values: ['会议直播', '婚礼纪实', '企业宣传片', '课程教学', '产品发布会', '培训']
}
]
],
onChange: function (picker,values, displayValues) {
}
});
/*选择拍摄时间*/
......@@ -148,7 +185,8 @@
}
];
},
value: '2012-12-12 ',
datetimeSplit:' ',
// value: '2017-4-5 ',
onChange: function (picker, values, displayValues) { //此处不用可删除
/* console.log(values);*/
}
......
......@@ -50,7 +50,7 @@
<section class="live_content" id="live_content">
<section id="main-container">
<!--图片模式-->
<div class="picture_mode show">
<div class="picture_mode show" >
<ul class="work">
<li class="cover"><img data-node="pic" src="../img/tokyo.png"/></li>
<li class="cover"><img data-node="pic" src="../img/tokyo.png"/></li>
......@@ -180,10 +180,8 @@
var loading = false; //状态标记
$(document.body).infinite(0).on("infinite", function() {
$(".weui-loadmore").addClass("block");
console.log("1111");
if(loading) return;
//此处加载数据
setTimeout(function() {
loading = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment