|
@@ -9,7 +9,7 @@
|
|
|
<link href="{{Msg "seo" "cdn"}}/css/bootstrap.min.css" rel="stylesheet">
|
|
|
<link href="{{Msg "seo" "cdn"}}/css/jy.css?v={{Msg "seo" "version"}}" rel="stylesheet">
|
|
|
<link href="{{Msg "seo" "cdn"}}/css/common.css?v={{Msg "seo" "version"}}" rel="stylesheet">
|
|
|
-<link href="{{Msg "seo" "cdn"}}/css/wxsearch.css?v={{Msg "seo" "version"}}" rel="stylesheet" type="text/css" >
|
|
|
+<link href="{{Msg "seo" "cdn"}}/css/wxsearch.css?v={{Msg "seo" "version"}}1" rel="stylesheet" type="text/css" >
|
|
|
<link href="{{Msg "seo" "cdn"}}/mobiscroll/mobiscroll.min.css" rel="stylesheet">
|
|
|
<link href="{{Msg "seo" "cdn"}}/css/dropload.css?v={{Msg "seo" "version"}}" rel="stylesheet">
|
|
|
<link href="{{Msg "seo" "cdn"}}/css/wxlist.css?v={{Msg "seo" "version"}}" rel="stylesheet">
|
|
@@ -20,9 +20,14 @@
|
|
|
<script src="{{Msg "seo" "cdn"}}/mobiscroll/mobiscroll.min.js"></script>
|
|
|
{{include "/common/weixin.html"}}
|
|
|
<script src="{{Msg "seo" "cdn"}}/wxswordfish/share.js?v={{Msg "seo" "version"}}"></script>
|
|
|
-<script src="{{Msg "seo" "cdn"}}/js/dropload.js?v={{Msg "seo" "version"}}"></script>
|
|
|
+<script src="{{Msg "seo" "cdn"}}/js/dropload.js?v={{Msg "seo" "version"}}212"></script>
|
|
|
<script type="text/javascript" src="{{Msg "seo" "cdn"}}/js/wxEntsesearch.js?v={{Msg "seo" "version"}}"></script>
|
|
|
<script type="text/javascript" src="{{Msg "seo" "cdn"}}/js/wxSupersearch.js?v={{Msg "seo" "version"}}"></script>
|
|
|
+<!--2.8-->
|
|
|
+<link rel="stylesheet" href="{{Msg "seo" "cdn"}}/wx_dataExport/css/base.css">
|
|
|
+<link rel="stylesheet" href="{{Msg "seo" "cdn"}}/wx_dataExport/iconfont/iconfont.css">
|
|
|
+<link rel="stylesheet" href="{{Msg "seo" "cdn"}}/wx_dataExport/css/search_tab.css">
|
|
|
+<link rel="stylesheet" href="{{Msg "seo" "cdn"}}/wx_dataExport/css/weui.min.css">
|
|
|
<title>搜索</title>
|
|
|
<script type="text/javascript">
|
|
|
var s_openid = {{session "s_m_openid"}};
|
|
@@ -33,7 +38,106 @@
|
|
|
SuperSearch.ZBADDRESS = {{Msg "seo" "ZBADDRESS"}};
|
|
|
SuperSearch.industry = {{.T.industry}};
|
|
|
SuperSearch.sortArray = {{.T.sortArray}};
|
|
|
+ $(function(){
|
|
|
+ // 动画隐藏tab栏
|
|
|
+ function hideTab () {
|
|
|
+ $('.newdialog .tab-box .sub-search-title').slideUp('fast')
|
|
|
+ $('.newdialog .tab-box .sub-show-list').slideUp('fast')
|
|
|
+ $('.weui-mask').hide()
|
|
|
+ }
|
|
|
+
|
|
|
+ // 搜索选择的显示隐藏
|
|
|
+ $('.selected-export .options').on('tap', 'span',function(e){
|
|
|
+ var index = $(this).attr('index') // index可以表示当前点击的是哪个按钮
|
|
|
+ var $this = $(this)
|
|
|
+ // 如果已经显示,则判断点击的是否和上次相同
|
|
|
+ if ($('.weui-mask').css('display') !== 'none') {
|
|
|
+ // 点击按钮的时候dialog显示了,显示的如果和这次的相同,则隐藏
|
|
|
+ // 找到显示的sub-tab的index
|
|
|
+ var showArr = []
|
|
|
+ $('.newdialog .tab-box ul.sub-tab').each(function (i, dom){
|
|
|
+ if ($(dom).css('display') !== 'none') {
|
|
|
+ showArr.push($(dom).attr('index'))
|
|
|
+ }
|
|
|
+ })
|
|
|
+ if (showArr.length === 1 && showArr[0] === index) {
|
|
|
+ // 和上次点击的相同,则关闭tab栏
|
|
|
+ hideTab()
|
|
|
+
|
|
|
+ $(this).find('i').removeClass('icon-shouqi').addClass('icon-zhankai')
|
|
|
+ return // 直接结束函数
|
|
|
+ }
|
|
|
+
|
|
|
+ // 如果已经显示,则tab切换不需要动画
|
|
|
+ $('.newdialog .tab-box ul.sub-tab').each(function (i, dom){
|
|
|
+ if ($(dom).attr('index') === index) {
|
|
|
+ $(dom).show().siblings().hide()
|
|
|
+
|
|
|
+ // 切换上下三角
|
|
|
+ $this.find('i').removeClass('icon-zhankai').removeClass('icon-shouqi').addClass('icon-shouqi')
|
|
|
+ $this.siblings().find('i').removeClass('icon-shouqi').addClass('icon-zhankai')
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ })
|
|
|
+ $('.weui-mask').show()
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
+ // tab切换
|
|
|
+ $('.newdialog .tab-box ul.sub-tab').each(function (i, dom){
|
|
|
+ if ($(dom).attr('index') === index) {
|
|
|
+ // $(dom).show().siblings().hide()
|
|
|
+ $(dom).slideDown('fast').siblings().hide()
|
|
|
+
|
|
|
+ // 切换上下三角
|
|
|
+ $this.find('i').removeClass('icon-zhankai').removeClass('icon-shouqi').addClass('icon-shouqi')
|
|
|
+ $this.siblings().find('i').removeClass('icon-shouqi').addClass('icon-zhankai')
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ })
|
|
|
+ $('.weui-mask').show()
|
|
|
+
|
|
|
+ })
|
|
|
|
|
|
+ // tab内容的选择
|
|
|
+ $('.newdialog .tab-box .sub-tab').on('tap', 'li',function () {
|
|
|
+ var text = $(this).find('span').text();
|
|
|
+ var index = $(this).parent().attr('index');
|
|
|
+ var dataVal = $(this).attr('dataVal');
|
|
|
+ var $optionsDOM = $(this).parents('.newdialog').siblings().find('.options span');
|
|
|
+ var reqFlag = true;
|
|
|
+ $optionsDOM.each(function(i,dom){
|
|
|
+ if ($(dom).attr('index') === index) {
|
|
|
+ if($(dom).find('em').text()==text){
|
|
|
+ reqFlag = false;
|
|
|
+ }else{
|
|
|
+ $(dom).find('em').text(text);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ $(dom).find('i').removeClass('icon-zhankai').removeClass('icon-shouqi').addClass('icon-zhankai');
|
|
|
+ })
|
|
|
+ $(this).addClass('active')
|
|
|
+ $(this).siblings().removeClass('active')
|
|
|
+ hideTab()
|
|
|
+ console.log(reqFlag+"---"+dataVal)
|
|
|
+ if (reqFlag){
|
|
|
+ if (dataVal=="searchtitle"){//标题搜索
|
|
|
+ SuperSearch.titleSearch();
|
|
|
+ }else if(dataVal=="searchall"){//全文搜索
|
|
|
+ SuperSearch.allSearch();
|
|
|
+ }else if(dataVal=="showlist"){//列表显示
|
|
|
+ SuperSearch.showlist();
|
|
|
+ }else if(dataVal=="showtable"){//表格显示
|
|
|
+ SuperSearch.showTable();
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+
|
|
|
+ $('.weui-mask').on('click', function(){
|
|
|
+ hideTab()
|
|
|
+ $('.selected-export .options').find('i').removeClass('icon-shouqi').addClass('icon-zhankai')
|
|
|
+ })
|
|
|
+ })
|
|
|
</script>
|
|
|
<style>
|
|
|
#searchIndex .content li:nth-of-type(1) a {
|
|
@@ -124,12 +228,58 @@
|
|
|
</form>
|
|
|
<div>
|
|
|
<div class="selLable hidden" id="selLable">
|
|
|
- <div class="com-title"><!--height:30px; margin-top:20px;-->
|
|
|
+ <div class="selected-export-box">
|
|
|
+ <div class="selected-export">
|
|
|
+ <div class="options">
|
|
|
+ <span class="search-title active" index="1">
|
|
|
+ <em>标题搜索</em>
|
|
|
+ <i class="iconfont icon-zhankai"></i>
|
|
|
+ </span>
|
|
|
+ <span class="show-list active" index="2">
|
|
|
+ <em>列表显示</em>
|
|
|
+ <!-- icon-shouqi -->
|
|
|
+ <i class="iconfont icon-zhankai"></i>
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ <div class="export">
|
|
|
+ <span>
|
|
|
+ <i class="iconfont icon-shujudaochu"></i>
|
|
|
+ <em>数据导出</em>
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="newdialog">
|
|
|
+ <div class="tab-box">
|
|
|
+ <ul class="sub-tab sub-search-title" index="1" style="display: none">
|
|
|
+ <li class="active" dataVal="searchtitle">
|
|
|
+ <span>标题搜索</span>
|
|
|
+ <i class="weui-icon-success-no-circle"></i>
|
|
|
+ </li>
|
|
|
+ <li dataVal="searchall">
|
|
|
+ <span>全文搜索</span>
|
|
|
+ <i class="weui-icon-success-no-circle"></i>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ <ul class="sub-tab sub-show-list" index="2" style="display: none">
|
|
|
+ <li class="active" dataVal="showlist">
|
|
|
+ <span>列表显示</span>
|
|
|
+ <i class="weui-icon-success-no-circle"></i>
|
|
|
+ </li>
|
|
|
+ <li dataVal="showtable">
|
|
|
+ <span>表格显示</span>
|
|
|
+ <i class="weui-icon-success-no-circle"></i>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="weui-mask" style="display: none"></div>
|
|
|
+ <div class="com-title" style="display:none;"><!--height:30px; margin-top:20px;-->
|
|
|
<span id="search_title" class="on">标题搜索</span><!--<span style="float:left;">|</span>--><span id="search_all">全文搜索</span>
|
|
|
</div>
|
|
|
- <div class="line-vertical">
|
|
|
+ <div class="line-vertical" style="display:none;">
|
|
|
</div>
|
|
|
- <div class="showType">
|
|
|
+ <div class="showType" style="display:none;">
|
|
|
<div class="showlist on">列表</div>
|
|
|
<div class="showtable">表格</div>
|
|
|
</div>
|