order_see.html
2.8 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<include file="public@head_common"/>
<link rel="stylesheet" type="text/css" href="__TMPL__/public/mobile/css/pay/my_pay.css" />
<link rel="stylesheet" type="text/css" href="__TMPL__/public/mobile/css/augly.css" />
<title>物流单号查询</title>
<style type="text/css">
</style>
</head>
<body>
<div class="test_num"></div>
<div class="header">
<div class="return">
<span class="back_href">
<i class="iconfont icon-jiantou-copy"></i>返回
</span>
</div>
物流单号查询
</div>
<div class="header_place"></div>
<!--banner-->
<div class="banner">
<img src="{:cmf_get_asset_url($slide['image'])}" />
</div>
<div class="see_order">
<div class="public_input">
<p class="public_tit">收货人电话</p>
<input type="text" name="keyword" id="keyword" value="" class="public_detail" placeholder="请输入收货人电话" />
</div>
<div class="btn_s">
查 询
</div>
</div>
<include file="public@footer"/>
<script type="text/javascript">
$('.change_close').click(function(){
$('.mask').hide()
});
$('.buy_btn').click(function(){
$('.mask').show()
});
$('.btn_s').click(function(){
var keyword = $('input[name=keyword]').val();
if(keyword.length == 0) {
_error('请输入关键字');
return false;
}
var url = "{:url('portal/Order/search')}";
var url_array = url.split('.');
var param = '/keyword/' + $('input[name=keyword]').val();
var export_url = url_array[0] + param + '.' + url_array[1];
window.location.href = export_url;
});
// 弹窗提示
var popup_switch = true;
function _error(test) {
if(popup_switch) {
popup_switch = false;
$('.test_num').html(test);
$('.test_num').removeClass('Augly-fadeout');
$('.test_num').addClass('Augly-fadein');
$('.test_num').show();
setTimeout(function() {
$('.test_num').removeClass('Augly-fadein');
$('.test_num').addClass('Augly-fadeout');
popup_switch = true
}, 1500)
} else {
popup_switch = true
}
}
//安卓手机弹出框出现顶上去的效果
var flag = false;
$("#keyword").focus(function(){
flag = true;
});
window.onresize = function(){
if(flag){
$(".footer").css({"position":"initial"});
flag = false;
}else {
$(".footer").css({"position":"fixed"});
// alert(document.activeElement.id)
if(document.activeElement.id == "keyword"){
flag = true;
};
};
};
</script>
</body>
</html>