editAddr.html
2.67 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="format-detection" content="telephone=no" />
<meta name="format-detection" content="email=no" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-title" content="">
<meta name="google" value="notranslate"><!-- 禁止Chrome 浏览器中自动提示翻译 -->
<link href="https://cdn.bootcss.com/framework7/1.6.5/css/framework7.ios.min.css" rel="stylesheet">
<link href="https://cdn.bootcss.com/framework7/1.6.5/css/framework7.ios.colors.min.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="../../../../iconfont/iconfont.css"/>
<link href="../../../../css/reset.css" rel="stylesheet"/>
</head>
<style>
.picker-item{
font-size: 14px;
}
.picker-item.picker-selected{
}
.addressD{
width: 100%;
box-sizing: border-box;
background: #fff;
}
.addressD td{
height: 44px;
padding:0 10px ;
vertical-align: middle;
}
.addressD td input{
height: 100%;
width: 100%;
}
.addressD td .slidebtn{
float: right;
}
.address_btn{
width: 90%;
display: block;
margin: 10px auto;
}
</style>
<body>
<table class="addressD">
<tr>
<td>收件人</td>
<td>
<input type="text" id="" placeholder="请输入收件人姓名"/>
</td>
</tr>
<tr>
<td>联系电话</td>
<td>
<input type="text" id="" placeholder="请输入联系电话"/>
</td>
</tr>
<tr>
<td>所在地区</td>
<td>
<input type="text" placeholder="请选择地区" readonly id="location" name="location">
</td>
</tr>
<tr>
<td>详细地址</td>
<td>
<input type="text" id="" placeholder="请输入详细地址"/>
</td>
</tr>
<tr>
<td>默认地址</td>
<td>
<span class="slidebtn">
<span></span>
</span>
</td>
</tr>
</table>
<button class="address_btn">保存</button>
</body>
</html>
<script src="../../../../js/jquery-3.2.1.min.js"></script>
<script src="../js/framework7.min.js"></script>
<script src="../js/regionsObject2.js"></script>
<script src="../js/cityPicker.js"></script>
<script>
var func = {
defaultup:'0'
}
$(function(){
var slidebtn = false;
$('.slidebtn').click(function(){
if(!slidebtn){
$(this).addClass('active');
func.defaultup = '1';
slidebtn = true;
}else{
$(this).removeClass('active');
func.defaultup = '0';
slidebtn = false;
}
});
})
</script>