|
@@ -28,9 +28,12 @@
|
|
|
<script src="{{Cdns .Host "seo" "cdn"|SafeUrl}}/jyapp/local/bootstrap.min.js"></script>
|
|
|
<script src="{{Cdns .Host "seo" "cdn"|SafeUrl}}/jyapp/js/share.js?v={{Msg "seo" "version"}}"></script>
|
|
|
<script src="//cdn-common.jianyu360.com/cdn/lib/html2canvas/1.3.3/dist/html2canvas.min.js"></script>
|
|
|
+ <link href='{{Cdns .Host "seo" "cdn"|SafeUrl}}/jyapp/tags/css/tags-module-common.css?v={{Msg "seo" "version"}}' rel="stylesheet" />
|
|
|
+
|
|
|
|
|
|
{{include "/common/js.html"}}
|
|
|
<style>
|
|
|
+ p{margin: 0;}
|
|
|
html > body {
|
|
|
background: #fff;
|
|
|
}
|
|
@@ -344,6 +347,7 @@
|
|
|
</ul>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ {{if .T.obj.hasSession}}
|
|
|
<div class="app-layout-header jy-app-header">
|
|
|
<span class="app-back jyapp-icon jyapp-icon-zuojiantou share-back"></span>
|
|
|
<span class="header-title">公告信息</span>
|
|
@@ -399,61 +403,18 @@
|
|
|
<!-- 分享 end -->
|
|
|
</span>
|
|
|
</div>
|
|
|
+ {{else}}
|
|
|
+ {{include "tags/template/tag-header.html" .}}
|
|
|
+ {{end}}
|
|
|
+
|
|
|
<div class="app-layout-content-b">
|
|
|
+ {{if not .T.obj.hasSession}}
|
|
|
+ {{include "tags/template/tag-register-login-group.html" .}}
|
|
|
+ {{include "tags/template/tag-info-type-nav.html" .}}
|
|
|
+ {{include "tags/template/tag-area-nav.html" .}}
|
|
|
+ {{end}}
|
|
|
<div class="mask"></div>
|
|
|
<div class="info">
|
|
|
- <!-- <div class="_c2l0w7g3cjf"></div> -->
|
|
|
- <script type="text/javascript">
|
|
|
- $.ajax({
|
|
|
- type: 'POST',
|
|
|
- url: '/publicapply/bidcoll/power',
|
|
|
- success: function(res) {
|
|
|
- if(res.error_code == 0) {
|
|
|
- if(!res.data.entniche && !res.data.member && res.data.vip <= 0) {
|
|
|
- (window.slotbydup = window.slotbydup || []).push({
|
|
|
- id: "u6603899",
|
|
|
- container: "_c2l0w7g3cjf",
|
|
|
- async: true
|
|
|
- });
|
|
|
- getAjaxAdv()
|
|
|
- }
|
|
|
- }
|
|
|
- },
|
|
|
- error: function(err) {
|
|
|
- console.log(err)
|
|
|
- }
|
|
|
- })
|
|
|
- function getAjaxAdv () {
|
|
|
- $.ajax({
|
|
|
- type: 'POST',
|
|
|
- url: '/publicapply/adLeague/exposure',
|
|
|
- data: {
|
|
|
- client: 'APP',
|
|
|
- id: 'ad7',
|
|
|
- position: '公告详情页顶部'
|
|
|
- },
|
|
|
- success: function(res) {
|
|
|
- // console.log(res)
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
- addEventListener('focus', function() {
|
|
|
- if(document.activeElement = document.getElementById('iframeu6603899_0')) {
|
|
|
- $.ajax({
|
|
|
- type: 'POST',
|
|
|
- url: '/publicapply/adLeague/click',
|
|
|
- data: {
|
|
|
- client: 'APP',
|
|
|
- id: 'ad7',
|
|
|
- position: '公告详情页顶部'
|
|
|
- },
|
|
|
- success: function(res) {
|
|
|
- // console.log(res)
|
|
|
- }
|
|
|
- })
|
|
|
- }
|
|
|
- });
|
|
|
- </script>
|
|
|
<!-- <div v-if="item.site === '剑鱼信息发布平台' || item.spidercode === 'a_jyxxfbpt_gg'" class="yhfb">用户发布</div>-->
|
|
|
{{if .T.obj.site}}
|
|
|
{{if eq .T.obj.site "剑鱼信息发布平台"}}
|
|
@@ -967,7 +928,8 @@
|
|
|
<span class="concat-kf">联系客服</span>
|
|
|
<span class="go-buy-file-pack" style="display: none">立即充值</span>
|
|
|
<span class="free-open-tip" style="display: none;">
|
|
|
- <span class="down-more-text">下载更多附件</span>
|
|
|
+ <span class="free-has-num down-more-text" style="display:none;">本月剩余:<em class="file-count"></em>个</span>
|
|
|
+ <span class="free-no-num down-more-text" style="display: none;">下载更多附件</span>
|
|
|
<span class="open-vip-btn">开通超级订阅</span>
|
|
|
</span>
|
|
|
</div>
|
|
@@ -1132,6 +1094,10 @@
|
|
|
{{end}}
|
|
|
{{end}}
|
|
|
{{end}}
|
|
|
+ {{if not .T.obj.hasSession}}
|
|
|
+ {{include "tags/template/tag-breadcrumb-navigation.html" .}}
|
|
|
+ {{include "tags/template/tag-footer.html" .}}
|
|
|
+ {{end}}
|
|
|
</div>
|
|
|
</div>
|
|
|
<!-- 三方认证弹窗 -->
|
|
@@ -1146,6 +1112,7 @@
|
|
|
<script src='/common-module/nps-common/js/nps.js?v={{Msg "seo" "version"}}'></script>
|
|
|
<script src='/common-module/forward-share/js/forward.js?v={{Msg "seo" "version"}}'></script>
|
|
|
<script src='/common-module/bidstatus-update/js/bid-status-update.js?v={{Msg "seo" "version"}}'></script>
|
|
|
+
|
|
|
<!-- <script src="https://cdn.bootcss.com/vConsole/3.3.4/vconsole.min.js"></script>
|
|
|
<script> new VConsole(); </script> -->
|
|
|
<script>
|
|
@@ -1155,7 +1122,6 @@
|
|
|
$(this).wrap('<div class="scroll-tab-container" style="max-width: 100%;overflow-x: scroll;"></div>')
|
|
|
})
|
|
|
});
|
|
|
-
|
|
|
var canRead = {{.T.canRead}} //免费用户当天查看是否查看三次公告
|
|
|
var shareimgflag = true;
|
|
|
var area = {{.T.obj.area}}
|
|
@@ -1419,7 +1385,8 @@
|
|
|
window.vipStatus = res.data.vipStatus // 是否是超级订阅用户
|
|
|
window.viper = res.data.viper // 是否是超级订阅老用户 false:老用户 true: 新用户
|
|
|
window.entniche = res.data.entniche // 商机管理用户
|
|
|
- window.fileNum = res.data.fileNum // 超级订阅用户可下载附件次数
|
|
|
+ // window.fileNum = res.data.fileNum // 超级订阅用户可下载附件次数
|
|
|
+ window.memberStatus = res.data.memberStatus // 大会员
|
|
|
window.isEntService = res.data.isEntService
|
|
|
bigstatus = res.data.memberStatus
|
|
|
hasServiceArr = res.data.power ? res.data.power : []
|
|
@@ -1470,13 +1437,13 @@
|
|
|
})
|
|
|
}
|
|
|
}
|
|
|
- //非大会员或大会员无此功能 且是新超级订阅用户
|
|
|
- if (res.data && res.data.vipStatus > 0 && res.data.viper&&!window.isMemberAndPower) {
|
|
|
- $('.file-count-tip').css('display', 'inline-block')
|
|
|
- $('.go-buy-file-pack').css('display', 'inline-block')
|
|
|
- $('.icon-help').css('display', 'inline-block')
|
|
|
- $('.file-count').html(res.data.fileNum)
|
|
|
- }
|
|
|
+ // //非大会员或大会员无此功能 且是新超级订阅用户
|
|
|
+ // if (res.data && res.data.vipStatus > 0 && res.data.viper&&!window.isMemberAndPower) {
|
|
|
+ // $('.file-count-tip').css('display', 'inline-block')
|
|
|
+ // $('.go-buy-file-pack').css('display', 'inline-block')
|
|
|
+ // $('.icon-help').css('display', 'inline-block')
|
|
|
+ // // $('.file-count').html(res.data.fileNum)
|
|
|
+ // }
|
|
|
setEntServiceInfo(res)
|
|
|
},
|
|
|
error:function(err) {
|
|
@@ -2034,7 +2001,7 @@
|
|
|
e.preventDefault()
|
|
|
location.href = '/jyapp/big/page/client_portrayal?entName=' + encodeURIComponent({{.T.obj.buyer}}) + '&from=client'
|
|
|
}
|
|
|
- function downFileOfVIP (fileName, callback) {
|
|
|
+ function downloadFileAjax (fileName, callback) {
|
|
|
// 有下载次数
|
|
|
$.ajax({
|
|
|
type: 'post',
|
|
@@ -2047,27 +2014,44 @@
|
|
|
title: title
|
|
|
},
|
|
|
success: function (r) {
|
|
|
- if (r&&r.r&&r.r.code&&r.r.code<0&&window.vipStatus>0){
|
|
|
- // 次数用完提醒联系客服
|
|
|
- vant.Dialog.confirm({
|
|
|
- message: '您本月附件下载机会已消耗完毕,如需下载更多附件,请前往充值。',
|
|
|
- showCancelButton: true,
|
|
|
- confirmButtonText: '立即充值',
|
|
|
- confirmButtonColor: '#2ABDD1',
|
|
|
- className: 'custom-dialog',
|
|
|
- width: 303
|
|
|
-
|
|
|
- }).then(() => {
|
|
|
- location.href = '/jy_mobile/common/order/create/filepack?type=0'
|
|
|
- })
|
|
|
- .catch(() => {})
|
|
|
+ // 重新获取下载次数
|
|
|
+ subPoint()
|
|
|
+ if (r&&r.r&&r.r.code&&r.r.code<0){
|
|
|
+ // 次数用完提醒
|
|
|
+ if(window.vipStatus>0) {
|
|
|
+ vant.Dialog.confirm({
|
|
|
+ message: '您本月附件下载机会已消耗完毕,如需下载更多附件,请前往充值。',
|
|
|
+ showCancelButton: true,
|
|
|
+ confirmButtonText: '立即充值',
|
|
|
+ confirmButtonColor: '#2ABDD1',
|
|
|
+ className: 'custom-dialog',
|
|
|
+ width: 303
|
|
|
+
|
|
|
+ }).then(() => {
|
|
|
+ location.href = '/jy_mobile/common/order/create/filepack?type=0'
|
|
|
+ }).catch(() => {})
|
|
|
+ } else if(window.isFree) {
|
|
|
+ vant.Dialog.confirm({
|
|
|
+ title: '开通超级订阅',
|
|
|
+ message: '您的免费【附件下载】次数已使用完,暂无免费查看权限。如需查看更多,请开通超级订阅获取更多权限。',
|
|
|
+ showCancelButton: true,
|
|
|
+ confirmButtonText: '去开通',
|
|
|
+ confirmButtonColor: '#2ABDD1',
|
|
|
+ className: 'custom-dialog',
|
|
|
+ width: 303,
|
|
|
+ messageAlign: 'left',
|
|
|
+ }).then(() => {
|
|
|
+ // location.href = '/jyapp/vipsubscribe/vipsubscribe_new'
|
|
|
+ location.href = '/jy_mobile/common/order/create/svip?type=buy'
|
|
|
+ }).catch(() => {})
|
|
|
+ }
|
|
|
return
|
|
|
}else if (r && r.m === '' && r.r) {
|
|
|
var url = r.r.downUrl
|
|
|
if (url){
|
|
|
if (!r.r.isExists){
|
|
|
- window.fileNum = window.fileNum - 1;
|
|
|
- $('.file-count').html($('.file-count').text()-1)
|
|
|
+ // window.fileNum = Number(window.fileNum) - 1;
|
|
|
+ // $('.file-count').text(Number($('.file-count').text())-1)
|
|
|
}
|
|
|
if(mySysIsIos()){
|
|
|
typeof callback === 'function' ? callback(url) : null
|
|
@@ -2084,6 +2068,57 @@
|
|
|
})
|
|
|
}
|
|
|
|
|
|
+ // 获取当前用户附件下载数量(用户下载次数判断需要)
|
|
|
+ window.downloadNum = 0
|
|
|
+ function subPoint() {
|
|
|
+ $.ajax({
|
|
|
+ url: '/jypay/resourcePack/account',
|
|
|
+ type: 'POST',
|
|
|
+ contentType: 'application/x-www-form-urlencoded',
|
|
|
+ data: {
|
|
|
+ product: 'attachmentDownPack'
|
|
|
+ },
|
|
|
+ dataType: 'json'
|
|
|
+ }).done(res => {
|
|
|
+ if (res.error_msg === '' && res.data && res.data.data) {
|
|
|
+ try {
|
|
|
+ var downloadNum = res.data.data[0].number || 0
|
|
|
+ window.downloadNum = downloadNum // 免费用户可下载附件次数
|
|
|
+ window.fileNum = downloadNum // 超级订阅用户可下载附件次数
|
|
|
+ // 免费用户处理
|
|
|
+ if(window.isFree) {
|
|
|
+ // 免费用户且未留资过也未体验过,展示文案(引导留资)
|
|
|
+ if (window.freeFile == 0) {
|
|
|
+ if(downloadNum > 0) {
|
|
|
+ $('.free-down-text').text('免费用户享有' + downloadNum + '次附件下载权益')
|
|
|
+ } else {
|
|
|
+ $('.free-down-text').text('免费用户享有1次附件下载权益')
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ // 免费用户体验过
|
|
|
+ if(downloadNum > 0){
|
|
|
+ $('.free-has-num').show() // 展示下载次数
|
|
|
+ $('.free-no-num').hide()
|
|
|
+ } else{
|
|
|
+ $('.free-has-num').hide() // 隐藏下载次数
|
|
|
+ $('.free-no-num').show() // 展示下载更多附件
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ //非大会员或大会员无此功能 且是新超级订阅用户
|
|
|
+ if ( window.vipStatus > 0 && window.viper&&!window.isMemberAndPower) {
|
|
|
+ $('.file-count-tip').css('display', 'inline-block')
|
|
|
+ $('.go-buy-file-pack').css('display', 'inline-block')
|
|
|
+ $('.icon-help').css('display', 'inline-block')
|
|
|
+ }
|
|
|
+ // 下载次数
|
|
|
+ $('.file-count').html(downloadNum)
|
|
|
+ } catch (e) {
|
|
|
+ console.warn(e)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
// 附件下载展示
|
|
|
function andownload() {
|
|
|
$.ajax({
|
|
@@ -2106,26 +2141,31 @@
|
|
|
html += "<li class='downs'>"+"<a class='menu_list' data-href="+data.data.attachment[i].downurl+">"+data.data.attachment[i].filename+"</a></li>"
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
$('.download-list>ul').append(html)
|
|
|
- // 下载附件
|
|
|
+ // 下载附件
|
|
|
$('.downs').on('click', function() {
|
|
|
var url = $(this).find('a').attr('data-href')
|
|
|
var size = $(this).find('a').attr('date-size')
|
|
|
var fileName = $(this).find('a').text()
|
|
|
- console.log(window.isNoMember, window.isFree,window.freeFile, window.vipStatus, window.viper)
|
|
|
+ console.log(window.isNoMember, window.isFree,window.freeFile, window.downloadNum,window.vipStatus, window.viper)
|
|
|
// 免费用户
|
|
|
if (window.isFree) {
|
|
|
// 判断有无体验过 0:未体验过
|
|
|
if (window.freeFile == 0) {
|
|
|
+ // h5页跳转走数据不刷新处理
|
|
|
+ if (utils.$envs.inH5) {
|
|
|
+ subPoint()
|
|
|
+ }
|
|
|
// 判断有无留过资 且未体验过 - 去留资
|
|
|
location.href = '/jyapp/frontPage/bigmember/free/perfect_info?source=article_attach_freeuser'
|
|
|
return
|
|
|
- } else if (window.freeFile < 0 ) {
|
|
|
- // 免费用户 体验过 下载次数为-1 弹框提醒跳至超级订阅购买页
|
|
|
+ } else if (window.freeFile < 0 && window.downloadNum <= 0) {
|
|
|
+ // 免费体验用户,无下载此处提示开通超级订阅
|
|
|
+ // 免费用户 体验过(freeFile=-1) 剩余下载次数 弹框提醒跳至超级订阅购买页
|
|
|
+ // message: '您已经免费解锁过【附件下载】权益1次,暂无免费查看权限。如需查看更多,请开通超级订阅获取更多权限。',
|
|
|
vant.Dialog.confirm({
|
|
|
title: '开通超级订阅',
|
|
|
- message: '您已经免费解锁过【附件下载】权益1次,暂无免费查看权限。如需查看更多,请开通超级订阅获取更多权限。',
|
|
|
+ message: '您的免费【附件下载】次数已使用完,暂无免费查看权限。如需查看更多,请开通超级订阅获取更多权限。',
|
|
|
showCancelButton: true,
|
|
|
confirmButtonText: '去开通',
|
|
|
confirmButtonColor: '#2ABDD1',
|
|
@@ -2138,19 +2178,25 @@
|
|
|
})
|
|
|
.catch(() => {})
|
|
|
return
|
|
|
- }else if(window.freeFile>0){
|
|
|
+ }else{
|
|
|
+ // P317版本改为免费用户只要有下载次数,均可正常下载
|
|
|
window.freeFile=-1
|
|
|
- //
|
|
|
- gotoFilePage($(this).find('a').text())
|
|
|
+ // IOS APP端特殊流程处理,先提示填写邮箱后扣次数
|
|
|
+ if(mySysIsIos()) {
|
|
|
+ return iosShow(url, fileName,size)
|
|
|
+ }
|
|
|
+ downloadFileAjax(fileName)
|
|
|
+ // gotoFilePage($(this).find('a').text())
|
|
|
}
|
|
|
} else {
|
|
|
// 付费用户
|
|
|
- // 大会员用户 有下载权限
|
|
|
- if (window.isMemberAndPower) {
|
|
|
+ // 大会员用户 且有附件下载个数
|
|
|
+ if (window.memberStatus > 0) {
|
|
|
if(mySysIsIos()){
|
|
|
iosShow(url,fileName,size,false)
|
|
|
} else {
|
|
|
- location.href = url
|
|
|
+ downloadFileAjax(fileName)
|
|
|
+ // location.href = url
|
|
|
}
|
|
|
return
|
|
|
}
|
|
@@ -2162,13 +2208,13 @@
|
|
|
if(mySysIsIos()) {
|
|
|
return iosShow(url, fileName,size,false)
|
|
|
}
|
|
|
- downFileOfVIP(fileName)
|
|
|
+ downloadFileAjax(fileName)
|
|
|
return
|
|
|
//if (window.fileNum <= 0) {
|
|
|
//}else{
|
|
|
- //window.fileNum = window.fileNum - 1;
|
|
|
- //gotoFilePageOfVip($(this).find('a').text())
|
|
|
- //return
|
|
|
+ //window.fileNum = window.fileNum - 1;
|
|
|
+ //gotoFilePageOfVip($(this).find('a').text())
|
|
|
+ //return
|
|
|
//}
|
|
|
} else {
|
|
|
// 老超级订阅用户 提醒升级
|
|
@@ -2189,6 +2235,16 @@
|
|
|
return
|
|
|
}
|
|
|
}
|
|
|
+ // 商机管理用户只要有个数就有下载权限
|
|
|
+ if(window.entniche && window.downloadNum > 0){
|
|
|
+ if(mySysIsIos()){
|
|
|
+ iosShow(url,fileName,size,false)
|
|
|
+ } else {
|
|
|
+ downloadFileAjax(fileName)
|
|
|
+ }
|
|
|
+ return
|
|
|
+ }
|
|
|
+
|
|
|
// 是大会员自定义版本没有下载权限 或 非超级订阅的商机管理用户 (弹框提醒联系客服)
|
|
|
var memberNoVip = window.isNoMember == true && !(window.vipStatus >0 && window.viper)
|
|
|
if (memberNoVip || (window.vipStatus <=0 && window.entniche)) {
|
|
@@ -2198,7 +2254,8 @@
|
|
|
confirmButtonText: '我知道了',
|
|
|
confirmButtonColor: '#2ABDD1',
|
|
|
width: 303,
|
|
|
- }).then(() => {})
|
|
|
+ }).then(() => {
|
|
|
+ })
|
|
|
return
|
|
|
}
|
|
|
}
|
|
@@ -2254,19 +2311,15 @@
|
|
|
//ios更改为下载
|
|
|
//老版本还走邮件模式 新版本走下载 需要判断版本号
|
|
|
//isfree 是否是免费
|
|
|
- function iosShow(url,fileName,size,isfree){
|
|
|
+ function iosShow(url,fileName,size){
|
|
|
var version = JyObj.getVersion()
|
|
|
if(version && compareVersion('3.0.4',version)){
|
|
|
//切割名称获取格式
|
|
|
var name = fileName ? fileName.substring(0, fileName.lastIndexOf('.')) : ''
|
|
|
var types = fileName ? fileName.substring(fileName.lastIndexOf('.') + 1) : ''
|
|
|
- if (isfree){
|
|
|
- JyObj.downLoadFile(name,types,url,size);
|
|
|
- }else{
|
|
|
- downFileOfVIP(fileName, function (url) {
|
|
|
- JyObj.downLoadFile(name,types,url,size);
|
|
|
- })
|
|
|
- }
|
|
|
+ downloadFileAjax(fileName, function (url) {
|
|
|
+ JyObj.downLoadFile(name,types,url,size);
|
|
|
+ })
|
|
|
}else{
|
|
|
iosShow_email(url,fileName,isfree)
|
|
|
}
|
|
@@ -2306,7 +2359,7 @@
|
|
|
//按下确定按钮执行的操作
|
|
|
//todo ....
|
|
|
if (!isfree) {
|
|
|
- downFileOfVIP(fileName, function (url) {
|
|
|
+ downloadFileAjax(fileName, function (url) {
|
|
|
sendAlert(url,getinputemail)
|
|
|
})
|
|
|
} else {
|
|
@@ -2762,6 +2815,7 @@
|
|
|
$('.caigouunit .textcontent').css('color', '#171826')
|
|
|
$('.zhongbiaounit').addClass('notextcontent')
|
|
|
}
|
|
|
+ // 获取isAdd的信息
|
|
|
isOpening()
|
|
|
$(document).on('click',".border-tel",function(){
|
|
|
if(!isEntniche&&!isVIP&&bigstatus<=0){
|
|
@@ -3201,7 +3255,8 @@
|
|
|
sessionStorage.followSetReload = "1";
|
|
|
}
|
|
|
followId = r.data;
|
|
|
- EasyAlert.show("已关注,可从“我的-<br>项目关注”查看<br>或设置提醒日期",{"text-align":"left","width":"195px"});
|
|
|
+ // EasyAlert.show("已关注,可从“我的-<br>项目关注”查看<br>或设置提醒日期",{"text-align":"left","width":"195px"});
|
|
|
+ pointsTaskSuccessTip()
|
|
|
followFlag = true;
|
|
|
jumpFlag = true;
|
|
|
$(".follow").html('<i class="glyphicon yiguanzhu"></i>已关注');
|
|
@@ -3231,7 +3286,19 @@
|
|
|
location.href = '/jyapp/big/page/landingPage'
|
|
|
})
|
|
|
});
|
|
|
-
|
|
|
+ // 赚剑鱼币任务完成提示
|
|
|
+ function pointsTaskSuccessTip() {
|
|
|
+ // 获取剑鱼币任务信息
|
|
|
+ const from = utils.getParam('from')
|
|
|
+ var point = utils.getParam('point') || 0
|
|
|
+ if(from && from === 'task'){
|
|
|
+ EasyAlert.show("关注项目成功,获得" + point + "剑鱼币。<br>可从“我的-<br>项目关注”查看<br>或设置提醒日期",{"text-align":"left","width":"195px"}, 2000);
|
|
|
+ utils.delUrlParam('from')
|
|
|
+ } else {
|
|
|
+ // 普通提示
|
|
|
+ EasyAlert.show("已关注,可从“我的-<br>项目关注”查看<br>或设置提醒日期",{"text-align":"left","width":"195px"});
|
|
|
+ }
|
|
|
+ }
|
|
|
//
|
|
|
$(".myfollowent").click(function(){
|
|
|
var entname = $(this).text()
|
|
@@ -3455,9 +3522,13 @@
|
|
|
window.addEventListener('pagehide', function () {
|
|
|
isPageHide = true;
|
|
|
});
|
|
|
+ subPoint()
|
|
|
if (canRead) {
|
|
|
// 有权限查看的才会下载附件
|
|
|
- andownload()
|
|
|
+ setTimeout(function(){
|
|
|
+ andownload()
|
|
|
+ }, 500)
|
|
|
+
|
|
|
}
|
|
|
// 收藏
|
|
|
$('.collec_star').on('click', function () {
|
|
@@ -3520,7 +3591,76 @@
|
|
|
return key
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
</script>
|
|
|
+{{if not .T.obj.hasSession }}
|
|
|
+ <script>
|
|
|
+ var areaNavModule = {
|
|
|
+ $el: null,
|
|
|
+ init: function () {
|
|
|
+ this.getTargetDOM()
|
|
|
+ this.addListener()
|
|
|
+ },
|
|
|
+ getTargetDOM: function () {
|
|
|
+ this.$el = $('.tag-area-nav-container')
|
|
|
+ },
|
|
|
+ addListener: function () {
|
|
|
+ var _this = this
|
|
|
+ if (!this.$el) return
|
|
|
+ this.$el.find('.action-show-more').on('click', function () {
|
|
|
+ _this.$el.find('.tag-area-nav-list-group').toggle()
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
+ var backToTop = {
|
|
|
+ $scrollDOM: $('.app-layout-content-b'),
|
|
|
+ $backToTop: $('.back-to-top'),
|
|
|
+ init: function () {
|
|
|
+ this.checkBackToTopButtonShow()
|
|
|
+ this.bindEvents()
|
|
|
+ },
|
|
|
+ bindEvents: function () {
|
|
|
+ var _this = this
|
|
|
+ this.$backToTop.on('click', function () {
|
|
|
+ $('.app-layout-content-b').animate({
|
|
|
+ scrollTop: 0
|
|
|
+ })
|
|
|
+ })
|
|
|
+ this.$scrollDOM.on('scroll', function (e) {
|
|
|
+ _this.checkBackToTopButtonShow()
|
|
|
+ })
|
|
|
+ },
|
|
|
+ checkBackToTopButtonShow: function () {
|
|
|
+ var scrollTop = this.$scrollDOM.scrollTop()
|
|
|
+ if (scrollTop < 5) {
|
|
|
+ this.$backToTop.hide()
|
|
|
+ } else {
|
|
|
+ this.$backToTop.show()
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ $(function(){
|
|
|
+ areaNavModule.init()
|
|
|
+ backToTop.init()
|
|
|
+ // 未登录状态下距顶部距离为顶部搜索框高度
|
|
|
+ var headerTop = document.querySelector('.jy-app-header ').clientHeight
|
|
|
+ $('.app-layout-content-b').css('top', headerTop)
|
|
|
+ $('.h5-tabfix').css('top', headerTop)
|
|
|
+ $('.wx-tabfix').css('top', headerTop)
|
|
|
+ $('.childNav').css('top', headerTop)
|
|
|
+ $('.tag-breadcrumb-navigation').css('background', '#EDEFF2')
|
|
|
+ $('.search-container').on('click', function (e) {
|
|
|
+ e.preventDefault()
|
|
|
+ localStorage.removeItem('JY-MOBILE-home-top-search')
|
|
|
+ sessionStorage.removeItem('JY-MOBILE-/search/result/bidding')
|
|
|
+ location.href = '/jy_mobile/search/middle/bidding'
|
|
|
+ })
|
|
|
+ $('.j-icon.base-icon.icon-back-white').on('click', function() {
|
|
|
+ window.history.back()
|
|
|
+ })
|
|
|
+ })
|
|
|
+ </script>
|
|
|
+{{end}}
|
|
|
{{include "/common/baiducc.html"}}
|
|
|
</body>
|
|
|
</html>
|