Browse Source

修复分享页的一些问题

pull/157/head
zyx 6 years ago
parent
commit
6b2ca1823e
  1. 2
      dzz/shares/images/folder.css
  2. 3
      dzz/shares/images/mobile/password.css
  3. 9
      dzz/shares/scripts/mobile/share.js
  4. 22
      dzz/shares/template/list.htm
  5. 9
      dzz/shares/template/mobile/list.htm
  6. 8
      dzz/shares/template/mobile/list_item.htm

2
dzz/shares/images/folder.css

@ -301,9 +301,9 @@ html, body {
/*文件分享单页开始*/
.sharepame-title{
line-height: 64px;
color: #fff;
font-size: 22px;
font-family: "微软雅黑";
color:#FFF;
}
.sharepame-images{
width:54px;

3
dzz/shares/images/mobile/password.css

@ -7,6 +7,9 @@ html, body {
ul,ul li{
list-style: none;
}
section.weui-cells__recent{
margin-bottom:60px;
}
.hide{
display: none;
}

9
dzz/shares/scripts/mobile/share.js

@ -41,7 +41,6 @@ $(document).off('tap.openfolder').on('tap.openfolder', '.folderlist', function (
$(this).html('<a href="javascript:;">' + $(this).html() + '</a>');
});
$('#weui_address_scroll').navbarscroll();
height();
$('#dataContainer').empty();
})
}
@ -101,10 +100,12 @@ var loading = false; //状态标记
$(document.body).infinite().on("infinite", function () {
if (loading) return;
loading = true;
if (nextpage) {
$.post(DZZSCRIPT + '?mod=shares&op=ajax', {'morepath': morepath, 'page': nextpage}, function (data) {
var nextpage=$('#nextpage');
if (nextpage.length) {
$.post(DZZSCRIPT + '?mod=shares&op=ajax', {'morepath': nextpage.data('morepath'), 'page': nextpage.data('nextpage')}, function (data) {
loading = false;
$('#dataContainer').html(data);
$('#filelist').append($('#dataContainer').find('.module-list').html());
$('#filelist #nextpage').replaceWith($('#dataContainer').find('.module-list').html());
$('#dataContainer').empty();
})
} else {

22
dzz/shares/template/list.htm

@ -4,7 +4,7 @@
<link href="static/dzzthumb/jquery.dzzthumb.css?{VERHASH}" rel="stylesheet" media="all">
<script type="text/javascript" src="static/js/jquery.leftDrager.js?{VERHASH}"></script>
<script type="text/javascript" src="static/dzzthumb/jquery.dzzthumb.js?{VERHASH}"></script>
<script type="text/javascript" src="dzz/explorer/js/_hotkey.js?{VERHASH}"></script>
<script type="text/javascript" src="dzz/vapp/js/_hotkey.js?{VERHASH}"></script>
<!--{template common/header_simple_end}-->
<!--头部信息框-->
@ -21,10 +21,10 @@
</div>
<div class="select-toperate select-toperate-center toolButtons">
<div class="btns">
<a node-type="btn-item" href="javascript:void(0);" class="shares-topbtns share_save">
<!-- <a node-type="btn-item" href="javascript:void(0);" class="shares-topbtns share_save">
<span class="dzz dzz-save" data-key="save" data-toggle="tooltip" data-placement="bottom"
data-original-title="{lang save}"></span>
</a>
</a>-->
<a node-type="btn-item" href="javascript:void(0);" onclick="downfileselect();return false;"
class="shares-topbtns">
<span class="dzz dzz-download" data-key="download" data-toggle="tooltip" data-placement="bottom"
@ -48,8 +48,7 @@
<div id="contains_content">
<!--固定的头部-->
<!--{template common/commer_header}-->
<div class="bs-container clearfix">
<div class="bs-container1 clearfix">
<div class="bs-main-container" style="padding: 0px;">
<div class="container">
<div class="sharepame-pictitle clearfix">
@ -76,7 +75,7 @@
<!--地址栏结束-->
<div class="main-content clearfix">
<div node-type="module" class="module-grid-view data-list" style="display: none;overflow:auto">
<div node-type="module" class="module-grid-view data-list" style="display: none;">
<div node-type="list" class="wrapper window clearfix" style="z-index:1000">
<!--选中后的效果-->
<div class="list-wrapper clearfix">
@ -233,17 +232,16 @@
});
//页面高度js
var page_loading = false;
jQuery('.left-drager').leftDrager_layout(function () {
});
jQuery('.module-list-view:visible .list-share').scroll(function (e) {
jQuery('.left-drager').leftDrager_layout();
/* jQuery('.module-list-view:visible .list-share').scroll(function (e) {
var clientHeight = jQuery('.list-share').height();
var scrollHeight = jQuery('.list-share .list-wrapper').height();
if (jQuery('.list-share').scrollTop() + clientHeight >= (scrollHeight - 5) && !page_loading) jQuery('.list-share .more').trigger('click');
});
});*/
jQuery('.bs-main-container').scroll(function (e) {
var clientHeight = jQuery('.bs-main-container').height();
var scrollHeight = jQuery('.bs-main-container .list-wrapper').height();
if (jQuery('.bs-main-container').scrollTop() + clientHeight >= (scrollHeight - 150) && !page_loading) jQuery('.module-grid-view .more').trigger('click');
var scrollHeight = jQuery('.bs-main-container > .container').height();
if (jQuery('.bs-main-container').scrollTop() + clientHeight >= (scrollHeight - 50) && !page_loading) jQuery('.module-grid-view .more').trigger('click');
});
function getMore(obj, href) {

9
dzz/shares/template/mobile/list.htm

@ -105,15 +105,8 @@ $(function(){
$('.downfile').removeClass('hide');
}
$('#weui_address_scroll').navbarscroll();
height();
});
function height(){
var h=$(document).outerHeight(true);
var h1=$('.weui-cell-member').outerHeight(true);
var h2=$('.weui-address').outerHeight(true);
var h3=$('.weui-member-footer').outerHeight(true);
$('#filelist').css({'height':h-h1-h2-h3,'margin-bottom':'100px'});
}
function downfile(downurl){
jQuery.post('{MOD_URL}&do=adddowns&sid={$_GET[sid]}', function (data) {
if (data['success']) {

8
dzz/shares/template/mobile/list_item.htm

@ -39,7 +39,7 @@
</div>
<!--{/if}-->
<!--{/loop}-->
</div>
<script type="text/javascript">
var nextpage = '{$nextpage}',morepath = '{$morepath}';
</script>
<!--{if $nextpage}-->
<div id="nextpage" data-nextpage="$nextpage" data-morepath="$morepath" style="display: none"></div>
<!--{/if}-->
</div>
Loading…
Cancel
Save