diff --git a/dzz/shares/ajax.php b/dzz/shares/ajax.php
index a25ddf1..6f5a7a4 100644
--- a/dzz/shares/ajax.php
+++ b/dzz/shares/ajax.php
@@ -10,7 +10,7 @@ if (!defined('IN_DZZ')) {
exit('Access Denied');
}
global $_G;
-if(!$_G['setting']['ballowshare']){
+if($_G['setting']['allowshare'] && !$_G['setting']['ballowshare']){
showmessage('no_privilege');
}
$open = false;
@@ -46,9 +46,8 @@ if(isset($_GET['currentfolder']) && $_GET['currentfolder']){
}else{
$currentfolder = false;
}
-$ismobile = helper_browser::ismobile();
$page = (isset($_GET['page'])) ? intval($_GET['page']):1;
-$perpage = ($ismobile) ? 20:20;
+$perpage = 20;
$start = ($page - 1) * $perpage;
$gets = array('mod' => 'shares', 'sid' => $sid, );
$theurl = BASESCRIPT . "?" . url_implode($gets);
@@ -124,10 +123,6 @@ if (count($list) >= $perpage) {
} else {
$naxtpage = 0;
}
-if($ismobile){
- include template('mobile/list_item');
-}else{
- include template('list_item');
-}
+include template('list_item');
dexit();
?>
diff --git a/dzz/shares/download.php b/dzz/shares/download.php
index 4f33ef7..8fb34b7 100644
--- a/dzz/shares/download.php
+++ b/dzz/shares/download.php
@@ -10,7 +10,7 @@
@set_time_limit(0);
include_once libfile('class/ZipStream');
global $_G;
-if(!$_G['setting']['ballowshare']){
+if($_G['setting']['allowshare'] && !$_G['setting']['ballowshare']){
showmessage('no_privilege');
}
$patharr = $_GET['paths'];
diff --git a/dzz/shares/images/folder.css b/dzz/shares/images/folder.css
index 1dd9c1b..2458747 100644
--- a/dzz/shares/images/folder.css
+++ b/dzz/shares/images/folder.css
@@ -49,17 +49,17 @@
/*border-bottom: 1px solid transparent;*/
}
.module-list-view .item-hover {
- background-color: rgba(var(--bs-white-rgb), .35);
+ background-color: var(--bs-primary);
}
.module-list-view .item-block {
- background-color: rgba(var(--bs-white-rgb), .35);
+ background-color: var(--bs-primary);
}
.module-list-view .item-block.item .btns a.dzz{
color: #FFFFFF;
opacity: 1;
}
.module-list-view .item-block.item {
- border-bottom:1px solid #3779ff;
+ border-bottom:1px solid var(--bs-primary);
}
.module-list-view .item-block .col{
color: #FFFFFF;
@@ -94,19 +94,13 @@
.module-list-view .title .col {
cursor: pointer;
_overflow: hidden;
+ padding: var(--radius);
}
.module-list-view .title .col:hover {
background-color: rgba(var(--bs-black-rgb), .175);
}
.module-list-view .col {
float: left;
- height: 51px;
- line-height: 51px;
- text-indent: 10px;
- width: 10%;
- white-space: nowrap;
- text-overflow: ellipsis;
- overflow: hidden;
}
.module-list-view .title .col {
cursor: pointer;
@@ -114,9 +108,7 @@
}
.module-list-view .c1 {
position: relative;
- text-align: left;
- top: 0;
- overflow: visible;
+ padding: var(--radius);
}
.module-list-view .item .btns {
position: absolute;
@@ -140,6 +132,10 @@
.select-toperate-center .btns a .dzz,.btns a.dzz{
opacity: 0.65;
}
+.select-toperate-center .btns a .dzz,.btns a.dzz:hover{
+ opacity: 1;
+ color: #000;
+}
.select-toperate-center .btns a:hover .dzz,.btns:hover a.dzz{
opacity: 1;
}
@@ -323,16 +319,6 @@
border-bottom: 1px solid #DCDCDC;
padding-bottom: 1.42rem;
}
-
-.button-share-group .btn,.btn-group .btn{
- padding: 0px;
- font-size: 14px;
- background: none;
- border: 0;
- box-shadow: none;
- color: #FFFFFF;
- line-height: 64px;
-}
.select-toperate-right .btn-group .btn{
padding: 0px;
font-size: 14px;
@@ -345,24 +331,12 @@
padding-right: 1.42rem;
}
-.button-share-group .btn span{
- font-size: 22px;
- padding:5px 7px;
- vertical-align: middle;
-}
-.button-share-group .btn .dzz-textdecoration{
- /*border-right: 1px solid #FFFFFF;
- padding-right: 1.37rem;*/
-}
.select-toperate-right .btn-group .btn.btn-group-list i,.select-toperate-right .btn-group .btn.btn-group-thumbnail i{
opacity: 0.65;
}
.select-toperate-right .btn-group .btn.btn-group-list i:hover,.select-toperate-right .btn-group .btn.btn-group-thumbnail i:hover{
opacity: 1;
}
-.button-share-group .btn-group a i{
- opacity: 1;
-}
.btn-group .btn.btn-group-list i{
font-size: 22px;
padding: 0px 0.71rem 0px 1rem;
@@ -384,9 +358,6 @@
.nav-pills li{
padding-right: 5px;
}
-.main-header{
- border: none;
-}
.navtopheader{
position: fixed;
top: 0;
@@ -396,10 +367,9 @@
height:65px;
z-index: 2201;
display: none;
- min-width: 768px;
}
.navtoperate{
- background-color:#FFFFFF;
+ background-color:var(--bs-primary);
box-shadow: 0px 0px 15px 0px rgba(0,0,0,0.15);
border-radius: .3rem;
}
@@ -437,10 +407,8 @@
-webkit-box-pack: end;
}
.selectall-box{
- padding-left:2.14rem;
width: auto;
display: inline-block;
- line-height: 65px;
}
.selectall-box .dzz-backing-out{
font-size: 24px;
diff --git a/dzz/shares/images/mobile/password.css b/dzz/shares/images/mobile/password.css
deleted file mode 100644
index ab11a8f..0000000
--- a/dzz/shares/images/mobile/password.css
+++ /dev/null
@@ -1,94 +0,0 @@
-ul,ul li{
- list-style: none;
-}
-.hide{
- display: none;
-}
-.weui-cell__bd{
- overflow: hidden;
- white-space: nowrap;
- text-overflow: ellipsis;
- word-break: break-all;
-}
-.weui-cell__bd h4{
- overflow: hidden;
- white-space: nowrap;
- text-overflow: ellipsis;
- word-break: break-all;
-}
-.weui-submit{
- padding: 0.75rem;
-}
-.weui-cell__hd .weui-cell__recentimg {
- width: 2rem;
- height: 2rem;
- margin-right: var(--radius);
- border-radius: 2px;
-}
-.weui-cell__bd p{
- font-size: 0.7rem;
-}
-.weui-cell__bd p i {
- font-style: normal;
- margin: 0px 0.25rem;
-}
-.weui-share-dzzicon{
- font-size: 1.1rem;
- color: #3779ff;
-}
-/*地址栏开始*/
-.weui-address {
- position: relative;
-}
-.weui-index {
- position: absolute;
- top: 0.4rem;
- left: 0.5rem;
- width: 3rem;
- line-height: 1rem;
-}
-.weui-index .dzz-index {
- font-size: 1.2rem;
- color: #3779FF;
-}
-.weui-index .dzz-index-vline {
- font-size: 1.2rem;
- color: #DDDDDD;
-}
-.weui-address-container {
- margin-left: 0.5rem;
- overflow: hidden;
- position: relative;
- height: 1.5rem;
-}
-.weui-address-field {
- position: absolute;
- top: 0;
- right: 0;
- left: 0;
- white-space: nowrap;
- padding: 0.15rem;
- min-width: 100%;
-}
-.weui-address-field li {
- float: left;
-}
-.weui-address-field li a {
- font-size: 0.7rem;
-}
-.weui-address-field li span {
- vertical-align: middle;
-}
-/*地址栏结束*/
-.weui-member-footer{
- background-color: #FFFFFF;
- position: fixed;
- box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.1);
- margin: 5px;
- left: 0;
- right: 0;
- width: auto;
-}
-.weui-cells_checkbox .weui-check:checked+.weui-icon-checked:before{
- color: #4c8afb;
-}
diff --git a/dzz/shares/index.php b/dzz/shares/index.php
index b6d1e9a..ddde0a8 100644
--- a/dzz/shares/index.php
+++ b/dzz/shares/index.php
@@ -10,13 +10,12 @@ if (!defined('IN_DZZ')) {
exit('Access Denied');
}
global $_G;
-if(!$_G['setting']['ballowshare']){
+if($_G['setting']['allowshare'] && !$_G['setting']['ballowshare']){
showmessage('no_privilege');
}
$osid = $_GET['sid'];
$morepath = $osid;
$sid = dzzdecode($osid);
-$ismobile = helper_browser::ismobile();
$navtitle='分享文件';
$do = isset($_GET['do']) ? trim($_GET['do']) : '';
if ($do == 'adddowns') {
@@ -43,21 +42,13 @@ if ($do == 'adddowns') {
if ($share['password'] && (dzzdecode($share['password']) != authcode($_G['cookie']['pass_' . $sid]))) {
if (submitcheck('passwordsubmit')) {
if ($_GET['password'] != dzzdecode($share['password'])) {
- if ($ismobile) {
- include template('mobile/share_password');
- } else {
- include template('password');
- }
+ include template('password');
exit();
}
dsetcookie('pass_' . $sid, authcode($_GET['password'], 'ENCODE'));
} else {
$rightpassword = dzzdecode($share['password']);
- if ($ismobile) {
- include template('mobile/share_password');
- } else {
- include template('password');
- }
+ include template('password');
exit();
}
}
@@ -111,7 +102,7 @@ if ($do == 'adddowns') {
//增加浏览次数
C::t('shares')->add_views_by_id($sid);
$page = (isset($_GET['page'])) ? intval($_GET['page']) : 1;
- $perpage = ($ismobile) ? 20 : 20;
+ $perpage = 20;
$start = ($page - 1) * $perpage;
$gets = array('mod' => 'shares', 'sid' => $sid,);
$theurl = BASESCRIPT . "?" . url_implode($gets);
@@ -185,10 +176,6 @@ if ($do == 'adddowns') {
$nextpage = 0;
}
//echo $nextpage;die;
- if ($ismobile) {
- include template('mobile/list');
- } else {
- include template('list');
- }
+ include template('list');
}
?>
diff --git a/dzz/shares/save.php b/dzz/shares/save.php
index 95e85df..38952e1 100644
--- a/dzz/shares/save.php
+++ b/dzz/shares/save.php
@@ -10,7 +10,7 @@ if (!defined('IN_DZZ')) {
}
global $_G;
Hook::listen('check_login');//检查是否登录,未登录跳转到登录界面
-if(!$_G['setting']['ballowshare']){
+if($_G['setting']['allowshare'] && !$_G['setting']['ballowshare']){
showmessage('no_privilege');
}
$uid = $_G['uid'];
diff --git a/dzz/shares/scripts/mobile/appevent.js b/dzz/shares/scripts/mobile/appevent.js
deleted file mode 100644
index 365e9b4..0000000
--- a/dzz/shares/scripts/mobile/appevent.js
+++ /dev/null
@@ -1,214 +0,0 @@
-/**
- * Created by a on 2018/5/3.
- */
-(function($){
- var touch = {},
- touchTimeout, tapTimeout, swipeTimeout, longTapTimeout,
- longTapDelay = 500,
- gesture,
- down, up, move,
- eventMap,
- initialized = false
-
- function swipeDirection(x1, x2, y1, y2) {
- return Math.abs(x1 - x2) >=
- Math.abs(y1 - y2) ? (x1 - x2 > 0 ? 'Left' : 'Right') : (y1 - y2 > 0 ? 'Up' : 'Down')
- }
-
- function longTap() {
- longTapTimeout = null
- if (touch.last) {
- touch.el.trigger('longTap')
- touch = {}
- }
- }
-
- function cancelLongTap() {
- if (longTapTimeout) clearTimeout(longTapTimeout)
- longTapTimeout = null
- }
-
- function cancelAll() {
- if (touchTimeout) clearTimeout(touchTimeout)
- if (tapTimeout) clearTimeout(tapTimeout)
- if (swipeTimeout) clearTimeout(swipeTimeout)
- if (longTapTimeout) clearTimeout(longTapTimeout)
- touchTimeout = tapTimeout = swipeTimeout = longTapTimeout = null
- touch = {}
- }
-
- function isPrimaryTouch(event){
- return (event.pointerType == 'touch' ||
- event.pointerType == event.MSPOINTER_TYPE_TOUCH)
- && event.isPrimary
- }
-
- function isPointerEventType(e, type){
- return (e.type == 'pointer'+type ||
- e.type.toLowerCase() == 'mspointer'+type)
- }
-
- // helper function for tests, so they check for different APIs
- function unregisterTouchEvents(){
- if (!initialized) return
- $(document).off(eventMap.down, down)
- .off(eventMap.up, up)
- .off(eventMap.move, move)
- .off(eventMap.cancel, cancelAll)
- $(window).off('scroll', cancelAll)
- cancelAll()
- initialized = false
- }
-
- function setup(__eventMap){
- var now, delta, deltaX = 0, deltaY = 0, firstTouch, _isPointerType
-
- unregisterTouchEvents()
-
- eventMap = (__eventMap && ('down' in __eventMap)) ? __eventMap :
- ('ontouchstart' in document ?
- { 'down': 'touchstart', 'up': 'touchend',
- 'move': 'touchmove', 'cancel': 'touchcancel' } :
- 'onpointerdown' in document ?
- { 'down': 'pointerdown', 'up': 'pointerup',
- 'move': 'pointermove', 'cancel': 'pointercancel' } :
- 'onmspointerdown' in document ?
- { 'down': 'MSPointerDown', 'up': 'MSPointerUp',
- 'move': 'MSPointerMove', 'cancel': 'MSPointerCancel' } : false)
-
- // No API availables for touch events
- if (!eventMap) return
-
- if ('MSGesture' in window) {
- gesture = new MSGesture()
- gesture.target = document.body
-
- $(document)
- .bind('MSGestureEnd', function(e){
- var swipeDirectionFromVelocity =
- e.velocityX > 1 ? 'Right' : e.velocityX < -1 ? 'Left' : e.velocityY > 1 ? 'Down' : e.velocityY < -1 ? 'Up' : null
- if (swipeDirectionFromVelocity) {
- touch.el.trigger('swipe')
- touch.el.trigger('swipe'+ swipeDirectionFromVelocity)
- }
- })
- }
-
- down = function(e){
- if((_isPointerType = isPointerEventType(e, 'down')) &&
- !isPrimaryTouch(e)) return
- firstTouch = _isPointerType ? e :((e.touches) ? e.touches[0]:e.originalEvent.changedTouches[0])
- if (e.touches && e.touches.length === 1 && touch.x2) {
- // Clear out touch movement data if we have it sticking around
- // This can occur if touchcancel doesn't fire due to preventDefault, etc.
- touch.x2 = undefined
- touch.y2 = undefined
- }
- now = Date.now()
- delta = now - (touch.last || now)
- touch.el = jQuery('tagName' in firstTouch.target ?
- firstTouch.target : firstTouch.target.parentNode)
- touchTimeout && clearTimeout(touchTimeout)
- touch.x1 = firstTouch.pageX
- touch.y1 = firstTouch.pageY
- if (delta > 0 && delta <= 250) touch.isDoubleTap = true
- touch.last = now
- longTapTimeout = setTimeout(longTap, longTapDelay)
- // adds the current touch contact for IE gesture recognition
- if (gesture && _isPointerType) gesture.addPointer(e.pointerId)
- }
-
- move = function(e){
- if((_isPointerType = isPointerEventType(e, 'move')) &&
- !isPrimaryTouch(e)) return
- firstTouch = _isPointerType ? e :((e.touches) ? e.touches[0]:e.originalEvent.changedTouches[0])
- cancelLongTap()
- touch.x2 = firstTouch.pageX
- touch.y2 = firstTouch.pageY
-
- deltaX += Math.abs(touch.x1 - touch.x2)
- deltaY += Math.abs(touch.y1 - touch.y2)
- }
-
- up = function(e){
- if((_isPointerType = isPointerEventType(e, 'up')) &&
- !isPrimaryTouch(e)) return
- cancelLongTap()
-
- // swipe
- if ((touch.x2 && Math.abs(touch.x1 - touch.x2) > 30) ||
- (touch.y2 && Math.abs(touch.y1 - touch.y2) > 30))
-
- swipeTimeout = setTimeout(function() {
- if (touch.el){
- touch.el.trigger('swipe')
- touch.el.trigger('swipe' + (swipeDirection(touch.x1, touch.x2, touch.y1, touch.y2)))
- }
- touch = {}
- }, 0)
-
- // normal tap
- else if ('last' in touch)
- // don't fire tap when delta position changed by more than 30 pixels,
- // for instance when moving to a point and back to origin
- if (deltaX < 30 && deltaY < 30) {
- // delay by one tick so we can cancel the 'tap' event if 'scroll' fires
- // ('tap' fires before 'scroll')
- tapTimeout = setTimeout(function() {
-
- // trigger universal 'tap' with the option to cancelTouch()
- // (cancelTouch cancels processing of single vs double taps for faster 'tap' response)
- var event = jQuery.Event('tap')
- event.cancelTouch = cancelAll
- // [by paper] fix -> "TypeError: 'undefined' is not an object (evaluating 'touch.el.trigger'), when double tap
- if (touch.el) touch.el.trigger(event)
-
- // trigger double tap immediately
- if (touch.isDoubleTap) {
- if (touch.el) touch.el.trigger('doubleTap')
- touch = {}
- }
-
- // trigger single tap after 250ms of inactivity
- else {
- touchTimeout = setTimeout(function(){
- touchTimeout = null
- if (touch.el) touch.el.trigger('singleTap')
- touch = {}
- }, 250)
- }
- }, 0)
- } else {
- touch = {}
- }
- deltaX = deltaY = 0
- }
-
- jQuery(document).on(eventMap.up, up)
- .on(eventMap.down, down)
- .on(eventMap.move, move)
-
- // when the browser window loses focus,
- // for example when a modal dialog is shown,
- // cancel all ongoing events
- jQuery(document).on(eventMap.cancel, cancelAll)
-
- // scrolling the window indicates intention of the user
- // to scroll, not tap or swipe, so cancel all ongoing events
- jQuery(window).on('scroll', cancelAll)
-
- initialized = true
- }
-
- ;['swipe', 'swipeLeft', 'swipeRight', 'swipeUp', 'swipeDown',
- 'doubleTap', 'tap', 'singleTap', 'longTap'].forEach(function(eventName){
- jQuery.fn[eventName] = function(callback){return this.on(eventName, callback) }
- /*jQuery.fn[eventName] = function(callback){
- return jQuery(document).off(eventName).on(eventName,this,callback)
- }*/
- })
-
- jQuery.touch = { setup: setup }
-
- jQuery(document).ready(setup)
-})(jQuery)
diff --git a/dzz/shares/scripts/mobile/share.js b/dzz/shares/scripts/mobile/share.js
deleted file mode 100644
index 6642db0..0000000
--- a/dzz/shares/scripts/mobile/share.js
+++ /dev/null
@@ -1,190 +0,0 @@
-//开始长按
-/*
- $(document).bind('contextmenu',function(){
- var e=event;
- e.preventDefault();
- })*/
-var selectors = [];
-//打开文件
-$(document).off('tap.openfile').on('tap.openfile', '.filelist', function () {
- var obj = $(this), dpath = obj.data('dpath');
- if (selectors.length > 0) {
- select_file(obj);
- return false;
- } else {
- if (is_wxwork) {
- var href = obj.data('href');
- window.location.href = href;
- return false;
- } else {
- var dpath = obj.data('dpath');
- var preurl = 'share.php?a=view&s=' + dpath;
- window.open(preurl);
- }
- }
-
-
-})
-//打开文件夹
-$(document).off('tap.openfolder').on('tap.openfolder', '.folderlist', function () {
- var obj = $(this), dhpath = obj.data('dhpath'), dpath = obj.data('dpath');
- if (selectors.length > 0) {
- select_file(obj);
- return false;
- } else {
- $.post(MOD_URL + '&op=ajax', {path: dhpath, currentfolder: 0}, function (data) {
- $('#dataContainer').html(data);
- $('#filelist').html($('#dataContainer').find('.module-list').html());
- $($('#dataContainer').find('.breadcrumb-data:first').html()).insertAfter($('.breadcrumb li').last());
- $('.breadcrumb li:not(:last)').each(function () {
- $(this).removeClass('active');
- $(this).html('
' + $(this).html() + ' ');
- });
- $('#weui_address_scroll').navbarscroll();
- $('#dataContainer').empty();
- })
- }
-})
-//选择文件
-function select_file(obj) {
- var dpath = obj.data('dpath'), index = $.inArray(dpath, selectors);
- if (obj.find('.weui-cells_checkbox .weui-check').prop('checked')) {
- obj.find('.weui-cells_checkbox').addClass('hide');
- obj.find('.weui-cell__ft').removeClass('hide');
- obj.find('.weui-cells_checkbox .weui-check').prop('checked', false)
- if (index != -1) {
- selectors.splice(index, 1);
- }
- } else {
- obj.find('.weui-cells_checkbox').removeClass('hide');
- obj.find('.weui-cell__ft').addClass('hide');
- obj.find('.weui-cells_checkbox .weui-check').prop('checked', true)
- if (index == -1) {
- selectors.push(dpath);
- }
- }
- chk_select();
-}
-//选择文件
-$(document).off('longTap.select').on('longTap.select', '.weui-cell_longpress', function () {
- var obj = $(this);
- select_file(obj);
-})
-function chk_select() {
- if (selectors.length > 0) {
- $('.weui-cells_checkbox').removeClass('hide');
- $('.weui-cell__ft').addClass('hide');
- } else {
- $('.weui-cells_checkbox').addClass('hide');
- $('.weui-cell__ft').removeClass('hide');
- }
- return false;
-}
-$(document).off('tap.route').on('tap.route', '.route', function () {
- var obj = $(this);
- var href = obj.data('href');
- $.post(href, {currentfolder: 0}, function (data) {
- $('#dataContainer').html(data);
- $('#filelist').html($('#dataContainer').find('.module-list').html());
- obj.nextAll('li').remove();
- $('.breadcrumb li:not(:last)').each(function () {
- $(this).removeClass('active');
- });
- $('#weui_address_scroll').navbarscroll();
- $('#dataContainer').empty();
- })
-})
-//加载更多
-//单页滚动加载
-var loading = false; //状态标记
-$(document.body).infinite().on("infinite", function () {
- if (loading) return;
- loading = true;
- 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 #nextpage').replaceWith($('#dataContainer').find('.module-list').html());
- $('#dataContainer').empty();
- });
- } else {
- loading = false;
- }
-});
-function nextPageLoad(){
- if (loading) return;
- loading = true;
- 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 #nextpage').replaceWith($('#dataContainer').find('.module-list').html());
- $('#dataContainer').empty();
- });
- } else {
- loading = false;
- }
-}
-//保存文件
-$(document).off('tap.savefile').on('tap.savefile', '.savefiles', function () {
- var action = 'index.php?mod=system&op=mobilefileselection&type=2&handlekey=seldir&allowcreate=1',
- rids = [], callback_url = encodeURI(MOD_URL + '&op=save'), token = {};
- if (selectors.length > 0) {
- rids = selectors.join(',');
- } else {
- $('.weui-cell_longpress').each(function () {
- var rid = $(this).data('dpath');
- rids.push(rid);
- })
- rids = rids.join(',');
- }
- token = {"paths": rids};
- if ($('#submitForm').length < 1) {
- var form = $('
');
- $(document.body).append(form);
- } else {
- form = $('#submitForm');
- }
- if ($('#tokendata').length < 1) {
- var tokendata = $('
');
- form.append(tokendata);
- } else {
- var tokendata = $('#tokendata');
- }
-
- tokendata.val(JSON.stringify(token));
- if ($('#callbackdata').length < 1) {
- var callbackdata = $('
');
- form.append(callbackdata);
- } else {
- var callbackdata = $('#callbackdata');
- }
- callbackdata.val(callback_url);
- form.attr('action', action);
- form.attr('method', 'post');
- form.submit();
- return false;
-
-})
-//下载文件
-$(document).off('tap.down').on('tap.down', '.downfile', function () {
- var href = DZZSCRIPT + '?mod=io&op=download&checkperm=false',
- rids = [];
- if (selectors.length > 0) {
- rids = selectors.join(',');
- } else {
- $('.weui-cell_longpress').each(function () {
- var rid = $(this).data('dpath');
- rids.push(rid);
- })
- rids = rids.join(',');
- }
- href = href + '&path=' + rids;
- downfile(href);
-})
-
-function yulantishi() {
- confirm('禁止在线预览!');
-}
\ No newline at end of file
diff --git a/dzz/shares/template/header_search.htm b/dzz/shares/template/header_search.htm
index 24d9f3a..d12a317 100644
--- a/dzz/shares/template/header_search.htm
+++ b/dzz/shares/template/header_search.htm
@@ -1,19 +1,23 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/dzz/shares/template/list.htm b/dzz/shares/template/list.htm
index 1e7ff62..fa69714 100644
--- a/dzz/shares/template/list.htm
+++ b/dzz/shares/template/list.htm
@@ -8,7 +8,7 @@