index.html
2.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<html ng-app="myApp">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题</title>
<link href="../spm_modules/bootstrap-css/1.0.0/bootstrap.css" rel="stylesheet">
<link href="../spm_modules/xn-icon-common/1.0.5/iconfont.css" rel="stylesheet">
<link href="../demo/base.css" rel="stylesheet">
<link href="../directive/style.css" rel="stylesheet">
<script type="text/javascript" src="../spm_modules/jquery/1.7.2/jquery.js"></script>
<script type="text/javascript" src="../spm_modules/angular/1.3.9/angular.js"></script>
<script type="text/javascript" src="../spm_modules/xn-underscore/1.0.0/underscore.js"></script>
<script type="text/javascript" src="../spm_modules/angular-ui/1.0.0/bootstraptpls.js"></script>
<script type="text/javascript" src="../spm_modules/xn-directive-form/1.0.1/directive/forms.js"></script>
<script type="text/javascript" src="../spm_modules/xn-service-common/1.0.0/service/commons.js"></script>
<script type="text/javascript" src="../directive/locations.js"></script>
<style>
.xn-province-city-box{xnProvinceCity
border: 1px solid #dcdcdc;
background: #fff;
border-radius: 4px ;
}
.xn-input-line{
margin-bottom: 15px;
}
</style>
<script type="text/javascript" src="http://api.map.baidu.com/api?v=2.0&ak=RZakDY4AilwGcwGTICH6faU8BwHy8u39"></script>
</head>
<body ng-controller="MyController">
<div class="xn-width clearfix auto" style="width:1000px;">
<div> {{selectCityId}}</div>
<div> {{provinceList}}</div>
<div> {{selectCityList}}</div>
<div xn-province-city-wechat class="xn-province-city-box" ng-model="selectCityId"
select-province-list="provinceList" select-city-list="selectCityList" name="打开"
data-select-data="selectItem" ></div>
<div>物流查看</div>
<div xn-province-city-wechat-view class="xn-province-city-box" data-select-data="selectItem"></div>
</div>
</body>
<script type="text/javascript">
var xnConfig={
myUrl: "http://my-plat.xiniunet.com/"
};
var app=angular.module("myApp", ["ui.bootstrap","xn.service.common","xn.directive.location.wechat"]);
app.value("xnConfig",xnConfig);
app.controller("MyController", ["$scope","$timeout", function($scope,$timeout){
$scope.selectItem="";
$timeout(function(){
$scope.selectItem={
cityList:["望德堂区","金昌","酒泉","嘉峪关","陇南","平凉"],
provinceList:["福建"]
};
},1000);
}]);
</script>
</html>