hopeaddress.html
4.4 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
<link rel="stylesheet" type="text/css" href="css/swiper-3.4.2.min.css" />
<link rel="stylesheet" type="text/css" href="css/init.css" />
<link rel="stylesheet" type="text/css" href="http://at.alicdn.com/t/font_647640_to180rktm1butyb9.css" />
<link rel="stylesheet" type="text/css" href="css/hopeaddress.css" />
<link rel="stylesheet" type="text/css" href="css/demo.css" />
<script src="js/base.js" type="text/javascript" charset="utf-8"></script>
<title>期望地址</title>
<style>
*{padding:0;margin:0;}
.content {
margin:50px auto 0;
width:300px;
min-height: 500px;
}
.form-group {
width:100%;
float:left;
margin:5px 0;
}
label{
margin-bottom:10px;
float:left;
}
.field-input, select{
width:calc(100% - 20px);
float:left;
padding:10px;
font-family:inherit;
}
</style>
<link rel="stylesheet" href="css/pickout.css"/>
</head>
<body>
<div class="container" id="hopeaddress">
<div class="question_item">
<div class="question_tit">
</div>
<div class="question_item_wrap">
<p class="question_text">请写出您最方便的提货地点,下一个自提点很快就在您的公司楼下,家门口或你上班路过的十字路口。</p>
<div class="question_answer_arr">
<!--<span class="question_answer_item">省 ><span></span></span>
<span class="question_answer_item">市 ><span></span></span>
<span class="question_answer_street"><p>区县</p> ></span>
<span class="question_answer_street"><p>街道</p> ></span>
<input class="question_answer_item_details" placeholder="详细地址"></input>-->
<!--<div class="question_answer_item">
<select name="state" id="state" class="state pickout" placeholder="省">
<option value="pe" :id="item.province_id" v-for="item in province">{{item.province_name}}</option>
</select>
</div>-->
<select class="question_answer_item" :value="'省'" v-on:change="selectcity($event.target)" style="font-size:0.26rem;border:none;outline:none;width:1.6rem;" v-model="proce">
<!--<option value="" style="font-size:0.26rem">省</option>-->
<option value="" style="font-size:0.26rem" v-for="item in province" :value="item">{{item.province_name}}</option>
</select>
<select class="question_answer_item" v-on:change="selectcounty($event.target)" style="font-size:0.26rem;border:none;outline:none;width:1.6rem;" v-model="ci">
<!--<option value="" style="font-size:0.26rem">市</option>-->
<option :value="item" style="font-size:0.26rem" v-for="item in city">{{item.city_name}}</option>
</select>
<select class="question_answer_item" v-on:change="selectstreet($event.target)" style="font-size:0.26rem;border:none;outline:none;width:1.6rem;" v-model="coun">
<!--<option value="" style="font-size:0.26rem">区</option>-->
<option style="font-size:0.26rem" :value="item" v-for="item in county">{{item.county_name}}</option>
</select>
<select class="question_answer_item" style="font-size:0.26rem;border:none;outline:none;width:1.6rem;" v-on:change="select($event.target)" v-model="stre">
<!--<option value="" style="font-size:0.26rem">街道</option>-->
<option :value="item" style="font-size:0.26rem" v-for="item in street">{{item.town_name}}</option>
</select>
<input class="question_answer_item_details" v-model="detailaddress" placeholder="详细地址">
</div>
</div>
</div>
<div class="btn" @click="sure()">
确认
</div>
</div>
<script src="js/vue.min.js" type="text/javascript" charset="utf-8"></script>
<script src="js/jquery.min.js" type="text/javascript" charset="utf-8"></script>
<script src="js/swiper-3.4.2.jquery.min.js" type="text/javascript" charset="utf-8"></script>
<script src="js/pickout.js"></script>
<script src="js/hopeaddress.js"></script>
<script>
// Preparar o select
//pickout.to('.pickout');
// pickout.to({
// el:'.city',
// theme: 'dark',
// search: true
// });
pickout.to({
el:'.state',
theme: 'clean',
});
// Caso o valor já venha do servidor, já atribui a seleção automaticamente
// pickout.updated('.city');
</script>
</body>
</html>