基本信息
源码名称:省市县三级联动(jQuery手机端收货地址选择地区代码)
源码大小:0.08M
文件格式:.rar
开发语言:js
更新时间:2019-11-12
友情提示:(无需注册或充值,赞助后即可获取资源下载链接)
嘿,亲!知识可是无价之宝呢,但咱这精心整理的资料也耗费了不少心血呀。小小地破费一下,绝对物超所值哦!如有下载和支付问题,请联系我们QQ(微信同号):813200300
本次赞助数额为: 2 元×
微信扫码支付:2 元
×
请留下您的邮箱,我们将在2小时内将文件发到您的邮箱
源码介绍
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>jQuery手机端收货地址选择代码 - 站长素材</title>
<meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" name="viewport">
<meta content="yes" name="apple-mobile-web-app-capable">
<meta content="black" name="apple-mobile-web-app-status-bar-style">
<meta content="telephone=no" name="format-detection">
<link rel="stylesheet" href="css/ydui.css?rev=@@hash">
<link rel="stylesheet" href="css/demo.css">
<script src="js/ydui.flexible.js"></script>
</head>
<body>
<section class="g-flexview">
<section class="g-scrollview">
<div class="m-celltitle">默认调用</div>
<div class="m-cell">
<div class="cell-item">
<div class="cell-left">所在地区:</div>
<div class="cell-right cell-arrow">
<input type="text" class="cell-input" readonly id="J_Address" placeholder="请选择收货地址">
</div>
</div>
</div>
<div class="m-celltitle">设置默认值</div>
<div class="m-cell">
<div class="cell-item">
<div class="cell-left">所在地区:</div>
<div class="cell-right cell-arrow">
<input type="text" class="cell-input" readonly id="J_Address2" value="新疆 乌鲁木齐市 天山区" placeholder="请选择收货地址">
</div>
</div>
</div>
</section>
</section>
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/ydui.citys.js"></script>
<script type="text/javascript" src="js/ydui.js"></script>
<script type="text/javascript">
/**
* 默认调用
*/
!function () {
var $target = $('#J_Address');
$target.citySelect();
$target.on('click', function (event) {
event.stopPropagation();
$target.citySelect('open');
});
$target.on('done.ydui.cityselect', function (ret) {
$(this).val(ret.provance ' ' ret.city ' ' ret.area);
});
}();
/**
* 设置默认值
*/
!function () {
var $target = $('#J_Address2');
$target.citySelect({
provance: '新疆',
city: '乌鲁木齐市',
area: '天山区'
});
$target.on('click', function (event) {
event.stopPropagation();
$target.citySelect('open');
});
$target.on('done.ydui.cityselect', function (ret) {
$(this).val(ret.provance ' ' ret.city ' ' ret.area);
});
}();
</script>
</body>
</html>