index.html
4.11 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
<!DOCTYPE html >
<script type="text/javascript" src="__PUBLIC__/js/rem_new.js"></script>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width">
<title>{$tpshop_config['shop_info_store_title']}</title>
<meta http-equiv="keywords" content="{$tpshop_config['shop_info_store_keyword']}"/>
<meta name="description" content="{$tpshop_config['shop_info_store_desc']}"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0" />
<meta name="format-detection" content="telephone=no"/>
<meta name="format-detection" content="email=no"/>
<meta name="format-detection" content="address=no;">
<meta name="apple-mobile-web-app-capable" content="yes"/>
<meta name="apple-mobile-web-app-status-bar-style" content="default"/>
<link rel="stylesheet" type="text/css" href="__STATIC__/css/public.css?v=__CSSVERSION__"/>
<link rel="stylesheet" type="text/css" href="__STATIC__/css/layer.css?v=__CSSVERSION__" />
<link rel="stylesheet" type="text/css" href="__STATIC__/css/category_list.css?v=__CSSVERSION__"/>
<link rel="stylesheet" type="text/css" href="__STATIC__/css/index.css?v=__CSSVERSION__"/>
<script type="text/javascript" src="__STATIC__/js/jquery.min.js"></script>
<script type="text/javascript" src="__STATIC__/js/TouchSlide.1.1.js"></script>
<script type="text/javascript" src="__STATIC__/js/jquery.json.js"></script>
<script src="__PUBLIC__/js/global.js?v=__CSSVERSION__"></script>
<script src="__PUBLIC__/js/mobile_common.js?v=__CSSVERSION__"></script>
<script type="text/javascript" src="__STATIC__/js/layer.js"></script>
</head>
<body>
<input value="1" type="hidden">
<div id="search_hide" class="search_hide" style="display: block">
<h2><span class="close" onclick="tback()"><img src="__STATIC__/images/close.png"></span>关键搜索</h2>
<div id="mallSearch" class="search_mid">
<div id="search_tips" style="display:none;"></div>
<ul class="search-type">
<!--<li class="cur" num="0">宝贝</li>-->
</ul>
<div class="searchdotm">
<!--<form class="set_ip" name="sourch_form" id="sourch_form" method="get"-->
<div class="mallSearch-input">
<div id="s-combobox-135">
<input class="s-combobox-input" name="q" id="q"
onkeydown="strkeydown(event, this, 'submitbtn')"
placeholder="请输入关键词" type="text" value="<?php echo I('q'); ?>"/>
</div>
<input type="button" sid="<?php echo I('stoid'); ?>"
class="button" id="submitbtn" onClick="gosearch(this)"/>
</div>
<!--</form>-->
</div>
</div>
<section class="mix_recently_search">
<h3>热门搜索</h3>
<ul>
<foreach name="tpshop_config.hot_keywords" item="wd" key="k">
<if condition="$wd">
<li>
<a href="{:U('Goods/search',array('stoid'=>$Think.request.stoid,'q'=>$wd,'time'=>time()))}"
<if condition="$k eq 0">class="ht"</if>
>{$wd}</a>
</li>
</if>
</foreach>
</ul>
</section>
</div>
<script>
var getstoid="{$Think.request.stoid}";
function tback() {
location.href="/mobile/index/index/stoid/"+getstoid+".html";
}
//去搜索
function gosearch(ob) {
var v = $("#q").val();
// alert(v);
if (v == "") {
layer.open({content:"请输入关键字",time:2});
$("#q").focus();
return;
}
var stoid = $(ob).attr("sid");
var ur = "/index.php/mobile/Goods/search/time/{:time();}/stoid/" + stoid + "/q/" + v
window.location.href = ur;
}
</script>
</body>
</html>