region.html 3.66 KB
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <title>城市组件选择</title>
        <link rel="stylesheet" type="text/css" href="../css/style/m-pickdate.css">
        <link rel="stylesheet" type="text/css" href="../css/style/popup.css">
        <link rel="stylesheet" type="text/css" href="../css/style/m-form.css">
        <script type="text/javascript" src="http://static.nong12.com/static/source/components/js/base/jquery-1.8.2.min.js"></script>
        <script type="text/javascript" src="http://static.nong12.com/static/source/components/js/base/sea.js"></script>
    </head>
    <body>
        <ul>
            <li>
                <h1>城市选择组件</h1>
                <h4>使用 : </h4>
                <div class="cont">
                    <p>1、依赖js包 sea / jquery / Alert</p>
                    <p>2、依赖css包 fancybox / m-public</p>
                </div>
                <h4>创建 : </h4>
                <div class="cont">

                </div>
                <h4>参数 : </h4>
                <div class="cont">
                    <table>
                        <thead>
                            <tr>
                                <td>参数名称</td>
                                <td>参数类型</td>
                                <td>参数等级</td>
                                <td>参数详情</td>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td>type</td>
                                <td>string</td>
                                <td>选填</td>
                                <td>显示主题类型error、succeed、warning三种类型  默认为:“”</td>
                            </tr>
                        </tbody>
                    </table>
                </div>
                <h4>示例 : </h4>
                <div class="cont">
                    <!--<div class="m-region" url="http://user.nong12.com//api/city/getCityJsonpList.do" ></div>-->
                  <div>
                    <div class="m-region" data-place="Place提示文字" id="ceshi-1" url="http://user.nong12.com//api/city/getCityJsonpList.do" setUrl="http://user.nong12.com/api/city/getParentCityJsonpList.do?cityId=1440802" hasOthers="0"></div>
                  </div>
                  <div>
                    <div class="m-region" url="http://manweb.nong12.com/city/getCountryJsonpList.do" isLimit="1" isEnsure="1" hasOthers="0"></div>
                  </div>
                    <!--<div class="m-region" url="http://user.nong12.com//api/city/getCityJsonpList.do" ></div>-->
                    <!--<div class="m-region" url="http://user.nong12.com//api/city/getCityJsonpList.do" ></div>-->
                  <div>
                    <div class="m-region" data-place="" url="http://manweb.nong12.com/city/getCountryJsonpList.do" ></div>
                  </div>
                  <div>
                    <div class="m-region" url="http://user.nong12.com//api/city/getCityJsonpList.do" data="city,parentId,regionId,regionName,parentId,1" data-place="自定义提示文字"></div>
                  </div>

                    <div class="click-ceshi">点击测试</div>
                </div>
            </li>
        </ul>
    </body>
    <script type="text/javascript" src="../js/javascript/common/config.js"></script>
    <script type="text/javascript">
        seajs.use(['../js/javascript/region/main.js']);
    </script>
</html>