why.xingtongworld.com项目
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

255 lines
15 KiB

{layout name="public/layout3" /}
<style>.page{background:#f9f9f9;}</style>
<div class="bigcate">
<div class="breakcrumb">
<div class="title">数据超市</div>
<div class="current"><span>CCDE</span><i class="fa fa-angle-right"></i>数据超市</div>
</div>
<div class="container">
{if condition="count($hots)"}
<div class="hotlist">
<div class="left">
{if condition="isset($hots[0]) and count($hots[0])"}<div class="img"><a {if condition="isset($hots[0]['c_url']) and $hots[0]['c_url']"}onclick='window.open("{$hots[0]['c_url']}")'{else} href="{:url('bigdata/detail',array('c_id'=>$hots[0]['c_id']))}"{/if}>{if condition="$hots[0]['c_logo']&&file_exists('.'.ltrim($hots[0]['c_logo'],'.'))"}<img src="{:SITE_PATH}{$hots[0]['c_logo']}" title="{$hots[0]['c_name']}" width="100%"/>{else}<img src="{$yf_theme_path}/public/img/default.png" width="100%"/>{/if}<p>{$hots[0]['c_name']}</p></a></div>{/if}
</div>
<div class="right">
{if condition="isset($hots[1]) and count($hots[1])"}
<div class="img"><a {if condition="isset($hots[1]['c_url']) and $hots[1]['c_url']"}onclick='window.open("{$hots[1]['c_url']}")'{else} href="{:url('bigdata/detail',array('c_id'=>$hots[1]['c_id']))}"{/if}>
{if condition="$hots[1]['c_logo']&&file_exists('.'.ltrim($hots[1]['c_logo'],'.'))"}<img src="{:SITE_PATH}{:$hots[1]['c_logo']}" title="{$hots[1]['c_name']}" width="100%"/>{else}<img src="{$yf_theme_path}/public/img/default.png" width="100%"/>{/if}<p>{$hots[0]['c_name']}</p></a></div>{/if}
{if condition="isset($hots[2]) and count($hots[2])"}
<div class="img"><a {if condition="isset($hots[2]['c_url']) and $hots[2]['c_url']"}onclick='window.open("{$hots[2]['c_url']}")'{else} href="{:url('bigdata/detail',array('c_id'=>$hots[2]['c_id']))}"{/if}>
{if condition="$hots[2]['c_logo']&&file_exists('.'.ltrim($hots[2]['c_logo'],'.'))"}<img src="{:SITE_PATH}{$hots[2]['c_logo']}" title="{$hots[2]['c_name']}" width="100%"/>{else}<img src="{$yf_theme_path}/public/img/default.png" width="100%"/>{/if}<p>{$hots[2]['c_name']}</p></a></div>{/if}
</div>
<div class="clearfix"></div>
</div>
{/if}
<div class="selectwraper">
<form id="searchForm" method="get" action="{:url('category')}" >
<div class="selectrow">
<div class="selectitem">
<select name="c_type">
<optgroup label="文化数据类别">
<option value="">选择数据类别</option>
<option value="1" {if condition="$ctype eq 1"}selected{/if}>文化资源数据</option>
<option value="2" {if condition="$ctype eq 2"}selected{/if}>文化数字内容</option>
</optgroup>
</select>
</div>
<div class="selectitem">
<select name="c_pay">
<optgroup label="交易方式">
<option value="">选择交易方式</option>
<option value="1" {if condition="$cpay eq 1"}selected{/if}>授权</option>
<option value="2" {if condition="$cpay eq 2"}selected{/if}>转让</option>
</optgroup>
</select>
</div>
</div>
<div class="selectrow"><span>委托方名称</span><input type="text" name="c_seller" value="{$cseller}" placeholder="请输入" autocomplete="off" ></div>
<div class="selectrow"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><input type="text" name="keyword" value="{$keyword}" placeholder="请输入" autocomplete="off" ></div>
<div class="selectrow">
<button><i class="fa fa-search"></i>&nbsp;搜索</button>
</div>
</form>
</div>
<div class="ranklist">
<div class="rankwraper">
<div class="select">
<span><img src="{$yf_theme_path}/public/img/wh-icon.png" width="100%"/></span>
<select name="ctype">
<option value="1">文化资源数据</option>
<option value="2">文化数字内容</option>
</select>
</div>
<div class="tabs">
<div class="tab active"><img src="{$yf_theme_path}/public/img/t_icon1.png" /><span>推荐</span></div>
<div class="tab "><img src="{$yf_theme_path}/public/img/t_icon3.png" /><span>点击排行</span></div>
</div>
</div>
<div class="tabwrapers">
<div class="tabwraper active">
<table>
<thead>
<tr>
<th>委托信息</th>
<th>委托方</th>
<th>点击量</th>
</tr>
</thead>
<tbody id="tbody_tr">
{if condition="(isset($hot1) and count($hot1))"}
{foreach $hot1 as $vo}
{if condition="$vo and count($vo)"}
<tr><td><a {if condition="isset($vo['c_url']) and $vo['c_url']"}onclick='window.open("{$vo.c_url}")'{else} href="{:url('bigdata/detail',array('c_id'=>$vo['c_id']))}"{/if}>{if condition="$vo['c_logo']&&file_exists('.'.ltrim($vo['c_logo'],'.'))"}<img src="{:SITE_PATH}{:$vo['c_logo']}" title="{$vo['c_name']}" width="100%"/>{else}<img src="{$yf_theme_path}/public/img/default.png" width="100%"/>{/if}
{$vo['c_name']}</a></td><td><a href="#">{$vo['c_seller']} <img src="{$yf_theme_path}/public/img/ver_icon.png" style="margin-top:-4px;"></a></td><td>{$vo['c_click']}</td> </tr>
{/if}
{/foreach}
{else}
<tr><td colspan="3" style="text-align:center"><span>暂无数据</span></td></tr>
{/if}
</tbody>
</table>
</div>
<div class="tabwraper">
<table >
<thead>
<tr>
<th>委托信息</th>
<th>委托方</th>
<th>点击量</th>
</tr>
</thead>
<tbody id="tbody_tr">
{if condition="(isset($cllist1) and count($cllist1))"}
{foreach $cllist1 as $jo}
{if condition="$jo and count($jo)"}
<tr><td>
<a {if condition="isset($jo['c_url']) and $jo['c_url']"}onclick='window.open("{$jo.c_url}")'{else} href="{:url('bigdata/detail',array('c_id'=>$jo['c_id']))}"{/if}>{if condition="$jo['c_logo']&&file_exists('.'.ltrim($jo['c_logo'],'.'))"}<img src="{:SITE_PATH}{:$jo['c_logo']}" title="{$jo['c_name']}" width="100%"/>{else}<img src="{$yf_theme_path}/public/img/default.png" width="100%"/>{/if}
{$jo['c_name']}</a></td><td><a href="#">{$jo['c_seller']} <img src="{$yf_theme_path}/public/img/ver_icon.png" style="margin-top:-4px;"></a></td><td>{$jo['c_click']}</td> </tr>
{/if}
{/foreach}
{else}
<tr><td colspan="3" style="text-align:center"><span>暂无数据</span></td></tr>
{/if}
</tbody>
</table>
</div>
</div>
<div class="tabwrapers" style="display:none">
<div class="tabwraper ">
<table>
<thead>
<tr>
<th>委托信息</th>
<th>委托方</th>
<th>点击量</th>
</tr>
</thead>
<tbody id="tbody_tr">
{if condition="(isset($hot2) and count($hot2))"}
{foreach $hot2 as $vo}
{if condition="$vo and count($vo)"}
<tr><td><a {if condition="isset($vo['c_url']) and $vo['c_url']"}onclick='window.open("{$vo.c_url}")'{else} href="{:url('bigdata/detail',array('c_id'=>$vo['c_id']))}"{/if}>{if condition="$vo['c_logo']&&file_exists('.'.ltrim($vo['c_logo'],'.'))"}<img src="{:SITE_PATH}{:$vo['c_logo']}" title="{$vo['c_name']}" width="100%"/>{else}<img src="{$yf_theme_path}/public/img/default.png" width="100%"/>{/if}
{$vo['c_name']}</a></td><td><a href="#">{$vo['c_seller']} <img src="{$yf_theme_path}/public/img/ver_icon.png" style="margin-top:-4px;"></a></td><td>{$vo['c_click']}</td> </tr>
{/if}
{/foreach}
{else}
<tr><td colspan="3" style="text-align:center"><span>暂无数据</span></td></tr>
{/if}
</tbody>
</table>
</div>
<div class="tabwraper">
<table >
<thead>
<tr>
<th>委托信息</th>
<th>委托方</th>
<th>点击量</th>
</tr>
</thead>
<tbody id="tbody_tr">
{if condition="(isset($cllist2) and count($cllist2))"}
{foreach $cllist2 as $vo}
{if condition="$vo and count($vo)"}
<tr><td><a {if condition="isset($vo['c_url']) and $vo['c_url']"}onclick='window.open("{$vo.c_url}")'{else} href="{:url('bigdata/detail',array('c_id'=>$vo['c_id']))}"{/if}>{if condition="$vo['c_logo']&&file_exists('.'.ltrim($vo['c_logo'],'.'))"}<img src="{:SITE_PATH}{:$vo['c_logo']}" title="{$vo['c_name']}" width="100%"/>{else}<img src="{$yf_theme_path}/public/img/default.png" width="100%"/>{/if}
{$vo['c_name']}</a></td><td><a href="#">{$vo['c_seller']} <img src="{$yf_theme_path}/public/img/ver_icon.png" style="margin-top:-4px;"></a></td><td>{$vo['c_click']}</td> </tr>
{/if}
{/foreach}
{else}
<tr><td colspan="3" style="text-align:center"><span>暂无数据</span></td></tr>
{/if}
</tbody>
</table>
</div>
</div>
<script>
$(function(){
$(".tabs .tab").each(function(){
$(this).click(function(){
var ctype=$('[name="ctype"]').val();
console.log('ctype',ctype);
$(".tabs .tab").removeClass('active');
var index=$(this).index();
$(".tabs .tab").eq(index).addClass('active');
$(".tabwrapers .tabwraper").hide();
$(".tabwrapers").eq(ctype-1).find(".tabwraper").eq(index).show();
});
});
$('[name="ctype"]').change(function(){
var ctype=$(this).val();
$(".tabwrapers,.tabwraper").hide();
$(".tabs .tab").removeClass('active');
$(".tabwrapers").eq(ctype-1).show();
$(".tabwrapers").eq(ctype-1).find(".tabwraper").eq(0).show();
$(".tabs .tab").eq(0).addClass('active');
});
});
</script>
</div>
{if condition="(isset($products) and count($products))"}
<div class="prolist">
<div class="head">
<h2><span><img src="{$yf_theme_path}/public/img/new_icon.png" width="100%"/></span>最新上架 </h2>
</div>
<div class="products">
{foreach $products as $pk=>$vo}
<div class="product">
<div class="img">
<a {if condition="isset($vo['c_url']) and $vo['c_url']"}onclick='window.open("{$vo.c_url}")'{else} href="{:url('bigdata/detail',array('c_id'=>$vo['c_id']))}"{/if} >
{if condition="empty($vo['c_logo'])"}
<img src="{$yf_theme_path}/public/img/default.png" class="media-object" width="100%" />
{else}
<img src="{:SITE_PATH}{$vo.c_logo}" class="media-object" width="100%" οnerrοr="javascript:this.src='{$yf_theme_path}/public/img/default.png';"/>
{/if}
{if condition="$vo['c_tag'] eq 1"}<p class="tag">已成交</p>{/if}
<p class="link">详情 &gt;</p>
</a></div>
<div class="txt">
<div class="org">{$vo.c_seller}</div>
<div class="name">{$vo.c_name}</div>
<div class="code"><b>标的编码:</b>{$vo.c_code}<p></p></div>
</div>
</div>
{/foreach}
<div class="clearfix"></div>
</div>
<div class="pages text-center">{$show}</div>
</div>
{/if}
</div>
</div>
<script src="https://res.wx.qq.com/open/js/jweixin-1.6.0.js"></script>
<script>
$(function(){
wx.config({
debug:false, // 开启调试模式,调用的所有api的返回值会在客户端alert出来,若要查看传入的参数,可以在pc端打开,参数信息会通过log打出,仅在pc端时才会打印。
appId: "{$signPackage.appId}", // 必填,公众号的唯一标识
timestamp:"{$signPackage.timestamp}", // 必填,生成签名的时间戳
nonceStr:"{$signPackage.nonceStr}", // 必填,生成签名的随机串
signature:"{$signPackage.signature}",// 必填,签名
jsApiList: ['updateAppMessageShareData','updateTimelineShareData'] // 必填,需要使用的JS接口列表
});
wx.ready(function(){
//自定义“分享给朋友”及“分享到QQ”按钮的分享内容
wx.updateAppMessageShareData({
title:"{$share.title}", // 分享标题
desc: "{$share.desc}", // 分享描述
link:"{$share.link}", // 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
imgUrl:"{$share.imgUrl}", // 分享图标
success: function () {
// 设置成功
}
});
//获取“分享到朋友圈”按钮点击状态及自定义分享内容接口(即将废弃)
wx.updateTimelineShareData({
title:"{$share.title}", // 分享标题
link:"{$share.link}", // 分享链接,该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
imgUrl:"{$share.imgUrl}", // 分享图标
success: function () {
// 设置成功
}
});
});
});
</script>