Compare commits
5 Commits
23
UPDATE.md
23
UPDATE.md
@@ -1,20 +1,21 @@
|
|||||||
## PicHome beta3.1 更新说明
|
## PicHome beta3.3 更新说明
|
||||||
|
|
||||||
### 1.增加billfish库文件导入支持
|
### 1.billfish数据支持,兼容billfish2.5版本数据导入
|
||||||
|
|
||||||
### 2.库设置内容更改,显示当前库连接状态,断开为不可用;增加普通目录文件缩略图生成数量显示,
|
### 2.eagle数据支持,兼容新旧版本eagle数据导入
|
||||||
整体优化库设置在未导入之前也可对库进行管理操作
|
|
||||||
|
|
||||||
### 3.修复系统设置界面因二级域名导致的白页问题
|
### 3.优化普通目录文件缩略图生成逻辑,优化效率,以及缩略图转换数字显示等问题修复
|
||||||
|
|
||||||
### 4.修复标签分类等数据显示异常问题;不可用状态的库将不在列表页展示其内容
|
### 4.修复普通目录由于文件名长度问题导致的文件缺失和部分服务器中存在因路径分割符不同导致文件导入累加式重复问题
|
||||||
|
|
||||||
### 5.修复下载时提示文件不存在的bug
|
### 5.库设置增加库名称修改选项
|
||||||
|
|
||||||
### 6.优化删除逻辑,将更快清理冗余数据
|
### 6.修复页面标签未分类数据显示错误问题,修复单一库时存在的筛选项不能正常显示问题
|
||||||
|
|
||||||
### 7.优化导入逻辑
|
### 7.页面增加按eagle和billfish内目录排序显示支持
|
||||||
|
|
||||||
### 8.优化访问效率
|
### 8.优化库删除逻辑,删除时清理库冗余数据
|
||||||
|
|
||||||
### 9.其他已知bug修复
|
### 9.文件访问地址修改为动态地址,增强文件私密性,为之后版本文件私密保护做准备
|
||||||
|
|
||||||
|
### 10.其他已知bug修复
|
||||||
@@ -130,7 +130,7 @@ function html_login_form() {
|
|||||||
$sid = getglobal('sid');
|
$sid = getglobal('sid');
|
||||||
$avatarstatus=getglobal('avatarstatus','member');
|
$avatarstatus=getglobal('avatarstatus','member');
|
||||||
if(!$uid ){
|
if(!$uid ){
|
||||||
$avastar ='<img src="'.($_G['setting']['sitelogo']?\IO::getFileUri('attach::'.$_G['setting']['sitelogo']):'data/attachment/sitelogo/sitelogo.png').'" />';
|
$avastar ='<img src="data/attachment/sitelogo/sitelogo.png" />';
|
||||||
}else{
|
}else{
|
||||||
$avastar = avatar_block($uid);
|
$avastar = avatar_block($uid);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ b725e80a7ff1e8a3a434e77ba290a6df *admin/system/dist/css/chunk-74c32c70.4b7d665e.
|
|||||||
2e6b6788446f5529d3deed1697515b3b *admin/system/dist/css/chunk-76f23146.6fc79cd8.css
|
2e6b6788446f5529d3deed1697515b3b *admin/system/dist/css/chunk-76f23146.6fc79cd8.css
|
||||||
c513c1a246b65307640fca09b0034313 *admin/system/dist/css/chunk-77c8d08e.61624e22.css
|
c513c1a246b65307640fca09b0034313 *admin/system/dist/css/chunk-77c8d08e.61624e22.css
|
||||||
d12dc4f1e439eb23e83c18205290cf55 *admin/system/dist/css/chunk-7828662a.c81657ef.css
|
d12dc4f1e439eb23e83c18205290cf55 *admin/system/dist/css/chunk-7828662a.c81657ef.css
|
||||||
|
053d89992d7adc9fae1b7830d031f2b0 *admin/system/dist/css/chunk-801d4da6.a47ba236.css
|
||||||
4fc8845677fec5f6ab3e4e56dcf36650 *admin/system/dist/css/chunk-9f9c2568.5356ad7d.css
|
4fc8845677fec5f6ab3e4e56dcf36650 *admin/system/dist/css/chunk-9f9c2568.5356ad7d.css
|
||||||
84614a4a0974a1157dc75739ce2b8966 *admin/system/dist/css/chunk-af3b1b98.b822363f.css
|
84614a4a0974a1157dc75739ce2b8966 *admin/system/dist/css/chunk-af3b1b98.b822363f.css
|
||||||
f018e18ed2f2fe16f2d76ed02b284545 *admin/system/dist/css/chunk-e730cc06.987283b7.css
|
f018e18ed2f2fe16f2d76ed02b284545 *admin/system/dist/css/chunk-e730cc06.987283b7.css
|
||||||
@@ -33,7 +34,8 @@ ea41001e9a9735db73fd1c33f753a258 *admin/system/dist/css/chunk-vendors.4d5d56a8.c
|
|||||||
888e61f04316f10bddfff7bee10c6dd0 *admin/system/dist/fonts/remixicon.888e61f0.ttf
|
888e61f04316f10bddfff7bee10c6dd0 *admin/system/dist/fonts/remixicon.888e61f0.ttf
|
||||||
9915fef980fa539085da55b84dfde760 *admin/system/dist/fonts/remixicon.9915fef9.woff2
|
9915fef980fa539085da55b84dfde760 *admin/system/dist/fonts/remixicon.9915fef9.woff2
|
||||||
95138f36e015ad912c37db92164f5844 *admin/system/dist/img/remixicon.95138f36.svg
|
95138f36e015ad912c37db92164f5844 *admin/system/dist/img/remixicon.95138f36.svg
|
||||||
ae1ba44ed8a73c33b0aa0ab4a44cf523 *admin/system/dist/index.html
|
911c0d4f607a5e0f1ba2a9eb9280ab66 *admin/system/dist/index.html
|
||||||
|
e116b4f06b14ec0f557bbf891fd591af *admin/system/dist/js/chunk-2b4f90f7.8dd0185d.js
|
||||||
057184d69924bbec3848613e9d484a61 *admin/system/dist/js/chunk-2b4f90f7.ec4ac270.js
|
057184d69924bbec3848613e9d484a61 *admin/system/dist/js/chunk-2b4f90f7.ec4ac270.js
|
||||||
9915050af25ebd2a757ddda815fa2025 *admin/system/dist/js/chunk-2d0a3327.ad2684c9.js
|
9915050af25ebd2a757ddda815fa2025 *admin/system/dist/js/chunk-2d0a3327.ad2684c9.js
|
||||||
14d1eb5255f59b744a0e86b76e999f8c *admin/system/dist/js/chunk-2d0bdbc6.4ec7bc5e.js
|
14d1eb5255f59b744a0e86b76e999f8c *admin/system/dist/js/chunk-2d0bdbc6.4ec7bc5e.js
|
||||||
@@ -54,11 +56,13 @@ f1356ba4b41b1c2d0db9158645cfd968 *admin/system/dist/js/chunk-2d0dd46d.bd431129.j
|
|||||||
240a2f188b2b072ac8200cd0a3cc153a *admin/system/dist/js/chunk-76f23146.0d2957ed.js
|
240a2f188b2b072ac8200cd0a3cc153a *admin/system/dist/js/chunk-76f23146.0d2957ed.js
|
||||||
60e968e5f5a74243077cee14c95528ee *admin/system/dist/js/chunk-77c8d08e.3e576953.js
|
60e968e5f5a74243077cee14c95528ee *admin/system/dist/js/chunk-77c8d08e.3e576953.js
|
||||||
80880cf301a3788dc9bee90756f7e93d *admin/system/dist/js/chunk-7828662a.e587f025.js
|
80880cf301a3788dc9bee90756f7e93d *admin/system/dist/js/chunk-7828662a.e587f025.js
|
||||||
|
55515e2cd3f2bb776a090112418eae77 *admin/system/dist/js/chunk-801d4da6.0f74a3ea.js
|
||||||
55253ec60403c36280aecd7a278c8737 *admin/system/dist/js/chunk-9f9c2568.538835dd.js
|
55253ec60403c36280aecd7a278c8737 *admin/system/dist/js/chunk-9f9c2568.538835dd.js
|
||||||
0b209b8b1a24238e609f30444e59741f *admin/system/dist/js/chunk-9f9c2568.877eae72.js
|
0b209b8b1a24238e609f30444e59741f *admin/system/dist/js/chunk-9f9c2568.877eae72.js
|
||||||
037a3c1f50e8e47edde48a7ff4d45130 *admin/system/dist/js/chunk-af3b1b98.850ec152.js
|
037a3c1f50e8e47edde48a7ff4d45130 *admin/system/dist/js/chunk-af3b1b98.850ec152.js
|
||||||
25f102fba0aba57fcad60998d1e1c334 *admin/system/dist/js/chunk-e730cc06.3ce9a994.js
|
25f102fba0aba57fcad60998d1e1c334 *admin/system/dist/js/chunk-e730cc06.3ce9a994.js
|
||||||
328be3371bb7c2536befbfddcc64e417 *admin/system/dist/js/chunk-vendors.3b95dfe3.js
|
328be3371bb7c2536befbfddcc64e417 *admin/system/dist/js/chunk-vendors.3b95dfe3.js
|
||||||
|
b4c690180b4c0268240bb8544d252b67 *admin/system/dist/js/index.5892fe49.js
|
||||||
5247e802fd0efbbe8eb80cd9f6a34540 *admin/system/dist/js/index.b5ff203c.js
|
5247e802fd0efbbe8eb80cd9f6a34540 *admin/system/dist/js/index.b5ff203c.js
|
||||||
e6b823145386281984301ad83fcf96fe *admin/system/dist/js/index.d36cff59.js
|
e6b823145386281984301ad83fcf96fe *admin/system/dist/js/index.d36cff59.js
|
||||||
904b573ab459ffaba51c33b5851d0f5d *admin/system/dist/js/index.d77cc092.js
|
904b573ab459ffaba51c33b5851d0f5d *admin/system/dist/js/index.d77cc092.js
|
||||||
@@ -111,7 +115,7 @@ bcfb2e3e9c3ff2018f356176a1cf43a2 *core/class/class_core.php
|
|||||||
3ce9db683150a76cd033167c7e281391 *core/class/class_Des.php
|
3ce9db683150a76cd033167c7e281391 *core/class/class_Des.php
|
||||||
212cc7650e4798754337b1fefb291827 *core/class/class_FileDownload.php
|
212cc7650e4798754337b1fefb291827 *core/class/class_FileDownload.php
|
||||||
b6b0b9dc4773307d80f9215ed5122361 *core/class/class_GifMerge.php
|
b6b0b9dc4773307d80f9215ed5122361 *core/class/class_GifMerge.php
|
||||||
4793dcfc740be53d3fc40ba98562558a *core/class/class_image.php
|
fda45a96b7be48e159007eb8434a9685 *core/class/class_image.php
|
||||||
d301e008d382be1af825d77bc993d423 *core/class/class_ImagePalette.php
|
d301e008d382be1af825d77bc993d423 *core/class/class_ImagePalette.php
|
||||||
1b836428237ca8d2bb58695cbe37df67 *core/class/class_JSSDK.php
|
1b836428237ca8d2bb58695cbe37df67 *core/class/class_JSSDK.php
|
||||||
986ad79bf8a9bff90c64c82918c0fa74 *core/class/class_Minifier.php
|
986ad79bf8a9bff90c64c82918c0fa74 *core/class/class_Minifier.php
|
||||||
@@ -218,14 +222,15 @@ b333c9e8748737d29d090f31a502a147 *core/class/table/table_mailcron.php
|
|||||||
7efba4a878332f9739c40a4f63d96f64 *core/class/table/table_organization_job.php
|
7efba4a878332f9739c40a4f63d96f64 *core/class/table/table_organization_job.php
|
||||||
f9fea2c25dbea100b27386dde7057be4 *core/class/table/table_organization_upjob.php
|
f9fea2c25dbea100b27386dde7057be4 *core/class/table/table_organization_upjob.php
|
||||||
7e02ce47e363f56c798a7c261cccc6a4 *core/class/table/table_organization_user.php
|
7e02ce47e363f56c798a7c261cccc6a4 *core/class/table/table_organization_user.php
|
||||||
|
def27091cbc525a4cd45b2955472ce29 *core/class/table/table_pichome_collectlist.php
|
||||||
37e3c23f4c36ba1167bc433f18e8ce93 *core/class/table/table_pichome_comments.php
|
37e3c23f4c36ba1167bc433f18e8ce93 *core/class/table/table_pichome_comments.php
|
||||||
dc169efe36fdf79623277fb5a538c673 *core/class/table/table_pichome_ffmpeg_record.php
|
dc169efe36fdf79623277fb5a538c673 *core/class/table/table_pichome_ffmpeg_record.php
|
||||||
64030519d059cc061b9cc990b2ed9b08 *core/class/table/table_pichome_folder.php
|
1cbfd07fc6cc2ec4ce28cae9d5334a95 *core/class/table/table_pichome_folder.php
|
||||||
15cc26415b076bb08eeed7f76c40c45b *core/class/table/table_pichome_folderresources.php
|
15cc26415b076bb08eeed7f76c40c45b *core/class/table/table_pichome_folderresources.php
|
||||||
fb390b2cfce67236a7263549a430868b *core/class/table/table_pichome_folder_relation.php
|
fb390b2cfce67236a7263549a430868b *core/class/table/table_pichome_folder_relation.php
|
||||||
180233f6f8d234986280df5c3821fe24 *core/class/table/table_pichome_imagickrecord.php
|
180233f6f8d234986280df5c3821fe24 *core/class/table/table_pichome_imagickrecord.php
|
||||||
a2a946f8d3a0180db50b1c7435d9516a *core/class/table/table_pichome_palette.php
|
a2a946f8d3a0180db50b1c7435d9516a *core/class/table/table_pichome_palette.php
|
||||||
ec314812cba390bac62835cce5efdfbf *core/class/table/table_pichome_resources.php
|
9070977794d2ca52379721d552c3e1e7 *core/class/table/table_pichome_resources.php
|
||||||
534452d059df927d062dac5bcd7b0de6 *core/class/table/table_pichome_resourcestag.php
|
534452d059df927d062dac5bcd7b0de6 *core/class/table/table_pichome_resourcestag.php
|
||||||
c08ce988dad5ccead193db0a7f79b4f2 *core/class/table/table_pichome_resources_attr.php
|
c08ce988dad5ccead193db0a7f79b4f2 *core/class/table/table_pichome_resources_attr.php
|
||||||
09db8f5c9d2966f503bee5a4c6d6cc32 *core/class/table/table_pichome_resources_relation.php
|
09db8f5c9d2966f503bee5a4c6d6cc32 *core/class/table/table_pichome_resources_relation.php
|
||||||
@@ -235,7 +240,7 @@ fafb2bf10eed9314bc2bf2d6b32d84b9 *core/class/table/table_pichome_tag.php
|
|||||||
02ef950574c3af62f7b13fd61a61c2ce *core/class/table/table_pichome_taggroup.php
|
02ef950574c3af62f7b13fd61a61c2ce *core/class/table/table_pichome_taggroup.php
|
||||||
d36c3e504e4666b6a9301699ebeeeaa5 *core/class/table/table_pichome_taggroup_relation.php
|
d36c3e504e4666b6a9301699ebeeeaa5 *core/class/table/table_pichome_taggroup_relation.php
|
||||||
1969387f935173b42f34c33c426e1fb7 *core/class/table/table_pichome_tagrelation.php
|
1969387f935173b42f34c33c426e1fb7 *core/class/table/table_pichome_tagrelation.php
|
||||||
15537ad5c8fac2620c4199d07038a126 *core/class/table/table_pichome_vapp.php
|
c860e27706f0d5d97efceba9a5a1c619 *core/class/table/table_pichome_vapp.php
|
||||||
eea6b39fd13b5fdf18052c7733adb369 *core/class/table/table_process.php
|
eea6b39fd13b5fdf18052c7733adb369 *core/class/table/table_process.php
|
||||||
ffc8c199da703d941c493fa317785611 *core/class/table/table_session.php
|
ffc8c199da703d941c493fa317785611 *core/class/table/table_session.php
|
||||||
774bda01812449ffa4819b0be241dc4e *core/class/table/table_setting.php
|
774bda01812449ffa4819b0be241dc4e *core/class/table/table_setting.php
|
||||||
@@ -254,7 +259,7 @@ d5b0e7dc291a731a5c184d97baecf2df *core/class/table/table_user_profile_setting.ph
|
|||||||
bc2e189cfaacbdb84ddceb3a0abdcf92 *core/class/table/table_user_verify_info.php
|
bc2e189cfaacbdb84ddceb3a0abdcf92 *core/class/table/table_user_verify_info.php
|
||||||
692cda4c6ad17e87e1edefb7251d0116 *core/class/table/table_user_wechat.php
|
692cda4c6ad17e87e1edefb7251d0116 *core/class/table/table_user_wechat.php
|
||||||
ca64f852f9c9442d65fa30ed279c6d6c *core/coreBase.php
|
ca64f852f9c9442d65fa30ed279c6d6c *core/coreBase.php
|
||||||
25f7c644790916b7121bd38d1301d1ea *core/core_version.php
|
32785586bb05fca676beed40893a76ba *core/core_version.php
|
||||||
d90d23b8deb20cef2c43e66725ec2813 *core/cron/cron_cache_cleanup_week.php
|
d90d23b8deb20cef2c43e66725ec2813 *core/cron/cron_cache_cleanup_week.php
|
||||||
540843e90244b66d31a1deb8c882d238 *core/cron/cron_cache_pichome_searchhot.php
|
540843e90244b66d31a1deb8c882d238 *core/cron/cron_cache_pichome_searchhot.php
|
||||||
09bf107dfc58f0424b0245834d221a42 *core/cron/cron_clean_notification_month.php
|
09bf107dfc58f0424b0245834d221a42 *core/cron/cron_clean_notification_month.php
|
||||||
@@ -371,10 +376,25 @@ f4741b20d0983035a4db52858a0f6240 *data/cache/tags.php
|
|||||||
47bbeaba8bfa9a1b1d088e2977ddc314 *data/extdata/exts.php
|
47bbeaba8bfa9a1b1d088e2977ddc314 *data/extdata/exts.php
|
||||||
d41d8cd98f00b204e9800998ecf8427e *data/sendmail.lock
|
d41d8cd98f00b204e9800998ecf8427e *data/sendmail.lock
|
||||||
d41d8cd98f00b204e9800998ecf8427e *data/sendwx.lock
|
d41d8cd98f00b204e9800998ecf8427e *data/sendwx.lock
|
||||||
ac153bd851d728eed4c993b38260f1c8 *dzz/class/class_encode.php
|
3adf9db6567079f39787326907e65a81 *dzz/billfish/class/class_billfishexport.php
|
||||||
|
043e8771d5984838964069c11815a104 *dzz/billfish/class/table/table_billfish_folderrecord.php
|
||||||
|
e8a6a327799675bebb4a6c66aa895f32 *dzz/billfish/class/table/table_billfish_record.php
|
||||||
|
946e09642ffe242f3eb7e3876e66127b *dzz/billfish/class/table/table_billfish_taggrouprecord.php
|
||||||
|
af76b998930a2ea1b565afe98e83c6e3 *dzz/billfish/class/table/table_billfish_tagrecord.php
|
||||||
|
66eb18511cf2fd7817c97629562f45b2 *dzz/billfish/classes/delpichomefolderafter.php
|
||||||
|
aebc0d22523952b3a81993ab5d52321d *dzz/billfish/classes/getpichomethumb.php
|
||||||
|
930c3c4350639839e724b8de7d16b013 *dzz/billfish/classes/pichomevappdelete.php
|
||||||
|
e284fd1a7b8d5d5ce30d04583588c5e1 *dzz/class/class_encode.php
|
||||||
|
762fd46dbe12c6fa06ba3df224fe20f8 *dzz/eagle/class/class_eagleexport.php
|
||||||
|
e165ceec42c6de2c56b5d4339f4843e1 *dzz/eagle/class/table/table_eagle_folderrecord.php
|
||||||
|
2c1f9123c8775cd340416afee533d29a *dzz/eagle/class/table/table_eagle_record.php
|
||||||
|
e9a0575b63f2ee8011d81724eb829b30 *dzz/eagle/classes/deleteafter.php
|
||||||
|
d2a28bf51a52b9530d54e364e6e5766c *dzz/eagle/classes/delpichomefolderafter.php
|
||||||
|
db2a8594d52f5cc6f65f5271849b094f *dzz/eagle/classes/getpichomethumb.php
|
||||||
|
0b99362e5be7a741986567d8e9738c69 *dzz/eagle/classes/pichomevappdelete.php
|
||||||
a3ad077bda18e4057e0b31e3b3b2eed4 *dzz/ffmpeg/class/class_fmpeg.php
|
a3ad077bda18e4057e0b31e3b3b2eed4 *dzz/ffmpeg/class/class_fmpeg.php
|
||||||
a8a30984a87248b934ef8747481b2e0e *dzz/ffmpeg/classes/info.php
|
bc4ab81b4c26d1a67a97a9f105201e7e *dzz/ffmpeg/classes/info.php
|
||||||
3ba0ebc60cd19158228e5c47f931aa80 *dzz/ffmpeg/classes/thumb.php
|
d8ed7668f7e78a7618f80db40f88f2b8 *dzz/ffmpeg/classes/thumb.php
|
||||||
b0ef25e19c4aa9e96c06f5fb6f091883 *dzz/ffmpeg/composer.json
|
b0ef25e19c4aa9e96c06f5fb6f091883 *dzz/ffmpeg/composer.json
|
||||||
a962e01165e345d26a86a07e9e098239 *dzz/ffmpeg/composer.lock
|
a962e01165e345d26a86a07e9e098239 *dzz/ffmpeg/composer.lock
|
||||||
808d6119fa0a890a2554fa07e600ba7d *dzz/ffmpeg/convert.php
|
808d6119fa0a890a2554fa07e600ba7d *dzz/ffmpeg/convert.php
|
||||||
@@ -389,8 +409,8 @@ b49d7db7da975848af00a7597333d12e *dzz/ffmpeg/ffmpeg/avcodec-57.dll
|
|||||||
109731440511e75afa2c4dcbe5b2d069 *dzz/ffmpeg/ffmpeg/postproc-54.dll
|
109731440511e75afa2c4dcbe5b2d069 *dzz/ffmpeg/ffmpeg/postproc-54.dll
|
||||||
91ca5f81f37690d1e05772947b38e8a0 *dzz/ffmpeg/ffmpeg/swresample-2.dll
|
91ca5f81f37690d1e05772947b38e8a0 *dzz/ffmpeg/ffmpeg/swresample-2.dll
|
||||||
4f49c26e951e69007d60edf054d2a37a *dzz/ffmpeg/ffmpeg/swscale-4.dll
|
4f49c26e951e69007d60edf054d2a37a *dzz/ffmpeg/ffmpeg/swscale-4.dll
|
||||||
17d36f2ee186514a290fab9baaeac65e *dzz/ffmpeg/getinfo.php
|
54eb4c59cb02380010cabc5d69aae021 *dzz/ffmpeg/getinfo.php
|
||||||
671f1a782b7dc9395519933bffb967fe *dzz/ffmpeg/thumb.php
|
c81877414511a5f8c1e919c61526da2a *dzz/ffmpeg/thumb.php
|
||||||
723b27a2bb73cccf492ed827bc528a5c *dzz/ffmpeg/vendor/alchemy/binary-driver/LICENSE
|
723b27a2bb73cccf492ed827bc528a5c *dzz/ffmpeg/vendor/alchemy/binary-driver/LICENSE
|
||||||
9608b8205db23a377edd4f328af949bd *dzz/ffmpeg/vendor/alchemy/binary-driver/src/Alchemy/BinaryDriver/AbstractBinary.php
|
9608b8205db23a377edd4f328af949bd *dzz/ffmpeg/vendor/alchemy/binary-driver/src/Alchemy/BinaryDriver/AbstractBinary.php
|
||||||
96d510df2561b5a55bc62b0d04db9861 *dzz/ffmpeg/vendor/alchemy/binary-driver/src/Alchemy/BinaryDriver/BinaryDriverTestCase.php
|
96d510df2561b5a55bc62b0d04db9861 *dzz/ffmpeg/vendor/alchemy/binary-driver/src/Alchemy/BinaryDriver/BinaryDriverTestCase.php
|
||||||
@@ -683,8 +703,8 @@ e0fbf93ee3e79762c694682e010f721d *dzz/ffmpeg/vendor/symfony/process/LICENSE
|
|||||||
882fab9690637ec4cf9746b825b21e15 *dzz/ffmpeg/vendor/symfony/process/Process.php
|
882fab9690637ec4cf9746b825b21e15 *dzz/ffmpeg/vendor/symfony/process/Process.php
|
||||||
2a3b661974c0cd7432f29595ccdb6a93 *dzz/ffmpeg/vendor/symfony/process/ProcessBuilder.php
|
2a3b661974c0cd7432f29595ccdb6a93 *dzz/ffmpeg/vendor/symfony/process/ProcessBuilder.php
|
||||||
13625bd3819dabb00e70409aa8b8cc54 *dzz/ffmpeg/vendor/symfony/process/ProcessUtils.php
|
13625bd3819dabb00e70409aa8b8cc54 *dzz/ffmpeg/vendor/symfony/process/ProcessUtils.php
|
||||||
848f904ac7e815cf4abc752639c32f68 *dzz/imageColor/classes/getcolor.php
|
634039b168dae271922c99af9b144e4b *dzz/imageColor/classes/getcolor.php
|
||||||
8fcedaed7fefce2be26a36d2ac4bf9af *dzz/imageColor/index.php
|
be1fd6f396b2fda2f45217565298f52e *dzz/imageColor/index.php
|
||||||
a35efffbc8ffb84994c399cac01fb592 *dzz/images/addUser.png
|
a35efffbc8ffb84994c399cac01fb592 *dzz/images/addUser.png
|
||||||
325472601571f31e1bf00674c368d335 *dzz/images/b.gif
|
325472601571f31e1bf00674c368d335 *dzz/images/b.gif
|
||||||
87fadeff473ddcb5208b7af66ae5966a *dzz/images/close.png
|
87fadeff473ddcb5208b7af66ae5966a *dzz/images/close.png
|
||||||
@@ -969,9 +989,11 @@ bae84af37dba1b272ef439708d1b8e9f *dzz/images/extimg_small/xml.png
|
|||||||
a949e13639231f3ab4192465ff2538ac *dzz/images/logo-blue.png
|
a949e13639231f3ab4192465ff2538ac *dzz/images/logo-blue.png
|
||||||
b92838cc79a788fc78a7685b5aae1f28 *dzz/index/index.php
|
b92838cc79a788fc78a7685b5aae1f28 *dzz/index/index.php
|
||||||
d615e6446bb74240281aa217d6f5ad01 *dzz/index/login.php
|
d615e6446bb74240281aa217d6f5ad01 *dzz/index/login.php
|
||||||
9464641e570a5ef040351554605b519d *dzz/io/getImg.php
|
f1f3a52260de623f37da59db88d5132f *dzz/io/getImg.php
|
||||||
c922015b4938aea09a73ed7d1d759ee4 *dzz/language/en-US/lang.php
|
c922015b4938aea09a73ed7d1d759ee4 *dzz/language/en-US/lang.php
|
||||||
d91b3ccebc18bcd41bc44e9da28d598f *dzz/language/zh-CN/lang.php
|
d91b3ccebc18bcd41bc44e9da28d598f *dzz/language/zh-CN/lang.php
|
||||||
|
d0cec69ef9e94897d184cee623497d3f *dzz/local/class/class_localexport.php
|
||||||
|
6620d302f12ba470c79c46e17d94b87f *dzz/local/classes/deleteafter.php
|
||||||
e6ff860b694692916c323609ac7697f8 *dzz/pdf/build/pdf.js
|
e6ff860b694692916c323609ac7697f8 *dzz/pdf/build/pdf.js
|
||||||
81b75950e639b1439c398d62a6037686 *dzz/pdf/build/pdf.js.map
|
81b75950e639b1439c398d62a6037686 *dzz/pdf/build/pdf.js.map
|
||||||
f025b4d2dd3cd3eca72f347e2406101d *dzz/pdf/build/pdf.worker.js
|
f025b4d2dd3cd3eca72f347e2406101d *dzz/pdf/build/pdf.worker.js
|
||||||
@@ -1379,10 +1401,11 @@ badeea57fda90d27e54a9f9488ac4c43 *dzz/pdf/web/viewer.html
|
|||||||
f2dddeac144b9bbac3ef849464bdf74b *dzz/pdf/web/viewer.js
|
f2dddeac144b9bbac3ef849464bdf74b *dzz/pdf/web/viewer.js
|
||||||
9d8f7b8df2cf3dffa23febb3582928d4 *dzz/pdf/web/viewer.js.map
|
9d8f7b8df2cf3dffa23febb3582928d4 *dzz/pdf/web/viewer.js.map
|
||||||
57cbaacb499474a5ca6c14a86d411512 *dzz/pichome/admin.php
|
57cbaacb499474a5ca6c14a86d411512 *dzz/pichome/admin.php
|
||||||
ae17e4be72c28160524e6d0f15a08764 *dzz/pichome/ajax.php
|
3d3aa981f09612419f1cffe5cfa4f4ab *dzz/pichome/ajax.php
|
||||||
c550e347457729fb118592d6be50d050 *dzz/pichome/checkexport.php
|
c550e347457729fb118592d6be50d050 *dzz/pichome/checkexport.php
|
||||||
6433341eb6119db85c0d2001c5155150 *dzz/pichome/class/class_eagleexport.php
|
b6201d143beca6278320d101db08695f *dzz/pichome/class/class_eagleexport.php
|
||||||
d89bf384de0af51c78c3a40a680e1c89 *dzz/pichome/class/class_localexport.php
|
ae068aea655bde669f255db1dd988024 *dzz/pichome/class/class_localexport.php
|
||||||
|
8bd360df9ad3377d6ede3c4b56c73c6c *dzz/pichome/collection.php
|
||||||
6293eb9bd5b473c7f178be5d6534341c *dzz/pichome/config/config.php
|
6293eb9bd5b473c7f178be5d6534341c *dzz/pichome/config/config.php
|
||||||
29640dfed0df1100d9c8e4d819b4c593 *dzz/pichome/css/admin.css
|
29640dfed0df1100d9c8e4d819b4c593 *dzz/pichome/css/admin.css
|
||||||
07f01151181178c663d669622ea927f3 *dzz/pichome/css/common.css
|
07f01151181178c663d669622ea927f3 *dzz/pichome/css/common.css
|
||||||
@@ -1396,55 +1419,66 @@ f09b1c7476e28ad67f1c2f2f314230a0 *dzz/pichome/css/fonts/remixicon.symbol.svg
|
|||||||
881fbc46361e0c0e5f003c159b2f3005 *dzz/pichome/css/fonts/remixicon.woff
|
881fbc46361e0c0e5f003c159b2f3005 *dzz/pichome/css/fonts/remixicon.woff
|
||||||
9915fef980fa539085da55b84dfde760 *dzz/pichome/css/fonts/remixicon.woff2
|
9915fef980fa539085da55b84dfde760 *dzz/pichome/css/fonts/remixicon.woff2
|
||||||
beba9d9c0e6f710c90145d9e3cbbab2d *dzz/pichome/css/index.css
|
beba9d9c0e6f710c90145d9e3cbbab2d *dzz/pichome/css/index.css
|
||||||
393c3333716eea4c974db36b5a8630d5 *dzz/pichome/css/mobile/common.css
|
87163334cb48cff22fdabe3e8e615cc7 *dzz/pichome/css/mobile/common.css
|
||||||
577f7f31ca1ac0fe27b7c7e8f28f838f *dzz/pichome/css/mobile/details.css
|
0f7c873eb385eefd56b37a025b978eb4 *dzz/pichome/css/mobile/details.css
|
||||||
871bda5b39c93380460d42db713c2932 *dzz/pichome/css/mobile/index.css
|
ed97c351d8b9390710c7421c4197bcf1 *dzz/pichome/css/mobile/image.css
|
||||||
|
86078d14becfe840e42b75da9b7193ec *dzz/pichome/css/mobile/index.css
|
||||||
f1e227b4a2e8a0345daaf6141e1856dd *dzz/pichome/css/mobile/personal.css
|
f1e227b4a2e8a0345daaf6141e1856dd *dzz/pichome/css/mobile/personal.css
|
||||||
|
3af6f1b9febc5c78806ac865f8d18ebb *dzz/pichome/css/mobile/screen.css
|
||||||
cc6d3bf279ed780dd69d0dcc250bd442 *dzz/pichome/css/mobile/share.css
|
cc6d3bf279ed780dd69d0dcc250bd442 *dzz/pichome/css/mobile/share.css
|
||||||
|
d56b57b7000fef922f9031726810a467 *dzz/pichome/css/pc/AddcollectionDialog.css
|
||||||
509deac393472e307756fc9deee67276 *dzz/pichome/css/pc/admin.css
|
509deac393472e307756fc9deee67276 *dzz/pichome/css/pc/admin.css
|
||||||
4616cbd4493d6a922221b5225605bf17 *dzz/pichome/css/pc/common.css
|
670b7f2f61bdfd492b53e03e750ee531 *dzz/pichome/css/pc/collection.css
|
||||||
|
6b6a57a59a5d6ee5bd3c3c501baf1b02 *dzz/pichome/css/pc/common.css
|
||||||
|
7b846f80e058d874a9cb7106a18e5b78 *dzz/pichome/css/pc/components/addcollect.css
|
||||||
|
e600f6b1841e3542bb948a5289e9363e *dzz/pichome/css/pc/components/collect.css
|
||||||
e3123a0f6930b3d0a84387d3102c704d *dzz/pichome/css/pc/details.css
|
e3123a0f6930b3d0a84387d3102c704d *dzz/pichome/css/pc/details.css
|
||||||
0446460c4b1c238c4a17b4119c5c106e *dzz/pichome/css/pc/image.css
|
1b81547e0d91292d2a77153774bbf013 *dzz/pichome/css/pc/image.css
|
||||||
4e1559e2dada467206bec5c77b5a23f5 *dzz/pichome/css/pc/index.css
|
c0a5a61c77eb071519b9e148edafdacd *dzz/pichome/css/pc/index.css
|
||||||
16ceb77eb522e138548921aa5b024a36 *dzz/pichome/css/pc/screen.css
|
16ceb77eb522e138548921aa5b024a36 *dzz/pichome/css/pc/screen.css
|
||||||
69c8a20f13ee8eb40d35ddd497d35fd3 *dzz/pichome/css/pc/xuanzhuan/iconfont.ttf
|
69c8a20f13ee8eb40d35ddd497d35fd3 *dzz/pichome/css/pc/xuanzhuan/iconfont.ttf
|
||||||
b006647cb9c39a657d354fcf0bdf88bf *dzz/pichome/css/pc/xuanzhuan/index.css
|
b006647cb9c39a657d354fcf0bdf88bf *dzz/pichome/css/pc/xuanzhuan/index.css
|
||||||
48994b9f88c49cdb67a88116380cfb95 *dzz/pichome/css/theme/black/index.css
|
48994b9f88c49cdb67a88116380cfb95 *dzz/pichome/css/theme/black/index.css
|
||||||
fe6f435c4534024a6894473daec0845a *dzz/pichome/css/theme/black/root.css
|
ec549d08e4bd82c18ac8a906e7c3ff0e *dzz/pichome/css/theme/black/root.css
|
||||||
247be4f622b714c5745e69ebb932e197 *dzz/pichome/css/theme/darkgrey/index.css
|
247be4f622b714c5745e69ebb932e197 *dzz/pichome/css/theme/darkgrey/index.css
|
||||||
9925ea840cd52bf961eb4b1eb7b565b8 *dzz/pichome/css/theme/darkgrey/root.css
|
3e59794617124cb119a6b0fc763a7c14 *dzz/pichome/css/theme/darkgrey/root.css
|
||||||
732389ded34cb9c52dd88271f1345af9 *dzz/pichome/css/theme/fonts/element-icons.ttf
|
732389ded34cb9c52dd88271f1345af9 *dzz/pichome/css/theme/fonts/element-icons.ttf
|
||||||
535877f50039c0cb49a6196a5b7517cd *dzz/pichome/css/theme/fonts/element-icons.woff
|
535877f50039c0cb49a6196a5b7517cd *dzz/pichome/css/theme/fonts/element-icons.woff
|
||||||
dce825b1ca6c3b1c18adc856618b8602 *dzz/pichome/css/theme/lightgrey/index.css
|
dce825b1ca6c3b1c18adc856618b8602 *dzz/pichome/css/theme/lightgrey/index.css
|
||||||
74e133fde11f139ecfeedafb438a13ce *dzz/pichome/css/theme/lightgrey/root.css
|
8e19f8f0afd86036d9e6b74e8fa25b4f *dzz/pichome/css/theme/lightgrey/root.css
|
||||||
106204b58c77af1048a22bfe9cbd1d49 *dzz/pichome/css/theme/navyblue/index.css
|
106204b58c77af1048a22bfe9cbd1d49 *dzz/pichome/css/theme/navyblue/index.css
|
||||||
17018172c965f899a07fd8f53b789ecf *dzz/pichome/css/theme/navyblue/root.css
|
9e60cad02523fcf3aac6c9d960294af0 *dzz/pichome/css/theme/navyblue/root.css
|
||||||
6a3812a857dae07ed74b59d26c86d7e1 *dzz/pichome/css/theme/purple/index.css
|
6a3812a857dae07ed74b59d26c86d7e1 *dzz/pichome/css/theme/purple/index.css
|
||||||
c514077b8965f7d3bd473f19d85620e3 *dzz/pichome/css/theme/purple/root.css
|
48fcbcbd9d925541404038119bacdc9a *dzz/pichome/css/theme/purple/root.css
|
||||||
4705cbd2d8a842635d69d2ace637212e *dzz/pichome/css/theme/white/index.css
|
4705cbd2d8a842635d69d2ace637212e *dzz/pichome/css/theme/white/index.css
|
||||||
b6aae0d83f9163cf8a6acda2c77f573e *dzz/pichome/css/theme/white/root.css
|
42223aa2673c8b81e62a8ebc481d9da2 *dzz/pichome/css/theme/white/root.css
|
||||||
5c7db30e0823a778d5341db79a4ece27 *dzz/pichome/delete.php
|
7dded9715f7c5c2408f7905b6cddf810 *dzz/pichome/delete.php
|
||||||
0bc21a1af1a289191cf5a48523f2cf8c *dzz/pichome/details.php
|
0bc21a1af1a289191cf5a48523f2cf8c *dzz/pichome/details.php
|
||||||
220a956534e1384a2c64cfc89ef48617 *dzz/pichome/download.php
|
214cabed470fd756b227851860513e6b *dzz/pichome/download.php
|
||||||
e245c8b1f860c8252eade7f3dec51879 *dzz/pichome/dzz_app_pichome.xml
|
e245c8b1f860c8252eade7f3dec51879 *dzz/pichome/dzz_app_pichome.xml
|
||||||
1ef6b3e8f2d9664ac3665b62f6c5f39b *dzz/pichome/exportfile.php
|
43f2f7de28bea4de51cde2b4f1f8e82b *dzz/pichome/exportfile.php
|
||||||
dd58cee1073dfc2907838fe3ec26235b *dzz/pichome/exportfilecheck.php
|
af14eda8139abc2d09e421cc4b27a1b4 *dzz/pichome/exportfilecheck.php
|
||||||
ba8263d806bb02f8c1cd5b3becdfaac0 *dzz/pichome/filelist.php
|
f0b8396b0798d20e257802e0284c1c99 *dzz/pichome/filelist.php
|
||||||
2d0185de715fe914af40ce715d15afca *dzz/pichome/function/function_common.php
|
2d0185de715fe914af40ce715d15afca *dzz/pichome/function/function_common.php
|
||||||
d211a97399d52fea48f94a45a06648d1 *dzz/pichome/image/eaglefile.webp
|
d211a97399d52fea48f94a45a06648d1 *dzz/pichome/image/eaglefile.webp
|
||||||
|
8a53ae7b1997c5ddc37e06b74f47b6b2 *dzz/pichome/image/flashlight.png
|
||||||
152ec265e38eb67acb6cb31026448e3d *dzz/pichome/image/img/t1.jpeg
|
152ec265e38eb67acb6cb31026448e3d *dzz/pichome/image/img/t1.jpeg
|
||||||
651d0b49012d763c7dda236756274a9d *dzz/pichome/image/img/t2.jpg
|
651d0b49012d763c7dda236756274a9d *dzz/pichome/image/img/t2.jpg
|
||||||
309c31fa9200e0c9b4ee8fd3f1399dfc *dzz/pichome/image/img/t3.jpeg
|
309c31fa9200e0c9b4ee8fd3f1399dfc *dzz/pichome/image/img/t3.jpeg
|
||||||
5f5562a16dad1fa33294b5c0a920f1d6 *dzz/pichome/image/img/t4.jpeg
|
5f5562a16dad1fa33294b5c0a920f1d6 *dzz/pichome/image/img/t4.jpeg
|
||||||
|
006790064e59717d811f6f1eec849e63 *dzz/pichome/image/library/billfish.png
|
||||||
|
e6bda96407083273f2a6ef5ac3b1e819 *dzz/pichome/image/library/eagle.png
|
||||||
|
cf4ad845fa202adf1c2c99dba55a6490 *dzz/pichome/image/library/file.png
|
||||||
|
5d34d2b476b50156b594b9371dd38d1f *dzz/pichome/image/library/library.png
|
||||||
08a26df5cbee8f21dbac8d646d1da218 *dzz/pichome/image/nodata.svg
|
08a26df5cbee8f21dbac8d646d1da218 *dzz/pichome/image/nodata.svg
|
||||||
1f0ee3cd38e82bd18490a34fcec8c690 *dzz/pichome/image/notScreen.png
|
1f0ee3cd38e82bd18490a34fcec8c690 *dzz/pichome/image/notScreen.png
|
||||||
f308fd14dbe2e06349ef366d6f9aa2c7 *dzz/pichome/image/palette.png
|
f308fd14dbe2e06349ef366d6f9aa2c7 *dzz/pichome/image/palette.png
|
||||||
d51db8efca781201f641a41b57420dfe *dzz/pichome/image/phlogo.png
|
d51db8efca781201f641a41b57420dfe *dzz/pichome/image/phlogo.png
|
||||||
438384ffb6dbf09c63f9c0254c57340a *dzz/pichome/index.php
|
438384ffb6dbf09c63f9c0254c57340a *dzz/pichome/index.php
|
||||||
bc4b3499031370aaa3fabf218806f65f *dzz/pichome/initexport.php
|
9976279181804deb1113d4b3e6af7fab *dzz/pichome/initexport.php
|
||||||
c9b191574ccc8ab6c8ff631302f10561 *dzz/pichome/install.php
|
c9b191574ccc8ab6c8ff631302f10561 *dzz/pichome/install.php
|
||||||
29b8b6254aaaa263cbb0fe8272f05a59 *dzz/pichome/js/audioPlay.js
|
29b8b6254aaaa263cbb0fe8272f05a59 *dzz/pichome/js/audioPlay.js
|
||||||
a088950fc4bf4348d87cda978e5ded97 *dzz/pichome/js/common.js
|
ed875394497b550972b24c9b09d00955 *dzz/pichome/js/common.js
|
||||||
b7a95d9f617863cf515a43e7b83978c5 *dzz/pichome/js/headerMethods.js
|
b7a95d9f617863cf515a43e7b83978c5 *dzz/pichome/js/headerMethods.js
|
||||||
d752d1878252e486cc0244887cfadbae *dzz/pichome/js/headerWatch.js
|
d752d1878252e486cc0244887cfadbae *dzz/pichome/js/headerWatch.js
|
||||||
d5843dbdc71ff8014a5eafd346a262da *dzz/pichome/js/jquery.mousewheel.min.js
|
d5843dbdc71ff8014a5eafd346a262da *dzz/pichome/js/jquery.mousewheel.min.js
|
||||||
@@ -1455,11 +1489,14 @@ d36c75e3d8880ebfece375fd7cd46787 *dzz/pichome/js/mobile/plug/colorPicker/jquery.
|
|||||||
b5d4479aca9121ce9ed95af5d77c10d9 *dzz/pichome/js/mobile/plug/vant/index.css
|
b5d4479aca9121ce9ed95af5d77c10d9 *dzz/pichome/js/mobile/plug/vant/index.css
|
||||||
3d5fcccab75bba76cc259351e875d42a *dzz/pichome/js/mobile/plug/vant/vant.min.js
|
3d5fcccab75bba76cc259351e875d42a *dzz/pichome/js/mobile/plug/vant/vant.min.js
|
||||||
29b8b6254aaaa263cbb0fe8272f05a59 *dzz/pichome/js/pc/audioPlay.js
|
29b8b6254aaaa263cbb0fe8272f05a59 *dzz/pichome/js/pc/audioPlay.js
|
||||||
|
27f51d96c2a6cca4ec0abbce6e0a24db *dzz/pichome/js/pc/components/addcollect.js
|
||||||
|
1bfeb0538751df45e883d9751aae14a3 *dzz/pichome/js/pc/components/collect.js
|
||||||
|
56972b38bc78798895d3bb917f4aeb5e *dzz/pichome/js/pc/components/collectdialog.js
|
||||||
2ffc868ac18c18d948c3ae5576afa98b *dzz/pichome/js/pc/headerMethods.js
|
2ffc868ac18c18d948c3ae5576afa98b *dzz/pichome/js/pc/headerMethods.js
|
||||||
84f0575bc959e85fc1abab5dc71d3079 *dzz/pichome/js/pc/headerWatch.js
|
84f0575bc959e85fc1abab5dc71d3079 *dzz/pichome/js/pc/headerWatch.js
|
||||||
d5843dbdc71ff8014a5eafd346a262da *dzz/pichome/js/pc/jquery.mousewheel.min.js
|
d5843dbdc71ff8014a5eafd346a262da *dzz/pichome/js/pc/jquery.mousewheel.min.js
|
||||||
72dbef2b0dd2644f4fb4e72ddbb7013b *dzz/pichome/js/pc/plug/DomResize.js
|
72dbef2b0dd2644f4fb4e72ddbb7013b *dzz/pichome/js/pc/plug/DomResize.js
|
||||||
8a788a8d0bfb2d3c1988bddb4aef4b4b *dzz/pichome/js/pc/plug/element-ui.js
|
693f98461ce3fa58cbe5ac24d9a21b1e *dzz/pichome/js/pc/plug/element-ui.js
|
||||||
66fe9527aec8d8b68e3bc5036ea8f7f9 *dzz/pichome/js/pc/plug/sortable.min.js
|
66fe9527aec8d8b68e3bc5036ea8f7f9 *dzz/pichome/js/pc/plug/sortable.min.js
|
||||||
7292e14f4f8fad306d40a6d7d586b225 *dzz/pichome/js/pc/plug/wavesurfer.js
|
7292e14f4f8fad306d40a6d7d586b225 *dzz/pichome/js/pc/plug/wavesurfer.js
|
||||||
ef4591bffb23a90c8d9e0d02a7b5c15f *dzz/pichome/js/pc/row-grid.js
|
ef4591bffb23a90c8d9e0d02a7b5c15f *dzz/pichome/js/pc/row-grid.js
|
||||||
@@ -1476,15 +1513,18 @@ b21b8531847604ab5f2f5caaef51ba31 *dzz/pichome/js/vue/vue.js
|
|||||||
69764bf35375a54256412f3c748b312d *dzz/pichome/js/waterfall.js
|
69764bf35375a54256412f3c748b312d *dzz/pichome/js/waterfall.js
|
||||||
c24f19d7061cdf5bae41e5e9b9f5600c *dzz/pichome/language/en-US/lang.php
|
c24f19d7061cdf5bae41e5e9b9f5600c *dzz/pichome/language/en-US/lang.php
|
||||||
8a3e6ab24d873202b96c3acd9c1b0d2b *dzz/pichome/language/zh-CN/lang.php
|
8a3e6ab24d873202b96c3acd9c1b0d2b *dzz/pichome/language/zh-CN/lang.php
|
||||||
04a1d42c4c596325364400f866a2c143 *dzz/pichome/library.php
|
9b1430e306b95dff41087a2fca148484 *dzz/pichome/library.php
|
||||||
ccef8b340c90fc0061c6dd645fecc8df *dzz/pichome/setting.php
|
ccef8b340c90fc0061c6dd645fecc8df *dzz/pichome/setting.php
|
||||||
cda7d5feb6b4ed907d8a1eeb7d0ba46d *dzz/pichome/share.php
|
30a3b6a3143136ebf197c3e58e6bcfe8 *dzz/pichome/share.php
|
||||||
892a7e59f327bc5f273fc0fe2cd2679b *dzz/pichome/template/mobile/components/classify.htm
|
892a7e59f327bc5f273fc0fe2cd2679b *dzz/pichome/template/mobile/components/classify.htm
|
||||||
00be7e9bc0e92e22f9c7aa8fce703854 *dzz/pichome/template/mobile/components/index/JsCommon.htm
|
23b99d3824aa02a61621667b100dbacb *dzz/pichome/template/mobile/components/index/image/classify.htm
|
||||||
|
5752e1116e385c87552c6328125e14c3 *dzz/pichome/template/mobile/components/index/image/JsCollect.htm
|
||||||
|
b5ff94d14983520fb465ffa78959b81f *dzz/pichome/template/mobile/components/index/image/more.htm
|
||||||
|
643af4f4eabf3fd0f01d05f1e0fb6189 *dzz/pichome/template/mobile/components/index/JsCommon.htm
|
||||||
3c0bae451668c060ae526d3253e9be73 *dzz/pichome/template/mobile/components/index/JsDetailMessage.htm
|
3c0bae451668c060ae526d3253e9be73 *dzz/pichome/template/mobile/components/index/JsDetailMessage.htm
|
||||||
b61252abe414de77e062e3f96aabccbd *dzz/pichome/template/mobile/components/index/JsImages.htm
|
493f25784b802d691a49b22d55345e19 *dzz/pichome/template/mobile/components/index/JsImages.htm
|
||||||
801d90ff93583268416fdc99faa91860 *dzz/pichome/template/mobile/components/index/JsIndex.htm
|
507954354bef6b8905158c9037d38e8a *dzz/pichome/template/mobile/components/index/JsIndex.htm
|
||||||
18939ca3c3ccb67156c1d2f3d059a3fa *dzz/pichome/template/mobile/components/index/JsMy.htm
|
d1051b51dd34c88927309c4e82744553 *dzz/pichome/template/mobile/components/index/JsMy.htm
|
||||||
a09a548c0637e1dfc7397410ac056711 *dzz/pichome/template/mobile/components/index/JsScreen.htm
|
a09a548c0637e1dfc7397410ac056711 *dzz/pichome/template/mobile/components/index/JsScreen.htm
|
||||||
76399fc5b4e7a84ee75ed49e34e483c9 *dzz/pichome/template/mobile/components/index/JsSearch.htm
|
76399fc5b4e7a84ee75ed49e34e483c9 *dzz/pichome/template/mobile/components/index/JsSearch.htm
|
||||||
aa8df8e4c660d9136bbff54070a2522a *dzz/pichome/template/mobile/components/index/JsSort.htm
|
aa8df8e4c660d9136bbff54070a2522a *dzz/pichome/template/mobile/components/index/JsSort.htm
|
||||||
@@ -1505,20 +1545,26 @@ ae8d0557008c6f19458bed5c49db2167 *dzz/pichome/template/mobile/components/index/s
|
|||||||
8f54b82e6d2f9cb4d7ba43d09a39f088 *dzz/pichome/template/mobile/frame/footer_simple.htm
|
8f54b82e6d2f9cb4d7ba43d09a39f088 *dzz/pichome/template/mobile/frame/footer_simple.htm
|
||||||
ae502b90b2b31175892efe56867bc2e7 *dzz/pichome/template/mobile/frame/header_simple_end.htm
|
ae502b90b2b31175892efe56867bc2e7 *dzz/pichome/template/mobile/frame/header_simple_end.htm
|
||||||
fdc74d5e180321fc338ae91a1a90e22e *dzz/pichome/template/mobile/frame/header_simple_start.htm
|
fdc74d5e180321fc338ae91a1a90e22e *dzz/pichome/template/mobile/frame/header_simple_start.htm
|
||||||
f9c4288c838455ae487c2cc0c4d44890 *dzz/pichome/template/mobile/page/details.htm
|
385067e1775bcc445b1dbc978d543ac0 *dzz/pichome/template/mobile/page/details.htm
|
||||||
f9f65e35608efe6563e49abbc66c1249 *dzz/pichome/template/mobile/page/index.htm
|
e34a4b13baa25f03bddc82608964ffd7 *dzz/pichome/template/mobile/page/index.htm
|
||||||
be7755b8e73e2ffa49557e8c3891027a *dzz/pichome/template/mobile/page/personal.htm
|
be7755b8e73e2ffa49557e8c3891027a *dzz/pichome/template/mobile/page/personal.htm
|
||||||
63845b99e6f7f14d1385b56a0c4ffebf *dzz/pichome/template/mobile/page/share.htm
|
59d6f74af0683d8c3dee09e7e09f9787 *dzz/pichome/template/mobile/page/share.htm
|
||||||
dd8403f5dbcfb5767f01143f12afff93 *dzz/pichome/template/pc/components/headerAdmin/index.htm
|
de346d0b0da4cc4eceb143baf17f6812 *dzz/pichome/template/pc/components/collection/Jsimage.htm
|
||||||
|
7705ce7827e5d3de8b4b41659ff0d9e9 *dzz/pichome/template/pc/components/collection/JsLeft.htm
|
||||||
|
74a6088ee7aa0b3cf1201de5b6d30132 *dzz/pichome/template/pc/components/headerAdmin/index.htm
|
||||||
e078614bb6d558d96006ec127f7c392c *dzz/pichome/template/pc/components/headerindex/index.htm
|
e078614bb6d558d96006ec127f7c392c *dzz/pichome/template/pc/components/headerindex/index.htm
|
||||||
0436c3ba601aa0804b0e51926f557988 *dzz/pichome/template/pc/components/headerindex/screen.htm
|
0436c3ba601aa0804b0e51926f557988 *dzz/pichome/template/pc/components/headerindex/screen.htm
|
||||||
105d244408ea6a9780677c28b376ea6c *dzz/pichome/template/pc/components/headerindex/searchScreen.htm
|
105d244408ea6a9780677c28b376ea6c *dzz/pichome/template/pc/components/headerindex/searchScreen.htm
|
||||||
|
e3cbbf2cf1281dfe69ee59584debe8dc *dzz/pichome/template/pc/components/image/ImageAudioPlay.htm
|
||||||
|
8719049c86e5ed162ef840352086ee8f *dzz/pichome/template/pc/components/image/ImageList.htm
|
||||||
|
7bd38f47edd65c05832edd108ef1479e *dzz/pichome/template/pc/components/image/ImageRowGrid.htm
|
||||||
|
b146499d5bc505f37ec0d323394d1e27 *dzz/pichome/template/pc/components/image/ImageWaterfall.htm
|
||||||
e52de01bb534c8ae8906aeea2a26e4bc *dzz/pichome/template/pc/components/index/header/JsHdeaderSearch1.htm
|
e52de01bb534c8ae8906aeea2a26e4bc *dzz/pichome/template/pc/components/index/header/JsHdeaderSearch1.htm
|
||||||
710efaf3e9e92603f55599af84e07f2b *dzz/pichome/template/pc/components/index/header/JsHdeaderSearch2.htm
|
710efaf3e9e92603f55599af84e07f2b *dzz/pichome/template/pc/components/index/header/JsHdeaderSearch2.htm
|
||||||
0b560bcf32b9928e09a087efbe543405 *dzz/pichome/template/pc/components/index/header/JsHdeaderSearchInput.htm
|
aa36103d6b45e77c11a97dc34f5fa38c *dzz/pichome/template/pc/components/index/header/JsHdeaderSearchInput.htm
|
||||||
44afb76ddd1106c3081e901b74ccd350 *dzz/pichome/template/pc/components/index/header/JsHdeaderSearchScreen.htm
|
44afb76ddd1106c3081e901b74ccd350 *dzz/pichome/template/pc/components/index/header/JsHdeaderSearchScreen.htm
|
||||||
cdfdeb7826e501fc2d0dabbe4545bba6 *dzz/pichome/template/pc/components/index/header/JsHeaderRight.htm
|
cdfdeb7826e501fc2d0dabbe4545bba6 *dzz/pichome/template/pc/components/index/header/JsHeaderRight.htm
|
||||||
82a1a57d683d58fd868fb91fac13ab25 *dzz/pichome/template/pc/components/index/header/JsHeaderRightAvatar.htm
|
2dcef9d94e0d12773e17f32cf9c84720 *dzz/pichome/template/pc/components/index/header/JsHeaderRightAvatar.htm
|
||||||
a5629a36eef6a8c0d3aec35f3a679d86 *dzz/pichome/template/pc/components/index/header/JsHeaderRightBtn.htm
|
a5629a36eef6a8c0d3aec35f3a679d86 *dzz/pichome/template/pc/components/index/header/JsHeaderRightBtn.htm
|
||||||
754c1ae954a2bd706a9ca808225927c9 *dzz/pichome/template/pc/components/index/image/ImageAudioPlay.htm
|
754c1ae954a2bd706a9ca808225927c9 *dzz/pichome/template/pc/components/index/image/ImageAudioPlay.htm
|
||||||
8719049c86e5ed162ef840352086ee8f *dzz/pichome/template/pc/components/index/image/ImageList.htm
|
8719049c86e5ed162ef840352086ee8f *dzz/pichome/template/pc/components/index/image/ImageList.htm
|
||||||
@@ -1526,10 +1572,10 @@ f394ee2d8177fe42a05aeb7c5d1b783a *dzz/pichome/template/pc/components/index/image
|
|||||||
506a3a316c9b37a48c65ed71c7435f33 *dzz/pichome/template/pc/components/index/image/ImageWaterfall.htm
|
506a3a316c9b37a48c65ed71c7435f33 *dzz/pichome/template/pc/components/index/image/ImageWaterfall.htm
|
||||||
e75f2d5563b6d12d345ee4414e2840f9 *dzz/pichome/template/pc/components/index/images.htm
|
e75f2d5563b6d12d345ee4414e2840f9 *dzz/pichome/template/pc/components/index/images.htm
|
||||||
0764f300b91acf6e60925fa91c528941 *dzz/pichome/template/pc/components/index/indexVuex.htm
|
0764f300b91acf6e60925fa91c528941 *dzz/pichome/template/pc/components/index/indexVuex.htm
|
||||||
ac1a37ef71ff76f05435a47b8f13a6b8 *dzz/pichome/template/pc/components/index/JsCommon.htm
|
f18d9fc925dd80b5682ea9b65afb96c0 *dzz/pichome/template/pc/components/index/JsCommon.htm
|
||||||
d88649d33a48388af9e95f4b7b3aeea8 *dzz/pichome/template/pc/components/index/JsHeader1.htm
|
d88649d33a48388af9e95f4b7b3aeea8 *dzz/pichome/template/pc/components/index/JsHeader1.htm
|
||||||
eb3a364123d4c0982dfc2497683adc29 *dzz/pichome/template/pc/components/index/JsHeader2.htm
|
eb3a364123d4c0982dfc2497683adc29 *dzz/pichome/template/pc/components/index/JsHeader2.htm
|
||||||
5ecc3eabb026b20734c7bec319263ed3 *dzz/pichome/template/pc/components/index/Jsimage.htm
|
203fade598d5f1f14bd0cbe612f400c9 *dzz/pichome/template/pc/components/index/Jsimage.htm
|
||||||
e5f81267932b2e39355c4bff620d11b6 *dzz/pichome/template/pc/components/index/JsLibrary.htm
|
e5f81267932b2e39355c4bff620d11b6 *dzz/pichome/template/pc/components/index/JsLibrary.htm
|
||||||
7a925a4631acb01fc275bbb237250d92 *dzz/pichome/template/pc/components/index/JsScreen.htm
|
7a925a4631acb01fc275bbb237250d92 *dzz/pichome/template/pc/components/index/JsScreen.htm
|
||||||
ca1f90529303acc461fb2ce08fb6e7fc *dzz/pichome/template/pc/components/index/screen/btime/js.htm
|
ca1f90529303acc461fb2ce08fb6e7fc *dzz/pichome/template/pc/components/index/screen/btime/js.htm
|
||||||
@@ -1559,23 +1605,23 @@ ed778182594282451fdeaf533390504a *dzz/pichome/template/pc/components/index/scree
|
|||||||
ce8f0dddfb2446e04ed00da108a9d5ff *dzz/pichome/template/pc/components/index/screen/tag/js.htm
|
ce8f0dddfb2446e04ed00da108a9d5ff *dzz/pichome/template/pc/components/index/screen/tag/js.htm
|
||||||
12adf53eb950a45a47d2d80e8b246fa6 *dzz/pichome/template/pc/components/index/screen/tag/temp.htm
|
12adf53eb950a45a47d2d80e8b246fa6 *dzz/pichome/template/pc/components/index/screen/tag/temp.htm
|
||||||
c2953f2cc75684f3a777148ad8c5fce9 *dzz/pichome/template/pc/components/index/screen.htm
|
c2953f2cc75684f3a777148ad8c5fce9 *dzz/pichome/template/pc/components/index/screen.htm
|
||||||
78e4336426983a0ec62934217dee535c *dzz/pichome/template/pc/components/index/template2/JsLeft.htm
|
56e224bc38e1eb8da17523729f62dfd8 *dzz/pichome/template/pc/components/index/template2/JsLeft.htm
|
||||||
8f54b82e6d2f9cb4d7ba43d09a39f088 *dzz/pichome/template/pc/frame/footer_simple.htm
|
8f54b82e6d2f9cb4d7ba43d09a39f088 *dzz/pichome/template/pc/frame/footer_simple.htm
|
||||||
ae502b90b2b31175892efe56867bc2e7 *dzz/pichome/template/pc/frame/header_simple_end.htm
|
ae502b90b2b31175892efe56867bc2e7 *dzz/pichome/template/pc/frame/header_simple_end.htm
|
||||||
08154101159fde8eb21fe522cc937e4c *dzz/pichome/template/pc/frame/header_simple_start.htm
|
08154101159fde8eb21fe522cc937e4c *dzz/pichome/template/pc/frame/header_simple_start.htm
|
||||||
42648cd5769edf01f824444c5acc98b2 *dzz/pichome/template/pc/page/adminBasic.htm
|
f45c9ec8917e94bf4b61a7b5bbacf3e5 *dzz/pichome/template/pc/page/adminBasic.htm
|
||||||
d46f3035458009aa3d87d579da8848c3 *dzz/pichome/template/pc/page/adminFileterset.htm
|
d46f3035458009aa3d87d579da8848c3 *dzz/pichome/template/pc/page/adminFileterset.htm
|
||||||
ef3300e59bc7be272f56ade943326d88 *dzz/pichome/template/pc/page/adminImportsetting.htm
|
ef3300e59bc7be272f56ade943326d88 *dzz/pichome/template/pc/page/adminImportsetting.htm
|
||||||
ea578588242396cb021031f41dd4bc69 *dzz/pichome/template/pc/page/adminLeft.htm
|
ea578588242396cb021031f41dd4bc69 *dzz/pichome/template/pc/page/adminLeft.htm
|
||||||
0e57e8ab9dbccead521f9b18fe8a2de2 *dzz/pichome/template/pc/page/adminLoginpage.htm
|
0e57e8ab9dbccead521f9b18fe8a2de2 *dzz/pichome/template/pc/page/adminLoginpage.htm
|
||||||
624c95c6ba1998d1f0538493c510fed1 *dzz/pichome/template/pc/page/adminPagesetting.htm
|
624c95c6ba1998d1f0538493c510fed1 *dzz/pichome/template/pc/page/adminPagesetting.htm
|
||||||
0920466b526ad2b5b6e20c8b2acead53 *dzz/pichome/template/pc/page/adminPersonal.htm
|
3ad11c89ea7b41c55b63d2f5d29004fb *dzz/pichome/template/pc/page/adminPersonal.htm
|
||||||
4adfd28ac9666c2aeb1af34040db7551 *dzz/pichome/template/pc/page/details.htm
|
364cd2b3bba93563c86ebf33102a6ba9 *dzz/pichome/template/pc/page/details.htm
|
||||||
8e351bacc90f2855e890cc3cb0ef9fc2 *dzz/pichome/template/pc/page/index.htm
|
8e351bacc90f2855e890cc3cb0ef9fc2 *dzz/pichome/template/pc/page/index.htm
|
||||||
701ca3999a6f963e5dd8081f4ca73498 *dzz/pichome/template/pc/page/index1.htm
|
22d1d385387e15a52c90b35eb6ed3a55 *dzz/pichome/template/pc/page/index1.htm
|
||||||
dee08b61a3556659df1cb5daa3845b4e *dzz/pichome/template/pc/page/index2.htm
|
b672309ad39f5e67246c0aabe7811306 *dzz/pichome/template/pc/page/index2.htm
|
||||||
ecbf47343950b3ab1498a97c97d88771 *dzz/pichome/template/pc/page/library.htm
|
c339f4670ef6db9e27f37f497e36f566 *dzz/pichome/template/pc/page/library.htm
|
||||||
d05bbcc9ca122a830c924cfabed697c0 *dzz/pichome/template/pc/page/share.htm
|
b3675471f7a9d279efd0162ac18f1505 *dzz/pichome/template/pc/page/share.htm
|
||||||
3cd79761b99168c3f9faf607183df134 *dzz/pichome/uninstall.php
|
3cd79761b99168c3f9faf607183df134 *dzz/pichome/uninstall.php
|
||||||
b5221437a0c978e0caf63f2278759934 *dzz/pichome/uninstall_real.php
|
b5221437a0c978e0caf63f2278759934 *dzz/pichome/uninstall_real.php
|
||||||
a5c5705a5b9e3a2175d3633656ae614e *dzz/pichome/updatesearchvaldata.php
|
a5c5705a5b9e3a2175d3633656ae614e *dzz/pichome/updatesearchvaldata.php
|
||||||
@@ -1607,8 +1653,8 @@ b0bb6c733a343afcddcd03baaeff31b0 *dzz/xgplayer/js/xgplayer.music.js
|
|||||||
5cb9422375b907e05eb6b7dc36fcd895 *favicon.ico
|
5cb9422375b907e05eb6b7dc36fcd895 *favicon.ico
|
||||||
8e55bdb192a3aefe82e03292527819ca *htaccess_default.txt
|
8e55bdb192a3aefe82e03292527819ca *htaccess_default.txt
|
||||||
55d39f5cf3916ab6a9336d95c671ab53 *index.php
|
55d39f5cf3916ab6a9336d95c671ab53 *index.php
|
||||||
d47506e140e630a579c83fe4911972ae *install/data/install.sql
|
b92e6bc4f11bbece12288d800321aa3c *install/data/install.sql
|
||||||
53cf9484adc4e5d9a87f88a662df5dc8 *install/data/install_data.sql
|
2630350d3ef08d868fcd36e678094709 *install/data/install_data.sql
|
||||||
feabf4e4c8e20dc73548dfd6ba8400f9 *install/images/error.png
|
feabf4e4c8e20dc73548dfd6ba8400f9 *install/images/error.png
|
||||||
fc25acefcabc066437d4b27550387954 *install/images/logo.png
|
fc25acefcabc066437d4b27550387954 *install/images/logo.png
|
||||||
2ba93e93e0fbdfeb91e22f6d3bf8b6ca *install/images/logo.svg
|
2ba93e93e0fbdfeb91e22f6d3bf8b6ca *install/images/logo.svg
|
||||||
@@ -1621,7 +1667,8 @@ a987af86766c27c565794ffa189cf664 *install/include/install_mysql.php
|
|||||||
249b244097610688130b93721d1c2bd1 *install/include/install_mysqli.php
|
249b244097610688130b93721d1c2bd1 *install/include/install_mysqli.php
|
||||||
effd4ff5bdac95bbc9e360de443f335c *install/include/install_var.php
|
effd4ff5bdac95bbc9e360de443f335c *install/include/install_var.php
|
||||||
4c34d50daace82774e12ef92efb93d18 *install/index.php
|
4c34d50daace82774e12ef92efb93d18 *install/index.php
|
||||||
672ea3abb501cb04f0708a5c69ac2161 *install/language/zh-cn/lang.php
|
677cacb463b31ea65d0ce771f9c02422 *install/language/zh-cn/lang.php
|
||||||
|
2938ca630f07497e9a4adedf25fbdae2 *install/update.php
|
||||||
5aefe69b1ba16fe8a6f79c2156f8f281 *misc/ajax.php
|
5aefe69b1ba16fe8a6f79c2156f8f281 *misc/ajax.php
|
||||||
66ee773a4c2e373da92f48f81930cf3f *misc/classes/init.php
|
66ee773a4c2e373da92f48f81930cf3f *misc/classes/init.php
|
||||||
f656adb0c1b2699a4d8c613f2b9dacab *misc/pichomeexport.php
|
f656adb0c1b2699a4d8c613f2b9dacab *misc/pichomeexport.php
|
||||||
|
|||||||
1
admin/system/dist/css/chunk-801d4da6.a47ba236.css
vendored
Normal file
1
admin/system/dist/css/chunk-801d4da6.a47ba236.css
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.el-avatar[data-v-663b95fa]{float:left;cursor:pointer}.el-divider--horizontal.el-divider[data-v-663b95fa]{margin:8px 0}.aboutPichome{padding:0;width:478px}.aboutPichome .el-message-box__btns,.aboutPichome .el-message-box__header{display:none}.aboutPichome .aboutlogo{text-align:center;line-height:0;padding-top:40px}.aboutPichome .aboutmessage{padding:65px 40px;font-size:19px;padding-bottom:15px}.aboutPichome .aboutmessage .aboutlist{margin-bottom:20px;overflow:hidden}.aboutPichome a{text-decoration:none}.aboutPichome .aboutmessage .aboutlist .title{float:left;width:95px}.aboutPichome .aboutmessage .aboutlist .mes{float:left;width:calc(100% - 95px)}.aboutPichome .aboutmessage .aboutlist .update{font-size:12px}
|
||||||
2
admin/system/dist/index.html
vendored
2
admin/system/dist/index.html
vendored
@@ -1 +1 @@
|
|||||||
<!DOCTYPE html><html lang=zh><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=favicon.ico><title></title><link href=admin/system/dist/css/chunk-2b4f90f7.519dec70.css rel=prefetch><link href=admin/system/dist/css/chunk-494f643e.7502109f.css rel=prefetch><link href=admin/system/dist/css/chunk-5ae5cc35.d763cbce.css rel=prefetch><link href=admin/system/dist/css/chunk-5cdcd199.6f46c04d.css rel=prefetch><link href=admin/system/dist/css/chunk-74c32c70.4b7d665e.css rel=prefetch><link href=admin/system/dist/css/chunk-76f23146.6fc79cd8.css rel=prefetch><link href=admin/system/dist/css/chunk-7828662a.c81657ef.css rel=prefetch><link href=admin/system/dist/css/chunk-9f9c2568.5356ad7d.css rel=prefetch><link href=admin/system/dist/css/chunk-af3b1b98.b822363f.css rel=prefetch><link href=admin/system/dist/css/chunk-e730cc06.987283b7.css rel=prefetch><link href=admin/system/dist/css/system_temp.a56510eb.css rel=prefetch><link href=admin/system/dist/js/chunk-2b4f90f7.ec4ac270.js rel=prefetch><link href=admin/system/dist/js/chunk-2d0a3327.ad2684c9.js rel=prefetch><link href=admin/system/dist/js/chunk-2d0bdbc6.4ec7bc5e.js rel=prefetch><link href=admin/system/dist/js/chunk-2d0dd46d.e13ddeba.js rel=prefetch><link href=admin/system/dist/js/chunk-2d0efd3c.44a093d1.js rel=prefetch><link href=admin/system/dist/js/chunk-2d20fcd9.50f81306.js rel=prefetch><link href=admin/system/dist/js/chunk-2d21ddf7.9f7b329e.js rel=prefetch><link href=admin/system/dist/js/chunk-494f643e.77a11d42.js rel=prefetch><link href=admin/system/dist/js/chunk-5ae5cc35.25761a21.js rel=prefetch><link href=admin/system/dist/js/chunk-5cdcd199.070f9c94.js rel=prefetch><link href=admin/system/dist/js/chunk-74c32c70.1f5e9382.js rel=prefetch><link href=admin/system/dist/js/chunk-76f23146.0d2957ed.js rel=prefetch><link href=admin/system/dist/js/chunk-7828662a.e587f025.js rel=prefetch><link href=admin/system/dist/js/chunk-9f9c2568.538835dd.js rel=prefetch><link href=admin/system/dist/js/chunk-af3b1b98.850ec152.js rel=prefetch><link href=admin/system/dist/js/chunk-e730cc06.3ce9a994.js rel=prefetch><link href=admin/system/dist/js/system_temp.c7e32270.js rel=prefetch><link href=admin/system/dist/css/chunk-vendors.4d5d56a8.css rel=preload as=style><link href=admin/system/dist/css/index.7d0ec6bf.css rel=preload as=style><link href=admin/system/dist/js/chunk-vendors.3b95dfe3.js rel=preload as=script><link href=admin/system/dist/js/index.d36cff59.js rel=preload as=script><link href=admin/system/dist/css/chunk-vendors.4d5d56a8.css rel=stylesheet><link href=admin/system/dist/css/index.7d0ec6bf.css rel=stylesheet></head><body><div id=app></div><script src=admin/system/dist/js/chunk-vendors.3b95dfe3.js></script><script src=admin/system/dist/js/index.d36cff59.js></script></body></html>
|
<!DOCTYPE html><html lang=zh><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge"><meta name=viewport content="width=device-width,initial-scale=1"><link rel=icon href=favicon.ico><title></title><link href=admin/system/dist/css/chunk-2b4f90f7.519dec70.css rel=prefetch><link href=admin/system/dist/css/chunk-494f643e.7502109f.css rel=prefetch><link href=admin/system/dist/css/chunk-5ae5cc35.d763cbce.css rel=prefetch><link href=admin/system/dist/css/chunk-74c32c70.4b7d665e.css rel=prefetch><link href=admin/system/dist/css/chunk-76f23146.6fc79cd8.css rel=prefetch><link href=admin/system/dist/css/chunk-7828662a.c81657ef.css rel=prefetch><link href=admin/system/dist/css/chunk-801d4da6.a47ba236.css rel=prefetch><link href=admin/system/dist/css/chunk-9f9c2568.5356ad7d.css rel=prefetch><link href=admin/system/dist/css/chunk-af3b1b98.b822363f.css rel=prefetch><link href=admin/system/dist/css/chunk-e730cc06.987283b7.css rel=prefetch><link href=admin/system/dist/css/system_temp.a56510eb.css rel=prefetch><link href=admin/system/dist/js/chunk-2b4f90f7.8dd0185d.js rel=prefetch><link href=admin/system/dist/js/chunk-2d0a3327.ad2684c9.js rel=prefetch><link href=admin/system/dist/js/chunk-2d0bdbc6.4ec7bc5e.js rel=prefetch><link href=admin/system/dist/js/chunk-2d0dd46d.e13ddeba.js rel=prefetch><link href=admin/system/dist/js/chunk-2d0efd3c.44a093d1.js rel=prefetch><link href=admin/system/dist/js/chunk-2d20fcd9.50f81306.js rel=prefetch><link href=admin/system/dist/js/chunk-2d21ddf7.9f7b329e.js rel=prefetch><link href=admin/system/dist/js/chunk-494f643e.77a11d42.js rel=prefetch><link href=admin/system/dist/js/chunk-5ae5cc35.25761a21.js rel=prefetch><link href=admin/system/dist/js/chunk-74c32c70.1f5e9382.js rel=prefetch><link href=admin/system/dist/js/chunk-76f23146.0d2957ed.js rel=prefetch><link href=admin/system/dist/js/chunk-7828662a.e587f025.js rel=prefetch><link href=admin/system/dist/js/chunk-801d4da6.0f74a3ea.js rel=prefetch><link href=admin/system/dist/js/chunk-9f9c2568.538835dd.js rel=prefetch><link href=admin/system/dist/js/chunk-af3b1b98.850ec152.js rel=prefetch><link href=admin/system/dist/js/chunk-e730cc06.3ce9a994.js rel=prefetch><link href=admin/system/dist/js/system_temp.c7e32270.js rel=prefetch><link href=admin/system/dist/css/chunk-vendors.4d5d56a8.css rel=preload as=style><link href=admin/system/dist/css/index.7d0ec6bf.css rel=preload as=style><link href=admin/system/dist/js/chunk-vendors.3b95dfe3.js rel=preload as=script><link href=admin/system/dist/js/index.5892fe49.js rel=preload as=script><link href=admin/system/dist/css/chunk-vendors.4d5d56a8.css rel=stylesheet><link href=admin/system/dist/css/index.7d0ec6bf.css rel=stylesheet></head><body><div id=app></div><script src=admin/system/dist/js/chunk-vendors.3b95dfe3.js></script><script src=admin/system/dist/js/index.5892fe49.js></script></body></html>
|
||||||
1
admin/system/dist/js/chunk-2b4f90f7.8dd0185d.js
vendored
Normal file
1
admin/system/dist/js/chunk-2b4f90f7.8dd0185d.js
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2b4f90f7"],{3685:function(t,e,a){},ec9e:function(t,e,a){"use strict";var n=a("3685"),i=a.n(n);i.a},fcc8f:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"resNav"},[a("div",{staticClass:"resNav-item resNav-left"},[a("a",{staticClass:"h-left",attrs:{href:"javascript:;"},on:{click:function(e){return t.goBack()}}},[a("el-image",{attrs:{src:"data/attachment/sitelogo/sitelogo.png",fit:"contain"}}),a("span",{staticClass:"text"},[t._v(t._s(t.navTitle))])],1)]),a("div",{staticClass:"resNav-item resNav-center"}),a("div",{staticClass:"resNav-item resNav-right"},[a("Mavatar")],1)])},i=[],c=(a("d3b7"),a("5530")),s=a("2f62"),r={props:["hideContent","apptype","hideBack"],data:function(){return{}},computed:Object(c["a"])(Object(c["a"])({},Object(s["c"])(["headerName","navTitle","IfuserAgent"])),Object(s["b"])(["GetNavMenu"])),methods:{handleClick:function(t){var e=this.GetNavMenu;for(var a in e)if(e[a].index==t){"admin"==e[a].type?window.location.href="admin.php?mod="+t:window.location.href="index.php?mod="+t;break}},goBack:function(){window.location.href="/"}},components:{Mavatar:function(){return a.e("chunk-801d4da6").then(a.bind(null,"6254"))}}},o=r,d=(a("ec9e"),a("2877")),l=Object(d["a"])(o,n,i,!1,null,"b9d2b62e",null);e["default"]=l.exports}}]);
|
||||||
1
admin/system/dist/js/chunk-801d4da6.0f74a3ea.js
vendored
Normal file
1
admin/system/dist/js/chunk-801d4da6.0f74a3ea.js
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-801d4da6"],{"04d2":function(t,e,a){},6254:function(t,e,a){"use strict";a.r(e);var o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticStyle:{"margin-left":"10px",display:"inherit"}},[a("el-dropdown",{staticStyle:{width:"35px",height:"35px"},attrs:{trigger:"click","hide-on-click":!1},on:{command:t.handleAvatar}},[t.GetUserData.icon?[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:t.GetUserData.username,placement:"left"}},[a("el-avatar",{attrs:{size:35,src:t.GetUserData.icon}})],1)]:[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:t.GetUserData.username,placement:"left"}},[a("el-avatar",{style:{background:t.GetUserData.headerColor},attrs:{size:35}},[t._v(t._s(t.GetUserData.firstword))])],1)],a("el-dropdown-menu",{staticClass:"avatar-dropdown",attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"personal"}},[t._v("个人设置")]),a("el-dropdown-item",{attrs:{command:"help"}},[t._v("帮助文档")]),a("el-dropdown-item",{attrs:{command:"problem"}},[t._v("问题反馈")]),a("el-divider"),a("el-dropdown-item",{attrs:{command:"setting"}},[t._v("站点设置")]),a("el-dropdown-item",{attrs:{command:"library"}},[t._v("库设置")]),a("el-dropdown-item",{attrs:{command:"orguser"}},[t._v("用户管理")]),a("el-dropdown-item",{attrs:{command:"system"}},[a("span",{staticStyle:{position:"relative"}},[t._v(" 系统工具 "),t.GetUserData.upgrade?a("div",{staticClass:"tip",staticStyle:{width:"7px",height:"7px","border-radius":"50%",background:"red",position:"absolute",left:"-13px",top:"0",bottom:"0",margin:"auto"}}):t._e()])]),a("el-divider"),a("el-dropdown-item",{attrs:{command:"about"}},[t._v("关于PicHome")]),a("el-dropdown-item",{attrs:{command:"OutLogin"}},[t._v("退出站点")])],1)],2)],1)},s=[],n=(a("96cf"),a("1da1")),i=a("5530"),r=a("2f62"),c={data:function(){return{}},computed:Object(i["a"])({},Object(r["b"])(["GetUserData","GetFormHash","GetLanguage"])),methods:{handleAvatar:function(t){switch(t){case"collection":window.location.href="index.php?mod=collection";break;case"personal":window.location.href="index.php?mod=pichome&op=user&do=personal";break;case"help":window.open("https://www.yuque.com/pichome");break;case"problem":window.open("https://support.qq.com/products/340252");break;case"setting":window.location.href="index.php?mod=pichome&op=admin&do=basic";break;case"library":window.location.href="index.php?mod=pichome&op=library";break;case"about":this.$alert('<div class="aboutlogo">\n \t\t\t<img src="dzz/pichome/image/phlogo.png" alt="">\n \t\t</div>\n \t\t<div class="aboutmessage">\n \t\t\t<div class="aboutlist">\n \t\t\t\t<span class="title">软件名称:</span><span class="mes">欧奥PicHome</span>\n \t\t\t</div>\n \t\t\t<div class="aboutlist">\n \t\t\t\t<span class="title">版本信息:</span><span class="mes">'+this.GetUserData.version+'</span>\n \t\t\t</div>\n \t\t\t<div class="aboutlist">\n \t\t\t\t<span class="title">版权信息:</span><span class="mes">Powered By oaooa PicHome © 2020-2022 欧奥图文</span>\n \t\t\t</div>\n \t\t\t<div class="aboutlist">\n \t\t\t\t<span class="title">网站地址:</span><span class="mes"><a class="address" href="https://oaooa.com/" target="_blank">oaooa.com</a></span>\n \t\t\t</div>\n \t\t</div>',"",{customClass:"aboutPichome",showClose:!1,showConfirmButton:!1,dangerouslyUseHTMLString:!0,closeOnClickModal:!0});break;case"OutLogin":this.outLogin();break;case"system":window.open("admin.php?mod=system");break;case"orguser":window.open("admin.php?mod=orguser");break}return!1},outLogin:function(){var t=this;return Object(n["a"])(regeneratorRuntime.mark((function e(){var a;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.axios.post(t.AxiosApi+"user.php?mod=login&op=logging&action=logout&formhash="+t.GetFormHash+"&t="+(new Date).getTime());case 2:a=e.sent,a.data,window.location.reload();case 5:case"end":return e.stop()}}),e)})))()}}},d=c,l=(a("a16b"),a("9c24"),a("2877")),p=Object(l["a"])(d,o,s,!1,null,"663b95fa",null);e["default"]=p.exports},"864f":function(t,e,a){},"9c24":function(t,e,a){"use strict";var o=a("864f"),s=a.n(o);s.a},a16b:function(t,e,a){"use strict";var o=a("04d2"),s=a.n(o);s.a}}]);
|
||||||
1
admin/system/dist/js/index.5892fe49.js
vendored
Normal file
1
admin/system/dist/js/index.5892fe49.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@@ -227,6 +227,8 @@ if ($operation == 'patch' || $operation == 'cross') {
|
|||||||
$file = DZZ_ROOT . './data/update/pichome' . $version . '/updatelist.tmp';
|
$file = DZZ_ROOT . './data/update/pichome' . $version . '/updatelist.tmp';
|
||||||
@unlink($file);
|
@unlink($file);
|
||||||
@unlink(DZZ_ROOT . './install/update.php');
|
@unlink(DZZ_ROOT . './install/update.php');
|
||||||
|
//打开站点
|
||||||
|
C::t('setting')->update('bbclosed', 0);
|
||||||
C::t('cache') -> delete('upgrade_step');
|
C::t('cache') -> delete('upgrade_step');
|
||||||
C::t('cache') -> delete('upgrade_run');
|
C::t('cache') -> delete('upgrade_run');
|
||||||
C::t('setting') -> update('upgrade', '');
|
C::t('setting') -> update('upgrade', '');
|
||||||
|
|||||||
@@ -244,6 +244,11 @@ class image {
|
|||||||
} else {
|
} else {
|
||||||
$w = ceil($y_ratio * $this->imginfo['width']);
|
$w = ceil($y_ratio * $this->imginfo['width']);
|
||||||
$h = $this->param['thumbheight'];
|
$h = $this->param['thumbheight'];
|
||||||
|
}
|
||||||
|
if($w < 242){
|
||||||
|
$w = $this->param['thumbwidth'] = 242;
|
||||||
|
$x_ratio = $this->param['thumbwidth'] / $this->imginfo['width'];
|
||||||
|
$h = ceil($x_ratio*$this->imginfo['height']);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return array($x, $y, $w, $h);
|
return array($x, $y, $w, $h);
|
||||||
@@ -356,6 +361,10 @@ class image {
|
|||||||
}else{
|
}else{
|
||||||
|
|
||||||
$width=ceil($height*$or);
|
$width=ceil($height*$or);
|
||||||
|
if($width < 242){
|
||||||
|
$width = 242;
|
||||||
|
$height = ceil($width/$or);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
@@ -364,6 +373,11 @@ class image {
|
|||||||
$width=$owidth;
|
$width=$owidth;
|
||||||
}else{
|
}else{
|
||||||
$height=ceil($width/$or);
|
$height=ceil($width/$or);
|
||||||
|
$width = ceil($height*$or);
|
||||||
|
if($width < 242){
|
||||||
|
$width = 242;
|
||||||
|
$height = ceil($width/$or);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -687,6 +687,7 @@ class dzz_mime{
|
|||||||
'xbm' => 'image/x-xbitmap',
|
'xbm' => 'image/x-xbitmap',
|
||||||
'xpm' => 'image/x-xpixmap',
|
'xpm' => 'image/x-xpixmap',
|
||||||
'xwd' => 'image/x-xwindowdump',
|
'xwd' => 'image/x-xwindowdump',
|
||||||
|
'webp' => 'image/webp',
|
||||||
'mime' => 'message/rfc822',
|
'mime' => 'message/rfc822',
|
||||||
'eml' => 'message/rfc822',
|
'eml' => 'message/rfc822',
|
||||||
'iges' => 'model/iges',
|
'iges' => 'model/iges',
|
||||||
|
|||||||
432
core/class/table/table_pichome_collectlist.php
Normal file
432
core/class/table/table_pichome_collectlist.php
Normal file
@@ -0,0 +1,432 @@
|
|||||||
|
<?php
|
||||||
|
if (!defined('IN_OAOOA')) {
|
||||||
|
exit('Access Denied');
|
||||||
|
}
|
||||||
|
|
||||||
|
class table_pichome_collectlist extends dzz_table
|
||||||
|
{
|
||||||
|
public function __construct()
|
||||||
|
{
|
||||||
|
|
||||||
|
$this->_table = 'pichome_collectlist';
|
||||||
|
$this->_pk = 'id';
|
||||||
|
$this->_pre_cache_key = 'pichome_collectlist';
|
||||||
|
$this->_cache_ttl = 3600;
|
||||||
|
parent::__construct();
|
||||||
|
}
|
||||||
|
//添加收藏
|
||||||
|
public function add_collect($data){
|
||||||
|
$perm = C::t('pichome_collectuser')->get_perm_by_clid($data['clid']);
|
||||||
|
if($perm < 2){
|
||||||
|
return array('error'=>'no_perm');
|
||||||
|
}
|
||||||
|
if(empty($data['rid'])) return true;
|
||||||
|
$existsdata = DB::fetch_all("select rid from %t where rid in(%n) and clid = %d and cid = %d",array($this->_table,$data['rid'],$data['clid'],$data['cid']));
|
||||||
|
$existsrids = [];
|
||||||
|
foreach($existsdata as $v){
|
||||||
|
$existsrids[] = $v['rid'];
|
||||||
|
}
|
||||||
|
$totalcount = count($data['rid']);
|
||||||
|
$data['rid'] = array_diff($data['rid'],$existsrids);
|
||||||
|
if(empty($data['rid'])) return true;
|
||||||
|
//记录加入收藏个数
|
||||||
|
$counti = 0;
|
||||||
|
$namesarr = [];
|
||||||
|
foreach(DB::fetch_all("select appid,rid,name from %t where rid in(%n)",array('pichome_resources',$data['rid'])) as $v){
|
||||||
|
$setarr = [
|
||||||
|
'rid'=>$v['rid'],
|
||||||
|
'cid'=>$data['cid'],
|
||||||
|
'clid'=>$data['clid'],
|
||||||
|
'uid'=>$data['uid'],
|
||||||
|
'username'=>$data['username'],
|
||||||
|
'dateline'=>$data['dateline'],
|
||||||
|
'appid'=>$v['appid'],
|
||||||
|
];
|
||||||
|
$namesarr[] = $v['name'];
|
||||||
|
if(parent::insert($setarr,1)) $counti += 1;
|
||||||
|
}
|
||||||
|
if($counti){
|
||||||
|
$filenamearr = array_slice($namesarr,0,5);
|
||||||
|
$filename = implode(',',$filenamearr).'等'.$totalcount.'个文件';
|
||||||
|
//如果收藏有分类增加该分类下文件数
|
||||||
|
$position = DB::result_first("select name from %t where clid = %d",array('pichome_collect',$data['clid']));
|
||||||
|
if($data['cid']){
|
||||||
|
C::t('pichome_collectcat')->add_filenum_by_cid($data['cid'],$counti);
|
||||||
|
$pathkey = DB::result_first("select pathkey from %t where cid = %d",array('pichome_collectcat',$data['cid']));
|
||||||
|
$pathkey = str_replace('_','',$pathkey);
|
||||||
|
$patharr = explode('-',$pathkey);
|
||||||
|
foreach(DB::fetch_all("select catname from %t where cid in(%n)",array('pichome_collectcat',$patharr)) as $v){
|
||||||
|
$position .= '/'.$v['catname'];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
C::t('pichome_collect')->add_filenum_by_clid($data['clid'],$counti);
|
||||||
|
$enventbodydata = ['username'=>getglobal('username'),'filename'=>$filename,'collectname'=>$position,'rids'=> $data['rid']];
|
||||||
|
$enventdata = [
|
||||||
|
'eventbody' =>'collectfile' ,
|
||||||
|
'uid' => getglobal('uid'),
|
||||||
|
'username' => getglobal('username'),
|
||||||
|
'bodydata' => json_encode($enventbodydata),
|
||||||
|
'clid' =>$data['clid'],
|
||||||
|
'cid' =>($data['cid']) ? $data['cid']:0,
|
||||||
|
'do' => 'collect_file',
|
||||||
|
'do_obj' =>$filename,
|
||||||
|
'dateline'=>TIMESTAMP
|
||||||
|
];
|
||||||
|
C::t('pichome_collectevent')->insert($enventdata);
|
||||||
|
}
|
||||||
|
$this->update_collect_thumb($data['clid']);
|
||||||
|
return true;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public function delete($id){
|
||||||
|
if(!is_array($id)) $id = (array)$id;
|
||||||
|
if(parent::delete($id)){
|
||||||
|
//删除对应分享
|
||||||
|
if(!empty($id))DB::delete('pichome_share','filepath in('.dimplode($id).') and stype = 1');
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
//取消收藏
|
||||||
|
public function cancle_filecollect($lids,$clid,$cid = 0){
|
||||||
|
$perm = C::t('pichome_collectuser')->get_perm_by_clid($clid);
|
||||||
|
if($perm < 2){
|
||||||
|
return array('error'=>'no_perm');
|
||||||
|
}
|
||||||
|
if(!is_array($lids)) $lids = (array)$lids;
|
||||||
|
if(empty($lids)) return true;
|
||||||
|
$counti = 0;
|
||||||
|
$rids = [];
|
||||||
|
foreach(DB::fetch_all("select rid,id,cid,clid from %t where id in(%n)",array($this->_table,$lids)) as $v){
|
||||||
|
$rids[] = $v['rid'];
|
||||||
|
if($this->delete($v['id'])){
|
||||||
|
$counti += 1;
|
||||||
|
C::t('pichome_collectcat')->add_filenum_by_cid($v['cid'],-1);
|
||||||
|
C::t('pichome_collect')->add_filenum_by_clid($v['clid'],-1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$position = DB::result_first("select name from %t where clid = %d",array('pichome_collect',$clid));
|
||||||
|
if($cid){
|
||||||
|
$pathkey = DB::result_first("select pathkey from %t where cid = %d",array('pichome_collectcat',$cid));
|
||||||
|
$pathkey = str_replace('_','',$pathkey);
|
||||||
|
$patharr = explode('-',$pathkey);
|
||||||
|
foreach(DB::fetch_all("select catname from %t where cid in(%n)",array('pichome_collectcat',$patharr)) as $v){
|
||||||
|
$position .= '/'.$v['catname'];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$namesarr = [];
|
||||||
|
foreach(DB::fetch_all("select name from %t where rid in(%n) limit 0,5",array('pichome_resources',$rids)) as $v){
|
||||||
|
$namesarr[] = $v['name'];
|
||||||
|
}
|
||||||
|
$filename = implode(',',$namesarr).'等'.$counti.'个文件';
|
||||||
|
$enventbodydata = ['username'=>getglobal('username'),'filename'=>$filename,'collectname'=>$position,'rid'=>$rids];
|
||||||
|
$enventdata = [
|
||||||
|
'eventbody' =>'canclecollectfile' ,
|
||||||
|
'uid' => getglobal('uid'),
|
||||||
|
'username' => getglobal('username'),
|
||||||
|
'bodydata' => json_encode($enventbodydata),
|
||||||
|
'clid' =>$clid,
|
||||||
|
'cid' =>($cid) ? $cid:0,
|
||||||
|
'do' => 'cancle_collectfile',
|
||||||
|
'do_obj' =>$filename,
|
||||||
|
'dateline'=>TIMESTAMP
|
||||||
|
];
|
||||||
|
C::t('pichome_collectevent')->insert($enventdata);
|
||||||
|
$this->update_collect_thumb($clid);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
//更新收藏夹缩略图
|
||||||
|
public function update_collect_thumb($clid){
|
||||||
|
$first = false;
|
||||||
|
$collectdata = C::t('pichome_collect')->fetch($clid);
|
||||||
|
if(!C::t('pichome_collectlist')->fetch($collectdata['lid'])){
|
||||||
|
$first = true;
|
||||||
|
}else{
|
||||||
|
$first = false;
|
||||||
|
}
|
||||||
|
$setarr = [];
|
||||||
|
if($first){
|
||||||
|
//取得第一张图
|
||||||
|
$firstdata = DB::fetch_first("select * from %t where clid = %d order by id asc",array($this->_table,$clid));
|
||||||
|
if($firstdata){
|
||||||
|
$icondatas = C::t('pichome_resources')->geticondata_by_rid($firstdata['rid']);
|
||||||
|
$setarr['covert'] = $icondatas['icondata'];
|
||||||
|
$setarr['lid'] = $firstdata['id'];
|
||||||
|
}else{
|
||||||
|
$setarr['covert'] = '';
|
||||||
|
$setarr['lid'] = 0;
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//取得最新两张图
|
||||||
|
$i = 2;
|
||||||
|
$coverdata = DB::fetch_all("select rid,id from %t where clid = %d order by id desc limit 0,2",array($this->_table,$clid));
|
||||||
|
$count = count($coverdata);
|
||||||
|
if($count == 0){
|
||||||
|
$setarr['covert1'] = '';
|
||||||
|
$setarr['covert2'] = '';
|
||||||
|
$setarr['lid1'] = 0;
|
||||||
|
$setarr['lid2'] = 0;
|
||||||
|
}elseif($count ==1) {
|
||||||
|
foreach ($coverdata as $v) {
|
||||||
|
$icondatas = C::t('pichome_resources')->geticondata_by_rid($v['rid']);
|
||||||
|
$setarr['covert' . $i] = $icondatas['icondata'];
|
||||||
|
$setarr['lid' . $i] = $v['id'];
|
||||||
|
$i--;
|
||||||
|
}
|
||||||
|
$setarr['covert2'] = '';
|
||||||
|
$setarr['lid2'] = 0;
|
||||||
|
}else{
|
||||||
|
foreach($coverdata as $v){
|
||||||
|
$icondatas = C::t('pichome_resources')->geticondata_by_rid($v['rid']);
|
||||||
|
$setarr['covert'.$i] = $icondatas['icondata'];
|
||||||
|
$setarr['lid'.$i] = $v['id'];
|
||||||
|
$i--;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
C::t('pichome_collect')->update($clid,$setarr);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
//删除收藏夹所有文件
|
||||||
|
public function delete_by_clid($clid){
|
||||||
|
return DB::delete($this->_table,array('clid'=>$clid));
|
||||||
|
}
|
||||||
|
|
||||||
|
//移动文件到某收藏
|
||||||
|
public function move_collectfile($lids,$oclid,$ocid=0){
|
||||||
|
|
||||||
|
if(!is_array($lids)) $lids = (array)$lids;
|
||||||
|
if(empty($lids)) return true;
|
||||||
|
|
||||||
|
$total = count($lids);
|
||||||
|
$cids = [];
|
||||||
|
$clid = 0;
|
||||||
|
$counti = 0;
|
||||||
|
$rids=[];
|
||||||
|
foreach(DB::fetch_all("select * from %t where id in(%n)",array('pichome_collectlist',$lids)) as $v){
|
||||||
|
$cids[] = $v['cid'];
|
||||||
|
$clid = $v['clid'];
|
||||||
|
//如果收藏位置相同则不做任何处理
|
||||||
|
if($v['clid'] == $oclid && $v['cid'] == $ocid){
|
||||||
|
/* if(parent::delete($v['id'])){
|
||||||
|
//收藏夹文件数和分类数减1
|
||||||
|
if($v['cid']) C::t('pichome_collectcat')->add_filenum_by_cid($v['cid'],-1);
|
||||||
|
if($v['clid'])C::t('pichome_collect')->add_filenum_by_clid($v['clid'],-1);
|
||||||
|
}*/
|
||||||
|
continue;
|
||||||
|
}else{
|
||||||
|
|
||||||
|
//如果该收藏文件在目标位置已经存在则删除原收藏位置文件
|
||||||
|
if($id = DB::result_first("select id from %t where rid = %s and clid = %d and cid = %d",
|
||||||
|
array($this->_table,$v['rird'],$oclid,$ocid))){
|
||||||
|
$this->delete($id);
|
||||||
|
C::t('pichome_collect')->add_filenum_by_clid($clid,-1);
|
||||||
|
if($v['cid'])C::t('pichome_collectcat')->add_filenum_by_cid($v['cid'],-1);
|
||||||
|
}else{
|
||||||
|
$setarr = [
|
||||||
|
'uid'=>getglobal('uid'),
|
||||||
|
'username'=>getglobal('username'),
|
||||||
|
'clid'=>$oclid,
|
||||||
|
'cid'=>$ocid
|
||||||
|
];
|
||||||
|
/* echo $ocid;
|
||||||
|
print_r($v);die;*/
|
||||||
|
//更新数据
|
||||||
|
if(parent::update($v['id'],$setarr)){
|
||||||
|
|
||||||
|
//如果移动位置不在一个收藏夹
|
||||||
|
if($v['clid'] != $oclid){
|
||||||
|
//增加移入收藏夹文件数
|
||||||
|
C::t('pichome_collect')->add_filenum_by_clid($oclid,1);
|
||||||
|
if($v['clid']) C::t('pichome_collect')->add_filenum_by_clid($clid,-1);
|
||||||
|
}
|
||||||
|
if($v['cid'])C::t('pichome_collectcat')->add_filenum_by_cid($v['cid'],-1);
|
||||||
|
$counti++;
|
||||||
|
//增加移入分类文件数
|
||||||
|
if($ocid)C::t('pichome_collectcat')->add_filenum_by_cid($ocid,1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
$rids[] = $v['rid'];
|
||||||
|
}
|
||||||
|
//如果移动文件位置cid为多个则不记入动态
|
||||||
|
$cids = array_unique($cids);
|
||||||
|
if(count($cids) == 1) $cid = $cids[0];
|
||||||
|
else $cid = 0;
|
||||||
|
|
||||||
|
$namesarr = [];
|
||||||
|
foreach(DB::fetch_all("select name from %t where rid in(%n) limit 0,5",array('pichome_resources',$rids)) as $v){
|
||||||
|
$namesarr[] = $v['name'];
|
||||||
|
}
|
||||||
|
$filename = implode(',',$namesarr).'等'.$total.'个文件';
|
||||||
|
|
||||||
|
$oposition = DB::result_first("select name from %t where clid = %d",array('pichome_collect',$oclid));
|
||||||
|
if($ocid){
|
||||||
|
$pathkey = DB::result_first("select pathkey from %t where cid = %d",array('pichome_collectcat',$ocid));
|
||||||
|
$pathkey = str_replace('_','',$pathkey);
|
||||||
|
$patharr = explode('-',$pathkey);
|
||||||
|
foreach(DB::fetch_all("select catname from %t where cid in(%n)",array('pichome_collectcat',$patharr)) as $v){
|
||||||
|
$oposition .= '/'.$v['catname'];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//更新移出收藏文件数
|
||||||
|
$position = DB::result_first("select name from %t where clid = %d",array('pichome_collect',$clid));
|
||||||
|
if($cid){
|
||||||
|
|
||||||
|
$pathkey = DB::result_first("select pathkey from %t where cid = %d",array('pichome_collectcat',$cid));
|
||||||
|
$pathkey = str_replace('_','',$pathkey);
|
||||||
|
$patharr = explode('-',$pathkey);
|
||||||
|
foreach(DB::fetch_all("select catname from %t where cid in(%n)",array('pichome_collectcat',$patharr)) as $v){
|
||||||
|
$position .= '/'.$v['catname'];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//移入动态
|
||||||
|
$enventbodydata = ['username'=>getglobal('username'),'filename'=>$filename,'collectname'=>$position,'newcolletname'=>$oposition,'rid'=>$rids];
|
||||||
|
$enventdata = [
|
||||||
|
'eventbody' =>'movecollectfileto' ,
|
||||||
|
'uid' => getglobal('uid'),
|
||||||
|
'username' => getglobal('username'),
|
||||||
|
'bodydata' => json_encode($enventbodydata),
|
||||||
|
'clid' =>$oclid,
|
||||||
|
'cid' =>($ocid) ? $ocid:0,
|
||||||
|
'do' => 'move_collectfileto',
|
||||||
|
'do_obj' =>$filename,
|
||||||
|
'dateline'=>TIMESTAMP
|
||||||
|
];
|
||||||
|
C::t('pichome_collectevent')->insert($enventdata);
|
||||||
|
//更新移入文件收藏缩略图
|
||||||
|
if($oclid != $clid) $this->update_collect_thumb($oclid);
|
||||||
|
|
||||||
|
//移出动态
|
||||||
|
$enventbodydata = ['username'=>getglobal('username'),'filename'=>$filename,'collectname'=>$position,'newcolletname'=>$oposition,'rid'=>$rids];
|
||||||
|
$enventdata = [
|
||||||
|
'eventbody' =>'delcollectfilefrom' ,
|
||||||
|
'uid' => getglobal('uid'),
|
||||||
|
'username' => getglobal('username'),
|
||||||
|
'bodydata' => json_encode($enventbodydata),
|
||||||
|
'clid' =>$clid,
|
||||||
|
'cid' =>($cid) ? $cid:0,
|
||||||
|
'do' => 'del_collectfilefrom',
|
||||||
|
'do_obj' =>$filename,
|
||||||
|
'dateline'=>TIMESTAMP
|
||||||
|
];
|
||||||
|
C::t('pichome_collectevent')->insert($enventdata);
|
||||||
|
//更新移出文件收藏缩略图
|
||||||
|
if($clid && $oclid != $clid) $this->update_collect_thumb($oclid);
|
||||||
|
return true;
|
||||||
|
|
||||||
|
}
|
||||||
|
//收藏已收藏文件到指定收藏
|
||||||
|
public function collect_by_lid($lids,$clid,$cid=0){
|
||||||
|
$perm = C::t('pichome_collectuser')->get_perm_by_clid($clid);
|
||||||
|
if($perm < 2){
|
||||||
|
return array('error'=>'no_perm');
|
||||||
|
}
|
||||||
|
if(!is_array($lids)) $lids = (array)$lids;
|
||||||
|
if(empty($lids)) return true;
|
||||||
|
$rids = [];
|
||||||
|
foreach(DB::fetch_all("select rid,id from %t where id in(%n)",array($this->_table,$lids)) as $v){
|
||||||
|
$rids[] = $v['rid'];
|
||||||
|
}
|
||||||
|
$existsrids = [];
|
||||||
|
foreach(DB::fetch_all("select rid from %t where rid in(%n) and clid = %d and cid = %d",array($this->_table,$rids,$clid,$cid)) as $v){
|
||||||
|
$existsrids[] = $v['rid'];
|
||||||
|
}
|
||||||
|
$totalcount = count($rids);
|
||||||
|
$insertrids = array_diff($rids,$existsrids);
|
||||||
|
//记录加入收藏个数
|
||||||
|
$counti = 0;
|
||||||
|
$namesarr = [];
|
||||||
|
foreach(DB::fetch_all("select appid,rid,name from %t where rid in(%n)",array('pichome_resources',$insertrids)) as $v){
|
||||||
|
$setarr = [
|
||||||
|
'rid'=>$v['rid'],
|
||||||
|
'cid'=>$cid,
|
||||||
|
'clid'=>$clid,
|
||||||
|
'uid'=>getglobal('uid'),
|
||||||
|
'username'=>getglobal('username'),
|
||||||
|
'dateline'=>TIMESTAMP,
|
||||||
|
'appid'=>$v['appid'],
|
||||||
|
];
|
||||||
|
$namesarr[] = $v['name'];
|
||||||
|
if(parent::insert($setarr,1)) $counti += 1;
|
||||||
|
}
|
||||||
|
if($counti){
|
||||||
|
$filenamearr = array_slice($namesarr,0,5);
|
||||||
|
$filename = implode(',',$filenamearr).'等'.$totalcount.'个文件';
|
||||||
|
//如果收藏有分类增加该分类下文件数
|
||||||
|
$position = DB::result_first("select name from %t where clid = %d",array('pichome_collect',$clid));
|
||||||
|
if($cid){
|
||||||
|
C::t('pichome_collectcat')->add_filenum_by_cid($cid,$counti);
|
||||||
|
$pathkey = DB::result_first("select pathkey from %t where cid = %d",array('pichome_collectcat',$cid));
|
||||||
|
$pathkey = str_replace('_','',$pathkey);
|
||||||
|
$patharr = explode('-',$pathkey);
|
||||||
|
foreach(DB::fetch_all("select catname from %t where cid in(%n)",array('pichome_collectcat',$patharr)) as $v){
|
||||||
|
$position .= '/'.$v['catname'];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
C::t('pichome_collect')->add_filenum_by_clid($clid,$counti);
|
||||||
|
$enventbodydata = ['username'=>getglobal('username'),'filename'=>$filename,'collectname'=>$position,'rids'=>$rids];
|
||||||
|
$enventdata = [
|
||||||
|
'eventbody' =>'collectfile' ,
|
||||||
|
'uid' => getglobal('uid'),
|
||||||
|
'username' => getglobal('username'),
|
||||||
|
'bodydata' => json_encode($enventbodydata),
|
||||||
|
'clid' =>$clid,
|
||||||
|
'cid' =>$cid ? $cid:0,
|
||||||
|
'do' => 'collect_file',
|
||||||
|
'do_obj' =>$filename,
|
||||||
|
'dateline'=>TIMESTAMP
|
||||||
|
];
|
||||||
|
C::t('pichome_collectevent')->insert($enventdata);
|
||||||
|
}
|
||||||
|
$this->update_collect_thumb($clid);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function delete_by_rids($rids,$uid,$username){
|
||||||
|
if(!$rids) $rids = (array)$rids;
|
||||||
|
if(empty($rids)) return true;
|
||||||
|
$clids = [];
|
||||||
|
foreach(DB::fetch_all("select * from %t where rid in(%n)",array($this->_table,$rids)) as $v){
|
||||||
|
$clids[$v['clid']][] = $v['id'];
|
||||||
|
}
|
||||||
|
foreach ($clids as $k=>$val){
|
||||||
|
$clid = $k;
|
||||||
|
$counti = 0;
|
||||||
|
$rids = [];
|
||||||
|
foreach(DB::fetch_all("select rid,id,cid,clid from %t where id in(%n)",array($this->_table,$val)) as $v){
|
||||||
|
$rids[] = $v['rid'];
|
||||||
|
if($this->delete($v['id'])){
|
||||||
|
$counti += 1;
|
||||||
|
if($v['cid'])C::t('pichome_collectcat')->add_filenum_by_cid($v['cid'],-1);
|
||||||
|
if($v['clid'])C::t('pichome_collect')->add_filenum_by_clid($v['clid'],-1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$position = DB::result_first("select name from %t where clid = %d",array('pichome_collect',$clid));
|
||||||
|
$namesarr = [];
|
||||||
|
foreach(DB::fetch_all("select name from %t where rid in(%n) limit 0,5",array('pichome_resources',$rids)) as $v){
|
||||||
|
$namesarr[] = $v['name'];
|
||||||
|
}
|
||||||
|
$filename = implode(',',$namesarr).'等'.$counti.'个文件';
|
||||||
|
$enventbodydata = ['username'=>getglobal('username'),'filename'=>$filename,'collectname'=>$position,'rid'=>$rids];
|
||||||
|
$enventdata = [
|
||||||
|
'eventbody' =>'canclecollectfile' ,
|
||||||
|
'uid' => $uid,
|
||||||
|
'username' => $username,
|
||||||
|
'bodydata' => json_encode($enventbodydata),
|
||||||
|
'clid' =>$clid,
|
||||||
|
'cid' =>0,
|
||||||
|
'do' => 'cancle_collectfile',
|
||||||
|
'do_obj' =>$filename,
|
||||||
|
'dateline'=>TIMESTAMP
|
||||||
|
];
|
||||||
|
C::t('pichome_collectevent')->insert($enventdata);
|
||||||
|
$this->update_collect_thumb($clid);
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -19,6 +19,8 @@
|
|||||||
foreach(DB::fetch_all("select fid from %t where appid = %s",array($this->_table,$appid)) as $v){
|
foreach(DB::fetch_all("select fid from %t where appid = %s",array($this->_table,$appid)) as $v){
|
||||||
$fids[] = $v['fid'];
|
$fids[] = $v['fid'];
|
||||||
}
|
}
|
||||||
|
$hookdata = ['appid'=>$appid];
|
||||||
|
Hook::listen("delpichomefolderafter",$hookdata);
|
||||||
return parent::delete($fids);
|
return parent::delete($fids);
|
||||||
}
|
}
|
||||||
//插入和更新目录数据
|
//插入和更新目录数据
|
||||||
@@ -53,6 +55,17 @@
|
|||||||
}
|
}
|
||||||
return $folderarr;
|
return $folderarr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function insert_data($setarr){
|
||||||
|
$fid = $setarr['fid'];
|
||||||
|
if($fname = DB::result_first("select count(*) from %t where fid = %s",array($this->_table,$setarr['fid']))){
|
||||||
|
unset($setarr['fid']);
|
||||||
|
parent::update($fid,$setarr);
|
||||||
|
}else{
|
||||||
|
parent::insert($setarr);
|
||||||
|
}
|
||||||
|
return $fid;
|
||||||
|
}
|
||||||
//检查目录是否包含密码,多个目录时,只有都包含密码才视为包含密码
|
//检查目录是否包含密码,多个目录时,只有都包含密码才视为包含密码
|
||||||
public function check_haspasswrod($folderids,$appid){
|
public function check_haspasswrod($folderids,$appid){
|
||||||
$haspassword = 0;
|
$haspassword = 0;
|
||||||
@@ -109,7 +122,7 @@
|
|||||||
|
|
||||||
$folderdata = [];
|
$folderdata = [];
|
||||||
if(!empty($pfid)){
|
if(!empty($pfid)){
|
||||||
foreach(DB::fetch_all("select fid,fname,pathkey,appid,pfid,filenum as nosubfilenum from %t where appid = %s and pfid in(%n)",array($this->_table,$appid,$pfid)) as $v){
|
foreach(DB::fetch_all("select fid,fname,pathkey,appid,pfid,filenum as nosubfilenum from %t where appid = %s and pfid in(%n) order by disp asc",array($this->_table,$appid,$pfid)) as $v){
|
||||||
$v['filenum'] = DB::result_first("SELECT count(DISTINCT fr.rid) FROM %t fr
|
$v['filenum'] = DB::result_first("SELECT count(DISTINCT fr.rid) FROM %t fr
|
||||||
left join %t f on fr.fid = f.fid
|
left join %t f on fr.fid = f.fid
|
||||||
where fr.appid = %s and f.pathkey like %s",array('pichome_folderresources','pichome_folder',$appid,$v['pathkey'].'%'));
|
where fr.appid = %s and f.pathkey like %s",array('pichome_folderresources','pichome_folder',$appid,$v['pathkey'].'%'));
|
||||||
@@ -118,7 +131,7 @@
|
|||||||
|
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
foreach(DB::fetch_all("select fid,fname,pathkey,appid,pfid,filenum as nosubfilenum from %t where appid = %s and pfid = ''",array($this->_table,$appid)) as $v){
|
foreach(DB::fetch_all("select fid,fname,pathkey,appid,pfid,filenum as nosubfilenum from %t where appid = %s and pfid = '' order by disp asc",array($this->_table,$appid)) as $v){
|
||||||
$v['filenum'] = DB::result_first("SELECT count(DISTINCT fr.rid) FROM %t fr
|
$v['filenum'] = DB::result_first("SELECT count(DISTINCT fr.rid) FROM %t fr
|
||||||
left join %t f on fr.fid = f.fid
|
left join %t f on fr.fid = f.fid
|
||||||
where fr.appid = %s and f.pathkey like %s",array('pichome_folderresources','pichome_folder',$appid,$v['pathkey'].'%'));
|
where fr.appid = %s and f.pathkey like %s",array('pichome_folderresources','pichome_folder',$appid,$v['pathkey'].'%'));
|
||||||
@@ -150,4 +163,22 @@
|
|||||||
return $folderdata;
|
return $folderdata;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function createfidbyappid($appid){
|
||||||
|
$fid = random(13).$appid;
|
||||||
|
if(DB::result_first("select count(fid) from %t where fid = %s and appid = %s",array($this->_table,$fid,$appid))){
|
||||||
|
$fid = $this->createfidbyappid($appid);
|
||||||
|
}
|
||||||
|
return $fid;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function delete_by_fids($fids){
|
||||||
|
if(!is_array($fids)) $fids = (array)$fids;
|
||||||
|
if(!empty($fids)){
|
||||||
|
DB::delete('pichome_folderresources',"fid in (".dimplode($fids).")");
|
||||||
|
parent::delete($fids);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -29,12 +29,13 @@ class table_pichome_resources extends dzz_table
|
|||||||
|
|
||||||
public function delete_by_appid($appid)
|
public function delete_by_appid($appid)
|
||||||
{
|
{
|
||||||
|
$data = C::t('pichome_vapp')->fetch($appid);
|
||||||
//$i = 0;
|
//$i = 0;
|
||||||
$rids = [];
|
$rids = [];
|
||||||
foreach (DB::fetch_all("select rid from %t where appid = %s limit 0,1000", array($this->_table, $appid)) as $v) {
|
foreach (DB::fetch_all("select rid from %t where appid = %s limit 0,100", array($this->_table, $appid)) as $v) {
|
||||||
$rids[] = $v['rid'];
|
$rids[] = $v['rid'];
|
||||||
}
|
}
|
||||||
if ($rids) $this->delete_by_rid($rids);
|
if ($rids) $this->delete_by_rid($rids, $data['deluid'], $data['delusername']);
|
||||||
//return $i;
|
//return $i;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -44,7 +45,7 @@ class table_pichome_resources extends dzz_table
|
|||||||
return DB::result_first("select * from %t where path = %s", array($this->_table, $path));
|
return DB::result_first("select * from %t where path = %s", array($this->_table, $path));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function delete_by_rid($rids)
|
public function delete_by_rid($rids, $uid = 0, $username = '')
|
||||||
{
|
{
|
||||||
if (!is_array($rids)) $rids = (array)$rids;
|
if (!is_array($rids)) $rids = (array)$rids;
|
||||||
C::t('pichome_resources_attr')->delete_by_rid($rids);
|
C::t('pichome_resources_attr')->delete_by_rid($rids);
|
||||||
@@ -55,9 +56,13 @@ class table_pichome_resources extends dzz_table
|
|||||||
C::t('pichome_share')->delete_by_rid($rids);
|
C::t('pichome_share')->delete_by_rid($rids);
|
||||||
C::t('pichome_ffmpeg_record')->delete($rids);
|
C::t('pichome_ffmpeg_record')->delete($rids);
|
||||||
C::t('pichome_imagickrecord')->delete($rids);
|
C::t('pichome_imagickrecord')->delete($rids);
|
||||||
|
$deldata = ['rids' => $rids, 'deluid' => $uid, 'delusername' => $username];
|
||||||
|
Hook::listen('pichomedatadeleteafter', $deldata);
|
||||||
|
|
||||||
return $this->delete($rids);
|
return $this->delete($rids);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public function fetch_by_rids($rids)
|
public function fetch_by_rids($rids)
|
||||||
{
|
{
|
||||||
global $Opentype;
|
global $Opentype;
|
||||||
@@ -130,6 +135,7 @@ class table_pichome_resources extends dzz_table
|
|||||||
//获取所有库分享和下载权限
|
//获取所有库分享和下载权限
|
||||||
$downshare = C::t('pichome_vapp')->fetch_all_sharedownlod();
|
$downshare = C::t('pichome_vapp')->fetch_all_sharedownlod();
|
||||||
$attrdata = C::t('pichome_resources_attr')->fetch($rid);
|
$attrdata = C::t('pichome_resources_attr')->fetch($rid);
|
||||||
|
if ($attrdata['desc']) $attrdata['desc'] = strip_tags($attrdata['desc']);
|
||||||
$resourcesdata = array_merge($resourcesdata, $attrdata);
|
$resourcesdata = array_merge($resourcesdata, $attrdata);
|
||||||
$resourcesdata['colors'] = C::t('pichome_palette')->fetch_colordata_by_rid($rid);
|
$resourcesdata['colors'] = C::t('pichome_palette')->fetch_colordata_by_rid($rid);
|
||||||
$resourcesdata['ext'] = strtolower($resourcesdata['ext']);
|
$resourcesdata['ext'] = strtolower($resourcesdata['ext']);
|
||||||
@@ -144,86 +150,37 @@ class table_pichome_resources extends dzz_table
|
|||||||
} else {
|
} else {
|
||||||
$resourcesdata['opentype'] = 'other';
|
$resourcesdata['opentype'] = 'other';
|
||||||
}
|
}
|
||||||
if ($resourcesdata['hasthumb']) {
|
$resourcesdata['icondata'] = getglobal('siteurl') . 'index.php?mod=io&op=getImg&path=' . dzzencode($rid, '', 0, 0);
|
||||||
//如果是本地文件
|
|
||||||
if ($resourcesdata['apptype'] == 1) {
|
|
||||||
$filename = 'pichomethumb' . BS . $resourcesdata['appid'] . BS . md5($resourcesdata['path']) . '.jpg';
|
|
||||||
|
|
||||||
$thumbpath = getglobal('setting/attachurl') . $filename;
|
$thumbwidth = getglobal('config/pichomethumbwidth') ? getglobal('config/pichomethumbwidth') : 900;
|
||||||
//echo $thumbpath;die;
|
$thumbheight = getglobal('config/pichomethumbheight') ? getglobal('config/pichomethumbheight') : 900;
|
||||||
$resourcesdata['icondata'] = str_replace('+', '%20', urlencode($thumbpath));
|
$thumsizearr = $this->getImageThumbsize($resourcesdata['width'], $resourcesdata['height'], $thumbwidth, $thumbheight);
|
||||||
|
$resourcesdata['iconwidth'] = $thumsizearr[0];
|
||||||
} elseif ($resourcesdata['apptype'] == 0) {
|
$resourcesdata['iconheight'] = $thumsizearr[1];
|
||||||
$resourcesdata['path'] = str_replace('\\', '/', $resourcesdata['path']);
|
|
||||||
$filepath = dirname($resourcesdata['path']);
|
|
||||||
$filename = substr($resourcesdata['path'], strrpos($resourcesdata['path'], '/') + 1);
|
|
||||||
$filename = str_replace(strrchr($filename, "."), "", $filename);
|
|
||||||
$filepath = str_replace('/', BS, $filepath);
|
|
||||||
if ($downshare[$resourcesdata['appid']]['iswebsitefile']) {
|
|
||||||
$tmppath = str_replace(DZZ_ROOT, '', $downshare[$resourcesdata['appid']]['path']);
|
|
||||||
$thumbpath = $tmppath . BS . $filepath . BS . $filename . '_thumbnail.png';
|
|
||||||
$resourcesdata['icondata'] = str_replace('+', '%20', urlencode($thumbpath));
|
|
||||||
} else {
|
|
||||||
$tmppath = $downshare[$resourcesdata['appid']]['path'];
|
|
||||||
$thumbpath = $tmppath . BS . $filepath . BS . $filename . '_thumbnail.png';
|
|
||||||
$resourcesdata['icondata'] = getglobal('siteurl') . 'index.php?mod=io&op=getImg&path=' . dzzencode($thumbpath, '', 0, 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
} else {
|
|
||||||
|
|
||||||
$hookdata = ['rid' => $resourcesdata['rid'], 'apppath' => $downshare[$resourcesdata['appid']]['path'], 'appid' => $resourcesdata['appid']];
|
|
||||||
$return = Hook::listen('getpichomethumb', $hookdata);
|
|
||||||
$thumbpath = str_replace(DZZ_ROOT, '', $return[0]['icon']);
|
|
||||||
if ($downshare[$resourcesdata['appid']]['iswebsitefile']){
|
|
||||||
$resourcesdata['icondata'] = str_replace('+', '%20', urlencode($thumbpath));
|
|
||||||
}else{
|
|
||||||
$resourcesdata['icondata'] = getglobal('siteurl') . 'index.php?mod=io&op=getImg&path=' . dzzencode($thumbpath, '', 0, 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
//}
|
|
||||||
} else {
|
|
||||||
if ($resourcesdata['type'] == 'commonimage') {
|
|
||||||
if ($downshare[$resourcesdata['appid']]['iswebsitefile']) {
|
|
||||||
$tmppath = str_replace(DZZ_ROOT, '', $downshare[$resourcesdata['appid']]['path']);
|
|
||||||
$thumbpath = $tmppath . BS . $resourcesdata['path'];
|
|
||||||
$thumbpath = str_replace(BS, '/', $thumbpath);
|
|
||||||
$resourcesdata['icondata'] = str_replace('+', '%20', urlencode($thumbpath));
|
|
||||||
} else {
|
|
||||||
$tmppath = $downshare[$resourcesdata['appid']]['path'];
|
|
||||||
$resourcesdata['icondata'] = getglobal('siteurl') . 'index.php?mod=io&op=getImg&path=' . dzzencode($tmppath, '', 0, 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
} else {
|
|
||||||
$resourcesdata['icondata'] = geticonfromext($resourcesdata['ext'], $resourcesdata['type']);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
//echo $resourcesdata['icondata'];die;
|
//echo $resourcesdata['icondata'];die;
|
||||||
$imginfo = @getimagesize($resourcesdata['icondata']);
|
//$imginfo = @getimagesize($resourcesdata['icondata']);
|
||||||
$resourcesdata['iconwidth'] = $imginfo[0] ? $imginfo[0] : $resourcesdata['width'];
|
// $resourcesdata['iconwidth'] = $imginfo[0] ? $imginfo[0] : $resourcesdata['width'];
|
||||||
$resourcesdata['iconheight'] = $imginfo[1] ? $imginfo[1] : $resourcesdata['height'];
|
//$resourcesdata['iconheight'] = $imginfo[1] ? $imginfo[1] : $resourcesdata['height'];
|
||||||
$resourcesdata['icondata'] = str_replace('+', '%20', $resourcesdata['icondata']);
|
$resourcesdata['icondata'] = str_replace('+', '%20', $resourcesdata['icondata']);
|
||||||
|
|
||||||
|
|
||||||
$resourcesdata['share'] = $downshare[$resourcesdata['appid']]['share'];
|
$resourcesdata['share'] = $downshare[$resourcesdata['appid']]['share'];
|
||||||
$resourcesdata['download'] = $downshare[$resourcesdata['appid']]['download'];
|
$resourcesdata['download'] = $downshare[$resourcesdata['appid']]['download'];
|
||||||
if ($downshare[$resourcesdata['appid']]['iswebsitefile']) {
|
/* if ($downshare[$resourcesdata['appid']]['iswebsitefile']) {
|
||||||
$originalimg = str_replace(DZZ_ROOT, '', $downshare[$resourcesdata['appid']]['path'] . BS . $resourcesdata['path']);
|
$originalimg = str_replace(DZZ_ROOT, '', $downshare[$resourcesdata['appid']]['path'] . BS . $resourcesdata['path']);
|
||||||
$originalimg = str_replace(BS, '/', $originalimg);
|
$originalimg = str_replace(BS, '/', $originalimg);
|
||||||
$resourcesdata['originalimg'] = str_replace('+', '%20', urlencode($originalimg));
|
$resourcesdata['originalimg'] = str_replace('+', '%20', urlencode($originalimg));
|
||||||
$resourcesdata['realpath'] = str_replace('+', '%20', urlencode($originalimg));
|
$resourcesdata['realpath'] = str_replace('+', '%20', urlencode($originalimg));
|
||||||
} else {
|
} else {*/
|
||||||
$originalimg = $downshare[$resourcesdata['appid']]['path'] . BS . $resourcesdata['path'];
|
$originalimg = $downshare[$resourcesdata['appid']]['path'] . BS . $resourcesdata['path'];
|
||||||
$resourcesdata['originalimg'] = getglobal('siteurl') . 'index.php?mod=io&op=getImg&path=' . dzzencode($originalimg, '', 0, 0);
|
$resourcesdata['originalimg'] = getglobal('siteurl') . 'index.php?mod=io&op=getImg&fpath=' . dzzencode($originalimg, '', 0, 0);
|
||||||
if (in_array($resourcesdata['opentype'], array('text', 'video', 'pdf'))) {
|
if (in_array($resourcesdata['opentype'], array('text', 'video', 'pdf'))) {
|
||||||
$resourcesdata['realpath'] = str_replace('+', '', urlencode(getglobal('siteurl') . 'index.php?mod=io&op=getImg&path=' . dzzencode($originalimg, '', 0, 0)));
|
$resourcesdata['realpath'] = str_replace('+', '', urlencode(getglobal('siteurl') . 'index.php?mod=io&op=getImg&fpath=' . dzzencode($originalimg, '', 0, 0)));
|
||||||
} else {
|
} else {
|
||||||
$resourcesdata['realpath'] = getglobal('siteurl') . 'index.php?mod=io&op=getImg&path=' . dzzencode($originalimg, '', 0, 0);
|
$resourcesdata['realpath'] = getglobal('siteurl') . 'index.php?mod=io&op=getImg&fpath=' . dzzencode($originalimg, '', 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
//}
|
||||||
|
|
||||||
$resourcesdata['name'] = str_replace(strrchr($resourcesdata['name'], "."), "", $resourcesdata['name']);
|
$resourcesdata['name'] = str_replace(strrchr($resourcesdata['name'], "."), "", $resourcesdata['name']);
|
||||||
$resourcesdata['fsize'] = formatsize($resourcesdata['size']);
|
$resourcesdata['fsize'] = formatsize($resourcesdata['size']);
|
||||||
@@ -234,7 +191,7 @@ class table_pichome_resources extends dzz_table
|
|||||||
$resourcesdata['foldernames'] = C::t('pichome_folderresources')->get_foldername_by_rid($rid);
|
$resourcesdata['foldernames'] = C::t('pichome_folderresources')->get_foldername_by_rid($rid);
|
||||||
$resourcesdata['tag'] = C::t('pichome_resourcestag')->fetch_tag_by_rid($rid);
|
$resourcesdata['tag'] = C::t('pichome_resourcestag')->fetch_tag_by_rid($rid);
|
||||||
$resourcesdata['dpath'] = dzzencode($rid, '', 0, 0);
|
$resourcesdata['dpath'] = dzzencode($rid, '', 0, 0);
|
||||||
//print_r($resourcesdata);die;
|
|
||||||
|
|
||||||
return $resourcesdata;
|
return $resourcesdata;
|
||||||
}
|
}
|
||||||
@@ -255,66 +212,16 @@ class table_pichome_resources extends dzz_table
|
|||||||
$v['annonationnum'] = $annonationnumdata[$v['rid']]['num'];
|
$v['annonationnum'] = $annonationnumdata[$v['rid']]['num'];
|
||||||
$v['share'] = $downshare[$v['appid']]['share'];
|
$v['share'] = $downshare[$v['appid']]['share'];
|
||||||
$v['download'] = $downshare[$v['appid']]['download'];
|
$v['download'] = $downshare[$v['appid']]['download'];
|
||||||
if ($v['hasthumb']) {
|
|
||||||
//如果是本地文件
|
|
||||||
if ($downshare[$v['appid']]['type'] == 1) {
|
|
||||||
$filename = 'pichomethumb' . BS . $v['appid'] . BS . md5($v['path']) . '.jpg';
|
|
||||||
$thumbpath = getglobal('setting/attachurl') . $filename;
|
|
||||||
$v['icondata'] = str_replace('+', '%20', urlencode($thumbpath));
|
|
||||||
} elseif ($downshare[$v['appid']]['type'] == 0) {
|
|
||||||
$v['path'] = str_replace('\\', '/', $v['path']);
|
|
||||||
$filepath = dirname($v['path']);
|
|
||||||
$filename = substr($v['path'], strrpos($v['path'], '/') + 1);
|
|
||||||
$filepath = str_replace('/', BS, $filepath);
|
|
||||||
$filename = str_replace(strrchr($filename, "."), "", $filename);
|
|
||||||
$filepath = str_replace('/', BS, $filepath);
|
|
||||||
if ($downshare[$v['appid']]['iswebsitefile']) {
|
|
||||||
$tmppath = str_replace(DZZ_ROOT, '', $downshare[$v['appid']]['path']);
|
|
||||||
$thumbpath = $tmppath . BS . $filepath . BS . $filename . '_thumbnail.png';
|
|
||||||
$v['icondata'] = str_replace('+', '%20', urlencode($thumbpath));
|
|
||||||
} else {
|
|
||||||
$tmppath = $downshare[$v['appid']]['path'];
|
|
||||||
$thumbpath = $tmppath . BS . $filepath . BS . $filename . '_thumbnail.png';
|
|
||||||
$v['icondata'] = getglobal('siteurl') . 'index.php?mod=io&op=getImg&path=' . dzzencode($thumbpath);
|
|
||||||
}
|
|
||||||
|
|
||||||
} else {
|
$v['icondata'] = getglobal('siteurl') . 'index.php?mod=io&op=getImg&path=' . dzzencode($v['rid'], '', 0, 0);
|
||||||
$hookdata = ['rid' => $v['rid'], 'apppath' => $downshare[$v['appid']]['path'], 'appid' => $v['appid']];
|
$thumbwidth = getglobal('config/pichomethumbwidth') ? getglobal('config/pichomethumbwidth') : 900;
|
||||||
$return = Hook::listen('getpichomethumb', $hookdata);
|
$thumbheight = getglobal('config/pichomethumbheight') ? getglobal('config/pichomethumbheight') : 900;
|
||||||
$thumbpath = str_replace(DZZ_ROOT, '', $return[0]['icon']);
|
$thumsizearr = $this->getImageThumbsize($v['width'], $v['height'], $thumbwidth, $thumbheight);
|
||||||
if ($downshare[$v['appid']]['iswebsitefile']){
|
$v['thumbwidth'] = $thumsizearr[0];
|
||||||
$v['icondata'] = str_replace('+', '%20', urlencode($thumbpath));
|
$v['thumbheight'] = $thumsizearr[1];
|
||||||
}else{
|
|
||||||
$v['icondata'] = getglobal('siteurl') . 'index.php?mod=io&op=getImg&path=' . dzzencode($thumbpath, '', 0, 0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
} else {
|
|
||||||
if ($v['type'] == 'commonimage') {
|
|
||||||
if ($downshare[$v['appid']]['iswebsitefile']) {
|
|
||||||
$tmppath = str_replace(DZZ_ROOT, '', $downshare[$v['appid']]['path']);
|
|
||||||
$thumbpath = $tmppath . BS . $v['path'];
|
|
||||||
$thumbpath = str_replace(BS,'/',$thumbpath);
|
|
||||||
$v['icondata'] = str_replace('+', '%20', urlencode($thumbpath));
|
|
||||||
} else {
|
|
||||||
$tmppath = $downshare[$v['appid']]['path'] . BS . $v['path'];
|
|
||||||
$v['icondata'] = getglobal('siteurl') . 'index.php?mod=io&op=getImg&path=' . dzzencode($tmppath, '', 0, 0);
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
$v['icondata'] = geticonfromext($v['ext'], $v['type']);
|
|
||||||
$v['width'] = 128;
|
|
||||||
$v['height'] = 128;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
//文件真实地址
|
|
||||||
if ($downshare[$v['appid']]['iswebsitefile']) {
|
|
||||||
$originalimg = str_replace(DZZ_ROOT, '', $downshare[$v['appid']]['path'] . BS . $v['path']);
|
|
||||||
$originalimg = str_replace(BS, '/', $originalimg);
|
|
||||||
$v['realpath'] = str_replace('+', '%20', urlencode($originalimg));
|
|
||||||
} else {
|
|
||||||
$originalimg = $downshare[$v['appid']]['path'] . BS . $v['path'];
|
$originalimg = $downshare[$v['appid']]['path'] . BS . $v['path'];
|
||||||
$v['realpath'] = getglobal('siteurl') . 'index.php?mod=io&op=getImg&path=' . dzzencode($originalimg, '', 0, 0);
|
$v['realpath'] = getglobal('siteurl') . 'index.php?mod=io&op=getImg&fpath=' . dzzencode($originalimg, '', 0, 0);
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
unset($v['path']);
|
unset($v['path']);
|
||||||
@@ -323,60 +230,54 @@ class table_pichome_resources extends dzz_table
|
|||||||
return $returndata;
|
return $returndata;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getImageThumbsize($owidth, $oheight, $width, $height)
|
||||||
|
{
|
||||||
|
if ($owidth > $width || $oheight > $height) {
|
||||||
|
$or = $owidth / $oheight;
|
||||||
|
$r = $width / $height;
|
||||||
|
if ($r > $or) {
|
||||||
|
if ($oheight < $height) {
|
||||||
|
$height = $oheight;
|
||||||
|
$width = $owidth;
|
||||||
|
} else {
|
||||||
|
|
||||||
|
$width = ceil($height * $or);
|
||||||
|
if ($width < 242) {
|
||||||
|
$width = 242;
|
||||||
|
$height = ceil($width / $or);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
} else {
|
||||||
|
if ($owidth < $width) {
|
||||||
|
$height = $oheight;
|
||||||
|
$width = $owidth;
|
||||||
|
} else {
|
||||||
|
$height = ceil($width / $or);
|
||||||
|
$width = ceil($height * $or);
|
||||||
|
if ($width < 242) {
|
||||||
|
$width = 242;
|
||||||
|
$height = ceil($width / $or);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
} else {
|
||||||
|
$width = $owidth;
|
||||||
|
$height = $oheight;
|
||||||
|
}
|
||||||
|
//Return the results
|
||||||
|
return array($width, $height);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
public function geticondata_by_rid($rid)
|
public function geticondata_by_rid($rid)
|
||||||
{
|
{
|
||||||
$resourcesdata = DB::fetch_first("select r.rid,r.appid,r.hasthumb,r.ext,r.type,ra.path as fpath,
|
$resourcesdata = DB::fetch_first("select r.rid,r.appid,r.hasthumb,r.ext,r.type,ra.path as fpath,
|
||||||
v.path,r.apptype,v.iswebsitefile from %t r
|
v.path,r.apptype,v.iswebsitefile,v.version from %t r
|
||||||
left join %t ra on r.rid=ra.rid left join %t v on r.appid = v.appid where r.rid = %s and r.isdelete = 0",
|
left join %t ra on r.rid=ra.rid left join %t v on r.appid = v.appid where r.rid = %s and r.isdelete = 0",
|
||||||
array($this->_table, 'pichome_resources_attr', 'pichome_vapp', $rid));
|
array($this->_table, 'pichome_resources_attr', 'pichome_vapp', $rid));
|
||||||
if ($resourcesdata['hasthumb']) {
|
$resourcesdata['icondata'] = getglobal('siteurl') . 'index.php?mod=io&op=getImg&path=' . dzzencode($rid, '', 0, 0);
|
||||||
//如果是本地文件
|
|
||||||
if ($resourcesdata['apptype'] == 1) {
|
|
||||||
$filename = 'pichomethumb' . BS . $resourcesdata['appid'] . BS . md5($resourcesdata['fpath']) . '.jpg';
|
|
||||||
$thumbpath = getglobal('setting/attachurl') . $filename;
|
|
||||||
$resourcesdata['icondata'] = str_replace('+', '%20', urlencode($thumbpath));
|
|
||||||
} elseif($resourcesdata['apptype'] == 0){
|
|
||||||
$resourcesdata['fpath'] = str_replace('\\', '/', $resourcesdata['fpath']);
|
|
||||||
$filepath = dirname($resourcesdata['fpath']);
|
|
||||||
$filename = substr($resourcesdata['fpath'], strrpos($resourcesdata['fpath'], '/') + 1);
|
|
||||||
$filename = str_replace(strrchr($filename, "."), "", $filename);
|
|
||||||
$filepath = str_replace('/', BS, $filepath);
|
|
||||||
if ($resourcesdata['iswebsitefile']) {
|
|
||||||
$tmppath = str_replace(DZZ_ROOT, '', $resourcesdata['path']);
|
|
||||||
$thumbpath = $tmppath . BS . $filepath . BS . $filename . '_thumbnail.png';
|
|
||||||
$resourcesdata['icondata'] = str_replace('+', '%20', urlencode($thumbpath));
|
|
||||||
} else {
|
|
||||||
$tmppath = $resourcesdata['path'];
|
|
||||||
$thumbpath = $tmppath . BS . $filepath . BS . $filename . '_thumbnail.png';
|
|
||||||
$resourcesdata['icondata'] = getglobal('siteurl') . 'index.php?mod=io&op=getImg&path=' . dzzencode($thumbpath, '', 0, 0);
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
$hookdata = ['rid' => $resourcesdata['rid'], 'apppath' => $resourcesdata['path'], 'appid' => $resourcesdata['appid']];
|
|
||||||
$return = Hook::listen('getpichomethumb', $hookdata);
|
|
||||||
$thumbpath = str_replace(DZZ_ROOT, '', $return[0]['icon']);
|
|
||||||
if ($resourcesdata['iswebsitefile']){
|
|
||||||
$resourcesdata['icondata'] = str_replace('+', '%20', urlencode($thumbpath));
|
|
||||||
}else{
|
|
||||||
$resourcesdata['icondata'] = getglobal('siteurl') . 'index.php?mod=io&op=getImg&path=' . dzzencode($thumbpath, '', 0, 0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
if ($resourcesdata['type'] == 'commonimage') {
|
|
||||||
if ($resourcesdata['iswebsitefile']) {
|
|
||||||
$tmppath = str_replace(DZZ_ROOT, '', $resourcesdata['path']);
|
|
||||||
$thumbpath = $tmppath . BS . $resourcesdata['fpath'];
|
|
||||||
$thumbpath = str_replace(BS, '/', $thumbpath);
|
|
||||||
$resourcesdata['icondata'] = str_replace('+', '%20', urlencode($thumbpath));
|
|
||||||
} else {
|
|
||||||
$tmppath = $resourcesdata['path'];
|
|
||||||
$resourcesdata['icondata'] = getglobal('siteurl') . 'index.php?mod=io&op=getImg&path=' . dzzencode($tmppath, '', 0, 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
} else {
|
|
||||||
$resourcesdata['icondata'] = geticonfromext($resourcesdata['ext'], $resourcesdata['type']);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
return $resourcesdata;
|
return $resourcesdata;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -99,8 +99,9 @@
|
|||||||
if(is_dir(getglobal('setting/attachdir').'pichomethumb/'.$appid)){
|
if(is_dir(getglobal('setting/attachdir').'pichomethumb/'.$appid)){
|
||||||
removedirectory(getglobal('setting/attachdir').'pichomethumb/'.$appid);
|
removedirectory(getglobal('setting/attachdir').'pichomethumb/'.$appid);
|
||||||
}
|
}
|
||||||
if($appdata['type'] > 1){
|
if($appdata['type'] !== 1){
|
||||||
Hook::listen('pichomevappdelete',$appid);
|
$hookdata = ['appid'=>$appid,'apptype'=>$appdata['type']];
|
||||||
|
Hook::listen('pichomevappdelete',$hookdata);
|
||||||
}
|
}
|
||||||
return parent::delete($appid);
|
return parent::delete($appid);
|
||||||
}
|
}
|
||||||
@@ -114,4 +115,20 @@
|
|||||||
}
|
}
|
||||||
return $downshare;
|
return $downshare;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function add_getinfonum_by_appid($appid,$ceof = 1){
|
||||||
|
$appdata = C::t('pichome_vapp')->fetch($appid);
|
||||||
|
if($ceof < 0){
|
||||||
|
if($appdata['getinfonum'] == 0) return true;
|
||||||
|
elseif($appdata['getinfonum'] < abs($ceof))$ceof = -$appdata['getinfonum'];
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($ceof > 0) {
|
||||||
|
DB::query("update %t set getinfonum=getinfonum+%d where appid = %s", array($this->_table, $ceof, $appid));
|
||||||
|
} else {
|
||||||
|
DB::query("update %t set getinfonum=getinfonum-%d where appid = %s", array($this->_table, abs($ceof), $appid));
|
||||||
|
}
|
||||||
|
$this->clear_cache($appid);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -11,8 +11,8 @@ if(!defined('IN_OAOOA')) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(!defined('CORE_VERSION')) {
|
if(!defined('CORE_VERSION')) {
|
||||||
define('CORE_VERSION', 'beta3.1');
|
define('CORE_VERSION', 'beta3.3');
|
||||||
define('CORE_VERSION_LEVEL', 'Pichome');
|
define('CORE_VERSION_LEVEL', 'Pichome');
|
||||||
define('CORE_RELEASE', '20211220');
|
define('CORE_RELEASE', '20220224');
|
||||||
define('CORE_FIXBUG' , '03100000');
|
define('CORE_FIXBUG' , '03300000');
|
||||||
}
|
}
|
||||||
@@ -31,7 +31,7 @@ class billfishxport
|
|||||||
private $donum = 0;
|
private $donum = 0;
|
||||||
private $lastid = '';
|
private $lastid = '';
|
||||||
private $charset = 'UTF-8';
|
private $charset = 'UTF-8';
|
||||||
private $allowext = '';
|
private $version = '';
|
||||||
private $notallowext = '';
|
private $notallowext = '';
|
||||||
private $db = null;
|
private $db = null;
|
||||||
|
|
||||||
@@ -47,6 +47,7 @@ class billfishxport
|
|||||||
$this->donum = $data['donum'];
|
$this->donum = $data['donum'];
|
||||||
$this->filenum = $data['filenum'];
|
$this->filenum = $data['filenum'];
|
||||||
$this->lastid = $data['lastid'];
|
$this->lastid = $data['lastid'];
|
||||||
|
$this->version = $data['version'];
|
||||||
if ($data['charset']) $this->charset = $data['charset'];
|
if ($data['charset']) $this->charset = $data['charset'];
|
||||||
//尝试连接数据库
|
//尝试连接数据库
|
||||||
$connect = $this->connect_db();
|
$connect = $this->connect_db();
|
||||||
@@ -85,9 +86,30 @@ class billfishxport
|
|||||||
public function initExport()
|
public function initExport()
|
||||||
{
|
{
|
||||||
//修改导入状态为1
|
//修改导入状态为1
|
||||||
C::t('pichome_vapp')->update($this->appid, array('state' => 1));
|
|
||||||
|
$versionsql = " SELECT version from library where 1";
|
||||||
|
$versions = $this->fetch($versionsql);
|
||||||
|
$this->version = $versions['version'];
|
||||||
|
C::t('pichome_vapp')->update($this->appid, array('state' => 1,'version'=>intval($this->version)));
|
||||||
|
if($this->version >= 30){
|
||||||
//查询res_join_tag是否有文件id索引
|
//查询res_join_tag是否有文件id索引
|
||||||
$fecthsql = "SELECT * FROM sqlite_master WHERE type = 'index';";
|
$fecthsql = "SELECT * FROM sqlite_master WHERE type = 'index'";
|
||||||
|
$indexdata = $this->fetch_all($fecthsql);
|
||||||
|
$indexarr = array_column($indexdata,'name');
|
||||||
|
//如果标签表iid没有索引创建res_join_tag_iid_idx索引
|
||||||
|
if(!in_array('res_join_tag_id',$indexarr)){
|
||||||
|
$createsql = "CREATE INDEX res_join_tag_id ON bf_tag_join_file (tag_id ASC )";
|
||||||
|
$this->db->query($createsql);
|
||||||
|
}
|
||||||
|
|
||||||
|
//查询待导入文件数
|
||||||
|
// $sql = "select count(f.id) as num from bf_file f left join bf_material m on f.id = m.file_id where m.is_recycle =0 ";
|
||||||
|
$sql = "select count(id) as num from bf_file where 1";
|
||||||
|
$data = $this->fetch($sql);
|
||||||
|
$this->filenum = $data['num'];
|
||||||
|
}else{
|
||||||
|
//查询res_join_tag是否有文件id索引
|
||||||
|
$fecthsql = "SELECT * FROM sqlite_master WHERE type = 'index'";
|
||||||
$indexdata = $this->fetch_all($fecthsql);
|
$indexdata = $this->fetch_all($fecthsql);
|
||||||
$indexarr = array_column($indexdata,'name');
|
$indexarr = array_column($indexdata,'name');
|
||||||
//如果标签表iid没有索引创建res_join_tag_iid_idx索引
|
//如果标签表iid没有索引创建res_join_tag_iid_idx索引
|
||||||
@@ -97,9 +119,11 @@ class billfishxport
|
|||||||
}
|
}
|
||||||
|
|
||||||
//查询待导入文件数
|
//查询待导入文件数
|
||||||
$sql = "select count(s.id) as num from source s left join res_prop rp on s.id = rp.iid where rp.action =0 ";
|
//$sql = "select count(s.id) as num from source s left join res_prop rp on s.id = rp.iid where rp.action =0 ";
|
||||||
|
$sql = "select count(id) as num from source where 1 ";
|
||||||
$data = $this->fetch($sql);
|
$data = $this->fetch($sql);
|
||||||
$this->filenum = $data['num'];
|
$this->filenum = $data['num'];
|
||||||
|
}
|
||||||
//如果没有数据,视为导入成功
|
//如果没有数据,视为导入成功
|
||||||
if (!$this->filenum) {
|
if (!$this->filenum) {
|
||||||
C::t('pichome_vapp')->update($this->appid, array('state' => 4));
|
C::t('pichome_vapp')->update($this->appid, array('state' => 4));
|
||||||
@@ -109,8 +133,283 @@ class billfishxport
|
|||||||
return array('success' => true);
|
return array('success' => true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//获取文件可访问的真实地址
|
||||||
|
public function getFileRealFileName($filepath,$filename){
|
||||||
|
$charsetarr = ['GBK','GB18030'];
|
||||||
|
$returnname = $filename;
|
||||||
|
if(!is_file($filepath.BS.$filename)){
|
||||||
|
foreach ($charsetarr as $v){
|
||||||
|
$filemetadataname = diconv($filename, CHARSET, $v);
|
||||||
|
if(is_file($filepath.BS.$filemetadataname)){
|
||||||
|
$returnname = $filemetadataname;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return $returnname;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
public function execExport($force = false)
|
public function execExport($force = false)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
if($this->version < 30){
|
||||||
|
$this->oldexport($force);
|
||||||
|
}else{
|
||||||
|
$this->export($force);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
public function export($force = false){
|
||||||
|
//开始页数
|
||||||
|
if ($this->lastid) {
|
||||||
|
$start = $this->lastid;
|
||||||
|
} else $start = 1;
|
||||||
|
$lastid = $start;
|
||||||
|
$start = ($start-1)*$this->onceexportnum;
|
||||||
|
$sql = "select f.*,m.w,m.h,m.is_recycle,m.thumb_tid,mu.comments_detail,mu.note,mu.score,mu.origin from bf_file f
|
||||||
|
left join bf_material m on m.file_id = f.id
|
||||||
|
left join bf_material_userdata mu on mu.file_id=f.id
|
||||||
|
where 1 limit $start,$this->onceexportnum";
|
||||||
|
$datas = $this->fetch_all($sql);
|
||||||
|
|
||||||
|
foreach ($datas as $v) {
|
||||||
|
//查询文件是否在回收站
|
||||||
|
$id = $v['id'];//文件id
|
||||||
|
$rid = md5($this->appid . $id);
|
||||||
|
|
||||||
|
//如果文件在回收站
|
||||||
|
if ($v['is_recycle'] > 0) {
|
||||||
|
//如果已经有数据,标记为已删除
|
||||||
|
if (DB::fetch_first("select count(rid) from %t where rid = %s", array('pichome_resources', $rid))) {
|
||||||
|
C::t('pichome_resources')->update($rid, array('isdelete' => 1));
|
||||||
|
}
|
||||||
|
//文件总数减1
|
||||||
|
$this->filenum -= 1;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
//获取文件后缀
|
||||||
|
$ext = strtolower(substr(strrchr($v['name'], '.'), 1));
|
||||||
|
//获取文件类型
|
||||||
|
$type = getTypeByExt($ext);
|
||||||
|
|
||||||
|
//出入主表数据
|
||||||
|
$setarr = [
|
||||||
|
'rid' => $rid,
|
||||||
|
'uid'=>$this->uid,
|
||||||
|
'username'=>$this->username,
|
||||||
|
'appid' => $this->appid,
|
||||||
|
'ext' => $ext,
|
||||||
|
'type' => $type,
|
||||||
|
'name' => $v['name'],
|
||||||
|
'mtime' => ($v['mtime']) ? $v['mtime'] * 1000 : $v['born'] * 1000,
|
||||||
|
'dateline' => $v['ctime'] ? $v['ctime'] * 1000:$v['born']*1000,
|
||||||
|
'btime' => $v['born'] ? $v['born']*1000:$v['mtime'] * 1000,
|
||||||
|
'size' => $v['file_size'],
|
||||||
|
'width' => $v['w'],
|
||||||
|
'height' => $v['h'],
|
||||||
|
'grade' => $v['score'],
|
||||||
|
'apptype' => 2,
|
||||||
|
'hasthumb' => $v['thumb_tid'] ? 1 : 0,
|
||||||
|
'thumb' => $v['thumb']
|
||||||
|
];
|
||||||
|
|
||||||
|
//数据插入主表
|
||||||
|
if (C::t('#billfish#billfish_record')->inser_data($v['id'], $setarr)) {
|
||||||
|
//定义属性表变量
|
||||||
|
$attrdata = [];
|
||||||
|
$attrdata['desc'] = $v['note'];
|
||||||
|
$attrdata['link'] = $v['origin'];
|
||||||
|
//将名字记入搜索字段
|
||||||
|
$attrdata['searchval'] = $setarr['name'].$attrdata['desc'].$attrdata['link'];
|
||||||
|
//处理目录数据
|
||||||
|
if ($v['pid']) {
|
||||||
|
$folderdata = $this->getFolderfid($v['pid']);
|
||||||
|
//处理目录数据
|
||||||
|
$fid = $folderdata['fid'];
|
||||||
|
$folderarr = [
|
||||||
|
'fid' => $fid,
|
||||||
|
'appid' => $this->appid,
|
||||||
|
'rid' => $rid
|
||||||
|
];
|
||||||
|
C::t('pichome_folderresources')->insert($folderarr);
|
||||||
|
$attrdata['path'] = $folderdata['dirpath'] . BS . $setarr['name'];
|
||||||
|
} else {
|
||||||
|
$attrdata['path'] = $setarr['name'];
|
||||||
|
}
|
||||||
|
//目录数据处理完成
|
||||||
|
$attrdata['path'] = $this->getFileRealFileName($this->path,$attrdata['path']);
|
||||||
|
//转码路径 记入属性表
|
||||||
|
//$p = new Encode_Core();
|
||||||
|
//$this->charset = $p->get_encoding($attrdata['path']);
|
||||||
|
//if (CHARSET != $this->charset) $attrdata['path'] = diconv($attrdata['path'],CHARSET, $this->charset);;
|
||||||
|
|
||||||
|
//标签数据开始
|
||||||
|
|
||||||
|
//查询文件标签id
|
||||||
|
|
||||||
|
$sql = "select tag_id from bf_tag_join_file where file_id = $id";//耗时最多
|
||||||
|
$tiddata = $this->fetch_all($sql);
|
||||||
|
|
||||||
|
$tids = [];
|
||||||
|
foreach ($tiddata as $val) {
|
||||||
|
$tids[] = $val['tag_id'];
|
||||||
|
}
|
||||||
|
if (!empty($tids)) {
|
||||||
|
$tidstr = dimplode($tids);
|
||||||
|
//查询标签分类数据
|
||||||
|
$sql = "select jg.gid,g.name from bf_tag_join_group jg
|
||||||
|
left join bf_tag_group g on g.id = jg.gid
|
||||||
|
where jg.tag_id in($tidstr) group by jg.gid";
|
||||||
|
$taggroupdata = $this->fetch_all($sql);
|
||||||
|
$relationgroupdata = [];
|
||||||
|
//插入标签分类关系表及pichome分类返回原分类id对应pichome标签分类id
|
||||||
|
foreach ($taggroupdata as $val) {
|
||||||
|
$tmpreturn = C::t('#billfish#billfish_taggrouprecord')->insert_data($val, $this->appid);
|
||||||
|
$relationgroupdata[$tmpreturn['bcid']] = $tmpreturn['cid'];
|
||||||
|
}
|
||||||
|
//处理标签表数据
|
||||||
|
//查询标签名称,id 插入标签对照表 返回原标签id对应pichome标签id 将标签加入searchval
|
||||||
|
$sql = " select t.id,t.name,j.gid from bf_tag t
|
||||||
|
left join bf_tag_join_group j on j.tag_id = t.id where t.id in($tidstr)";
|
||||||
|
$tagdata = $this->fetch_all($sql);
|
||||||
|
$tagrelativedata = [];
|
||||||
|
$taggroups =[];
|
||||||
|
foreach ($tagdata as $val) {
|
||||||
|
$tagsetarr = ['name' => $val['name'], 'lid' => $val['id']];
|
||||||
|
$tmptagrelativedata = C::t('#billfish#billfish_tagrecord')->insert_data($tagsetarr, $this->appid);
|
||||||
|
$tagrelativedata[$tmptagrelativedata['lid']] = $tmptagrelativedata['tid'];
|
||||||
|
$attrdata['searchval'] .= $val['name'];
|
||||||
|
if($val['gid']) $taggroups[] = ['gid'=>$val['gid'],'lid'=>$val['id']];
|
||||||
|
}
|
||||||
|
|
||||||
|
//处理标签与分类关系数据 查询原标签分类和标签id 插入pichome标签分类对应标签id
|
||||||
|
//$sql = "select gid,lid from tag_join_group where lid in($tidstr)";
|
||||||
|
//$taggroups = $this->fetch_all($sql);
|
||||||
|
foreach ($taggroups as $val) {
|
||||||
|
$tagrelarr = [
|
||||||
|
'tid' => $tagrelativedata[$val['lid']],
|
||||||
|
'cid' => $relationgroupdata[$val['gid']],
|
||||||
|
'appid' => $this->appid,
|
||||||
|
];
|
||||||
|
C::t('pichome_tagrelation')->insert($tagrelarr);
|
||||||
|
}
|
||||||
|
//处理标签文件关系数据
|
||||||
|
$inserttids = $ftids = array_values($tagrelativedata);
|
||||||
|
//查询pichome是否有标签数据
|
||||||
|
$oattrtag = DB::result_first("select tag from %t where rid = %s", array('pichome_resources_attr', $rid));
|
||||||
|
if ($oattrtag) {
|
||||||
|
$ottids = explode(',', $oattrtag);
|
||||||
|
//取得删除的标签
|
||||||
|
$deltids = array_diff($ftids, $ottids);
|
||||||
|
if (!empty($deltids)) C::t('pichome_resourcestag')->delete_by_ridtid($rid, $deltids);
|
||||||
|
//取得插入的标签
|
||||||
|
$inserttids = $deltids = array_diff($ottids, $ftids);
|
||||||
|
}
|
||||||
|
//插入标签关系表
|
||||||
|
foreach ($inserttids as $val) {
|
||||||
|
$tagresourcesattr = ['tid' => $val, 'rid' => $rid, 'appid' => $this->appid];
|
||||||
|
C::t('pichome_resourcestag')->insert($tagresourcesattr);
|
||||||
|
}
|
||||||
|
//更新属性表标签数据
|
||||||
|
$attrdata['tag'] = implode(',', $ftids);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
//标签数据结束
|
||||||
|
|
||||||
|
//开始处理颜色数据
|
||||||
|
//查询颜色数据
|
||||||
|
$sql = "select * from bf_material_color where file_id = $id";
|
||||||
|
$bcolordata = $this->fetch_all($sql);
|
||||||
|
//删除原颜色数据
|
||||||
|
DB::delete('pichome_palette', array('rid' => $rid));
|
||||||
|
foreach ($bcolordata as $val) {
|
||||||
|
$colorarr = ['rid' => $rid,
|
||||||
|
'color' => $val['color'],
|
||||||
|
'weight' => $val['precent'],
|
||||||
|
'r' => $val['r'],
|
||||||
|
'g' => $val['g'],
|
||||||
|
'b' => $val['b']
|
||||||
|
];
|
||||||
|
C::t('pichome_palette')->insert($colorarr);
|
||||||
|
}
|
||||||
|
|
||||||
|
//颜色数据处理结束
|
||||||
|
|
||||||
|
|
||||||
|
//处理标注数据
|
||||||
|
|
||||||
|
//删除原标注数据
|
||||||
|
C::t('pichome_comments')->delete_by_rid($rid);
|
||||||
|
if ($v['comments_detail']) {
|
||||||
|
$commentdata = json_decode($v['comments_detail'],true);
|
||||||
|
foreach ($commentdata as $commentval) {
|
||||||
|
$tcommentval['id'] = random(13) . $this->appid;
|
||||||
|
$tentval['appid'] = $this->appid;
|
||||||
|
$tcommentval['rid'] = $rid;
|
||||||
|
$tcommentval['x'] = number_format($commentval['x'], 2);
|
||||||
|
$tcommentval['y'] = number_format($commentval['y'], 2);
|
||||||
|
$tcommentval['width'] = number_format($commentval['cx'], 2);
|
||||||
|
$tcommentval['height'] = number_format($commentval['cy'], 2);
|
||||||
|
$tcommentval['annotation'] = $commentval['comment'];
|
||||||
|
try {
|
||||||
|
C::t('pichome_comments')->insert($tcommentval);
|
||||||
|
$setarr['searchval'] .= $tcommentval['annotation'];
|
||||||
|
} catch (Exception $e) {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
//标注数据处理结束
|
||||||
|
|
||||||
|
//处理音视频时长数据
|
||||||
|
//查询音频时长
|
||||||
|
$sql = "select duration from bf_material_video where file_id = $id";
|
||||||
|
$videodata = $this->fetch($sql);
|
||||||
|
if(isset($videodata['duration'])) $attrdata['duration'] = $videodata['duration'];
|
||||||
|
//查询视频时长
|
||||||
|
$sql = "select duration from bf_material_audio where file_id = $id";
|
||||||
|
$audiodata = $this->fetch($sql);
|
||||||
|
if(isset($audiodata['duration'])) $attrdata['duration'] = $audiodata['duration'];
|
||||||
|
//时长处理结束
|
||||||
|
|
||||||
|
//插入属性表数据
|
||||||
|
$attrdata['rid'] = $rid;
|
||||||
|
$attrdata['appid'] = $this->appid;
|
||||||
|
C::t('pichome_resources_attr')->insert($attrdata);
|
||||||
|
$this->donum += 1;
|
||||||
|
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
//文件总数减1
|
||||||
|
$this->filenum -= 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//导入百分比
|
||||||
|
$percent = floor(($this->donum / $this->filenum) * 100);
|
||||||
|
$percent = ($percent > 100) ? 100 : $percent;
|
||||||
|
$state = ($percent >= 100) ? 3 : 2;
|
||||||
|
if ($state == 3) {
|
||||||
|
$lastid = 0;
|
||||||
|
}
|
||||||
|
//记录导入起始位置,以备中断后从此处,更改导入状态
|
||||||
|
C::t('pichome_vapp')->update($this->appid, array('percent' => $percent, 'donum' => $this->donum, 'state' => $state));
|
||||||
|
|
||||||
|
}
|
||||||
|
if($state == 2){
|
||||||
|
$lastid = $lastid+1;
|
||||||
|
C::t('pichome_vapp')->update($this->appid,array('lastid' => $lastid));
|
||||||
|
}
|
||||||
|
|
||||||
|
return array('success' => true);
|
||||||
|
}
|
||||||
|
public function oldexport($force = false){
|
||||||
//开始页数
|
//开始页数
|
||||||
if ($this->lastid) {
|
if ($this->lastid) {
|
||||||
$start = $this->lastid;
|
$start = $this->lastid;
|
||||||
@@ -168,8 +467,9 @@ class billfishxport
|
|||||||
//定义属性表变量
|
//定义属性表变量
|
||||||
$attrdata = [];
|
$attrdata = [];
|
||||||
$attrdata['desc'] = $v['note'];
|
$attrdata['desc'] = $v['note'];
|
||||||
|
$attrdata['link'] = $v['origin'];
|
||||||
//将名字记入搜索字段
|
//将名字记入搜索字段
|
||||||
$attrdata['searchval'] = $setarr['name'].$attrdata['desc'];
|
$attrdata['searchval'] = $setarr['name'].$attrdata['desc'].$attrdata['link'];
|
||||||
//处理目录数据
|
//处理目录数据
|
||||||
if ($v['fid']) {
|
if ($v['fid']) {
|
||||||
$folderdata = $this->getFolderfid($v['fid']);
|
$folderdata = $this->getFolderfid($v['fid']);
|
||||||
@@ -186,9 +486,11 @@ class billfishxport
|
|||||||
$attrdata['path'] = $setarr['name'];
|
$attrdata['path'] = $setarr['name'];
|
||||||
}
|
}
|
||||||
//目录数据处理完成
|
//目录数据处理完成
|
||||||
|
$attrdata['path'] = $this->getFileRealFileName($this->path,$attrdata['path']);
|
||||||
//转码路径 记入属性表
|
//转码路径 记入属性表
|
||||||
if (CHARSET != $this->charset) $attrdata['path'] = diconv($attrdata['path'],CHARSET, $this->charset);;
|
//$p = new Encode_Core();
|
||||||
|
//$this->charset = $p->get_encoding($attrdata['path']);
|
||||||
|
//if (CHARSET != $this->charset) $attrdata['path'] = diconv($attrdata['path'],CHARSET, $this->charset);;
|
||||||
|
|
||||||
//标签数据开始
|
//标签数据开始
|
||||||
|
|
||||||
@@ -342,13 +644,12 @@ class billfishxport
|
|||||||
if ($state == 3) {
|
if ($state == 3) {
|
||||||
$lastid = 0;
|
$lastid = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
//记录导入起始位置,以备中断后从此处,更改导入状态
|
//记录导入起始位置,以备中断后从此处,更改导入状态
|
||||||
C::t('pichome_vapp')->update($this->appid, array('percent' => $percent, 'donum' => $this->donum, 'state' => $state));
|
C::t('pichome_vapp')->update($this->appid, array('percent' => $percent, 'donum' => $this->donum, 'state' => $state));
|
||||||
}
|
}
|
||||||
$time4= microtime(true);
|
|
||||||
|
|
||||||
$lastid = $lastid+1;
|
$lastid = $lastid+1;
|
||||||
|
|
||||||
C::t('pichome_vapp')->update($this->appid,array('lastid' => $lastid));
|
C::t('pichome_vapp')->update($this->appid,array('lastid' => $lastid));
|
||||||
return array('success' => true);
|
return array('success' => true);
|
||||||
|
|
||||||
@@ -357,8 +658,12 @@ class billfishxport
|
|||||||
public function getFolderfid($bfid, $dirpath = '')
|
public function getFolderfid($bfid, $dirpath = '')
|
||||||
{
|
{
|
||||||
$parentfolderdata = [];
|
$parentfolderdata = [];
|
||||||
|
if($this->version < 30){
|
||||||
$sql = "select * from folder where id = $bfid";
|
$sql = "select * from folder where id = $bfid";
|
||||||
|
}else{
|
||||||
|
$sql = "select * from bf_folder where id = $bfid";
|
||||||
|
}
|
||||||
|
|
||||||
$folderdata = $this->fetch($sql);
|
$folderdata = $this->fetch($sql);
|
||||||
$dirpath = $folderdata['name'] . ($dirpath ? BS . $dirpath : '');
|
$dirpath = $folderdata['name'] . ($dirpath ? BS . $dirpath : '');
|
||||||
if ($folderdata['pid']) {
|
if ($folderdata['pid']) {
|
||||||
@@ -369,7 +674,8 @@ class billfishxport
|
|||||||
$setarr = [
|
$setarr = [
|
||||||
'pfid' => isset($parentfolderdata['fid']) ? $parentfolderdata['fid'] : '',
|
'pfid' => isset($parentfolderdata['fid']) ? $parentfolderdata['fid'] : '',
|
||||||
'fname' => $folderdata['name'],
|
'fname' => $folderdata['name'],
|
||||||
'appid' => $this->appid
|
'appid' => $this->appid,
|
||||||
|
'disp'=>($this->version < 30) ? $folderdata['seq']:round($folderdata['seq']*1000000000)
|
||||||
];
|
];
|
||||||
$return = C::t('#billfish#billfish_folderrecord')->insert_data($bfid, $setarr);
|
$return = C::t('#billfish#billfish_folderrecord')->insert_data($bfid, $setarr);
|
||||||
$return['dirpath'] = $dirpath;
|
$return['dirpath'] = $dirpath;
|
||||||
@@ -406,9 +712,15 @@ class billfishxport
|
|||||||
//检查不存在的标签删除
|
//检查不存在的标签删除
|
||||||
$tagtotal = DB::result_first("select count(id) from %t where appid = %s",array('billfish_tagrecord',$this->appid));
|
$tagtotal = DB::result_first("select count(id) from %t where appid = %s",array('billfish_tagrecord',$this->appid));
|
||||||
$this->check_notexists_tag($tagtotal);
|
$this->check_notexists_tag($tagtotal);
|
||||||
|
if($this->version < 30){
|
||||||
//删除创建的索引
|
//删除创建的索引
|
||||||
$sql = 'DROP INDEX res_join_tag_iid';
|
$sql = 'DROP INDEX res_join_tag_iid';
|
||||||
$this->db->query($sql);
|
$this->db->query($sql);
|
||||||
|
}else{
|
||||||
|
$sql = 'DROP INDEX res_join_tag_id';
|
||||||
|
$this->db->query($sql);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
$hascatnum = DB::result_first("SELECT count(DISTINCT rid) FROM %t where appid = %s",array('pichome_folderresources',$this->appid));
|
$hascatnum = DB::result_first("SELECT count(DISTINCT rid) FROM %t where appid = %s",array('pichome_folderresources',$this->appid));
|
||||||
$nosubfilenum = $total - $hascatnum;
|
$nosubfilenum = $total - $hascatnum;
|
||||||
@@ -418,8 +730,14 @@ class billfishxport
|
|||||||
foreach ($data as $v) {
|
foreach ($data as $v) {
|
||||||
$rid = $v['rid'];
|
$rid = $v['rid'];
|
||||||
$iid = DB::result_first("select bid from %t where rid = %s and appid = %s",array('billfish_record',$rid,$this->appid));
|
$iid = DB::result_first("select bid from %t where rid = %s and appid = %s",array('billfish_record',$rid,$this->appid));
|
||||||
|
|
||||||
|
if($this->version < 30){
|
||||||
|
$sql = "select count(s.id) as num from source s left join res_prop rp on s.id = rp.iid where rp.action =0 and s.id = $iid";
|
||||||
|
}else{
|
||||||
//查询billfish中是否有该数据
|
//查询billfish中是否有该数据
|
||||||
$sql = "select count(*) as num from source where id = $iid";
|
$sql = "select count(f.id) as num from bf_file f left join bf_material m on f.id = m.file_id where m.is_recycle =0 and f.id = $iid";
|
||||||
|
}
|
||||||
|
|
||||||
$numdata = $this->fetch($sql);
|
$numdata = $this->fetch($sql);
|
||||||
if(!isset($numdata['num']) || !$numdata['num']){
|
if(!isset($numdata['num']) || !$numdata['num']){
|
||||||
$delrids[] = $rid;
|
$delrids[] = $rid;
|
||||||
@@ -448,7 +766,6 @@ class billfishxport
|
|||||||
}
|
}
|
||||||
//检查目录数据
|
//检查目录数据
|
||||||
public function check_notexists_folder($total){
|
public function check_notexists_folder($total){
|
||||||
|
|
||||||
$tmpkey = 'pichomecheckfolder' . $this->appid;
|
$tmpkey = 'pichomecheckfolder' . $this->appid;
|
||||||
$folderstart = C::t('cache')->fetch($tmpkey);
|
$folderstart = C::t('cache')->fetch($tmpkey);
|
||||||
if (!$folderstart) {
|
if (!$folderstart) {
|
||||||
@@ -467,8 +784,13 @@ class billfishxport
|
|||||||
}
|
}
|
||||||
|
|
||||||
$bfidstr = dimplode($bfids);
|
$bfidstr = dimplode($bfids);
|
||||||
//查询不存的目录
|
if($this->version < 30){
|
||||||
$sql = "select id from folder where id in($bfidstr)";
|
$sql = "select id from folder where id in($bfidstr)";
|
||||||
|
}else{
|
||||||
|
$sql = "select id from bf_folder where id in($bfidstr)";
|
||||||
|
}
|
||||||
|
//查询不存的目录
|
||||||
|
|
||||||
$bfolder = $this->fetch_all($sql);
|
$bfolder = $this->fetch_all($sql);
|
||||||
$blfids = [];
|
$blfids = [];
|
||||||
foreach ($bfolder as $val){
|
foreach ($bfolder as $val){
|
||||||
@@ -506,7 +828,10 @@ class billfishxport
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
$lidstr = dimplode(',',$lids);
|
$lidstr = dimplode(',',$lids);
|
||||||
|
if($this->version < 30){
|
||||||
$sql = "select id from tag where id in($lidstr)";
|
$sql = "select id from tag where id in($lidstr)";
|
||||||
|
}
|
||||||
|
else $sql = "select id from bf_tag where id in($lidstr)";
|
||||||
$blids =[] ;
|
$blids =[] ;
|
||||||
foreach($this->fetch_all($sql) as $v){
|
foreach($this->fetch_all($sql) as $v){
|
||||||
$blids[] = $v['id'];
|
$blids[] = $v['id'];
|
||||||
|
|||||||
18
dzz/billfish/classes/delpichomefolderafter.php
Normal file
18
dzz/billfish/classes/delpichomefolderafter.php
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace dzz\billfish\classes;
|
||||||
|
|
||||||
|
use \core as C;
|
||||||
|
use \DB as DB;
|
||||||
|
use \fmpeg as fmpeg;
|
||||||
|
|
||||||
|
class delpichomefolderafter
|
||||||
|
{
|
||||||
|
|
||||||
|
public function run($appid)
|
||||||
|
{
|
||||||
|
C::t("#billfish#billfish_folderrecord")->delete_by_appid($appid);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
@@ -11,8 +11,19 @@ class getpichomethumb
|
|||||||
|
|
||||||
public function run(&$data)
|
public function run(&$data)
|
||||||
{
|
{
|
||||||
|
|
||||||
$thumbid = DB::result_first("select thumb from %t where appid = %s and rid = %s", array('billfish_record', $data['appid'], $data['rid']));
|
$thumbid = DB::result_first("select thumb from %t where appid = %s and rid = %s", array('billfish_record', $data['appid'], $data['rid']));
|
||||||
|
if(isset($data['version']) && $data['version'] >=30){
|
||||||
|
$bid = DB::result_first("select bid from %t where rid = %s",array('billfish_record',$data['rid']));
|
||||||
|
$thumbdir = dechex($bid);
|
||||||
|
$thumbdir = (string) $thumbdir;
|
||||||
|
if(strlen($thumbdir) < 2){
|
||||||
|
$thumbdir =str_pad($thumbdir,2,0,STR_PAD_LEFT);
|
||||||
|
}elseif(strlen($thumbdir) > 2){
|
||||||
|
$thumbdir = substr($thumbdir,-2);
|
||||||
|
}
|
||||||
|
$pathdir = $data['apppath'].BS.'.bf'.BS.'.preview'.BS.$thumbdir.BS.$bid.'.small.webp';
|
||||||
|
return array('icon'=>$pathdir);
|
||||||
|
}else{
|
||||||
if (strlen($thumbid) < 9) {
|
if (strlen($thumbid) < 9) {
|
||||||
$thumbid = str_pad($thumbid,9,0,STR_PAD_LEFT);
|
$thumbid = str_pad($thumbid,9,0,STR_PAD_LEFT);
|
||||||
}
|
}
|
||||||
@@ -23,6 +34,8 @@ class getpichomethumb
|
|||||||
return array('icon'=>$pathdir.BS.$thumbpath.BS.$thumbid.'.webp');
|
return array('icon'=>$pathdir.BS.$thumbpath.BS.$thumbid.'.webp');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
function mbStrSplit ($string, $len=1) {
|
function mbStrSplit ($string, $len=1) {
|
||||||
$start = 0;
|
$start = 0;
|
||||||
$strlen = mb_strlen($string);
|
$strlen = mb_strlen($string);
|
||||||
|
|||||||
@@ -9,12 +9,15 @@ use \fmpeg as fmpeg;
|
|||||||
class pichomevappdelete
|
class pichomevappdelete
|
||||||
{
|
{
|
||||||
|
|
||||||
public function run($appid)
|
public function run($data)
|
||||||
{
|
{
|
||||||
C::t("#billfish#billfish_record")->delete_by_appid($appid);
|
if($data['type'] == 2){
|
||||||
C::t("#billfish#billfish_folderrecord")->delete_by_appid($appid);
|
C::t("#billfish#billfish_record")->delete_by_appid($data['appid']);
|
||||||
C::t("#billfish#billfish_tagrecord")->delete_by_appid($appid);
|
C::t("#billfish#billfish_folderrecord")->delete_by_appid($data['appid']);
|
||||||
C::t("#billfish#billfish_taggrouprecord")->delete_by_appid($appid);
|
C::t("#billfish#billfish_tagrecord")->delete_by_appid($data['appid']);
|
||||||
|
C::t("#billfish#billfish_taggrouprecord")->delete_by_appid($data['appid']);
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -85,7 +85,7 @@ class Encode_Core {
|
|||||||
$ary[] = "JIS";//日文编码
|
$ary[] = "JIS";//日文编码
|
||||||
$ary[] = "EUC-JP";//日文编码
|
$ary[] = "EUC-JP";//日文编码
|
||||||
$encoding= self::detect_utf_encoding($str);
|
$encoding= self::detect_utf_encoding($str);
|
||||||
if(empty($encoding) && self::is_gb2312($str)) return 'GBK';
|
//if(empty($encoding) && self::is_GBK($str)) return 'GBK';
|
||||||
if(empty($encoding)){
|
if(empty($encoding)){
|
||||||
$encoding=mb_detect_encoding($str,$ary);
|
$encoding=mb_detect_encoding($str,$ary);
|
||||||
}
|
}
|
||||||
|
|||||||
700
dzz/eagle/class/class_eagleexport.php
Normal file
700
dzz/eagle/class/class_eagleexport.php
Normal file
@@ -0,0 +1,700 @@
|
|||||||
|
<?php
|
||||||
|
if (!defined('IN_OAOOA')) {
|
||||||
|
exit('Access Denied');
|
||||||
|
}
|
||||||
|
@set_time_limit(0);
|
||||||
|
@ini_set('max_execution_time', 0);
|
||||||
|
require_once(DZZ_ROOT . './dzz/class/class_encode.php');
|
||||||
|
require_once './core/class/class_Color.php';
|
||||||
|
require_once libfile('function/user', '', 'user');
|
||||||
|
|
||||||
|
class eagleexport
|
||||||
|
{
|
||||||
|
private $path = '';//待执行数据path
|
||||||
|
private $appid = 0;//库id
|
||||||
|
private $uid = 0;//用户id
|
||||||
|
private $username = null;//用户名
|
||||||
|
private $filenum = 0;//总文件数
|
||||||
|
private $checkpage = 1;
|
||||||
|
private $checklimit = 1000;
|
||||||
|
private $onceexportnum = 1000;
|
||||||
|
private $checknum = 0;
|
||||||
|
private $eagledir = DZZ_ROOT . 'library';
|
||||||
|
private $readtxt = DZZ_ROOT . './data/attachment/cache/';
|
||||||
|
private $exportstatus = 0;
|
||||||
|
private $donum = 0;
|
||||||
|
private $lastid = '';
|
||||||
|
|
||||||
|
public function __construct($data = array())
|
||||||
|
{
|
||||||
|
//获取导入记录表基本数据
|
||||||
|
$this->path = str_replace('/', BS, $data['path']);;
|
||||||
|
$this->appid = $data['appid'];
|
||||||
|
$this->uid = $data['uid'];
|
||||||
|
$this->username = $data['username'];
|
||||||
|
$this->exportstatus = $data['state'];
|
||||||
|
$this->donum = $data['donum'];
|
||||||
|
$this->filenum = $data['filenum'];
|
||||||
|
$this->lastid = $data['lastid'];
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getpathdata($folderdata, $appid, $pathdata = array())
|
||||||
|
{
|
||||||
|
foreach ($folderdata as $v) {
|
||||||
|
$pathdata[$v['id'] . $appid] = $v['name'];
|
||||||
|
if ($v['children']) {
|
||||||
|
$tmpchild = $v['children'];
|
||||||
|
$pathdata = $this->getpathdata($tmpchild, $appid, $pathdata);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return $pathdata;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function initFoldertag()
|
||||||
|
{
|
||||||
|
$jsonfile = $this->path . BS . 'metadata.json';
|
||||||
|
$mtime = filemtime($jsonfile);
|
||||||
|
$appdatas = file_get_contents($jsonfile);
|
||||||
|
//解析出json数据
|
||||||
|
$appdatas = json_decode($appdatas, true);
|
||||||
|
|
||||||
|
//目录数据
|
||||||
|
$folderdata = $appdatas['folders'];
|
||||||
|
$efids = C::t('#eagle#eagle_folderrecord')->insert_folderdata_by_appid($this->appid, $folderdata);
|
||||||
|
$delids = DB::fetch_all("select id from %t where efid not in(%n) and appid = %s",array('eagle_folderrecord',$efids,$this->appid));
|
||||||
|
|
||||||
|
//对比目录数据
|
||||||
|
if($delids)C::t('#eagle#eagle_folderrecord')->delete_by_ids($delids);
|
||||||
|
//标签数据
|
||||||
|
$tagdata = $appdatas['tagsGroups'];
|
||||||
|
$currentcids = [];
|
||||||
|
$tids = [];
|
||||||
|
|
||||||
|
foreach ($tagdata as $v) {
|
||||||
|
$taggroupdata = [
|
||||||
|
'cid' => $v['id'] . $this->appid,
|
||||||
|
'catname' => $v['name'],
|
||||||
|
'appid' => $this->appid,
|
||||||
|
'dateline' => TIMESTAMP
|
||||||
|
];
|
||||||
|
//插入或更新标签分类数据
|
||||||
|
$cid = C::t('pichome_taggroup')->insert($taggroupdata);
|
||||||
|
$currentcids[] = $cid;
|
||||||
|
foreach ($v['tags'] as $val) {
|
||||||
|
$tid = C::t('pichome_tag')->insert($val, 1);
|
||||||
|
$tids[] = $tid;
|
||||||
|
if ($cid) {
|
||||||
|
$relasetarr = ['cid' => $cid, 'tid' => $tid, 'appid' => $this->appid];
|
||||||
|
C::t('pichome_tagrelation')->insert($relasetarr);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if ($tids) {
|
||||||
|
//查询关系表中包含的不存在的标签关系
|
||||||
|
$drids = [];
|
||||||
|
foreach (DB::fetch_all("select id from %t where tid not in(%n) and appid = %s", array('pichome_tagrelation', $tids, $this->appid)) as $rv) {
|
||||||
|
$drids[] = $rv['id'];
|
||||||
|
}
|
||||||
|
//删除不存在的标签关系数据
|
||||||
|
C::t('pichome_tagrelation')->delete($drids);
|
||||||
|
}
|
||||||
|
$ocids = C::t('pichome_taggroup')->fetch_cid_by_appid($this->appid);
|
||||||
|
$delcids = array_diff($ocids, $currentcids);
|
||||||
|
C::t('pichome_taggroup')->delete_by_cids($delcids);
|
||||||
|
C::t('pichome_vapp')->update($this->appid, array('dateline' => $mtime));
|
||||||
|
return true;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public function initExport()
|
||||||
|
{
|
||||||
|
$filedir = $this->path . BS . 'images';
|
||||||
|
$readtxt = $this->readtxt . 'eagleexport' . md5($this->path) . '.txt';
|
||||||
|
$filenum = 0;
|
||||||
|
if (!is_file($readtxt) || filemtime($readtxt) < filemtime($this->path . BS . 'metadata.json')) {
|
||||||
|
C::t('pichome_vapp')->update($this->appid, array('state' => 1));
|
||||||
|
if ($dch = opendir($filedir)) {
|
||||||
|
$thandle = fopen($readtxt, 'w+');
|
||||||
|
while (($file = readdir($dch)) != false) {
|
||||||
|
if ($file != '.' && $file != '..') {
|
||||||
|
$filePath = $filedir . '/' . $file;
|
||||||
|
if (is_dir($filePath) && is_file($filePath . '/metadata.json')) {
|
||||||
|
$filenum++;
|
||||||
|
fwrite($thandle, $file . "\n");
|
||||||
|
}
|
||||||
|
unset($filePath);
|
||||||
|
unset($file);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
fclose($thandle);
|
||||||
|
closedir($dch);
|
||||||
|
if ($filenum) $this->filenum = $filenum;
|
||||||
|
} else {
|
||||||
|
C::t('pichome_vapp')->update($this->appid, array('state' => 0));
|
||||||
|
return array('error' => 'Read Dir Failer');
|
||||||
|
}
|
||||||
|
|
||||||
|
C::t('pichome_vapp')->update($this->appid, array('filenum' => $this->filenum, 'state' => 2));
|
||||||
|
}
|
||||||
|
C::t('pichome_vapp')->update($this->appid, array('state' => 2));
|
||||||
|
$this->initFoldertag();
|
||||||
|
return array('success' => true);
|
||||||
|
}
|
||||||
|
|
||||||
|
//获取文件可访问的真实地址
|
||||||
|
public function getFileRealFileName($filepath, $filename, $ext)
|
||||||
|
{
|
||||||
|
$charsetarr = ['GBK', 'GB18030'];
|
||||||
|
$returnname = $filename;
|
||||||
|
if (!is_file($filepath . BS . $filename . '.' . $ext)) {
|
||||||
|
foreach ($charsetarr as $v) {
|
||||||
|
$filemetadataname = diconv($filename, CHARSET, $v);
|
||||||
|
if (is_file($filepath . BS . $filemetadataname . '.' . $ext)) {
|
||||||
|
$returnname = $filemetadataname;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return $returnname;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
//生成主键rid
|
||||||
|
public function createrid()
|
||||||
|
{
|
||||||
|
$microtime = microtime();
|
||||||
|
list($msec, $sec) = explode(' ', $microtime);
|
||||||
|
$msec = $msec * 1000000;
|
||||||
|
$idstr = md5($sec . $msec . random(6) . $this->appid);
|
||||||
|
if (DB::result_first("select count(rid) from %t where rid = %s", array('pichome_resources', $idstr))) {
|
||||||
|
$this->create_id();
|
||||||
|
}
|
||||||
|
return $idstr;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function execExport($force = false)
|
||||||
|
{
|
||||||
|
$filedir = $this->path . BS . 'images';
|
||||||
|
$readtxt = $this->readtxt . 'eagleexport' . md5($this->path) . '.txt';
|
||||||
|
if (filesize($readtxt) == 0) {
|
||||||
|
@unlink($readtxt);
|
||||||
|
C::t('pichome_vapp')->update($this->appid, array('lastid' => 0, 'percent' => 100, 'donum' => 0, 'state' => 3, 'filenum' => $this->filenum));
|
||||||
|
return array('success' => true);
|
||||||
|
|
||||||
|
}
|
||||||
|
if ($this->lastid) {
|
||||||
|
$start = $this->lastid;
|
||||||
|
} else $start = 0;
|
||||||
|
$spl_object = new SplFileObject($readtxt, 'rb');
|
||||||
|
$spl_object->seek($start);
|
||||||
|
if ($this->lastid < $this->filenum && $this->exportstatus == 2) {
|
||||||
|
$i = 0;
|
||||||
|
while (is_file($readtxt) && !$spl_object->eof()) {
|
||||||
|
$i++;
|
||||||
|
if ($i > $this->onceexportnum) {
|
||||||
|
break;
|
||||||
|
|
||||||
|
}
|
||||||
|
$file = $spl_object->current();
|
||||||
|
$file = trim($file);
|
||||||
|
$filePath = $filedir . '/' . $file;
|
||||||
|
|
||||||
|
$id = trim(str_replace('.info', '', $file));
|
||||||
|
|
||||||
|
//文件路径
|
||||||
|
$tmppath = $filePath;
|
||||||
|
unset($filePath);
|
||||||
|
//文件信息文件路径
|
||||||
|
$metadatajsonfile = $tmppath . BS . 'metadata.json';
|
||||||
|
//尝试获取记录表记录
|
||||||
|
$rdata = C::t('#eagle#eagle_record')->fetch_by_eid($id,$this->appid);
|
||||||
|
$rid = '';
|
||||||
|
if (!isset($rdata['rid'])) {
|
||||||
|
$orid = $id . $this->appid;//原来rid格式
|
||||||
|
|
||||||
|
if ($lastdate = DB::result_first("select lastdate from %t where rid = %s", array('pichome_resources', $orid))) {
|
||||||
|
$rid = $orid;
|
||||||
|
}
|
||||||
|
|
||||||
|
} else {
|
||||||
|
$rid = $rdata['rid'];
|
||||||
|
$lastdate = $rdata['dateline'];
|
||||||
|
}
|
||||||
|
//判断是否含有数据信息文件
|
||||||
|
if (is_file($metadatajsonfile)) {
|
||||||
|
$flastdate = filemtime($metadatajsonfile);
|
||||||
|
|
||||||
|
$metadata = file_get_contents($metadatajsonfile);
|
||||||
|
$filemetadata = json_decode($metadata, true);
|
||||||
|
//如果是删除状态,并且已有数据则执行删除
|
||||||
|
if ($filemetadata['isDeleted'] && $rid) {
|
||||||
|
C::t('pichome_resources')->delete_by_rid($rid);
|
||||||
|
} else {
|
||||||
|
//如果不是新生成rid
|
||||||
|
if ($rid) {
|
||||||
|
$data = C::t('pichome_resources')->fetch($rid);
|
||||||
|
//判断最后更新时间
|
||||||
|
if ($force || $lastdate < $flastdate) {
|
||||||
|
$filemetadataname = $this->getFileRealFileName($tmppath, $filemetadata['name'], $filemetadata['ext']);
|
||||||
|
//文件名称
|
||||||
|
$filename = $filemetadataname . '.' . $filemetadata['ext'];
|
||||||
|
//缩略图名称
|
||||||
|
$thumbname = $filemetadataname . '_thumbnail.png';
|
||||||
|
//文件路径
|
||||||
|
$file = $tmppath . BS . $filename;
|
||||||
|
//缩略图路径
|
||||||
|
$thumbfile = $tmppath . BS . $thumbname;
|
||||||
|
|
||||||
|
//如果mtime发生变化则删除原数据,重新导入
|
||||||
|
if ($data['mtime'] < $filemetadata['mtime']) {
|
||||||
|
C::t('pichome_resources')->delete_by_rid($rid);
|
||||||
|
$filemetadata['rid'] = $this->createrid();
|
||||||
|
$filemetadata['filename'] = $filemetadata['name'];
|
||||||
|
$filemetadata['file'] = $file;
|
||||||
|
$filemetadata['thumbfile'] = $thumbfile;
|
||||||
|
$filemetadata['rid'] = $rid;
|
||||||
|
$filemetadata['mtime'] = $filemetadata['mtime'] ? $filemetadata['mtime'] : $filemetadata['modificationTime'];
|
||||||
|
$filemetadata['btime'] = $filemetadata['btime'] ? $filemetadata['btime'] : $filemetadata['modificationTime'];
|
||||||
|
$filemetadata['dateline'] = $filemetadata['lastModified'];
|
||||||
|
$filemetadata['lastdate'] = $flastdate;
|
||||||
|
$this->exportfile($id,$filemetadata);
|
||||||
|
unset($filemetadata);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
//信息表数据记录
|
||||||
|
$setarr = [];
|
||||||
|
$setarr['searchval'] = $filemetadata['name'];
|
||||||
|
//查询原数据中的属性信息
|
||||||
|
$attrdata = C::t('pichome_resources_attr')->fetch($rid);
|
||||||
|
$filename = $filemetadata['name'] . '.' . $filemetadata['ext'];
|
||||||
|
//检查reources数据变化
|
||||||
|
$resourcesarr = [
|
||||||
|
'name' => $filename,
|
||||||
|
'dateline' => $filemetadata['lastModified'],
|
||||||
|
'isdelete' => $filemetadata['isDeleted'],
|
||||||
|
'grade' => $filemetadata['star'] ? intval($filemetadata['star']) : 0,
|
||||||
|
'lastdate' => $flastdate
|
||||||
|
];
|
||||||
|
$file = str_replace('/', BS, $file);
|
||||||
|
$attachment = str_replace($this->path . BS, '', $file);
|
||||||
|
$path = str_replace('/', BS, $attachment);
|
||||||
|
$thumb = (is_file($thumbfile)) ? 1 : 0;
|
||||||
|
$setarr['path'] = $path;
|
||||||
|
$resourcesarr['hasthumb'] = $thumb;
|
||||||
|
$resourcesarr['rid'] = $rid;
|
||||||
|
if (C::t('#eagle#eagle_record')->insert_data($id, $resourcesarr)) {
|
||||||
|
//检查标签变化
|
||||||
|
//标签数据
|
||||||
|
$tags = $filemetadata['tags'];
|
||||||
|
$setarr['searchval'] .= implode('', $tags);
|
||||||
|
//现有标签
|
||||||
|
$tagids = [];
|
||||||
|
//原有标签
|
||||||
|
$oldtids = [];
|
||||||
|
if ($attrdata['tag']) $oldtids = explode(',', $attrdata['tag']);
|
||||||
|
|
||||||
|
if (!empty($tags)) {
|
||||||
|
$tagids = $this->addtag($tags);
|
||||||
|
$setarr['tag'] = implode(',', $tagids);
|
||||||
|
}
|
||||||
|
$addtags = array_diff($tagids, $oldtids);
|
||||||
|
$deltags = array_diff($oldtids, $tagids);
|
||||||
|
|
||||||
|
if (!empty($deltags)) C::t('pichome_resourcestag')->delete_by_ridtid($rid, $deltags);
|
||||||
|
foreach ($addtags as $tid) {
|
||||||
|
$rtag = ['appid' => $this->appid, 'rid' => $rid, 'tid' => $tid];
|
||||||
|
C::t('pichome_resourcestag')->insert($rtag);
|
||||||
|
}
|
||||||
|
|
||||||
|
//检查标注变化
|
||||||
|
if (isset($filemetadata['comments'])) {
|
||||||
|
$cids = [];
|
||||||
|
foreach ($filemetadata['comments'] as $commentval) {
|
||||||
|
$tcommentval['id'] = $commentval['id'] . $this->appid;
|
||||||
|
$tcommentval['appid'] = $this->appid;
|
||||||
|
$tcommentval['rid'] = $rid;
|
||||||
|
$tcommentval['x'] = number_format($commentval['x'], 2);
|
||||||
|
$tcommentval['y'] = number_format($commentval['y'], 2);
|
||||||
|
$tcommentval['width'] = $commentval['width'];
|
||||||
|
$tcommentval['height'] = $commentval['height'];
|
||||||
|
$tcommentval['annotation'] = $commentval['annotation'];
|
||||||
|
$tcommentval['lastModified'] = $commentval['lastModified'];
|
||||||
|
try {
|
||||||
|
C::t('pichome_comments')->insert($tcommentval);
|
||||||
|
$setarr['searchval'] .= $tcommentval['annotation'];
|
||||||
|
} catch (Exception $e) {
|
||||||
|
|
||||||
|
}
|
||||||
|
$cids[] = $tcommentval['id'];
|
||||||
|
unset($tcommentval);
|
||||||
|
|
||||||
|
}
|
||||||
|
$ocids = C::t('pichome_comments')->fetch_id_by_rid($rid);
|
||||||
|
$delcids = array_diff($ocids, $cids);
|
||||||
|
if (!empty($delcids)) C::t('pichome_comments')->delete($delcids);
|
||||||
|
} else {
|
||||||
|
C::t('pichome_comments')->delete_by_rid($rid);
|
||||||
|
}
|
||||||
|
|
||||||
|
$rfids = [];
|
||||||
|
$orfids = C::t('pichome_folderresources')->fetch_id_by_rid($rid);
|
||||||
|
C::t('pichome_folderresources')->delete($orfids);
|
||||||
|
$setarr['searchval'] .= $resourcesarr['name'];
|
||||||
|
//$fids = [];
|
||||||
|
if(!empty($filemetadata['folders'])){
|
||||||
|
$realfids = C::t('#eagle#eagle_folderrecord')->fetch_fid_by_efid($filemetadata['folders'],$this->appid);
|
||||||
|
}
|
||||||
|
|
||||||
|
//检查目录变化
|
||||||
|
foreach ($realfids as $fv) {
|
||||||
|
$fid = trim($fv) . $this->appid;
|
||||||
|
if (!C::t('pichome_folder')->check_password_byfid($fid)) {
|
||||||
|
$frsetarr = ['appid' => $this->appid, 'rid' => $rid, 'fid' => $fid];
|
||||||
|
C::t('pichome_folderresources')->insert($frsetarr);
|
||||||
|
// $fids[] = $fid;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//尝试更新属性表数据
|
||||||
|
$setarr['link'] = $filemetadata['url'] ? trim($filemetadata['url']) : '';
|
||||||
|
//描述数据
|
||||||
|
$setarr['desc'] = $filemetadata['annotation'] ? $filemetadata['annotation'] : '';
|
||||||
|
$setarr['searchval'] .= $setarr['desc'] . $setarr['link'];
|
||||||
|
if ($filemetadata['duration']) $setarr['duration'] = number_format($filemetadata['duration'], 2);
|
||||||
|
$setarr['rid'] = $rid;
|
||||||
|
C::t('pichome_resources_attr')->insert($setarr);
|
||||||
|
unset($filemetadata);
|
||||||
|
unset($setarr);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
else{
|
||||||
|
if(!$rdata){
|
||||||
|
$setarr = [
|
||||||
|
'appid'=>$this->appid,
|
||||||
|
'rid'=>$rid,
|
||||||
|
'eid'=>$id,
|
||||||
|
'dateline'=>$flastdate
|
||||||
|
];
|
||||||
|
C::t('#eagle#eagle_record')->insert($setarr);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
} else {
|
||||||
|
if(!empty($filemetadata['folders'])){
|
||||||
|
$realfids = C::t('#eagle#eagle_folderrecord')->fetch_fid_by_efid($filemetadata['folders'],$this->appid);
|
||||||
|
}
|
||||||
|
|
||||||
|
if(!empty($realfids)){
|
||||||
|
//如果目录含有密码则不导入数据直接跳过
|
||||||
|
$haspassword = C::t('pichome_folder')->check_haspasswrod($realfids, $this->appid);
|
||||||
|
}else{
|
||||||
|
$haspassword = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!$haspassword) {
|
||||||
|
$filemetadataname = $this->getFileRealFileName($tmppath, $filemetadata['name'], $filemetadata['ext']);
|
||||||
|
|
||||||
|
$filename = $filemetadataname . '.' . $filemetadata['ext'];
|
||||||
|
$thumbname = $filemetadataname . '_thumbnail.png';
|
||||||
|
//echo $i.'middle:'.memory_get_usage()/1024 . '<br>';
|
||||||
|
$file = $tmppath . BS . $filename;
|
||||||
|
$thumbfile = $tmppath . BS . $thumbname;
|
||||||
|
//$filemd5 = md5_file($file);
|
||||||
|
$filemetadata['filename'] = $filemetadata['name'];
|
||||||
|
$filemetadata['file'] = $file;
|
||||||
|
unset($file);
|
||||||
|
$filemetadata['thumbfile'] = $thumbfile;
|
||||||
|
$filemetadata['folders'] = $realfids;
|
||||||
|
unset($thumbfile);
|
||||||
|
$filemetadata['rid'] = $this->createrid();
|
||||||
|
$filemetadata['mtime'] = $filemetadata['mtime'] ? $filemetadata['mtime'] : $filemetadata['modificationTime'];
|
||||||
|
$filemetadata['btime'] = $filemetadata['btime'] ? $filemetadata['btime'] : $filemetadata['modificationTime'];
|
||||||
|
$filemetadata['dateline'] = $filemetadata['lastModified'];
|
||||||
|
$filemetadata['lastdate'] = $flastdate;
|
||||||
|
|
||||||
|
$this->exportfile($id,$filemetadata);
|
||||||
|
unset($filemetadata);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
//如果已有数据删除,否则不做处理
|
||||||
|
if (!$rid) C::t('pichome_resources')->delete_by_rid($rid);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
$this->donum += 1;
|
||||||
|
$percent = floor(($this->donum / $this->filenum) * 100);
|
||||||
|
//防止因获取文件总个数不准确百分比溢出
|
||||||
|
$percent = ($percent > 100) ? 100 : $percent;
|
||||||
|
$state = ($percent >= 100) ? 3 : 2;
|
||||||
|
if ($state == 3) {
|
||||||
|
$spl_object = false;
|
||||||
|
@unlink($this->readtxt . 'eagleexport' . md5($this->path) . '.txt');
|
||||||
|
$lastid = 0;
|
||||||
|
} else {
|
||||||
|
$lastid = $this->donum;
|
||||||
|
}
|
||||||
|
//记录导入起始位置,以备中断后从此处,更改导入状态为正在导入
|
||||||
|
C::t('pichome_vapp')->update($this->appid, array('lastid' => $lastid, 'percent' => $percent, 'donum' => $this->donum, 'state' => $state, 'filenum' => $this->filenum));
|
||||||
|
if($spl_object) $spl_object->next();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
return array('success' => true);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
//校验文件
|
||||||
|
public function execCheckFile()
|
||||||
|
{
|
||||||
|
if ($this->exportstatus == 3) {
|
||||||
|
$total = DB::result_first("select count(rid) from %t where appid = %s ", array('pichome_resources', $this->appid));
|
||||||
|
//校验文件
|
||||||
|
$this->check_file($total);
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function check_file($total)
|
||||||
|
{
|
||||||
|
if ($this->lastid < 1) $this->lastid = 1;
|
||||||
|
$limitsql = ($this->lastid - 1) * $this->checklimit . ',' . $this->checklimit;
|
||||||
|
$delrids = [];
|
||||||
|
$data = DB::fetch_all("select rid,isdelete from %t where appid = %s order by lastdate asc limit $limitsql ", array('pichome_resources', $this->appid));
|
||||||
|
if (empty($data)) {
|
||||||
|
C::t('pichome_vapp')->update($this->appid, array('percent' => 0, 'state' => 4, 'lastid' => 0, 'donum' => 0));
|
||||||
|
//校验完成后更新目录文件数
|
||||||
|
foreach (DB::fetch_all("select count(rf.id) as num,f.fid from %t f left join %t rf on rf.fid=f.fid where f.appid = %s group by f.fid", array('pichome_folder', 'pichome_folderresources', $this->appid)) as $v) {
|
||||||
|
C::t('pichome_folder')->update($v['fid'], array('filenum' => $v['num']));
|
||||||
|
|
||||||
|
}
|
||||||
|
//修正库中文件数
|
||||||
|
$total = DB::result_first("select count(rid) from %t where appid = %s ", array('pichome_resources', $this->appid));
|
||||||
|
$hascatnum = DB::result_first("SELECT count(DISTINCT rid) FROM %t where appid = %s", array('pichome_folderresources', $this->appid));
|
||||||
|
$nosubfilenum = $total - $hascatnum;
|
||||||
|
C::t('pichome_vapp')->update($this->appid, array('filenum' => $total, 'nosubfilenum' => $nosubfilenum));
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
foreach ($data as $v) {
|
||||||
|
if ($v['isdelete']) {
|
||||||
|
$delrids[] = $v['rid'];
|
||||||
|
} else {
|
||||||
|
$id = C::t('#eagle#eagle_record')->fetch_eid_by_rid($v['rid'],$this->appid);
|
||||||
|
if(!$id){
|
||||||
|
$id = str_replace($this->appid, '', $v['rid']);
|
||||||
|
}
|
||||||
|
$filejson = $this->path . BS . 'images' . BS . $id . '.info' . BS . 'metadata.json';
|
||||||
|
if (!is_file($filejson)) {
|
||||||
|
$delrids[] = $v['rid'];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
if (!empty($delrids)) {
|
||||||
|
//如果有需要删除的,删除后,则重新查询上一页数据
|
||||||
|
C::t('pichome_resources')->delete_by_rid($delrids);
|
||||||
|
if ($this->lastid == 1) {
|
||||||
|
$percent = round(($this->checklimit / $total) * 100);
|
||||||
|
} else {
|
||||||
|
$percent = round((($this->lastid - 1) * $this->checklimit / $total) * 100);
|
||||||
|
}
|
||||||
|
C::t('pichome_vapp')->update($this->appid, array('lastid' => $this->lastid, 'percent' => $percent, 'state' => 3));
|
||||||
|
} else {
|
||||||
|
if ($this->lastid == 1) {
|
||||||
|
$percent = round(($this->checklimit / $total) * 100);
|
||||||
|
} else {
|
||||||
|
$percent = round((($this->lastid - 1) * $this->checklimit / $total) * 100);
|
||||||
|
}
|
||||||
|
$percent = ($percent > 100) ? 100 : $percent;
|
||||||
|
C::t('pichome_vapp')->update($this->appid, array('lastid' => $this->lastid + 1, 'percent' => $percent, 'state' => 3));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public function exportfile($id,$filemetadata)
|
||||||
|
{
|
||||||
|
$rid = $filemetadata['rid'];
|
||||||
|
if (!is_file($filemetadata['file'])) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
$filemetadata['file'] = str_replace('/', BS, $filemetadata['file']);
|
||||||
|
$attachment = str_replace('/', BS, $filemetadata['file']);
|
||||||
|
$path = str_replace($this->path . BS, '', $attachment);
|
||||||
|
unset($attachment);
|
||||||
|
$thumb = (is_file($filemetadata['thumbfile'])) ? 1 : 0;
|
||||||
|
//echo 'middle1:'.memory_get_usage()/1024 . '<br>';
|
||||||
|
$type = getTypeByExt($filemetadata['ext']);
|
||||||
|
$resourcesarr = [
|
||||||
|
'rid' => $rid,
|
||||||
|
'uid' => $this->uid,
|
||||||
|
'username' => $this->username,
|
||||||
|
'appid' => $this->appid,
|
||||||
|
'width' => $filemetadata['width'] ? $filemetadata['width'] : 0,
|
||||||
|
'height' => $filemetadata['height'] ? $filemetadata['height'] : 0,
|
||||||
|
'name' => $filemetadata['filename'] . '.' . $filemetadata['ext'],
|
||||||
|
'ext' => $filemetadata['ext'],
|
||||||
|
'size' => $filemetadata['size'],
|
||||||
|
'dateline' => $filemetadata['dateline'],
|
||||||
|
'btime' => $filemetadata['btime'],
|
||||||
|
'mtime' => $filemetadata['mtime'],
|
||||||
|
'isdelete' => $filemetadata['isDeleted'],
|
||||||
|
'hasthumb' => $thumb,
|
||||||
|
'grade' => $filemetadata['star'] ? intval($filemetadata['star']) : 0,
|
||||||
|
'type' => $type,
|
||||||
|
'lastdate' => $filemetadata['lastdate']
|
||||||
|
];
|
||||||
|
unset($type);
|
||||||
|
//插入文件表数据
|
||||||
|
if (C::t('#eagle#eagle_record')->insert_data($id,$resourcesarr)) {
|
||||||
|
DB::delete('pichome_folderresources', array('rid' => $rid));
|
||||||
|
//获取属性表数据
|
||||||
|
$setarr = [];
|
||||||
|
$setarr['searchval'] = $resourcesarr['name'];
|
||||||
|
//$fids = [];
|
||||||
|
//插入目录关联表数据
|
||||||
|
foreach ($filemetadata['folders'] as $fv) {
|
||||||
|
$fid = $fv;
|
||||||
|
if (!C::t('pichome_folder')->check_password_byfid($fid)) {
|
||||||
|
$frsetarr = ['appid' => $this->appid, 'rid' => $rid, 'fid' => $fid];
|
||||||
|
C::t('pichome_folderresources')->insert($frsetarr);
|
||||||
|
//$fids[] = $fid;
|
||||||
|
unset($frsetarr);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
/* if(!empty($fids)){
|
||||||
|
foreach(DB::fetch_all("select fname from %t where fid in(%n)",array('pichome_folder',$fids)) as $foldername){
|
||||||
|
$setarr['searchval'] .= $foldername['fname'];
|
||||||
|
}
|
||||||
|
}*/
|
||||||
|
|
||||||
|
//标签数据
|
||||||
|
$tags = $filemetadata['tags'];
|
||||||
|
$setarr['searchval'] .= implode('', $tags);
|
||||||
|
if (!empty($tags)) {
|
||||||
|
$tagids = $this->addtag($tags);
|
||||||
|
unset($tags);
|
||||||
|
foreach ($tagids as $tid) {
|
||||||
|
$rtag = ['appid' => $this->appid, 'rid' => $rid, 'tid' => $tid];
|
||||||
|
C::t('pichome_resourcestag')->insert($rtag);
|
||||||
|
}
|
||||||
|
$setarr['tag'] = implode(',', $tagids);
|
||||||
|
unset($tagids);
|
||||||
|
}
|
||||||
|
//颜色数据
|
||||||
|
if (isset($filemetadata['palettes'])) {
|
||||||
|
$returndata = $this->getColor($filemetadata['palettes'], $resourcesarr['width'], $resourcesarr['height'], $rid);
|
||||||
|
$setarr['colors'] = $returndata['colors'];
|
||||||
|
$setarr['gray'] = $returndata['gray'];
|
||||||
|
$setarr['shape'] = $returndata['shape'];
|
||||||
|
unset($returndata);
|
||||||
|
}
|
||||||
|
//标注数据
|
||||||
|
if (isset($filemetadata['comments'])) {
|
||||||
|
foreach ($filemetadata['comments'] as $commentval) {
|
||||||
|
$tcommentval['id'] = $commentval['id'] . $this->appid;
|
||||||
|
$tcommentval['appid'] = $this->appid;
|
||||||
|
$tcommentval['rid'] = $rid;
|
||||||
|
$tcommentval['x'] = number_format($commentval['x'], 2);
|
||||||
|
$tcommentval['y'] = number_format($commentval['y'], 2);
|
||||||
|
$tcommentval['width'] = $commentval['width'];
|
||||||
|
$tcommentval['height'] = $commentval['height'];
|
||||||
|
$tcommentval['annotation'] = $commentval['annotation'];
|
||||||
|
$tcommentval['lastModified'] = $commentval['lastModified'];
|
||||||
|
C::t('pichome_comments')->insert($tcommentval);
|
||||||
|
$setarr['searchval'] .= $commentval['annotation'];
|
||||||
|
unset($tcommentval);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//时长
|
||||||
|
if ($filemetadata['duration']) $setarr['duration'] = number_format($filemetadata['duration'], 2);
|
||||||
|
//链接数据
|
||||||
|
$setarr['link'] = $filemetadata['url'] ? trim($filemetadata['url']) : '';
|
||||||
|
//描述数据
|
||||||
|
$setarr['desc'] = $filemetadata['annotation'] ? $filemetadata['annotation'] : '';
|
||||||
|
$setarr['searchval'] .= $setarr['desc'] . $setarr['link'];
|
||||||
|
$setarr['rid'] = $rid;
|
||||||
|
$setarr['appid'] = $this->appid;
|
||||||
|
$setarr['path'] = $path;
|
||||||
|
//echo '属性插入前缓存:'.memory_get_usage()/1024 . '<br>';
|
||||||
|
//插入数据
|
||||||
|
C::t('pichome_resources_attr')->insert($setarr);
|
||||||
|
//echo '属性插入后缓存:'.memory_get_usage()/1024 . '<br>';
|
||||||
|
} else {
|
||||||
|
runlog('eagleexport', $rid);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//判断图片纯色
|
||||||
|
public function isgray($colors)
|
||||||
|
{
|
||||||
|
$i = 0;
|
||||||
|
if (count($colors) < 1) return 0;
|
||||||
|
foreach ($colors as $color) {
|
||||||
|
$color = new Color($color);
|
||||||
|
$rgb = $color->toRGB();
|
||||||
|
unset($color);
|
||||||
|
if (abs($rgb[0] - $rgb[1]) < 10 && abs($rgb[2] - $rgb[1]) < 10) {
|
||||||
|
$i++;
|
||||||
|
}
|
||||||
|
unset($rgb);
|
||||||
|
}
|
||||||
|
if ($i == count($colors)) {
|
||||||
|
return 1;
|
||||||
|
} else {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
//获取颜色数据
|
||||||
|
public function getColor($colors, $width, $height, $rid)
|
||||||
|
{
|
||||||
|
//echo '颜色处理前:'.memory_get_usage()/1024 . '<br>';
|
||||||
|
$intcolorsarr = $returndata = [];
|
||||||
|
$i = 1;
|
||||||
|
foreach ($colors as $c) {
|
||||||
|
$color = new \Color($c['color']);
|
||||||
|
//获取颜色整型值
|
||||||
|
$intcolor = $color->toInt();
|
||||||
|
$palattedataarr = ['rid' => $rid, 'color' => $intcolor, 'weight' => $c['ratio'], 'r' => $c['color'][0], 'g' => $c['color'][1], 'b' => $c['color'][2]];
|
||||||
|
$intcolorsarr[] = $intcolor;
|
||||||
|
//echo "颜色处理中前 $i :".memory_get_usage()/1024 . '<br>';
|
||||||
|
C::t('pichome_palette')->insert($palattedataarr);
|
||||||
|
//echo "颜色处理中后 $i :".memory_get_usage()/1024 . '<br>';
|
||||||
|
$i++;
|
||||||
|
}
|
||||||
|
unset($colors);
|
||||||
|
//颜色整型值数据
|
||||||
|
// $intcolorsarr= array_keys($palattedataarr);
|
||||||
|
$returndata['colors'] = implode(',', $intcolorsarr);
|
||||||
|
$returndata['gray'] = $this->isgray($intcolorsarr);
|
||||||
|
$returndata['shape'] = round(($width / $height) * 100);
|
||||||
|
unset($intcolorsarr);
|
||||||
|
//echo '颜色处理后缓存:'.memory_get_usage()/1024 . '<br>';
|
||||||
|
return $returndata;
|
||||||
|
}
|
||||||
|
|
||||||
|
//添加标签
|
||||||
|
public function addtag($tags)
|
||||||
|
{
|
||||||
|
$tagids = [];
|
||||||
|
foreach ($tags as $v) {
|
||||||
|
if (!preg_match('/^\s*$/', $v)) {
|
||||||
|
if ($tid = C::t('pichome_tag')->insert($v)) {
|
||||||
|
$tagids[] = $tid;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
unset($tags);
|
||||||
|
return $tagids;
|
||||||
|
}
|
||||||
|
}
|
||||||
92
dzz/eagle/class/table/table_eagle_folderrecord.php
Normal file
92
dzz/eagle/class/table/table_eagle_folderrecord.php
Normal file
@@ -0,0 +1,92 @@
|
|||||||
|
<?php
|
||||||
|
/*
|
||||||
|
* @copyright QiaoQiaoShiDai Internet Technology(Shanghai)Co.,Ltd
|
||||||
|
* @license https://www.oaooa.com/licenses/
|
||||||
|
*
|
||||||
|
* @link https://www.oaooa.com
|
||||||
|
* @author zyx(zyx@oaooa.com)
|
||||||
|
*/
|
||||||
|
if(!defined('IN_OAOOA')) {
|
||||||
|
exit('Access Denied');
|
||||||
|
}
|
||||||
|
|
||||||
|
class table_eagle_folderrecord extends dzz_table
|
||||||
|
{
|
||||||
|
public function __construct() {
|
||||||
|
$this->_table = 'eagle_folderrecord';
|
||||||
|
$this->_pk = 'id';
|
||||||
|
parent::__construct();
|
||||||
|
}
|
||||||
|
|
||||||
|
public function createfidby_efidappid($efid,$appid){
|
||||||
|
//如果没有记录值
|
||||||
|
if (!$fid = DB::result_first("select fid from %t where efid = %s", array($this->_table, $efid))){
|
||||||
|
//检查是否有旧版数据记录值
|
||||||
|
$fid = $efid.$appid;
|
||||||
|
if(!DB::result_first("select fid from %t where fid = %s",array('pichome_folder',$fid))){
|
||||||
|
$fid = C::t('pichome_folder')->createfidbyappid($appid);
|
||||||
|
}
|
||||||
|
$setarr = [
|
||||||
|
'appid'=>$appid,
|
||||||
|
'efid'=>$efid,
|
||||||
|
'fid'=>$fid
|
||||||
|
];
|
||||||
|
parent::insert($setarr);
|
||||||
|
}
|
||||||
|
return $fid;
|
||||||
|
}
|
||||||
|
public function insert_folderdata_by_appid($appid,$folderdata,$pfid='',$pathkey='',$fids=[])
|
||||||
|
{
|
||||||
|
foreach ($folderdata as $k => $v) {
|
||||||
|
$id = $v['id'];
|
||||||
|
//获取或生成记录fid值
|
||||||
|
$fid = $this->createfidby_efidappid($id,$appid);
|
||||||
|
$setarr=['fid'=>$fid,'fname'=>$v['name'],'dateline'=>TIMESTAMP,'pfid'=>$pfid,'appid'=>$appid,'pathkey'=> ($pathkey)?$pathkey.$fid:$fid,'disp'=>$k];
|
||||||
|
$fid = C::t('pichome_folder')->insert_data($setarr);
|
||||||
|
$fids[] = $id;
|
||||||
|
if($v['children']){
|
||||||
|
$fids = $this->insert_folderdata_by_appid($appid,$v['children'],$fid,($pathkey)?$pathkey.$fid:$fid,$fids);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
return $fids;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public function delete_by_fid($fids,$appid){
|
||||||
|
if(!is_array($fids)) $fids = (array)$fids;
|
||||||
|
$delfid = $delid = [];
|
||||||
|
foreach(DB::fetch_all("select fid,id from %t where fid in(%n) and appid = %s",array($this->_table,$fids,$appid)) as $v){
|
||||||
|
$delfid[] = $v['fid'];
|
||||||
|
$delid[] = $v['id'];
|
||||||
|
}
|
||||||
|
if(!empty($delfid))C::t('pichome_folder')->delete_by_fids($delfid);
|
||||||
|
parent::delete($delid);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function delete_by_ids($ids){
|
||||||
|
if(!array($ids)) $ids = (array)$ids;
|
||||||
|
$fids = [];
|
||||||
|
foreach(DB::fetch_all("select fid from %t where id in(%n)",array($this->_table,$ids)) as $v){
|
||||||
|
$fids[] = $v['fid'];
|
||||||
|
}
|
||||||
|
if(!empty($fids))C::t('pichome_folder')->delete_by_fids($fids);
|
||||||
|
parent::delete($ids);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function delete_by_appid($appid){
|
||||||
|
DB::delete($this->_table,array('appid'=>$appid));
|
||||||
|
}
|
||||||
|
|
||||||
|
public function fetch_fid_by_efid($efids,$appid){
|
||||||
|
$fids = [];
|
||||||
|
foreach(DB::fetch_all("select fid from %t where efid in(%n) and appid = %s",array($this->_table,$efids,$appid)) as $v){
|
||||||
|
$fids[] = $v['fid'];
|
||||||
|
}
|
||||||
|
return $fids;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
54
dzz/eagle/class/table/table_eagle_record.php
Normal file
54
dzz/eagle/class/table/table_eagle_record.php
Normal file
@@ -0,0 +1,54 @@
|
|||||||
|
<?php
|
||||||
|
/*
|
||||||
|
* @copyright QiaoQiaoShiDai Internet Technology(Shanghai)Co.,Ltd
|
||||||
|
* @license https://www.oaooa.com/licenses/
|
||||||
|
*
|
||||||
|
* @link https://www.oaooa.com
|
||||||
|
* @author zyx(zyx@oaooa.com)
|
||||||
|
*/
|
||||||
|
if(!defined('IN_OAOOA')) {
|
||||||
|
exit('Access Denied');
|
||||||
|
}
|
||||||
|
|
||||||
|
class table_eagle_record extends dzz_table
|
||||||
|
{
|
||||||
|
public function __construct() {
|
||||||
|
$this->_table = 'eagle_record';
|
||||||
|
$this->_pk = 'id';
|
||||||
|
parent::__construct();
|
||||||
|
}
|
||||||
|
|
||||||
|
public function insert_data($eid,$setarr){
|
||||||
|
if(C::t('pichome_resources')->insert($setarr)){
|
||||||
|
$setarr1['rid'] = $setarr['rid'];
|
||||||
|
$setarr1['appid'] = $setarr['appid'];
|
||||||
|
$setarr1['eid'] = $eid;
|
||||||
|
$setarr1['dateline']=$setarr['lastdate'];
|
||||||
|
$id = DB::result_first("select id from %t where eid = %s and appid = %s",array($this->_table,$eid,$setarr['appid']));
|
||||||
|
if($id){
|
||||||
|
parent::update($id,$setarr1);
|
||||||
|
}else{
|
||||||
|
parent::insert($setarr1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
|
||||||
|
}
|
||||||
|
public function delete_by_appid($appid){
|
||||||
|
DB::delete($this->_table,array('appid'=>$appid));
|
||||||
|
}
|
||||||
|
public function delete_by_rids($rids){
|
||||||
|
if (!is_array($rids)) $rids = (array)$rids;
|
||||||
|
DB::delete($this->_table,'rid in ('.dimplode($rids).')');
|
||||||
|
}
|
||||||
|
public function fetch_by_eid($eid,$appid){
|
||||||
|
return DB::fetch_first("select * from %t where eid = %s and appid = %s",array($this->_table,$eid,$appid));
|
||||||
|
}
|
||||||
|
|
||||||
|
public function fetch_eid_by_rid($rid,$appid){
|
||||||
|
return DB::result_first("select eid from %t where rid = %s",array($this->_table,$rid,$appid));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
20
dzz/eagle/classes/deleteafter.php
Normal file
20
dzz/eagle/classes/deleteafter.php
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace dzz\eagle\classes;
|
||||||
|
|
||||||
|
use \core as C;
|
||||||
|
use \DB as DB;
|
||||||
|
|
||||||
|
|
||||||
|
class deleteafter
|
||||||
|
{
|
||||||
|
|
||||||
|
public function run($data)
|
||||||
|
{
|
||||||
|
C::t('#eagle#eagle_record')->delete_by_rids($data['rids']);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
18
dzz/eagle/classes/delpichomefolderafter.php
Normal file
18
dzz/eagle/classes/delpichomefolderafter.php
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace dzz\eagle\classes;
|
||||||
|
|
||||||
|
use \core as C;
|
||||||
|
use \DB as DB;
|
||||||
|
use \fmpeg as fmpeg;
|
||||||
|
|
||||||
|
class delpichomefolderafter
|
||||||
|
{
|
||||||
|
|
||||||
|
public function run($appid)
|
||||||
|
{
|
||||||
|
C::t("#eagle#eagle_folderrecord")->delete_by_appid($appid);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
48
dzz/eagle/classes/getpichomethumb.php
Normal file
48
dzz/eagle/classes/getpichomethumb.php
Normal file
@@ -0,0 +1,48 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace dzz\eagle\classes;
|
||||||
|
|
||||||
|
use \core as C;
|
||||||
|
use \DB as DB;
|
||||||
|
|
||||||
|
class getpichomethumb
|
||||||
|
{
|
||||||
|
|
||||||
|
public function run(&$data)
|
||||||
|
{
|
||||||
|
/*$thumbid = DB::result_first("select thumb from %t where appid = %s and rid = %s", array('billfish_record', $data['appid'], $data['rid']));
|
||||||
|
if(isset($data['version']) && $data['version'] > 16){
|
||||||
|
$bid = DB::result_first("select bid from %t where rid = %s",array('billfish_record',$data['rid']));
|
||||||
|
$thumbdir = dechex($bid);
|
||||||
|
$thumbdir = (string) $thumbdir;
|
||||||
|
if(strlen($thumbdir) < 2){
|
||||||
|
$thumbdir =str_pad($thumbdir,2,0,STR_PAD_LEFT);
|
||||||
|
}
|
||||||
|
$pathdir = $data['apppath'].BS.'.bf'.BS.'.preview'.BS.$thumbdir.BS.$bid.'.small.webp';
|
||||||
|
return array('icon'=>$pathdir);
|
||||||
|
}else{
|
||||||
|
if (strlen($thumbid) < 9) {
|
||||||
|
$thumbid = str_pad($thumbid,9,0,STR_PAD_LEFT);
|
||||||
|
}
|
||||||
|
$pathdir = $data['apppath'].BS.'.bf'.BS.'.preview';
|
||||||
|
$thumbpatharr = $this->mbStrSplit($thumbid,3);
|
||||||
|
array_pop($thumbpatharr);
|
||||||
|
$thumbpath = implode(BS,$thumbpatharr);
|
||||||
|
return array('icon'=>$pathdir.BS.$thumbpath.BS.$thumbid.'.webp');
|
||||||
|
}*/
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/* function mbStrSplit ($string, $len=1) {
|
||||||
|
$start = 0;
|
||||||
|
$strlen = mb_strlen($string);
|
||||||
|
while ($strlen) {
|
||||||
|
$array[] = mb_substr($string,$start,$len,"utf8");
|
||||||
|
$string = mb_substr($string, $len, $strlen,"utf8");
|
||||||
|
$strlen = mb_strlen($string);
|
||||||
|
}
|
||||||
|
return $array;
|
||||||
|
}*/
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
24
dzz/eagle/classes/pichomevappdelete.php
Normal file
24
dzz/eagle/classes/pichomevappdelete.php
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace dzz\eagle\classes;
|
||||||
|
|
||||||
|
use \core as C;
|
||||||
|
use \DB as DB;
|
||||||
|
use \fmpeg as fmpeg;
|
||||||
|
|
||||||
|
class pichomevappdelete
|
||||||
|
{
|
||||||
|
|
||||||
|
public function run($data)
|
||||||
|
{
|
||||||
|
if($data['apptype'] == 0){
|
||||||
|
C::t("#eagle#eagle_record")->delete_by_appid($data['appid']);
|
||||||
|
C::t("#eagle#eagle_folderrecord")->delete_by_appid($data['appid']);
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
@@ -43,6 +43,14 @@ class info
|
|||||||
if (isset($info['duration'])) C::t('pichome_resources_attr')->update($data['rid'], array('duration' => $info['duration']));
|
if (isset($info['duration'])) C::t('pichome_resources_attr')->update($data['rid'], array('duration' => $info['duration']));
|
||||||
if (isset($info['width'])) C::t('pichome_resources')->update($data['rid'], array('width' => $info['width'], 'height' => $info['height']));
|
if (isset($info['width'])) C::t('pichome_resources')->update($data['rid'], array('width' => $info['width'], 'height' => $info['height']));
|
||||||
C::t('pichome_ffmpeg_record')->update($data['rid'],array('infostatus'=>1));
|
C::t('pichome_ffmpeg_record')->update($data['rid'],array('infostatus'=>1));
|
||||||
|
$fdata = C::t('pichome_ffmpeg_record')->fetch($data['rid']);
|
||||||
|
if($fdata['thumbstatus'] == 1 && $fdata['infostatus'] == 1){
|
||||||
|
if(!DB::result_first("select isget from %t where rid = %s",array('pichome_resources_attr',$data['rid']))) {
|
||||||
|
C::t('pichome_resources_attr')->update($data['rid'],array('isget'=>1));
|
||||||
|
C::t('pichome_vapp')->add_getinfonum_by_appid($data['appid'], 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
|
|||||||
@@ -56,6 +56,13 @@ class thumb
|
|||||||
C::t('pichome_resources')->update($data['rid'],$resourcesarr);
|
C::t('pichome_resources')->update($data['rid'],$resourcesarr);
|
||||||
C::t('pichome_resources')->update($data['rid'], array('hasthumb' => 1));
|
C::t('pichome_resources')->update($data['rid'], array('hasthumb' => 1));
|
||||||
C::t('pichome_ffmpeg_record')->update($data['rid'], array('thumbstatus' => 1,'thumb'=>$target));
|
C::t('pichome_ffmpeg_record')->update($data['rid'], array('thumbstatus' => 1,'thumb'=>$target));
|
||||||
|
$fdata = C::t('pichome_ffmpeg_record')->fetch($data['rid']);
|
||||||
|
if($fdata['thumbstatus'] == 1 && $fdata['infostatus'] == 1){
|
||||||
|
if(!DB::result_first("select isget from %t where rid = %s",array('pichome_resources_attr',$data['rid']))) {
|
||||||
|
C::t('pichome_resources_attr')->update($data['rid'],array('isget'=>1));
|
||||||
|
C::t('pichome_vapp')->add_getinfonum_by_appid($data['appid'], 1);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -14,13 +14,14 @@ if(empty($appids)){
|
|||||||
exit('success');
|
exit('success');
|
||||||
}
|
}
|
||||||
$locked = true;
|
$locked = true;
|
||||||
for($i=0;$i<1;$i++){
|
/*for($i=0;$i<1;$i++){
|
||||||
$processname = 'DZZ_LOCK_PICHOMEGETINFO'.$i;
|
$processname = 'DZZ_LOCK_PICHOMEGETINFO'.$i;
|
||||||
if (!dzz_process::islocked($processname, 60*60)) {
|
if (!dzz_process::islocked($processname, 60*60)) {
|
||||||
$locked=false;
|
$locked=false;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
|
$i = 0;
|
||||||
$processname = 'DZZ_LOCK_PICHOMEGETINFO'.$i;
|
$processname = 'DZZ_LOCK_PICHOMEGETINFO'.$i;
|
||||||
$limit = 10;
|
$limit = 10;
|
||||||
$start=$i*$limit;
|
$start=$i*$limit;
|
||||||
@@ -55,7 +56,10 @@ order by infodonum asc limit $start,$limit",array('pichome_ffmpeg_record',$appid
|
|||||||
}
|
}
|
||||||
//如果信息和缩略图标记为已生成,标记该文件信息状态为已获取
|
//如果信息和缩略图标记为已生成,标记该文件信息状态为已获取
|
||||||
if($v['thumbstatus'] == 1 && $v['infostatus'] == 1){
|
if($v['thumbstatus'] == 1 && $v['infostatus'] == 1){
|
||||||
C::t('pichome_resources_attr')->update($v['rid'],array('isget'=>1));
|
if(!DB::result_first("select isget from %t where rid = %s",array('pichome_resources_attr',$v['rid']))) {
|
||||||
|
C::t('pichome_resources_attr')->update($v['rid'], array('isget' => 1));
|
||||||
|
C::t('pichome_vapp')->add_getinfonum_by_appid($v['appid'], 1);
|
||||||
|
}
|
||||||
dzz_process::unlock($processname1);
|
dzz_process::unlock($processname1);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@@ -66,6 +70,6 @@ order by infodonum asc limit $start,$limit",array('pichome_ffmpeg_record',$appid
|
|||||||
}
|
}
|
||||||
dzz_process::unlock($processname);
|
dzz_process::unlock($processname);
|
||||||
if(DB::result_first("select * from %t where infostatus = 0 ",array('pichome_ffmpeg_record'))){
|
if(DB::result_first("select * from %t where infostatus = 0 ",array('pichome_ffmpeg_record'))){
|
||||||
dfsockopen(getglobal('localurl') . 'index.php?mod=ffmpeg&op=getinfo', 0, '', '', false, '', 0.1);
|
dfsockopen(getglobal('localurl') . 'index.php?mod=ffmpeg&op=getinfo', 0, '', '', false, '', 5*60);
|
||||||
}
|
}
|
||||||
exit('success');
|
exit('success');
|
||||||
@@ -20,13 +20,14 @@ if(empty($appids)){
|
|||||||
exit('success');
|
exit('success');
|
||||||
}
|
}
|
||||||
$locked = true;
|
$locked = true;
|
||||||
for($i=0;$i<1;$i++){
|
/*for($i=0;$i<1;$i++){
|
||||||
$processname = 'DZZ_LOCK_PICHOMEGETVIDOTHUMB'.$i;
|
$processname = 'DZZ_LOCK_PICHOMEGETVIDOTHUMB'.$i;
|
||||||
if (!dzz_process::islocked($processname, 60*60)) {
|
if (!dzz_process::islocked($processname, 60*60)) {
|
||||||
$locked=false;
|
$locked=false;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
|
$i = 0;
|
||||||
$processname = 'DZZ_LOCK_PICHOMEGETVIDOTHUMB'.$i;
|
$processname = 'DZZ_LOCK_PICHOMEGETVIDOTHUMB'.$i;
|
||||||
$limit = 10;
|
$limit = 10;
|
||||||
$start=$i*$limit;
|
$start=$i*$limit;
|
||||||
@@ -60,7 +61,10 @@ order by thumbdonum asc limit $start,$limit",array('pichome_ffmpeg_record',$appi
|
|||||||
}
|
}
|
||||||
//如果信息和缩略图标记为已生成,标记该文件信息状态为已获取
|
//如果信息和缩略图标记为已生成,标记该文件信息状态为已获取
|
||||||
if($v['thumbstatus'] == 1 && $v['infostatus'] == 1){
|
if($v['thumbstatus'] == 1 && $v['infostatus'] == 1){
|
||||||
C::t('pichome_resources_attr')->update($v['rid'],array('isget'=>1));
|
if(!DB::result_first("select isget from %t where rid = %s",array('pichome_resources_attr',$v['rid']))) {
|
||||||
|
C::t('pichome_resources_attr')->update($v['rid'], array('isget' => 1));
|
||||||
|
C::t('pichome_vapp')->add_getinfonum_by_appid($v['appid'], 1);
|
||||||
|
}
|
||||||
dzz_process::unlock($processname1);
|
dzz_process::unlock($processname1);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@@ -72,6 +76,6 @@ order by thumbdonum asc limit $start,$limit",array('pichome_ffmpeg_record',$appi
|
|||||||
}
|
}
|
||||||
dzz_process::unlock($processname);
|
dzz_process::unlock($processname);
|
||||||
if(DB::result_first("select * from %t where thumbstatus = 0 ",array('pichome_ffmpeg_record'))){
|
if(DB::result_first("select * from %t where thumbstatus = 0 ",array('pichome_ffmpeg_record'))){
|
||||||
dfsockopen(getglobal('localurl') . 'index.php?mod=ffmpeg&op=thumb', 0, '', '', false, '', 0.1);
|
dfsockopen(getglobal('localurl') . 'index.php?mod=ffmpeg&op=thumb', 0, '', '', false, '', 5*60);
|
||||||
}
|
}
|
||||||
exit('success');
|
exit('success');
|
||||||
|
|||||||
@@ -75,6 +75,8 @@ class getColor
|
|||||||
$palette = new ImagePalette($img, 1, 10, $lib, $this->palette);
|
$palette = new ImagePalette($img, 1, 10, $lib, $this->palette);
|
||||||
$palettes = $palette->palette;
|
$palettes = $palette->palette;
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
|
$processname1 = 'PICHOMEGETCOLOR_'.$data['rid'];
|
||||||
|
dzz_process::unlock($processname1);
|
||||||
runlog('imageColor', $e->getMessage() . ' img=' . $img);
|
runlog('imageColor', $e->getMessage() . ' img=' . $img);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -87,7 +89,7 @@ class getColor
|
|||||||
foreach ($palettes as $k => $v) {
|
foreach ($palettes as $k => $v) {
|
||||||
$color = new \Color($k);
|
$color = new \Color($k);
|
||||||
$rgbcolor = $color->toRgb();
|
$rgbcolor = $color->toRgb();
|
||||||
$data = [
|
$tdata = [
|
||||||
'rid' => $data['rid'],
|
'rid' => $data['rid'],
|
||||||
'color' => $k,
|
'color' => $k,
|
||||||
'r' => $rgbcolor[0],
|
'r' => $rgbcolor[0],
|
||||||
@@ -95,9 +97,12 @@ class getColor
|
|||||||
'b' => $rgbcolor[2],
|
'b' => $rgbcolor[2],
|
||||||
'weight' => $v
|
'weight' => $v
|
||||||
];
|
];
|
||||||
C::t('pichome_palette')->insert($data);
|
C::t('pichome_palette')->insert($tdata);
|
||||||
C::t('pichome_imagickrecord')->update($data['rid'], array('colorstatus' => 1));
|
C::t('pichome_imagickrecord')->update($data['rid'], array('colorstatus' => 1));
|
||||||
C::t('pichome_resources_attr')->update($data['rid'], array('isget' => 1));
|
if(!DB::result_first("select isget from %t where rid = %s",array('pichome_resources_attr',$data['rid']))) {
|
||||||
|
C::t('pichome_resources_attr')->update($data['rid'],array('isget'=>1));
|
||||||
|
C::t('pichome_vapp')->add_getinfonum_by_appid($data['appid'], 1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -144,15 +149,21 @@ class getColor
|
|||||||
$im->setResolution($width, $height); //设置图像分辨率
|
$im->setResolution($width, $height); //设置图像分辨率
|
||||||
$im->setCompressionQuality(80); //压缩比
|
$im->setCompressionQuality(80); //压缩比
|
||||||
try {
|
try {
|
||||||
|
|
||||||
$im->readImage($data['realpath'] . '[0]'); //设置读取pdf的第一页
|
$im->readImage($data['realpath'] . '[0]'); //设置读取pdf的第一页
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
runlog('pdfthumb', iconv("gbk", 'utf-8', $e->getMessage()));
|
runlog('pdfthumb', iconv("gbk", 'utf-8', $e->getMessage()));
|
||||||
}
|
}
|
||||||
|
|
||||||
//$im->thumbnailImage(200, 100, true); // 改变图像的大小
|
//$im->thumbnailImage(200, 100, true); // 改变图像的大小
|
||||||
$im->scaleImage($width, $height, true); //缩放大小图像
|
//缩放大小图像
|
||||||
|
try {
|
||||||
|
$im->scaleImage($width, $height, true);
|
||||||
|
}catch (\Exception $e){
|
||||||
|
runlog('pdfthumb', iconv("gbk", 'utf-8', $e->getMessage()));
|
||||||
|
}
|
||||||
$filename = getglobal('setting/attachdir') . './' . $target;
|
$filename = getglobal('setting/attachdir') . './' . $target;
|
||||||
|
try {
|
||||||
if ($im->writeImage($filename) == true) {
|
if ($im->writeImage($filename) == true) {
|
||||||
$imginfo = @getimagesize($filename);
|
$imginfo = @getimagesize($filename);
|
||||||
$resourcesarr = [
|
$resourcesarr = [
|
||||||
@@ -164,5 +175,9 @@ class getColor
|
|||||||
C::t('pichome_resources')->update($data['rid'], array('hasthumb' => 1));
|
C::t('pichome_resources')->update($data['rid'], array('hasthumb' => 1));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}catch (\Exception $e){
|
||||||
|
runlog('pdfthumb', iconv("gbk", 'utf-8', $e->getMessage()));
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -14,19 +14,21 @@ if(empty($appids)){
|
|||||||
exit('success');
|
exit('success');
|
||||||
}
|
}
|
||||||
$locked = true;
|
$locked = true;
|
||||||
for($i=0;$i<1;$i++){
|
/*for($i=0;$i<1;$i++){
|
||||||
$processname = 'DZZ_LOCK_PICHOMEGETCOLOR'.$i;
|
$processname = 'DZZ_LOCK_PICHOMEGETCOLOR'.$i;
|
||||||
if (!dzz_process::islocked($processname, 60*60)) {
|
if (!dzz_process::islocked($processname, 60*60)) {
|
||||||
$locked=false;
|
$locked=false;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
|
$i = 0;
|
||||||
$processname = 'DZZ_LOCK_PICHOMEGETCOLOR'.$i;
|
$processname = 'DZZ_LOCK_PICHOMEGETCOLOR'.$i;
|
||||||
$limit = 10;
|
$limit = 10;
|
||||||
$start=$i*$limit;
|
$start=$i*$limit;
|
||||||
if (!dzz_process::islocked($processname, 60*60)) {
|
if (!dzz_process::islocked($processname, 60*60)) {
|
||||||
$locked=false;
|
$locked=false;
|
||||||
}
|
}
|
||||||
|
//dzz::unlock($processname);
|
||||||
if ($locked) {
|
if ($locked) {
|
||||||
exit(json_encode( array('error'=>'进程已被锁定请稍后再试')));
|
exit(json_encode( array('error'=>'进程已被锁定请稍后再试')));
|
||||||
}
|
}
|
||||||
@@ -62,7 +64,11 @@ order by thumbdonum asc,colordonum asc limit $start,$limit",array('pichome_imagi
|
|||||||
}
|
}
|
||||||
//如果颜色和缩略图标记为已生成,标记该文件信息状态为已获取
|
//如果颜色和缩略图标记为已生成,标记该文件信息状态为已获取
|
||||||
if($v['thumbstatus'] == 1 && $v['colorstatus'] == 1){
|
if($v['thumbstatus'] == 1 && $v['colorstatus'] == 1){
|
||||||
|
if(!DB::result_first("select isget from %t where rid = %s",array('pichome_resources_attr',$v['rid']))){
|
||||||
C::t('pichome_resources_attr')->update($v['rid'],array('isget'=>1));
|
C::t('pichome_resources_attr')->update($v['rid'],array('isget'=>1));
|
||||||
|
C::t('pichome_vapp')->add_getinfonum_by_appid($v['appid'], 1);
|
||||||
|
}
|
||||||
|
|
||||||
dzz_process::unlock($processname1);
|
dzz_process::unlock($processname1);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@@ -81,6 +87,6 @@ order by thumbdonum asc,colordonum asc limit $start,$limit",array('pichome_imagi
|
|||||||
}
|
}
|
||||||
dzz_process::unlock($processname);
|
dzz_process::unlock($processname);
|
||||||
if(DB::result_first("select count(*) from %t where thumbstatus = 0 or colorstatus = 0 ",array('pichome_imagickrecord'))){
|
if(DB::result_first("select count(*) from %t where thumbstatus = 0 or colorstatus = 0 ",array('pichome_imagickrecord'))){
|
||||||
dfsockopen(getglobal('localurl') . 'index.php?mod=imageColor&op=index', 0, '', '', false, '', 0.1);
|
dfsockopen(getglobal('localurl') . 'index.php?mod=imageColor&op=index', 0, '', '', false, '', 5*60);
|
||||||
}
|
}
|
||||||
exit('success'.$i);
|
exit('success'.$i);
|
||||||
@@ -6,65 +6,103 @@
|
|||||||
* @link https://www.oaooa.com
|
* @link https://www.oaooa.com
|
||||||
* @author zyx(zyx@oaooa.com)
|
* @author zyx(zyx@oaooa.com)
|
||||||
*/
|
*/
|
||||||
if ( !defined( 'IN_OAOOA' ) ) {
|
if (!defined('IN_OAOOA')) {
|
||||||
exit( 'Access Denied' );
|
exit('Access Denied');
|
||||||
|
}
|
||||||
|
$fpath = isset($_GET['fpath']) ? trim($_GET['fpath']):'';
|
||||||
|
if(!$fpath = dzzdecode(rawurldecode($fpath), '', 0)){
|
||||||
|
if (!$path = dzzdecode(rawurldecode($_GET['path']), '', 0)) {
|
||||||
|
@header('HTTP/1.1 404 Not Found');
|
||||||
|
@header('Status: 404 Not Found');
|
||||||
|
|
||||||
|
}
|
||||||
|
$rid = $path;
|
||||||
|
$resourcesdata = C::t('pichome_resources')->fetch($rid);
|
||||||
|
if(!$resourcesdata){
|
||||||
|
exit('file is not exists');
|
||||||
|
}
|
||||||
|
$resourattrdata = C::t('pichome_resources_attr')->fetch($rid);
|
||||||
|
$resourcesdata = array_merge($resourcesdata, $resourattrdata);
|
||||||
|
$appdata = C::t('pichome_vapp')->fetch($resourcesdata['appid']);
|
||||||
|
if ($resourcesdata['hasthumb']) {
|
||||||
|
//如果是本地文件
|
||||||
|
if ($appdata['type'] == 1) {
|
||||||
|
$filename = 'pichomethumb' . BS . $resourcesdata['appid'] . BS . md5($resourcesdata['path']) . '.jpg';
|
||||||
|
$thumbpath = getglobal('setting/attachurl') . $filename;
|
||||||
|
} elseif ($resourcesdata['apptype'] == 0) {
|
||||||
|
$resourcesdata['path'] = str_replace('\\', '/', $resourcesdata['path']);
|
||||||
|
$filepath = dirname($resourcesdata['path']);
|
||||||
|
$filename = substr($resourcesdata['path'], strrpos($resourcesdata['path'], '/') + 1);
|
||||||
|
$filename = str_replace(strrchr($filename, "."), "", $filename);
|
||||||
|
$filepath = str_replace('/', BS, $filepath);
|
||||||
|
$tmppath = $appdata['path'];
|
||||||
|
$thumbpath = $tmppath . BS . $filepath . BS . $filename . '_thumbnail.png';
|
||||||
|
} else {
|
||||||
|
$hookdata = ['rid' => $resourcesdata['rid'], 'apppath' => $appdata['path'], 'appid' => $resourcesdata['appid'], 'version' => $appdata['version']];
|
||||||
|
$return = Hook::listen('getpichomethumb', $hookdata);
|
||||||
|
$thumbpath = str_replace(DZZ_ROOT, '', $return[0]['icon']);
|
||||||
|
}
|
||||||
|
|
||||||
|
} else {
|
||||||
|
if ($resourcesdata['type'] == 'commonimage') {
|
||||||
|
$thumbpath = $appdata['path'] . BS . $resourcesdata['path'];
|
||||||
|
} else {
|
||||||
|
$thumbpath = geticonfromext($resourcesdata['ext'], $resourcesdata['type']);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
$thumbpath = $fpath;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( !$path = dzzdecode(rawurldecode( $_GET[ 'path' ] ),'',0 ) ) {
|
$url = $thumbpath;
|
||||||
@header( 'HTTP/1.1 404 Not Found' );
|
$filename = rtrim($_GET['n'], '.dzz');
|
||||||
@header( 'Status: 404 Not Found' );
|
$ext = strtolower(substr(strrchr($filename, '.'), 1, 10));
|
||||||
exit( 'Access Denied' );
|
if (!$ext) $ext = strtolower(substr(strrchr(preg_replace("/\.dzz$/i", '', preg_replace("/\?.*/i", '', $url)), '.'), 1, 10));
|
||||||
}
|
$mime = dzz_mime::get_type($ext);
|
||||||
|
if (is_file($url)) {
|
||||||
$url = $path;
|
|
||||||
$filename = rtrim( $_GET[ 'n' ], '.dzz' );
|
|
||||||
$ext = strtolower( substr( strrchr( $filename, '.' ), 1, 10 ) );
|
|
||||||
if ( !$ext )$ext = strtolower( substr( strrchr( preg_replace( "/\.dzz$/i", '', preg_replace( "/\?.*/i", '', $url ) ), '.' ), 1, 10 ) );
|
|
||||||
$mime = dzz_mime::get_type( $ext );
|
|
||||||
if ( is_file( $url ) ) {
|
|
||||||
$filename = $url;
|
$filename = $url;
|
||||||
$start = 0;
|
$start = 0;
|
||||||
$total = filesize( $filename );
|
$total = filesize($filename);
|
||||||
header("Cache-Control: private, max-age=2592000, pre-check=2592000");
|
header("Cache-Control: private, max-age=2592000, pre-check=2592000");
|
||||||
header("Pragma: private");
|
header("Pragma: private");
|
||||||
header("Expires: ".date(DATE_RFC822,strtotime(" 30 day")));
|
header("Expires: " . date(DATE_RFC822, strtotime(" 30 day")));
|
||||||
header('Last-Modified: '.gmdate('D, d M Y H:i:s',filemtime($filename)).' GMT');
|
header('Last-Modified: ' . gmdate('D, d M Y H:i:s', filemtime($filename)) . ' GMT');
|
||||||
if ( isset( $_SERVER[ 'HTTP_RANGE' ] ) ) {
|
if (isset($_SERVER['HTTP_RANGE'])) {
|
||||||
$range = str_replace( '=', '-', $_SERVER[ 'HTTP_RANGE' ] );
|
$range = str_replace('=', '-', $_SERVER['HTTP_RANGE']);
|
||||||
$range = explode( '-', $range );
|
$range = explode('-', $range);
|
||||||
if ( isset( $range[ 2 ] ) && intval( $range[ 2 ] ) > 0 ) {
|
if (isset($range[2]) && intval($range[2]) > 0) {
|
||||||
$end = trim( $range[ 2 ] );
|
$end = trim($range[2]);
|
||||||
} else {
|
} else {
|
||||||
$end = $total - 1;
|
$end = $total - 1;
|
||||||
}
|
}
|
||||||
$start = trim( $range[ 1 ] );
|
$start = trim($range[1]);
|
||||||
$size = $end - $start + 1;
|
$size = $end - $start + 1;
|
||||||
|
|
||||||
header( 'HTTP/1.1 206 Partial Content' );
|
header('HTTP/1.1 206 Partial Content');
|
||||||
header( 'Content-Length:' . $size );
|
header('Content-Length:' . $size);
|
||||||
header( 'Content-Range: bytes ' . $start . '-' . $end . '/' . $total );
|
header('Content-Range: bytes ' . $start . '-' . $end . '/' . $total);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
$size = $end = $total;
|
$size = $end = $total;
|
||||||
|
|
||||||
header( 'HTTP/1.1 200 OK' );
|
header('HTTP/1.1 200 OK');
|
||||||
header( 'Content-Length:' . $size );
|
header('Content-Length:' . $size);
|
||||||
header( 'Content-Range: bytes 0-' . ( $total - 1 ) . '/' . $total );
|
header('Content-Range: bytes 0-' . ($total - 1) . '/' . $total);
|
||||||
}
|
}
|
||||||
header( 'Accenpt-Ranges: bytes' );
|
header('Accenpt-Ranges: bytes');
|
||||||
header( 'Content-Type:' . $mime );
|
header('Content-Type:' . $mime);
|
||||||
$fp = fopen( $filename, 'rb' );
|
$fp = fopen($filename, 'rb');
|
||||||
fseek( $fp, $start, 0 );
|
fseek($fp, $start, 0);
|
||||||
|
|
||||||
$cur = $start;
|
$cur = $start;
|
||||||
@ob_end_clean();
|
@ob_end_clean();
|
||||||
if ( getglobal( 'gzipcompress' ) )@ob_start( 'ob_gzhandler' );
|
if (getglobal('gzipcompress')) @ob_start('ob_gzhandler');
|
||||||
while ( !feof( $fp ) && $cur <= $end && ( connection_status() == 0 ) ) {
|
while (!feof($fp) && $cur <= $end && (connection_status() == 0)) {
|
||||||
print fread( $fp, min( 1024 * 16, ( $end - $cur ) + 1 ) );
|
print fread($fp, min(1024 * 16, ($end - $cur) + 1));
|
||||||
$cur += 1024 * 16;
|
$cur += 1024 * 16;
|
||||||
}
|
}
|
||||||
|
|
||||||
fclose( $fp );
|
fclose($fp);
|
||||||
exit();
|
exit();
|
||||||
} else {
|
} else {
|
||||||
//$cachefile=$_G['siteurl']['attachdir'].'cache/'.play_cache_md5(file).'.'.$ext;
|
//$cachefile=$_G['siteurl']['attachdir'].'cache/'.play_cache_md5(file).'.'.$ext;
|
||||||
@@ -73,14 +111,14 @@ if ( is_file( $url ) ) {
|
|||||||
|
|
||||||
header("Cache-Control: private, max-age=2592000, pre-check=2592000");
|
header("Cache-Control: private, max-age=2592000, pre-check=2592000");
|
||||||
header("Pragma: private");
|
header("Pragma: private");
|
||||||
header("Expires: ".date(DATE_RFC822,strtotime(" 30 day")));
|
header("Expires: " . date(DATE_RFC822, strtotime(" 30 day")));
|
||||||
header('Last-Modified: '.gmdate('D, d M Y H:i:s',filemtime($url)).' GMT');
|
header('Last-Modified: ' . gmdate('D, d M Y H:i:s', filemtime($url)) . ' GMT');
|
||||||
header( 'Content-Type: ' . $mime );
|
header('Content-Type: ' . $mime);
|
||||||
//header('Content-Length:'.$size);
|
//header('Content-Length:'.$size);
|
||||||
//header('Content-Range: bytes 0-'.($size-1).'/'.$size);
|
//header('Content-Range: bytes 0-'.($size-1).'/'.$size);
|
||||||
@ob_end_clean();
|
@ob_end_clean();
|
||||||
if ( getglobal( 'gzipcompress' ) )@ob_start( 'ob_gzhandler' );
|
if (getglobal('gzipcompress')) @ob_start('ob_gzhandler');
|
||||||
@readfile( $url );
|
@readfile($url);
|
||||||
@flush();
|
@flush();
|
||||||
@ob_flush();
|
@ob_flush();
|
||||||
exit();
|
exit();
|
||||||
|
|||||||
464
dzz/local/class/class_localexport.php
Normal file
464
dzz/local/class/class_localexport.php
Normal file
@@ -0,0 +1,464 @@
|
|||||||
|
<?php
|
||||||
|
if (!defined('IN_OAOOA')) {
|
||||||
|
exit('Access Denied');
|
||||||
|
}
|
||||||
|
@set_time_limit(0);
|
||||||
|
@ini_set('max_execution_time', 0);
|
||||||
|
require_once(DZZ_ROOT . './dzz/class/class_encode.php');
|
||||||
|
require_once libfile('function/user', '', 'user');
|
||||||
|
|
||||||
|
use \core as C;
|
||||||
|
use \DB as DB;
|
||||||
|
use \IO as IO;
|
||||||
|
use \ImagePalette as ImagePalette;
|
||||||
|
use \Color as Color;
|
||||||
|
|
||||||
|
class localexport
|
||||||
|
{
|
||||||
|
public $palette = array(
|
||||||
|
0x111111, 0xFFFFFF, 0x9E9E9E, 0xA48057, 0xFC85B3, 0xFF2727, 0xFFA34B, 0xFFD534, 0x47C595, 0x51C4C4, 0x2B76E7, 0x6D50ED
|
||||||
|
);
|
||||||
|
private $path = '';//待执行数据path
|
||||||
|
private $appid = 0;//库id
|
||||||
|
private $uid = 0;//用户id
|
||||||
|
private $username = null;//用户名
|
||||||
|
private $filenum = 0;//总文件数
|
||||||
|
private $getinfosizelimit = 100;//限制获取信心文件大小,单位M
|
||||||
|
private $checklimit = 1000;
|
||||||
|
private $onceexportnum = 1000;
|
||||||
|
private $oncegetinfonum = 10000;
|
||||||
|
private $getinfonum = 0;
|
||||||
|
private $readtxt = DZZ_ROOT . './data/attachment/cache/';
|
||||||
|
private $exportstatus = 0;
|
||||||
|
private $donum = 0;
|
||||||
|
private $lastid = '';
|
||||||
|
private $charset = 'UTF-8';
|
||||||
|
private $allowext = '';
|
||||||
|
private $notallowext = '';
|
||||||
|
private $notallowdir = '';
|
||||||
|
private $getinfo = 0;
|
||||||
|
|
||||||
|
public function __construct($data = array())
|
||||||
|
{
|
||||||
|
global $Defaultallowext;
|
||||||
|
//获取导入记录表基本数据
|
||||||
|
$this->path = str_replace(BS, '/', $data['path']);
|
||||||
|
$this->appid = $data['appid'];
|
||||||
|
$this->uid = $data['uid'];
|
||||||
|
$this->username = $data['username'];
|
||||||
|
$this->exportstatus = $data['state'];
|
||||||
|
$this->donum = $data['donum'];
|
||||||
|
$this->filenum = $data['filenum'];
|
||||||
|
$this->lastid = $data['lastid'];
|
||||||
|
$this->getinfonum = $data['getinfonum'];
|
||||||
|
$this->getinfo = $data['getinfo'];
|
||||||
|
$data['allowext'] = ($data['allowext']) ? $data['allowext']:getglobal('setting/pichomeimportallowext');
|
||||||
|
//允许导入后缀
|
||||||
|
if ($data['allowext']) {
|
||||||
|
$allowext = str_replace(array('.', ',','+','$',"'",'^','(',')','[',']','{','}'), array('\.', '|','\+','\$',"'",'\^','\(',')','\[','\]','\{','\}'),$data['allowext']);
|
||||||
|
$this->allowext = str_replace('*', '.*', $allowext);
|
||||||
|
|
||||||
|
}
|
||||||
|
$data['notallowext'] = ($data['notallowext']) ? $data['notallowext']:getglobal('setting/pichomeimportnotallowext');
|
||||||
|
//禁止导入后缀
|
||||||
|
if ($data['notallowext']) {
|
||||||
|
$notallowext = str_replace(array('.', ',','+','$',"'",'^','(',')','[',']','{','}'), array('\.', '|','\+','\$',"'",'\^','\(',')','\[','\]','\{','\}'),$data['notallowext']);
|
||||||
|
$this->notallowext = str_replace('*', '.*', $notallowext);
|
||||||
|
|
||||||
|
}
|
||||||
|
//获取pichome设置的默认禁止导入目录
|
||||||
|
$notallowdir = getglobal('setting/pichomeimportnotdir') ? getglobal('setting/pichomeimportnotdir'):implode(',',$Defaultallowext);
|
||||||
|
//禁止导入目录
|
||||||
|
if ($notallowdir) {
|
||||||
|
$notallowdir = str_replace(array('.', ',','+','$',"'",'^','(',')','[',']','{','}'), array('\.', '|','\+','\$',"'",'\^','\(',')','\[','\]','\{','\}'), $notallowdir);
|
||||||
|
$this->notallowdir = str_replace('*', '.*', $notallowdir);
|
||||||
|
|
||||||
|
}
|
||||||
|
if ($data['charset']) $this->charset = $data['charset'];
|
||||||
|
}
|
||||||
|
|
||||||
|
//获取文件名
|
||||||
|
public function getbasename($filename)
|
||||||
|
{
|
||||||
|
return preg_replace('/^.+[\\\\\\/]/', '', $filename);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public function initExport()
|
||||||
|
{
|
||||||
|
$filedir = $this->path;
|
||||||
|
$readtxt = $this->readtxt . 'loaclexport' . md5($this->path) . '.txt';
|
||||||
|
|
||||||
|
$filenum = 0;
|
||||||
|
if (!is_file($readtxt)) {
|
||||||
|
C::t('pichome_vapp')->update($this->appid, array( 'state' => 1));
|
||||||
|
$thandle = fopen($readtxt, 'w+');
|
||||||
|
$fileinfo = $this->readdir($filedir, $thandle, $filenum);
|
||||||
|
fclose($thandle);
|
||||||
|
if ($fileinfo['error']) {
|
||||||
|
C::t('pichome_vapp')->update($this->appid, array('state' => 0));
|
||||||
|
return $fileinfo;
|
||||||
|
} else {
|
||||||
|
C::t('pichome_vapp')->update($this->appid, array('filenum' => $fileinfo['filenum'], 'state' => 2));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
C::t('pichome_vapp')->update($this->appid, array('state' => 2));
|
||||||
|
return array('success' => true);
|
||||||
|
}
|
||||||
|
|
||||||
|
public function readdir($path, $thandle, &$filenum)
|
||||||
|
{
|
||||||
|
|
||||||
|
if (!is_dir($path)) {
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
$handle = dir($path);
|
||||||
|
if ($handle) {
|
||||||
|
while (($filename = $handle->read()) !== false) {
|
||||||
|
if ($this->charset != CHARSET) $convertfilename = diconv($filename, $this->charset, CHARSET);;
|
||||||
|
$newPath = $path . BS . $filename;
|
||||||
|
if (is_dir($newPath) && $filename != '.' && $filename != '..') {
|
||||||
|
if ((preg_match('/^(' . $this->notallowdir . ')$/i', $convertfilename))) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
fwrite($thandle, $newPath . "\t" . 'folder' . "\n");
|
||||||
|
$this->readdir($newPath, $thandle, $filenum);
|
||||||
|
} elseif (is_file($newPath)) {
|
||||||
|
if (($this->allowext && !preg_match('/^(' . $this->allowext . ')$/i', $convertfilename)) || ($this->notallowext && preg_match('/^(' . $this->notallowext . ')$/i', $convertfilename))) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
$filenum++;
|
||||||
|
fwrite($thandle, $newPath . "\n");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
return array('error' => 'Read Dir Failer');
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
$handle->close();
|
||||||
|
return array('filenum' => $filenum);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
public function execExport($force = false)
|
||||||
|
{
|
||||||
|
$filedir = $this->path;
|
||||||
|
$filedir = str_replace(array('/', './', '\\'), BS, $filedir);
|
||||||
|
$readtxt = $this->readtxt . 'loaclexport' . md5($this->path) . '.txt';
|
||||||
|
//如果txt为空直接进入下一步
|
||||||
|
if(filesize($readtxt) == 0){
|
||||||
|
@unlink($readtxt);
|
||||||
|
C::t('pichome_vapp')->update($this->appid, array('lastid' => 0, 'percent' => 100, 'donum' => 0, 'state' => 3, 'filenum' => $this->filenum));
|
||||||
|
|
||||||
|
return array('success' => true);
|
||||||
|
}
|
||||||
|
|
||||||
|
//检测是否安装了ffmpeg
|
||||||
|
|
||||||
|
if ($this->lastid) {
|
||||||
|
$start = $this->lastid;
|
||||||
|
} else $start = 0;
|
||||||
|
|
||||||
|
$spl_object = new SplFileObject($readtxt, 'rb');
|
||||||
|
$spl_object->seek($start);
|
||||||
|
if ($this->lastid < $this->filenum && $this->exportstatus == 2) {
|
||||||
|
$i = 0;
|
||||||
|
while (is_file($readtxt) && !$spl_object->eof()) {
|
||||||
|
$i++;
|
||||||
|
if ($i > $this->onceexportnum) {
|
||||||
|
break;
|
||||||
|
|
||||||
|
}
|
||||||
|
$file = $spl_object->current();
|
||||||
|
|
||||||
|
$file = trim($file);
|
||||||
|
$file = str_replace(array('/', './', '\\'), BS, $file);
|
||||||
|
$filearr = explode("\t", $file);
|
||||||
|
$filerelativepath = $filearr[0];
|
||||||
|
$filepath = str_replace($filedir . BS, '', $filerelativepath);
|
||||||
|
$p = new Encode_Core();
|
||||||
|
$this->charset = $p->get_encoding($filepath);
|
||||||
|
//如果是目录直接执行目录导入
|
||||||
|
if (isset($filearr[1]) && $filearr[1] == 'folder') {
|
||||||
|
if ($this->charset != CHARSET) $filepath = diconv($filepath, $this->charset, CHARSET);
|
||||||
|
$fid = $this->createfolerbypath($filepath);
|
||||||
|
|
||||||
|
$spl_object->next();
|
||||||
|
continue;
|
||||||
|
} else {
|
||||||
|
$hasrid = 0;
|
||||||
|
//保存路径,用于之后获取文件使用
|
||||||
|
$savepath = str_replace(array('/', './', '\\'), '/', $filearr[0]);
|
||||||
|
$savepath = str_replace($this->path . '/', '', $savepath);
|
||||||
|
if($rid = DB::result_first("select rid from %t where path = %s and appid = %s",
|
||||||
|
array('pichome_resources_attr',$savepath,$this->appid))){
|
||||||
|
$hasrid = 1;
|
||||||
|
}else{
|
||||||
|
//生成rid
|
||||||
|
$rid = $this->createRid();
|
||||||
|
}
|
||||||
|
$realfilepath = $filedir.BS.$filepath;
|
||||||
|
//如果文件不存在则删除记录
|
||||||
|
if (!is_file($realfilepath)) {
|
||||||
|
if($hasrid)C::t('pichome_resources')->delete_by_rid($rid);
|
||||||
|
$this->filenum -= 1;
|
||||||
|
} else {
|
||||||
|
//修改时间
|
||||||
|
$mtime = filemtime($realfilepath);
|
||||||
|
//创建时间
|
||||||
|
$ctime = filectime($realfilepath);
|
||||||
|
//获取文件后缀
|
||||||
|
$ext = substr(strrchr($realfilepath, '.'), 1);
|
||||||
|
$ext = strtolower($ext);
|
||||||
|
//获取文件类型
|
||||||
|
$type = getTypeByExt($ext);
|
||||||
|
//获取文件大小
|
||||||
|
$size = filesize($realfilepath);
|
||||||
|
//获取图片信息,以取得宽高
|
||||||
|
$imginfo = @getimagesize($realfilepath);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
//去掉库路径,以便获取文件相对目录
|
||||||
|
$filepath = str_replace($filedir . BS, '', $filepath);
|
||||||
|
|
||||||
|
if ($this->charset != CHARSET) $filepath = diconv($filepath, $this->charset, CHARSET);
|
||||||
|
//获取文件名
|
||||||
|
$filename = $this->getbasename($filepath);
|
||||||
|
//不符合导入规则文件不允许导入,并减少总数
|
||||||
|
if (($this->allowext && !preg_match('/^(' . $this->allowext . ')$/i', $filename)) || ($this->notallowext && preg_match('/^(' . $this->notallowext . ')$/i', $filename))) {
|
||||||
|
$this->filenum -= 1;
|
||||||
|
} else {
|
||||||
|
//查询是否已有数据
|
||||||
|
$data = C::t('pichome_resources')->fetch($rid);
|
||||||
|
if (!$data) {
|
||||||
|
$setarr = [
|
||||||
|
'rid' => $rid,
|
||||||
|
'name' => $filename,
|
||||||
|
'lastdate' => $mtime,
|
||||||
|
'appid' => $this->appid,
|
||||||
|
'apptype' => 1,
|
||||||
|
'size' => $size,
|
||||||
|
'type' => $type,
|
||||||
|
'ext' => $ext,
|
||||||
|
'width' => ($imginfo[0]) ? $imginfo[0] : 0,
|
||||||
|
'height' => ($imginfo[1]) ? $imginfo[1] : 0,
|
||||||
|
'mtime' => $ctime * 1000,
|
||||||
|
'dateline' => $mtime * 1000,
|
||||||
|
'btime' => TIMESTAMP * 1000
|
||||||
|
];
|
||||||
|
if (C::t('pichome_resources')->insert($setarr)) {
|
||||||
|
$attrdata = [
|
||||||
|
'rid' => $rid,
|
||||||
|
'appid' => $this->appid,
|
||||||
|
'isget' => 0,
|
||||||
|
'path' => $savepath,
|
||||||
|
'searchval'=>$filename
|
||||||
|
|
||||||
|
];
|
||||||
|
|
||||||
|
C::t('pichome_resources_attr')->insert($attrdata);
|
||||||
|
$dirstr = dirname($filepath);
|
||||||
|
if ($dirstr != '.' && $dirstr != '..') {
|
||||||
|
$fid = $this->createfolerbypath($dirstr);
|
||||||
|
if ($fid) {
|
||||||
|
$frsetarr = ['appid' => $this->appid, 'rid' => $rid, 'fid' => $fid];
|
||||||
|
C::t('pichome_folderresources')->insert($frsetarr);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//插入获取信息数据
|
||||||
|
Hook::listen('pichomegetinfo',$setarr);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
if ($mtime > $data['lastdate']) {
|
||||||
|
$setarr = [
|
||||||
|
'lastdate' => $mtime,
|
||||||
|
'appid' => $this->appid,
|
||||||
|
'apptype' => 1,
|
||||||
|
'size' => $size,
|
||||||
|
'type' => $type,
|
||||||
|
'ext' => $ext,
|
||||||
|
'mtime' => $ctime * 1000,
|
||||||
|
'dateline' => $mtime * 1000,
|
||||||
|
'btime' => TIMESTAMP * 1000,
|
||||||
|
'width' => ($imginfo[0]) ? $imginfo[0] : 0,
|
||||||
|
'height' => ($imginfo[1]) ? $imginfo[1] : 0,
|
||||||
|
];
|
||||||
|
if (C::t('pichome_resources')->update($rid, $setarr)) {
|
||||||
|
$attrdata = [
|
||||||
|
'rid' => $rid,
|
||||||
|
'appid' => $this->appid,
|
||||||
|
'isget' => 0,
|
||||||
|
'path' => $savepath,
|
||||||
|
'searchval'=>$filename
|
||||||
|
|
||||||
|
];
|
||||||
|
C::t('pichome_resources_attr')->insert($attrdata);
|
||||||
|
//如果文件被替换强制插入获取信息数据
|
||||||
|
$setarr['isforce'] = 1;
|
||||||
|
Hook::listen('pichomegetinfo',$data);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}else{
|
||||||
|
//如果文件已存在,尝试插入获取信息数据
|
||||||
|
Hook::listen('pichomegetinfo',$data);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$this->donum += 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
$percent = floor(($this->donum / $this->filenum) * 100);
|
||||||
|
$percent = ($percent > 100) ? 100 : $percent;
|
||||||
|
$state = ($percent >= 100) ? 3 : 2;
|
||||||
|
if ($state == 3) {
|
||||||
|
@unlink($readtxt);
|
||||||
|
$lastid = 0;
|
||||||
|
} else {
|
||||||
|
$lastid = $this->donum;
|
||||||
|
}
|
||||||
|
//记录导入起始位置,以备中断后从此处,更改导入状态为正在导入
|
||||||
|
C::t('pichome_vapp')->update($this->appid, array('lastid' => $lastid, 'percent' => $percent, 'donum' => $this->donum, 'state' => $state, 'filenum' => $this->filenum));
|
||||||
|
}
|
||||||
|
$spl_object->next();
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
return array('success' => true);
|
||||||
|
|
||||||
|
}
|
||||||
|
//生成rid
|
||||||
|
public function createRid(){
|
||||||
|
|
||||||
|
//订单年月
|
||||||
|
$ridmd = strtoupper(dechex(date('m'))) . date('d');
|
||||||
|
//订单时间戳
|
||||||
|
$ridms = substr(time(), -5) . substr(microtime(), 2, 5);
|
||||||
|
//订单号
|
||||||
|
$rid = md5($ridmd.$ridms. sprintf('%02d', rand(0, 99)).$this->appid);
|
||||||
|
return $rid;
|
||||||
|
}
|
||||||
|
//根据路径创建目录
|
||||||
|
public function createfolerbypath($path, $pfid = '')
|
||||||
|
{
|
||||||
|
if (!$path) {
|
||||||
|
return $pfid;
|
||||||
|
} else {
|
||||||
|
$patharr = explode(BS, $path);
|
||||||
|
|
||||||
|
//生成目录
|
||||||
|
foreach ($patharr as $fname) {
|
||||||
|
if (!$fname) continue;
|
||||||
|
//判断是否含有此目录
|
||||||
|
if ($fid = DB::result_first("select fid from %t where pfid=%s and appid=%s and fname=%s", array('pichome_folder', $pfid, $this->appid, $fname))) {
|
||||||
|
$pfid = $fid;
|
||||||
|
} else {
|
||||||
|
$parentfolder = C::t('pichome_folder')->fetch($pfid);
|
||||||
|
|
||||||
|
$fid = random(13) . $this->appid;
|
||||||
|
|
||||||
|
if (DB::result_first("select fid from %t where fid = %s", array('pichome_folder', $fid))) {
|
||||||
|
$fid = random(13) . $this->appid;
|
||||||
|
}
|
||||||
|
if ($parentfolder) {
|
||||||
|
$pathkey = $parentfolder['pathkey'] . $fid;
|
||||||
|
} else {
|
||||||
|
$pathkey = $fid;
|
||||||
|
}
|
||||||
|
$setarr = [
|
||||||
|
'fid' => $fid,
|
||||||
|
'fname' => $fname,
|
||||||
|
'appid' => $this->appid,
|
||||||
|
'dateline' => TIMESTAMP,
|
||||||
|
'pfid' => $pfid,
|
||||||
|
'pathkey' => $pathkey
|
||||||
|
];
|
||||||
|
if (C::t('pichome_folder')->insert($setarr)) $pfid = $fid;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return $pfid;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
//校验文件
|
||||||
|
public function execCheckFile()
|
||||||
|
{
|
||||||
|
if ($this->exportstatus == 3) {
|
||||||
|
$total = DB::result_first("select count(rid) from %t where appid = %s ", array('pichome_resources', $this->appid));
|
||||||
|
//校验文件
|
||||||
|
$this->check_file($total);
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function check_file($total)
|
||||||
|
{
|
||||||
|
if ($this->lastid < 1) $this->lastid = 1;
|
||||||
|
$limitsql = ($this->lastid - 1) * $this->checklimit . ',' . $this->checklimit;
|
||||||
|
$delrids = [];
|
||||||
|
$data = DB::fetch_all("select rid,name,ext from %t where appid = %s order by lastdate asc limit $limitsql ", array('pichome_resources', $this->appid));
|
||||||
|
if (empty($data)) {
|
||||||
|
C::t('pichome_vapp')->update($this->appid, array('percent' => 0, 'state' => 4, 'lastid' => 0, 'donum' => 0));
|
||||||
|
//校验完成后更新目录文件数
|
||||||
|
foreach (DB::fetch_all("select count(rf.id) as num,f.fid from %t f left join %t rf on rf.fid=f.fid where f.appid = %s group by f.fid", array('pichome_folder', 'pichome_folderresources', $this->appid)) as $v) {
|
||||||
|
C::t('pichome_folder')->update($v['fid'], array('filenum' => $v['num']));
|
||||||
|
|
||||||
|
}
|
||||||
|
if($this->getinfo){
|
||||||
|
|
||||||
|
//开启器获取信息后执行获取文件信息
|
||||||
|
dfsockopen(getglobal('localurl') . 'index.php?mod=imageColor&op=index', 0, '', '', false, '', 1);
|
||||||
|
dfsockopen(getglobal('localurl') . 'index.php?mod=ffmpeg&op=getinfo', 0, '', '', false, '', 1);
|
||||||
|
dfsockopen(getglobal('localurl') . 'index.php?mod=ffmpeg&op=thumb', 0, '', '', false, '', 1);
|
||||||
|
}
|
||||||
|
$total = DB::result_first("select count(rid) from %t where appid = %s ", array('pichome_resources', $this->appid));
|
||||||
|
$hascatnum = DB::result_first("SELECT count(DISTINCT rid) FROM %t where appid = %s",array('pichome_folderresources',$this->appid));
|
||||||
|
$nosubfilenum = $total - $hascatnum;
|
||||||
|
$getinfonum = DB::result_first("SELECT count(ra.rid) FROM %t ra left join %t fc on ra.rid = fc.rid left join %t ic on ra.rid= ic.rid
|
||||||
|
where ra.appid = %s and ((ra.isget = 0 and ISNULL(fc.rid) and ISNULL(ic.rid)) or (ra.isget=1))",
|
||||||
|
array('pichome_resources_attr','pichome_ffmpeg_record','pichome_imagickrecord',$this->appid));
|
||||||
|
C::t('pichome_vapp')->update($this->appid,array('filenum'=>$total,'nosubfilenum'=>$nosubfilenum,'getinfonum'=>$getinfonum));
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
foreach ($data as $v) {
|
||||||
|
$rid = $v['rid'];
|
||||||
|
$filepath = DB::result_first("select `path` from %t where rid = %s and appid = %s", array('pichome_resources_attr', $rid, $this->appid));
|
||||||
|
$filepath = str_replace(array('/', './', '\\'), BS, $this->path . BS . $filepath);
|
||||||
|
//echo $v['name'].'<br>';
|
||||||
|
if (!is_file($filepath) || ($this->allowext && !preg_match('/^(' . $this->allowext . ')$/i', $v['name'])) || ($this->notallowext && preg_match('/^(' . $this->notallowext . ')$/i', $v['name']))) {
|
||||||
|
//echo $rid;
|
||||||
|
// echo $v['name']."\n";
|
||||||
|
// var_dump((!preg_match('/^(' . $this->allowext . ')$/i', $v['name'])));
|
||||||
|
//die;
|
||||||
|
$delrids[] = $rid;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
if (!empty($delrids)) {
|
||||||
|
$this->filenum = $this->filenum - count($delrids);
|
||||||
|
//如果有需要删除的,删除后,则重新查询上一页数据
|
||||||
|
C::t('pichome_resources')->delete_by_rid($delrids);
|
||||||
|
if($this->lastid == 1){
|
||||||
|
$percent = round(($this->checklimit / $total) * 100);
|
||||||
|
}else{
|
||||||
|
$percent = round((($this->lastid - 1) * $this->checklimit / $total) * 100);
|
||||||
|
}
|
||||||
|
$percent = ($percent > 100) ? 100:$percent;
|
||||||
|
C::t('pichome_vapp')->update($this->appid, array('lastid' => $this->lastid, 'percent' => $percent, 'state' => 3, 'filenum' => $this->filenum));
|
||||||
|
} else {
|
||||||
|
if($this->lastid == 1){
|
||||||
|
$percent = round(($this->checklimit / $total) * 100);
|
||||||
|
}else{
|
||||||
|
$percent = round((($this->lastid - 1) * $this->checklimit / $total) * 100);
|
||||||
|
}
|
||||||
|
$percent = ($percent > 100) ? 100:$percent;
|
||||||
|
C::t('pichome_vapp')->update($this->appid, array('lastid' => $this->lastid + 1, 'percent' => $percent, 'state' => 3));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
28
dzz/local/classes/deleteafter.php
Normal file
28
dzz/local/classes/deleteafter.php
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace dzz\local\classes;
|
||||||
|
|
||||||
|
use \core as C;
|
||||||
|
use \DB as DB;
|
||||||
|
|
||||||
|
|
||||||
|
class deleteafter
|
||||||
|
{
|
||||||
|
|
||||||
|
public function run($data)
|
||||||
|
{
|
||||||
|
if(!empty($data['rids'])){
|
||||||
|
$appid = DB::result_first("select appid from %t where rid = %s",array('pichome_resources',$data['rids'][0]));
|
||||||
|
$appdata = C::t('pichome_vapp')->fetch($appid);
|
||||||
|
if($appdata['type'] == 1){
|
||||||
|
$delnum = count($data['rids']);
|
||||||
|
C::t('pichome_vapp')->add_getinfonum_by_appid($appid,-$delnum);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
@@ -516,7 +516,8 @@ if ($operation == 'addsearch') {//增加关键词搜索次数
|
|||||||
$cid = isset($_GET['cid']) ? $_GET['cid']:'';
|
$cid = isset($_GET['cid']) ? $_GET['cid']:'';
|
||||||
if ($cid) {
|
if ($cid) {
|
||||||
if ($cid == -1) {
|
if ($cid == -1) {
|
||||||
$sql .= " left join %t tr on isnull(tr.cid)";
|
$sql .= " left join %t tr on rt.tid=tr.tid ";
|
||||||
|
$wheresql .= " and isnull(tr.cid) ";
|
||||||
$params[] = 'pichome_tagrelation';
|
$params[] = 'pichome_tagrelation';
|
||||||
} else {
|
} else {
|
||||||
$sql .= " left join %t tr on tr.tid = rt.tid ";
|
$sql .= " left join %t tr on tr.tid = rt.tid ";
|
||||||
@@ -1413,9 +1414,15 @@ if ($operation == 'addsearch') {//增加关键词搜索次数
|
|||||||
$folderdata[$v['fid']] = ['fname'=>$v['fname'],'pathkey'=>$v['pathkey'],'appid'=>$v['appid']];
|
$folderdata[$v['fid']] = ['fname'=>$v['fname'],'pathkey'=>$v['pathkey'],'appid'=>$v['appid']];
|
||||||
$folderdata[$v['fid']]['leaf'] = DB::result_first("select count(*) from %t where pfid = %s",array('pichome_folder',$v['fid'])) ? false:true;
|
$folderdata[$v['fid']]['leaf'] = DB::result_first("select count(*) from %t where pfid = %s",array('pichome_folder',$v['fid'])) ? false:true;
|
||||||
}
|
}
|
||||||
|
if(!isset($_G['setting']['pichomefilterfileds'])){
|
||||||
|
$pichomefilterfileds = C::t('setting')->fetch_all('pichomefilterfileds');
|
||||||
|
}else{
|
||||||
|
$pichomefilterfileds = $_G['setting']['pichomefilterfileds'];
|
||||||
|
}
|
||||||
if ($appid) {
|
if ($appid) {
|
||||||
if ($data = DB::fetch_first("select * from %t where appid=%s ", array('pichome_vapp', $appid))) {
|
if ($data = DB::fetch_first("select * from %t where appid=%s ", array('pichome_vapp', $appid))) {
|
||||||
$data['filter'] = unserialize($data['filter']);
|
|
||||||
|
$data['filter'] = ($data['filter']) ? unserialize($data['filter']):$pichomefilterfileds;
|
||||||
// if($data['filter']){
|
// if($data['filter']){
|
||||||
foreach ($data['filter'] as $k => $v) {
|
foreach ($data['filter'] as $k => $v) {
|
||||||
if ($v['key'] == 'tag' && $v['chacked'] == 1) {
|
if ($v['key'] == 'tag' && $v['chacked'] == 1) {
|
||||||
@@ -1438,13 +1445,10 @@ if ($operation == 'addsearch') {//增加关键词搜索次数
|
|||||||
} else {
|
} else {
|
||||||
exit(json_encode(array('error' => true)));
|
exit(json_encode(array('error' => true)));
|
||||||
}
|
}
|
||||||
} else {
|
} else{
|
||||||
if (isset($_G['setting']['pichomefilterfileds'])) {
|
|
||||||
exit(json_encode(array('success' => true, 'data' => $_G['setting']['pichomefilterfileds'],'folderdata'=>$folderdata,'tagdata'=>$tagdata,'shape'=>$shapelable)));
|
exit(json_encode(array('success' => true, 'data' => $pichomefilterfileds,'folderdata'=>$folderdata,'tagdata'=>$tagdata,'shape'=>$shapelable)));
|
||||||
} else {
|
|
||||||
$setting = C::t('setting')->fetch_all('pichomefilterfileds');
|
|
||||||
exit(json_encode(array('success' => true, 'data' => $setting['pichomefilterfileds'],'folderdata'=>$folderdata,'tagdata'=>$tagdata,'shape'=>$shapelable)));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} elseif ($operation == 'createshare') {//分享
|
} elseif ($operation == 'createshare') {//分享
|
||||||
@@ -1497,4 +1501,35 @@ if ($operation == 'addsearch') {//增加关键词搜索次数
|
|||||||
C::t('user_setting')->update_by_skey('pichomeimageexpanded',$pichomeimageexpanded);
|
C::t('user_setting')->update_by_skey('pichomeimageexpanded',$pichomeimageexpanded);
|
||||||
exit(json_encode(array('success' => true)));
|
exit(json_encode(array('success' => true)));
|
||||||
}
|
}
|
||||||
|
}elseif($operation == 'gethostip'){
|
||||||
|
$iphost = [];
|
||||||
|
$os = PHP_OS;
|
||||||
|
if(preg_match('/^WIN(.+?)/i',$os)){
|
||||||
|
$host= gethostname();
|
||||||
|
}else{
|
||||||
|
$host = $_SERVER['SERVER_NAME'];
|
||||||
|
}
|
||||||
|
$host = $_SERVER['SERVER_NAME'];
|
||||||
|
|
||||||
|
$ip = gethostbyname($host);
|
||||||
|
$ip = filter_var($ip,FILTER_VALIDATE_IP);
|
||||||
|
if(!$ip || strpos($ip,'127') === 0){
|
||||||
|
if(preg_match('/^WIN(.+?)/i',$os)){
|
||||||
|
$host= gethostname();
|
||||||
|
}else{
|
||||||
|
$host = $_SERVER['SERVER_NAME'];
|
||||||
|
}
|
||||||
|
$ip = gethostbyname($host);
|
||||||
|
}
|
||||||
|
if($_SERVER['SERVER_PORT'] == 443){
|
||||||
|
$siteurl = 'https://'.$_SERVER['SERVER_NAME'];
|
||||||
|
} elseif($_SERVER["SERVER_PORT"] == 80) {
|
||||||
|
$siteurl = 'http://'.$_SERVER['SERVER_NAME'];
|
||||||
|
|
||||||
|
}else{
|
||||||
|
$ip = $ip . ':' . $_SERVER["SERVER_PORT"];
|
||||||
|
$siteurl = 'http://'.$_SERVER['SERVER_NAME'] . ':' . $_SERVER["SERVER_PORT"];
|
||||||
|
}
|
||||||
|
$iphost = ['ip'=>$ip,'siteurl'=>$siteurl];
|
||||||
|
exit(json_encode($iphost));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -144,7 +144,22 @@ class eagleexport
|
|||||||
return array('success' => true);
|
return array('success' => true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//获取文件可访问的真实地址
|
||||||
|
public function getFileRealFileName($filepath,$filename,$ext){
|
||||||
|
$charsetarr = ['GBK','GB18030'];
|
||||||
|
$returnname = $filename;
|
||||||
|
if(!is_file($filepath.BS.$filename.'.'.$ext)){
|
||||||
|
foreach ($charsetarr as $v){
|
||||||
|
$filemetadataname = diconv($filename, CHARSET, $v);
|
||||||
|
if(is_file($filepath.BS.$filemetadataname.'.'.$ext)){
|
||||||
|
$returnname = $filemetadataname;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return $returnname;
|
||||||
|
|
||||||
|
}
|
||||||
public function execExport($force = false)
|
public function execExport($force = false)
|
||||||
{
|
{
|
||||||
$filedir = $this->path . BS.'images';
|
$filedir = $this->path . BS.'images';
|
||||||
@@ -199,9 +214,7 @@ class eagleexport
|
|||||||
C::t('pichome_resources')->delete_by_rid($rid);
|
C::t('pichome_resources')->delete_by_rid($rid);
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
$p = new Encode_Core();
|
$filemetadataname = $this->getFileRealFileName($tmppath,$filemetadata['name'],$filemetadata['ext']);
|
||||||
$charset = $p->get_encoding($tmppath);
|
|
||||||
if (CHARSET != $charset) $filemetadataname = diconv($filemetadata['name'], CHARSET, $charset);
|
|
||||||
//文件名称
|
//文件名称
|
||||||
$filename = $filemetadataname . '.' . $filemetadata['ext'];
|
$filename = $filemetadataname . '.' . $filemetadata['ext'];
|
||||||
//缩略图名称
|
//缩略图名称
|
||||||
@@ -339,10 +352,8 @@ class eagleexport
|
|||||||
$haspassword = C::t('pichome_folder')->check_haspasswrod($filemetadata['folders'], $this->appid);
|
$haspassword = C::t('pichome_folder')->check_haspasswrod($filemetadata['folders'], $this->appid);
|
||||||
|
|
||||||
if (!$haspassword){
|
if (!$haspassword){
|
||||||
$p = new Encode_Core();
|
$filemetadataname = $this->getFileRealFileName($tmppath,$filemetadata['name'],$filemetadata['ext']);
|
||||||
$charset = $p->get_encoding($tmppath);
|
//echo $filemetadataname;die;
|
||||||
if (CHARSET != $charset) $filemetadataname = diconv($filemetadata['name'], CHARSET, $charset);
|
|
||||||
|
|
||||||
$filename = $filemetadataname . '.' . $filemetadata['ext'];
|
$filename = $filemetadataname . '.' . $filemetadata['ext'];
|
||||||
$thumbname = $filemetadataname . '_thumbnail.png';
|
$thumbname = $filemetadataname . '_thumbnail.png';
|
||||||
//echo $i.'middle:'.memory_get_usage()/1024 . '<br>';
|
//echo $i.'middle:'.memory_get_usage()/1024 . '<br>';
|
||||||
|
|||||||
@@ -175,36 +175,45 @@ class localexport
|
|||||||
$file = trim($file);
|
$file = trim($file);
|
||||||
$file = str_replace(array('/', './', '\\'), BS, $file);
|
$file = str_replace(array('/', './', '\\'), BS, $file);
|
||||||
$filearr = explode("\t", $file);
|
$filearr = explode("\t", $file);
|
||||||
$filepath = $filearr[0];
|
$filerelativepath = $filearr[0];
|
||||||
|
$filepath = str_replace($filedir . BS, '', $filerelativepath);
|
||||||
|
$p = new Encode_Core();
|
||||||
|
$this->charset = $p->get_encoding($filepath);
|
||||||
//如果是目录直接执行目录导入
|
//如果是目录直接执行目录导入
|
||||||
if (isset($filearr[1]) && $filearr[1] == 'folder') {
|
if (isset($filearr[1]) && $filearr[1] == 'folder') {
|
||||||
$filepath = str_replace($filedir . BS, '', $filepath);
|
|
||||||
if ($this->charset != CHARSET) $filepath = diconv($filepath, $this->charset, CHARSET);
|
if ($this->charset != CHARSET) $filepath = diconv($filepath, $this->charset, CHARSET);
|
||||||
|
|
||||||
$fid = $this->createfolerbypath($filepath);
|
$fid = $this->createfolerbypath($filepath);
|
||||||
|
|
||||||
$spl_object->next();
|
$spl_object->next();
|
||||||
continue;
|
continue;
|
||||||
} else {
|
} else {
|
||||||
|
$hasrid = 0;
|
||||||
|
if($rid = DB::result_first("select rid from %t where path = %s and appid = %s",
|
||||||
|
array('pichome_resources_attr',$filepath,$this->appid))){
|
||||||
|
$hasrid = 1;
|
||||||
|
}else{
|
||||||
//生成rid
|
//生成rid
|
||||||
$rid = md5($filepath.$this->appid);
|
$rid = $this->createRid();
|
||||||
|
}
|
||||||
|
$realfilepath = $filedir.BS.$filepath;
|
||||||
//如果文件不存在则删除记录
|
//如果文件不存在则删除记录
|
||||||
if (!is_file($filepath)) {
|
if (!is_file($realfilepath)) {
|
||||||
C::t('pichome_resources')->delete_by_rid($rid);
|
if($hasrid)C::t('pichome_resources')->delete_by_rid($rid);
|
||||||
$this->filenum -= 1;
|
$this->filenum -= 1;
|
||||||
} else {
|
} else {
|
||||||
|
//修改时间
|
||||||
$mtime = filemtime($filepath);
|
$mtime = filemtime($realfilepath);
|
||||||
$ctime = filectime($filepath);
|
//创建时间
|
||||||
|
$ctime = filectime($realfilepath);
|
||||||
//获取文件后缀
|
//获取文件后缀
|
||||||
$ext = substr(strrchr($filepath, '.'), 1);
|
$ext = substr(strrchr($realfilepath, '.'), 1);
|
||||||
$ext = strtolower($ext);
|
$ext = strtolower($ext);
|
||||||
//获取文件类型
|
//获取文件类型
|
||||||
$type = getTypeByExt($ext);
|
$type = getTypeByExt($ext);
|
||||||
//获取文件大小
|
//获取文件大小
|
||||||
$size = filesize($filepath);
|
$size = filesize($realfilepath);
|
||||||
//获取图片信息,以取得宽高
|
//获取图片信息,以取得宽高
|
||||||
$imginfo = @getimagesize($filepath);
|
$imginfo = @getimagesize($realfilepath);
|
||||||
//保存路径,用于之后获取文件使用
|
//保存路径,用于之后获取文件使用
|
||||||
$savepath = str_replace(array('/', './', '\\'), '/', $filearr[0]);
|
$savepath = str_replace(array('/', './', '\\'), '/', $filearr[0]);
|
||||||
$savepath = str_replace($this->path . '/', '', $savepath);
|
$savepath = str_replace($this->path . '/', '', $savepath);
|
||||||
@@ -321,7 +330,17 @@ class localexport
|
|||||||
return array('success' => true);
|
return array('success' => true);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
//生成rid
|
||||||
|
public function createRid(){
|
||||||
|
|
||||||
|
//订单年月
|
||||||
|
$ridmd = strtoupper(dechex(date('m'))) . date('d');
|
||||||
|
//订单时间戳
|
||||||
|
$ridms = substr(time(), -5) . substr(microtime(), 2, 5);
|
||||||
|
//订单号
|
||||||
|
$rid = md5($ridmd.$ridms. sprintf('%02d', rand(0, 99)).$this->appid);
|
||||||
|
return $rid;
|
||||||
|
}
|
||||||
//根据路径创建目录
|
//根据路径创建目录
|
||||||
public function createfolerbypath($path, $pfid = '')
|
public function createfolerbypath($path, $pfid = '')
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -26,6 +26,29 @@ html,body,#dzzoffice{
|
|||||||
padding: 0;
|
padding: 0;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
.bs-main-container{
|
||||||
|
height: 100%;
|
||||||
|
width: 100%;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
.pic-container{
|
||||||
|
height: 100%;
|
||||||
|
width: 100%;
|
||||||
|
overflow: hidden;
|
||||||
|
|
||||||
|
}
|
||||||
|
.pic-container .pic-container-scroll{
|
||||||
|
height: 100%;
|
||||||
|
width: 100%;
|
||||||
|
overflow: auto;
|
||||||
|
position: relative;
|
||||||
|
padding-top: 46px;
|
||||||
|
}
|
||||||
|
.pic-container .img-container{
|
||||||
|
min-height: 100% ;
|
||||||
|
position: relative;
|
||||||
|
padding: 0 4px;
|
||||||
|
}
|
||||||
input::-webkit-input-placeholder { /* WebKit, Blink, Edge */
|
input::-webkit-input-placeholder { /* WebKit, Blink, Edge */
|
||||||
color : var(--tip-color);
|
color : var(--tip-color);
|
||||||
}
|
}
|
||||||
@@ -45,10 +68,83 @@ input:-ms-input-placeholder { /* Internet Explorer 10-11 */
|
|||||||
input::-ms-input-placeholder { /* Microsoft Edge */
|
input::-ms-input-placeholder { /* Microsoft Edge */
|
||||||
color : var(--tip-color);
|
color : var(--tip-color);
|
||||||
}
|
}
|
||||||
|
[v-cloak] {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page-popup{
|
||||||
|
background: var(--bg-content) !important;
|
||||||
|
}
|
||||||
|
.van-action-sheet__cancel, .van-action-sheet__item{
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
.van-action-sheet__gap,
|
||||||
|
.van-action-sheet__cancel:active,
|
||||||
|
.van-action-sheet__item:active{
|
||||||
|
background-color: var(--bg-poperHover);
|
||||||
|
}
|
||||||
|
.van-action-sheet__cancel{
|
||||||
|
color: var(--header-text);
|
||||||
|
}
|
||||||
|
.custom-image.van-empty{
|
||||||
|
position: absolute;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
top: 0;
|
||||||
|
margin: auto;
|
||||||
|
}
|
||||||
|
.img-circle{
|
||||||
|
width: 2.1875rem;
|
||||||
|
height: 2.1875rem;
|
||||||
|
border-radius: 50%;
|
||||||
|
vertical-align: middle;
|
||||||
|
}
|
||||||
|
.Topcarousel{
|
||||||
|
border-radius: 50%;
|
||||||
|
text-align: center;
|
||||||
|
display: inline-block;
|
||||||
|
font-size: 1rem;
|
||||||
|
width: 2.1875rem;
|
||||||
|
height: 2.1875rem;
|
||||||
|
line-height: 2.1875rem;
|
||||||
|
color: #FFF;
|
||||||
|
}
|
||||||
|
#dzzoffice{
|
||||||
|
position: relative;
|
||||||
|
background: var(--bg-content);
|
||||||
|
}
|
||||||
|
.pic-logo{
|
||||||
|
height: 40px;
|
||||||
|
padding: 5px 0;
|
||||||
|
}
|
||||||
|
.pic-logo .h-left{
|
||||||
|
height: 30px;
|
||||||
|
display: -webkit-box;
|
||||||
|
display: -webkit-flex;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
color: var(--header-text);
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
.pic-logo .h-left img{
|
||||||
|
max-width: 100%;
|
||||||
|
max-height: 100%;
|
||||||
|
margin-right: 10px;
|
||||||
|
}
|
||||||
|
.van-nav-bar__title{
|
||||||
|
color: var(--header-text);
|
||||||
|
}
|
||||||
.van-nav-bar__content{
|
.van-nav-bar__content{
|
||||||
/* 46px */
|
/* 46px */
|
||||||
height: 46px;
|
height: 46px;
|
||||||
}
|
}
|
||||||
|
.van-nav-bar .van-icon{
|
||||||
|
color: var(--content-textHover);
|
||||||
|
}
|
||||||
|
.van-nav-bar__content .van-nav-bar__text{
|
||||||
|
color: var(--header-text);
|
||||||
|
}
|
||||||
.van-popup.van-notify.van-notify--warning{
|
.van-popup.van-notify.van-notify--warning{
|
||||||
background-color: #ff976a;
|
background-color: #ff976a;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
@@ -169,7 +265,9 @@ ul{
|
|||||||
.van-cell::after{
|
.van-cell::after{
|
||||||
border-color: var(--border-color-base);
|
border-color: var(--border-color-base);
|
||||||
}
|
}
|
||||||
|
.van-cell--clickable:active{
|
||||||
|
background-color: var(--bg-poperHover);
|
||||||
|
}
|
||||||
.van-search{
|
.van-search{
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
}
|
}
|
||||||
@@ -189,6 +287,9 @@ ul{
|
|||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
color: var(--header-text);
|
color: var(--header-text);
|
||||||
}
|
}
|
||||||
|
.van-sidebar-item.van-sidebar-item--disabled{
|
||||||
|
opacity: 0.7;
|
||||||
|
}
|
||||||
.van-sidebar-item--select{
|
.van-sidebar-item--select{
|
||||||
color: var(--header-active);
|
color: var(--header-active);
|
||||||
}
|
}
|
||||||
@@ -268,3 +369,172 @@ ul{
|
|||||||
transform: rotate(359deg)
|
transform: rotate(359deg)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.van-cell-group{
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
.about-popup,
|
||||||
|
.my-popup{
|
||||||
|
height: 100%;
|
||||||
|
width: 100%;
|
||||||
|
background: var(--bg-content);
|
||||||
|
color: var(--content-textHover);
|
||||||
|
overflow: hidden;
|
||||||
|
padding-top: 46px;
|
||||||
|
}
|
||||||
|
.about-popup .van-nav-bar,
|
||||||
|
.my-popup .van-nav-bar{
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
.about-popup .scroll-box,
|
||||||
|
.my-popup .scroll-box{
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
overflow: auto;
|
||||||
|
padding-top: 0.9375rem;
|
||||||
|
}
|
||||||
|
.my-popup .scroll-box .van-cell-group{
|
||||||
|
background: transparent;
|
||||||
|
}
|
||||||
|
.my-popup .scroll-box .van-cell {
|
||||||
|
background: transparent;
|
||||||
|
}
|
||||||
|
.my-popup .scroll-box .van-cell::after{
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.my-popup .scroll-box .van-cell .van-cell__right-icon{
|
||||||
|
color: var(--header-text);
|
||||||
|
}
|
||||||
|
|
||||||
|
.about-popup .aboutlogo{
|
||||||
|
text-align: center;
|
||||||
|
padding-top: 3.125rem;
|
||||||
|
padding-bottom: 1.875rem;
|
||||||
|
}
|
||||||
|
.about-popup .aboutmessage{
|
||||||
|
padding: 0 2.1875rem;
|
||||||
|
}
|
||||||
|
.about-popup .aboutmessage .aboutlist{
|
||||||
|
margin-bottom: 1.25rem;
|
||||||
|
overflow: hidden;
|
||||||
|
font-size: 1rem;
|
||||||
|
}
|
||||||
|
.about-popup .aboutmessage .aboutlist .title{
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
.about-popup .aboutmessage .aboutlist .address{
|
||||||
|
color: var(--color-primary);
|
||||||
|
font-size: 1rem;
|
||||||
|
vertical-align: sub;
|
||||||
|
}
|
||||||
|
@media screen and (min-width: 768px) {
|
||||||
|
.about-popup .aboutmessage{
|
||||||
|
padding: 0 6.25rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.pic-toolbar{
|
||||||
|
position: fixed;
|
||||||
|
width: 100%;
|
||||||
|
left: 0;
|
||||||
|
padding: 0 8%;
|
||||||
|
transition: all .3s;
|
||||||
|
transition:all .3s;
|
||||||
|
-moz-transition:all .3s; /* Firefox 4 */
|
||||||
|
-webkit-transition:all .3s; /* Safari and Chrome */
|
||||||
|
-o-transition:all .3s; /* Opera */
|
||||||
|
z-index: 100;
|
||||||
|
}
|
||||||
|
.pic-toolbar.footershow{
|
||||||
|
bottom: 3%;
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
.pic-toolbar.footerhide{
|
||||||
|
bottom: -2.9375rem;
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
.pic-toolbar .tabbar{
|
||||||
|
display: -webkit-box;
|
||||||
|
display: -webkit-flex;
|
||||||
|
display: flex;
|
||||||
|
border-radius: 39px;
|
||||||
|
background: var(--bg-poper);
|
||||||
|
padding: 0.375rem 0;
|
||||||
|
color: var(--header-text);
|
||||||
|
/* box-shadow: 0px 0px 5px 1px var(--bg-poperHover); */
|
||||||
|
}
|
||||||
|
.pic-toolbar .tab-item{
|
||||||
|
-webkit-box-flex: 1;
|
||||||
|
-webkit-flex: 1;
|
||||||
|
flex: 1;
|
||||||
|
text-align: center;
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
.pic-toolbar .tab-item .icon{
|
||||||
|
font-size: var(--font-32);
|
||||||
|
}
|
||||||
|
.pic-toolbar .tab-item img{
|
||||||
|
border-radius: 50%;
|
||||||
|
width: 2.1875rem;
|
||||||
|
height: 2.1875rem;
|
||||||
|
vertical-align: bottom;
|
||||||
|
}
|
||||||
|
|
||||||
|
.van-popup{
|
||||||
|
overflow: unset;
|
||||||
|
}
|
||||||
|
.van-popup .vam-popup-title{
|
||||||
|
height: 40px;
|
||||||
|
font-weight: 700;
|
||||||
|
position: absolute;
|
||||||
|
top: -40px;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
padding: 0 12px;
|
||||||
|
font-size: 18px;
|
||||||
|
color: #FFFFFF;
|
||||||
|
}
|
||||||
|
.footer-popup{
|
||||||
|
padding-bottom: 70px;
|
||||||
|
}
|
||||||
|
.footer-popup .btn-bottom{
|
||||||
|
padding: 10px;
|
||||||
|
height: 70px;
|
||||||
|
position: absolute;
|
||||||
|
width: 100%;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
}
|
||||||
|
.footer-popup .btn-bottom .van-button{
|
||||||
|
width: auto;
|
||||||
|
padding: 15px 20px;
|
||||||
|
}
|
||||||
|
.footer-popup .popup-search-input .van-field__right-icon{
|
||||||
|
padding-right: 0;
|
||||||
|
}
|
||||||
|
.footer-popup .popup-search-input .van-field__right-icon .van-icon{
|
||||||
|
font-size: 1.25rem;
|
||||||
|
color: var(--header-active);
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer-popup .van-search-box{
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
.footer-popup .van-search-box .van-field{
|
||||||
|
border: 0;
|
||||||
|
font-size: 0.875rem;
|
||||||
|
}
|
||||||
|
.van-notify--success {
|
||||||
|
background-color: #07c160;
|
||||||
|
}
|
||||||
|
.van-notify--danger {
|
||||||
|
background-color: #ee0a24;
|
||||||
|
}
|
||||||
|
.van-notify--warning {
|
||||||
|
background-color: #ff976a;
|
||||||
|
}
|
||||||
@@ -37,10 +37,6 @@
|
|||||||
.detail-popup.full .header-top{
|
.detail-popup.full .header-top{
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
.van-nav-bar .van-nav-bar__title,
|
|
||||||
.van-nav-bar .van-icon {
|
|
||||||
color: var(--content-textHover);
|
|
||||||
}
|
|
||||||
|
|
||||||
.detail-popup .detail-popup-translate{
|
.detail-popup .detail-popup-translate{
|
||||||
position: relative;
|
position: relative;
|
||||||
|
|||||||
342
dzz/pichome/css/mobile/image.css
Normal file
342
dzz/pichome/css/mobile/image.css
Normal file
@@ -0,0 +1,342 @@
|
|||||||
|
#imgContainer .imgitem .imgchecked{
|
||||||
|
z-index: 5;
|
||||||
|
position: absolute;
|
||||||
|
left: 5%;
|
||||||
|
top: 3%;
|
||||||
|
}
|
||||||
|
#imgContainer .imgitem .imgchecked .van-checkbox__icon{
|
||||||
|
height: 25px;
|
||||||
|
}
|
||||||
|
#imgContainer .imgitem .imgchecked .van-checkbox__icon .van-icon{
|
||||||
|
font-size: 20px;
|
||||||
|
background-color: #FFFFFF;
|
||||||
|
}
|
||||||
|
#imgContainer .imgitem .imgchecked .van-checkbox__icon.van-checkbox__icon--checked .van-icon{
|
||||||
|
background-color: var(--color-primary);
|
||||||
|
}
|
||||||
|
#imgContainer .imgitem .imgbox .bottom-img-message{
|
||||||
|
text-align: center;
|
||||||
|
color: var(--content-text);
|
||||||
|
overflow: hidden;
|
||||||
|
max-height: 65px;
|
||||||
|
padding: 0 6px;
|
||||||
|
}
|
||||||
|
#imgContainer .imgitem .imgbox .bottom-img-message .name {
|
||||||
|
max-height: 45px;
|
||||||
|
display: -webkit-box;
|
||||||
|
display: -webkit-flex;
|
||||||
|
display: flex;
|
||||||
|
overflow: hidden;
|
||||||
|
justify-content: flex-end;
|
||||||
|
}
|
||||||
|
#imgContainer .imgitem .imgbox .bottom-img-message .name .text{
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
display: -webkit-box;
|
||||||
|
-webkit-box-orient: vertical;
|
||||||
|
-webkit-line-clamp: 2;
|
||||||
|
font-size: 0.875rem;
|
||||||
|
width: 100%;
|
||||||
|
height: 35px;
|
||||||
|
margin-top: 10px;
|
||||||
|
word-wrap: break-word;
|
||||||
|
}
|
||||||
|
#imgContainer .imgitem .imgbox .bottom-img-message .name .circulars{
|
||||||
|
color: var(--content-text);
|
||||||
|
font-size: 16px;
|
||||||
|
min-width: 45px;
|
||||||
|
height: 35px;
|
||||||
|
text-align: center;
|
||||||
|
line-height: 35px;
|
||||||
|
}
|
||||||
|
#imgContainer .imgitem .imgbox .bottom-img-message .other {
|
||||||
|
font-size: 0.75rem;
|
||||||
|
overflow: hidden;
|
||||||
|
white-space: nowrap;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
height: 21px;
|
||||||
|
padding-top: 5px;
|
||||||
|
color: var(--content-textMessage);
|
||||||
|
}
|
||||||
|
#imgContainer .imgitem .imgbox .bottom-img-message .other .score{
|
||||||
|
color: var(--stars);
|
||||||
|
}
|
||||||
|
#imgContainer .imgitem .imgbox .bottom-img-message .other .score.active{
|
||||||
|
color: var(--starsActive);
|
||||||
|
}
|
||||||
|
#imgContainer .imgitem .imgbox .annotation{
|
||||||
|
position: absolute;
|
||||||
|
right: 5px;
|
||||||
|
top: 5px;
|
||||||
|
font-size: 14px;
|
||||||
|
width: 22px;
|
||||||
|
height: 22px;
|
||||||
|
border: 2px solid #FFFFFF;
|
||||||
|
border-radius: 50%;
|
||||||
|
color: #FFFFFF;
|
||||||
|
text-align: center;
|
||||||
|
line-height: 20px;
|
||||||
|
background: var(--color-primary);
|
||||||
|
}
|
||||||
|
#imgContainer{
|
||||||
|
position: relative;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
#imgContainer .imgitem{
|
||||||
|
position: absolute;
|
||||||
|
/* transition:all .2s; */
|
||||||
|
}
|
||||||
|
#imgContainer .imgitem .imgbox {
|
||||||
|
padding-left: 4px;
|
||||||
|
padding-right: 4px;
|
||||||
|
}
|
||||||
|
#imgContainer .imgitem .imgbox .imgbox-border {
|
||||||
|
position: relative;
|
||||||
|
overflow: hidden;
|
||||||
|
cursor: zoom-in;
|
||||||
|
/* min-height: 120px; */
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
#imgContainer .imgitem .imgbox .imgbox-border.radius{
|
||||||
|
border-radius: 18px;
|
||||||
|
}
|
||||||
|
#imgContainer .imgitem .imgbox .imgbox-border .div-black {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
position: relative;
|
||||||
|
display: -webkit-box;
|
||||||
|
display: -webkit-flex;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
#imgContainer .imgitem .imgbox .imgbox-border .div-black .bck{
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
display: none;
|
||||||
|
background: var(--bg-poper);
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
position: absolute;
|
||||||
|
opacity: 0.7;
|
||||||
|
}
|
||||||
|
#imgContainer .imgitem .imgbox .imgbox-border .img {
|
||||||
|
max-width: 100%;
|
||||||
|
max-height: 100%;
|
||||||
|
width: auto;
|
||||||
|
height: auto;
|
||||||
|
border-radius: 18px;
|
||||||
|
}
|
||||||
|
#imgContainer .imgitem .imgbox .imgbox-border .img.opacity{
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
#imgContainer .imgitem .imgbox .imgbox-border .div-black .circular-box{
|
||||||
|
display: none;
|
||||||
|
position: absolute;
|
||||||
|
z-index: 2;
|
||||||
|
width: 45px;
|
||||||
|
height: 45px;
|
||||||
|
border-radius: 50%;
|
||||||
|
}
|
||||||
|
#imgContainer .imgitem .imgbox .imgbox-border .div-black .circular-box .circular-item{
|
||||||
|
width: 45px;
|
||||||
|
height: 45px;
|
||||||
|
border-radius: 50%;
|
||||||
|
color: #333;
|
||||||
|
z-index: 100;
|
||||||
|
font-size: 21px;
|
||||||
|
text-align: center;
|
||||||
|
line-height: 45px;
|
||||||
|
background: #ffffff;
|
||||||
|
position: absolute;
|
||||||
|
transition: top .3s ease-in-out,left .3s ease-in-out;
|
||||||
|
/* transition: all .3s ease-in-out; */
|
||||||
|
top: -22.5px;
|
||||||
|
left: -22.5px;
|
||||||
|
transform-origin: 0px;
|
||||||
|
/* transition-delay: 0.02s; */
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#imgContainer .imgitem .imgbox .imgbox-border .div-black.fixed{
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
z-index: 100;
|
||||||
|
}
|
||||||
|
#imgContainer .imgitem .imgbox .imgbox-border .div-black.fixed .bck{
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
#imgContainer .imgitem .imgbox .imgbox-border .div-black.fixed .img{
|
||||||
|
position: absolute;
|
||||||
|
z-index: 2;
|
||||||
|
max-width: inherit;
|
||||||
|
max-height: inherit;
|
||||||
|
}
|
||||||
|
#imgContainer .imgitem .imgbox .imgbox-border .div-black.fixed .circular-box{
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
#imgContainer .imgitem .imgbox .imgbox-border .div-black.fixed .circular-box .round{
|
||||||
|
position: absolute;
|
||||||
|
width: 45px;
|
||||||
|
height: 45px;
|
||||||
|
border-radius: 50%;
|
||||||
|
background: transparent;
|
||||||
|
left: 0px;
|
||||||
|
top: 0px;
|
||||||
|
border: 3px solid var(--bg-poper);
|
||||||
|
}
|
||||||
|
#imgContainer .imgitem .imgbox .imgbox-border .div-black.fixed .circular-box .circular-item-box{
|
||||||
|
position: absolute;
|
||||||
|
left: -67.5px;
|
||||||
|
top: -67.5px;
|
||||||
|
border: 90px solid transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#imgContainer .imgitem .imgbox .imgbox-border .div-black .circular-box.top .circular-item.first{
|
||||||
|
top: -22.5px;
|
||||||
|
left: -22.5px;
|
||||||
|
}
|
||||||
|
#imgContainer .imgitem .imgbox .imgbox-border .div-black .circular-box.top .circular-item.two{
|
||||||
|
top: 0px;
|
||||||
|
left: -80px;
|
||||||
|
}
|
||||||
|
#imgContainer .imgitem .imgbox .imgbox-border .div-black .circular-box.top .circular-item.three{
|
||||||
|
top: -22.5px;
|
||||||
|
left: -138.5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#imgContainer .imgitem .imgbox .imgbox-border .div-black.fixed .circular-box .circular-item-box .icon{
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
#imgContainer .imgitem .imgbox .imgbox-border .div-black.fixed .circular-box.top .circular-item.first{
|
||||||
|
transform: rotate(0deg);
|
||||||
|
top: -80px;
|
||||||
|
left: -80px;
|
||||||
|
transform-origin: 80px 80px;
|
||||||
|
}
|
||||||
|
#imgContainer .imgitem .imgbox .imgbox-border .div-black.fixed .circular-box.top .circular-item.two{
|
||||||
|
transform: rotate(45deg);
|
||||||
|
top: -80px;
|
||||||
|
left: -80px;
|
||||||
|
transform-origin: 80px 80px;
|
||||||
|
}
|
||||||
|
#imgContainer .imgitem .imgbox .imgbox-border .div-black.fixed .circular-box.top .circular-item.two .icon{
|
||||||
|
transform: rotate(-45deg);
|
||||||
|
}
|
||||||
|
#imgContainer .imgitem .imgbox .imgbox-border .div-black.fixed .circular-box.top .circular-item.three{
|
||||||
|
transform: rotate(90deg);
|
||||||
|
top: -80px;
|
||||||
|
left: -80px;
|
||||||
|
transform-origin: 80px 80px;
|
||||||
|
}
|
||||||
|
#imgContainer .imgitem .imgbox .imgbox-border .div-black.fixed .circular-box.top .circular-item.three .icon{
|
||||||
|
transform: rotate(-90deg);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#imgContainer .imgitem .imgbox .imgbox-border .div-black .circular-box.top.right .circular-item.first{
|
||||||
|
top: -80.5px;
|
||||||
|
left: 1px;
|
||||||
|
}
|
||||||
|
#imgContainer .imgitem .imgbox .imgbox-border .div-black .circular-box.top.right .circular-item.two{
|
||||||
|
top: -22.5px;
|
||||||
|
left: -22.5px;
|
||||||
|
}
|
||||||
|
#imgContainer .imgitem .imgbox .imgbox-border .div-black .circular-box.top.right .circular-item.three{
|
||||||
|
top: 0px;
|
||||||
|
left: -80px;
|
||||||
|
}
|
||||||
|
#imgContainer .imgitem .imgbox .imgbox-border .div-black.fixed .circular-box.top.right .circular-item.first{
|
||||||
|
transform: rotate(-45deg);
|
||||||
|
top: -80px;
|
||||||
|
left: -80px;
|
||||||
|
transform-origin: 80px 80px;
|
||||||
|
}
|
||||||
|
#imgContainer .imgitem .imgbox .imgbox-border .div-black.fixed .circular-box.top.right .circular-item.first .icon{
|
||||||
|
transform: rotate(45deg);
|
||||||
|
}
|
||||||
|
#imgContainer .imgitem .imgbox .imgbox-border .div-black.fixed .circular-box.top.right .circular-item.two{
|
||||||
|
transform: rotate(0deg);
|
||||||
|
top: -80px;
|
||||||
|
left: -80px;
|
||||||
|
transform-origin: 80px 80px;
|
||||||
|
}
|
||||||
|
#imgContainer .imgitem .imgbox .imgbox-border .div-black.fixed .circular-box.top.right .circular-item.two .icon{
|
||||||
|
transform: rotate(0deg);
|
||||||
|
}
|
||||||
|
#imgContainer .imgitem .imgbox .imgbox-border .div-black.fixed .circular-box.top.right .circular-item.three{
|
||||||
|
transform: rotate(45deg);
|
||||||
|
top: -80px;
|
||||||
|
left: -80px;
|
||||||
|
transform-origin: 80px 80px;
|
||||||
|
}
|
||||||
|
#imgContainer .imgitem .imgbox .imgbox-border .div-black.fixed .circular-box.top.right .circular-item.three .icon{
|
||||||
|
transform: rotate(-45deg);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#imgContainer .imgitem .imgbox .imgbox-border .div-black .circular-box.top.left .circular-item.first{
|
||||||
|
top: 0px;
|
||||||
|
left: -80px;
|
||||||
|
}
|
||||||
|
#imgContainer .imgitem .imgbox .imgbox-border .div-black .circular-box.top.left .circular-item.two{
|
||||||
|
top: -22.5px;
|
||||||
|
left: -136.5px;
|
||||||
|
}
|
||||||
|
#imgContainer .imgitem .imgbox .imgbox-border .div-black .circular-box.top.left .circular-item.three{
|
||||||
|
left: -160px;
|
||||||
|
top: -80px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#imgContainer .imgitem .imgbox .imgbox-border .div-black.fixed .circular-box.top.left .circular-item.first{
|
||||||
|
transform: rotate(45deg);
|
||||||
|
top: -80px;
|
||||||
|
left: -80px;
|
||||||
|
transform-origin: 80px 80px;
|
||||||
|
}
|
||||||
|
#imgContainer .imgitem .imgbox .imgbox-border .div-black.fixed .circular-box.top.left .circular-item.first .icon{
|
||||||
|
transform: rotate(-45deg);
|
||||||
|
}
|
||||||
|
#imgContainer .imgitem .imgbox .imgbox-border .div-black.fixed .circular-box.top.left .circular-item.two{
|
||||||
|
transform: rotate(90deg);
|
||||||
|
top: -80px;
|
||||||
|
left: -80px;
|
||||||
|
transform-origin: 80px 80px;
|
||||||
|
}
|
||||||
|
#imgContainer .imgitem .imgbox .imgbox-border .div-black.fixed .circular-box.top.left .circular-item.two .icon{
|
||||||
|
transform: rotate(-90deg);
|
||||||
|
}
|
||||||
|
#imgContainer .imgitem .imgbox .imgbox-border .div-black.fixed .circular-box.top.left .circular-item.three{
|
||||||
|
transform: rotate(135deg);
|
||||||
|
top: -80px;
|
||||||
|
left: -80px;
|
||||||
|
transform-origin: 80px 80px;
|
||||||
|
}
|
||||||
|
#imgContainer .imgitem .imgbox .imgbox-border .div-black.fixed .circular-box.top.left .circular-item.three .icon{
|
||||||
|
transform: rotate(-135deg);
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (min-width: 768px) {
|
||||||
|
.#imgContainer .imgitem {
|
||||||
|
width: 33.3333%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (min-width: 992px) {
|
||||||
|
.#imgContainer .imgitem {
|
||||||
|
width: 25%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (min-width: 1024px) {
|
||||||
|
.#imgContainer .imgitem {
|
||||||
|
width: 20%;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,59 +1,12 @@
|
|||||||
[v-cloak] {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
#dzzoffice{
|
|
||||||
position: relative;
|
|
||||||
background: var(--bg-content);
|
|
||||||
}
|
|
||||||
.van-tree-select__content{
|
.van-tree-select__content{
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
}
|
}
|
||||||
.custom-image.van-empty{
|
|
||||||
position: absolute;
|
|
||||||
left: 0;
|
|
||||||
right: 0;
|
|
||||||
bottom: 0;
|
|
||||||
top: 0;
|
|
||||||
margin: auto;
|
|
||||||
}
|
|
||||||
.van-popup{
|
|
||||||
overflow: unset;
|
|
||||||
}
|
|
||||||
.van-popup .vam-popup-title{
|
|
||||||
height: 40px;
|
|
||||||
font-weight: 700;
|
|
||||||
position: absolute;
|
|
||||||
top: -40px;
|
|
||||||
left: 0;
|
|
||||||
width: 100%;
|
|
||||||
padding: 0 12px;
|
|
||||||
font-size: 18px;
|
|
||||||
color: #FFFFFF;
|
|
||||||
}
|
|
||||||
.conter-toast{
|
.conter-toast{
|
||||||
z-index: 5001 !important;
|
z-index: 5001 !important;
|
||||||
}
|
}
|
||||||
.notScreen{
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
position: relative;
|
|
||||||
}
|
|
||||||
.notScreen>div{
|
|
||||||
height: 80px;
|
|
||||||
text-align: center;
|
|
||||||
margin: auto;
|
|
||||||
position: absolute;
|
|
||||||
top: 0;
|
|
||||||
bottom: 0;
|
|
||||||
right: 0;
|
|
||||||
left: 0;
|
|
||||||
font-size: var(--font-14);
|
|
||||||
color: var(--header-text);
|
|
||||||
}
|
|
||||||
.notScreen>div img{
|
|
||||||
width: 3.125rem;
|
|
||||||
height: 3.125rem;
|
|
||||||
}
|
|
||||||
.screen-textarea{
|
.screen-textarea{
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
}
|
}
|
||||||
@@ -62,14 +15,7 @@
|
|||||||
height: 2.1875rem;
|
height: 2.1875rem;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
#dzz_avatar_img .Topcarousel{
|
|
||||||
width: 2.1875rem;
|
|
||||||
height: 2.1875rem;
|
|
||||||
display: inline-block;
|
|
||||||
line-height: 2.1875rem;
|
|
||||||
border-radius: 50%;
|
|
||||||
color: #FFFFFF;
|
|
||||||
}
|
|
||||||
.library-box{
|
.library-box{
|
||||||
color: var(--header-text);
|
color: var(--header-text);
|
||||||
}
|
}
|
||||||
@@ -95,42 +41,10 @@
|
|||||||
.header-top .van-dropdown-menu__bar{
|
.header-top .van-dropdown-menu__bar{
|
||||||
height: 46px;
|
height: 46px;
|
||||||
}
|
}
|
||||||
.footer-popup{
|
|
||||||
padding-bottom: 70px;
|
|
||||||
}
|
|
||||||
.footer-popup .btn-bottom{
|
|
||||||
padding: 10px;
|
|
||||||
height: 70px;
|
|
||||||
position: absolute;
|
|
||||||
width: 100%;
|
|
||||||
bottom: 0;
|
|
||||||
left: 0;
|
|
||||||
}
|
|
||||||
.footer-popup .btn-bottom .van-button{
|
|
||||||
width: auto;
|
|
||||||
padding: 15px 20px;
|
|
||||||
}
|
|
||||||
.footer-popup .popup-search-input .van-field__right-icon{
|
|
||||||
padding-right: 0;
|
|
||||||
}
|
|
||||||
.footer-popup .popup-search-input .van-field__right-icon .van-icon{
|
|
||||||
font-size: 1.25rem;
|
|
||||||
color: var(--header-active);
|
|
||||||
}
|
|
||||||
.seasrch-popup{
|
.seasrch-popup{
|
||||||
padding-top: 56px;
|
padding-top: 56px;
|
||||||
}
|
}
|
||||||
.footer-popup .van-search-box{
|
|
||||||
position: absolute;
|
|
||||||
top: 0;
|
|
||||||
left: 0;
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
.footer-popup .van-search-box .van-field{
|
|
||||||
border: 0;
|
|
||||||
font-size: 0.875rem;
|
|
||||||
}
|
|
||||||
|
|
||||||
.seasrch-popup .search-val-box{
|
.seasrch-popup .search-val-box{
|
||||||
padding: 0 12px;
|
padding: 0 12px;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
@@ -193,278 +107,12 @@
|
|||||||
z-index: 1;
|
z-index: 1;
|
||||||
}
|
}
|
||||||
.seasrch-popup .search-val-box .highlight{
|
.seasrch-popup .search-val-box .highlight{
|
||||||
color: var(--header-active);
|
color: var(--leftTreeColor);
|
||||||
}
|
font-weight: 700;
|
||||||
.sort-popup .van-popup__close-icon--top-right,
|
|
||||||
.screen-popup .van-popup__close-icon--top-right {
|
|
||||||
top: 10px;
|
|
||||||
right: 10px;
|
|
||||||
}
|
|
||||||
/* .sort-popup .van-tree-select{
|
|
||||||
height: calc(100% - 41px) !important;
|
|
||||||
height: -moz-calc(100% - 41px) !important;
|
|
||||||
height: -webkit-calc(100% - 41px) !important;
|
|
||||||
} */
|
|
||||||
.screen-popup .van-tree-select{
|
|
||||||
}
|
|
||||||
.screen-popup .van-tree-select .van-sidebar{
|
|
||||||
width: 6rem;
|
|
||||||
-webkit-box-flex: initial;
|
|
||||||
-webkit-flex: initial;
|
|
||||||
flex: initial;
|
|
||||||
}
|
|
||||||
.screen-popup .van-tree-select__content{
|
|
||||||
height: 100%;
|
|
||||||
overflow: hidden;
|
|
||||||
position: relative;
|
|
||||||
background-color: transparent;
|
|
||||||
}
|
|
||||||
.van-popup .van-tree-select__content .screen-item-box{
|
|
||||||
height: 100%;
|
|
||||||
width: 100%;
|
|
||||||
position: relative;
|
|
||||||
overflow: hidden;
|
|
||||||
padding-top: 56px;
|
|
||||||
}
|
|
||||||
.van-popup .van-tree-select__content .screen-item .screen-item-option-box{
|
|
||||||
padding: 0px 8px;
|
|
||||||
}
|
|
||||||
.van-popup .van-tree-select__content .screen-item .screen-item-option-box .screen-item-option{
|
|
||||||
padding: 10px 16px;
|
|
||||||
margin-bottom: 8px;
|
|
||||||
border-radius: 8px;
|
|
||||||
}
|
|
||||||
.van-popup .van-tree-select__content .screen-item .screen-item-option-box .screen-item-option.active{
|
|
||||||
background: var(--bg-poperHover);
|
|
||||||
}
|
|
||||||
.screen-popup .van-tree-select__content .screen-item{
|
|
||||||
height: 100%;
|
|
||||||
overflow: auto;
|
|
||||||
padding: 0px 10px;
|
|
||||||
}
|
|
||||||
.screen-popup .van-tree-select__content .screen-item .swip-row{
|
|
||||||
border: 1px solid var(--border-color-base);
|
|
||||||
border-radius: 18px;
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
.screen-popup .van-tree-select__content .screen-item .swip-row .swip{
|
|
||||||
height: 30px;
|
|
||||||
line-height: 30px;
|
|
||||||
text-align: center;
|
|
||||||
background-color: var(--bg-input);
|
|
||||||
color: var(--header-text);
|
|
||||||
}
|
|
||||||
.screen-popup .van-tree-select__content .screen-item .swip-row .swip.active{
|
|
||||||
background: var(--color-primary);
|
|
||||||
color: #FFFFFF;
|
|
||||||
}
|
|
||||||
.van-popup .van-tree-select__content .screen-item .van-cell-group .van-cell.van-cell-tag{
|
|
||||||
margin-bottom: 6px;
|
|
||||||
border-radius: 999px;
|
|
||||||
}
|
|
||||||
.van-popup .van-tree-select__content .screen-item .van-cell-group .van-cell.van-cell-tag.active{
|
|
||||||
background-color: var(--bg-poperHover);
|
|
||||||
}
|
|
||||||
.sort-popup .van-tree-select__content .screen-item .van-cell-group,
|
|
||||||
.screen-popup .van-tree-select__content .screen-item .van-cell-group{
|
|
||||||
background-color: transparent;
|
|
||||||
}
|
|
||||||
.sort-popup .van-tree-select__content .screen-item .van-cell-group .van-cell,
|
|
||||||
.screen-popup .van-tree-select__content .screen-item .van-cell-group .van-cell{
|
|
||||||
background-color: transparent;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.van-calendar__day--end, .van-calendar__day--multiple-middle, .van-calendar__day--multiple-selected, .van-calendar__day--start, .van-calendar__day--start-end{
|
|
||||||
background-color: var(--color-primary);
|
|
||||||
}
|
|
||||||
.screen-popup .van-hairline--top-bottom::after, .screen-popup .van-hairline-unset--top-bottom::after {
|
|
||||||
border-width: 0;
|
|
||||||
}
|
|
||||||
.sort-popup .van-hairline--top-bottom::after, .sort-popup .van-hairline-unset--top-bottom::after {
|
|
||||||
border-width: 0;
|
|
||||||
}
|
|
||||||
.screen-popup .van-tree-select__content .screen-item .color-box .quick{
|
|
||||||
overflow: hidden;
|
|
||||||
/* margin-left: -10px; */
|
|
||||||
}
|
|
||||||
.screen-popup .van-tree-select__content .screen-item .color-box .quick .quick-list-box{
|
|
||||||
width: 20%;
|
|
||||||
margin-bottom: 0.1875rem;
|
|
||||||
padding: 0 0.1875rem;
|
|
||||||
display: inline-block;
|
|
||||||
|
|
||||||
}
|
|
||||||
.screen-popup .van-tree-select__content .screen-item .color-box .quick .quick-list{
|
|
||||||
/* float: left;
|
|
||||||
height: calc(20% / 2);
|
|
||||||
width: 20%;
|
|
||||||
height: 2.5rem;
|
|
||||||
width: 2.5rem;
|
|
||||||
z-index: 1;
|
|
||||||
border-radius: 50%;
|
|
||||||
margin-bottom: 0.625rem;
|
|
||||||
margin-left: 0.625rem;
|
|
||||||
border: 1px solid transparent;
|
|
||||||
position: relative; */
|
|
||||||
height: 0;
|
|
||||||
padding: 25% 0;
|
|
||||||
position: relative;
|
|
||||||
border-radius: 8px;
|
|
||||||
}
|
|
||||||
.screen-popup .van-tree-select__content .screen-item .color-box .quick .quick-list .van-icon{
|
|
||||||
position: absolute;
|
|
||||||
color: #FFFFFF;
|
|
||||||
margin: auto;
|
|
||||||
top: 0;
|
|
||||||
left: 0;
|
|
||||||
bottom: 0;
|
|
||||||
right: 0;
|
|
||||||
}
|
|
||||||
@media screen and (max-width: 768px) {
|
|
||||||
.screen-popup .van-tree-select__content .screen-item .color-box .quick .quick-list .van-icon{
|
|
||||||
font-size: 18px;
|
|
||||||
width: 18px;
|
|
||||||
height: 18px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@media screen and (min-width: 768px) {
|
|
||||||
.screen-popup .van-tree-select__content .screen-item .color-box .quick .quick-list .van-icon{
|
|
||||||
font-size: 30px;
|
|
||||||
width: 30px;
|
|
||||||
height: 30px;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.screen-popup .van-tree-select__content .screen-item .color-box .color-input{
|
|
||||||
position: relative;
|
|
||||||
margin-bottom: 0.9375rem;
|
|
||||||
}
|
|
||||||
.screen-popup .van-tree-select__content .screen-item .color-box .color-input .van-field{
|
|
||||||
/* padding: 0; */
|
|
||||||
/* height: 35px; */
|
|
||||||
padding-left: 35px;
|
|
||||||
/* height: 35px; */
|
|
||||||
border-radius: 8px;
|
|
||||||
}
|
|
||||||
.screen-popup .van-tree-select__content .screen-item .color-box .color-input .color-show{
|
|
||||||
position: absolute;
|
|
||||||
width: 18px;
|
|
||||||
height: 18px;
|
|
||||||
z-index: 1;
|
|
||||||
border-radius: 6px;
|
|
||||||
margin-top: auto;
|
|
||||||
margin-bottom: auto;
|
|
||||||
top: 0;
|
|
||||||
bottom: 0;
|
|
||||||
left: 8px;
|
|
||||||
border: 1px solid transparent;
|
|
||||||
}
|
|
||||||
.screen-popup .van-tree-select__content .screen-item .color-box .color-input .color-show.border{
|
|
||||||
border: 1px solid var(--border-color-base);
|
|
||||||
}
|
|
||||||
.screen-popup .van-tree-select__content .screen-item .color-box .color-input .van-field .van-field__button{
|
|
||||||
padding-left: 8px;
|
|
||||||
line-height: 35px;
|
|
||||||
padding-right: 8px;
|
|
||||||
border-left: 1px solid var(--border-color-base);
|
|
||||||
}
|
|
||||||
.screen-popup .van-tree-select__content .screen-item .color-box .color-input .van-field .van-field__button img{
|
|
||||||
vertical-align: sub;
|
|
||||||
width: 16px;
|
|
||||||
height: 16px;
|
|
||||||
}
|
|
||||||
.screen-popup .van-tree-select__content .screen-item .color-box .color-slider{
|
|
||||||
display: -webkit-box;
|
|
||||||
display: -webkit-flex;
|
|
||||||
display: flex;
|
|
||||||
align-items: center;
|
|
||||||
padding: 15px 0;
|
|
||||||
}
|
|
||||||
.screen-popup .van-calendar__popup .van-button--danger{
|
|
||||||
background-color: var(--color-primary);
|
|
||||||
border-color: var(--color-primary);
|
|
||||||
}
|
|
||||||
.screen-popup .van-calendar__popup .van-calendar__month-mark{
|
|
||||||
opacity: 0.5;
|
|
||||||
}
|
|
||||||
|
|
||||||
.screen-popup .van-tree-select__content .van-tabs{
|
|
||||||
height: 100%;
|
|
||||||
}
|
|
||||||
.screen-popup .van-tree-select__content .van-tabs--line .van-tabs__wrap{
|
|
||||||
/* border-bottom: 1px solid var(--slider-line); */
|
|
||||||
padding-right: 8px;
|
|
||||||
padding-left: 8px;
|
|
||||||
}
|
|
||||||
.screen-popup .van-tree-select__content .van-tabs .van-tabs__content{
|
|
||||||
height: calc(100% - 44px);
|
|
||||||
height: -moz-calc(100% - 44px);
|
|
||||||
height: -webkit-calc(100% - 44px);
|
|
||||||
}
|
|
||||||
.screen-popup .van-tree-select__content .van-tabs .van-tabs__content .van-tab__pane{
|
|
||||||
height: 100%;
|
|
||||||
padding-top: 10px;
|
|
||||||
overflow: hidden;
|
|
||||||
}
|
|
||||||
|
|
||||||
.screen-popup .van-tree-select__content .van-tabs__nav{
|
|
||||||
background-color: transparent;
|
|
||||||
}
|
|
||||||
.screen-popup .van-tree-select__content .van-tabs__nav .van-tab{
|
|
||||||
color: var(--header-text);
|
|
||||||
}
|
|
||||||
.screen-popup .van-tree-select__content .van-tabs__nav .van-tab.van-tab--active{
|
|
||||||
color: var(--header-active);
|
|
||||||
}
|
|
||||||
.screen-popup .van-tree-select__content .van-cell .num{
|
|
||||||
margin-right: 6px;
|
|
||||||
}
|
|
||||||
.sort-popup .van-tree-select__content .van-cell::after,
|
|
||||||
.screen-popup .van-tree-select__content .van-cell::after{
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
|
|
||||||
.screen-popup .screen-classify-collapse .van-cell{
|
|
||||||
background-color: transparent;
|
|
||||||
margin-bottom: 6px;
|
|
||||||
}
|
|
||||||
.screen-popup .screen-classify-collapse .van-collapse-item.active>.van-cell{
|
|
||||||
background-color: var(--bg-poperHover);
|
|
||||||
border-radius: 999px;
|
|
||||||
}
|
|
||||||
.screen-popup .screen-classify-collapse .van-hairline--top-bottom::after,
|
|
||||||
.screen-popup .screen-classify-collapse .van-collapse-item--border::after{
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
.screen-popup .screen-classify-collapse .van-collapse-item__content{
|
|
||||||
background-color: transparent;
|
|
||||||
padding: 0;
|
|
||||||
padding-left: 1rem;
|
|
||||||
}
|
|
||||||
.screen-popup .screen-classify-collapse .van-cell__value{
|
|
||||||
flex: none;
|
|
||||||
}
|
|
||||||
.van-calendar__day--middle{
|
|
||||||
color: var(--header-active);
|
|
||||||
}
|
|
||||||
.van-calendar__day--start{
|
|
||||||
border-radius: 16px 0 0 16px;
|
|
||||||
}
|
|
||||||
.van-calendar__day--end{
|
|
||||||
border-radius: 0 16px 16px 0;
|
|
||||||
}
|
|
||||||
.screen-cell-input{
|
|
||||||
margin-bottom: 16px;
|
|
||||||
border-radius: 8px;
|
|
||||||
}
|
|
||||||
.screen-cell-input::after{
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
.screen-cell-input .van-field{
|
|
||||||
border-radius: 8px;
|
|
||||||
}
|
|
||||||
.screen-cell-input .van-field{
|
|
||||||
border-radius: 8px;
|
|
||||||
}
|
|
||||||
.library-actionsheet .mint-actionsheet-list{
|
.library-actionsheet .mint-actionsheet-list{
|
||||||
max-height: 400px;
|
max-height: 400px;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
@@ -487,379 +135,10 @@
|
|||||||
max-height: 100%;
|
max-height: 100%;
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
}
|
}
|
||||||
.pic-container{
|
|
||||||
height: 100%;
|
|
||||||
width: 100%;
|
|
||||||
overflow: hidden;
|
|
||||||
|
|
||||||
}
|
|
||||||
.pic-container .pic-container-scroll{
|
|
||||||
height: 100%;
|
|
||||||
width: 100%;
|
|
||||||
overflow: auto;
|
|
||||||
position: relative;
|
|
||||||
padding-top: 46px;
|
|
||||||
}
|
|
||||||
.pic-container .img-container{
|
|
||||||
min-height: 100% ;
|
|
||||||
position: relative;
|
|
||||||
padding: 0 4px;
|
|
||||||
}
|
|
||||||
.pic-toolbar{
|
|
||||||
position: fixed;
|
|
||||||
width: 100%;
|
|
||||||
left: 0;
|
|
||||||
padding: 0 8%;
|
|
||||||
transition: all .3s;
|
|
||||||
transition:all .3s;
|
|
||||||
-moz-transition:all .3s; /* Firefox 4 */
|
|
||||||
-webkit-transition:all .3s; /* Safari and Chrome */
|
|
||||||
-o-transition:all .3s; /* Opera */
|
|
||||||
}
|
|
||||||
.pic-toolbar.footershow{
|
|
||||||
bottom: 3%;
|
|
||||||
opacity: 1;
|
|
||||||
}
|
|
||||||
.pic-toolbar.footerhide{
|
|
||||||
bottom: -2.9375rem;
|
|
||||||
opacity: 0;
|
|
||||||
}
|
|
||||||
.pic-toolbar .tabbar{
|
|
||||||
display: -webkit-box;
|
|
||||||
display: -webkit-flex;
|
|
||||||
display: flex;
|
|
||||||
border-radius: 39px;
|
|
||||||
background: var(--bg-poper);
|
|
||||||
padding: 0.375rem 0;
|
|
||||||
color: var(--header-text);
|
|
||||||
/* box-shadow: 0px 0px 5px 1px var(--bg-poperHover); */
|
|
||||||
}
|
|
||||||
.pic-toolbar .tab-item{
|
|
||||||
-webkit-box-flex: 1;
|
|
||||||
-webkit-flex: 1;
|
|
||||||
flex: 1;
|
|
||||||
text-align: center;
|
|
||||||
font-size: 14px;
|
|
||||||
}
|
|
||||||
.pic-toolbar .tab-item .icon{
|
|
||||||
font-size: var(--font-32);
|
|
||||||
}
|
|
||||||
.pic-toolbar .tab-item img{
|
|
||||||
border-radius: 50%;
|
|
||||||
width: 2.1875rem;
|
|
||||||
height: 2.1875rem;
|
|
||||||
vertical-align: bottom;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
#imgContainer .imgitem .imgbox .bottom-img-message{
|
|
||||||
text-align: center;
|
|
||||||
color: var(--content-text);
|
|
||||||
overflow: hidden;
|
|
||||||
max-height: 65px;
|
|
||||||
}
|
|
||||||
#imgContainer .imgitem .imgbox .bottom-img-message .name {
|
|
||||||
overflow: hidden;
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
display: -webkit-box;
|
|
||||||
-webkit-box-orient: vertical;
|
|
||||||
-webkit-line-clamp: 2;
|
|
||||||
font-size: 0.875rem;
|
|
||||||
margin-top: 10px;
|
|
||||||
width: 100%;
|
|
||||||
max-height: 35px;
|
|
||||||
}
|
|
||||||
#imgContainer .imgitem .imgbox .bottom-img-message .other {
|
|
||||||
font-size: 0.75rem;
|
|
||||||
overflow: hidden;
|
|
||||||
white-space: nowrap;
|
|
||||||
text-overflow: ellipsis;
|
|
||||||
height: 21px;
|
|
||||||
padding-top: 5px;
|
|
||||||
color: var(--content-textMessage);
|
|
||||||
}
|
|
||||||
#imgContainer .imgitem .imgbox .bottom-img-message .other .score{
|
|
||||||
color: var(--stars);
|
|
||||||
}
|
|
||||||
#imgContainer .imgitem .imgbox .bottom-img-message .other .score.active{
|
|
||||||
color: var(--starsActive);
|
|
||||||
}
|
|
||||||
#imgContainer .imgitem .imgbox .annotation{
|
|
||||||
position: absolute;
|
|
||||||
right: 5px;
|
|
||||||
top: 5px;
|
|
||||||
font-size: 14px;
|
|
||||||
width: 22px;
|
|
||||||
height: 22px;
|
|
||||||
border: 2px solid #FFFFFF;
|
|
||||||
border-radius: 50%;
|
|
||||||
color: #FFFFFF;
|
|
||||||
text-align: center;
|
|
||||||
line-height: 20px;
|
|
||||||
background: var(--color-primary);
|
|
||||||
}
|
|
||||||
#imgContainer{
|
|
||||||
position: relative;
|
|
||||||
margin: 0 auto;
|
|
||||||
}
|
|
||||||
#imgContainer .imgitem{
|
|
||||||
position: absolute;
|
|
||||||
/* transition:all .2s; */
|
|
||||||
}
|
|
||||||
#imgContainer .imgitem .imgbox {
|
|
||||||
padding-left: 4px;
|
|
||||||
padding-right: 4px;
|
|
||||||
}
|
|
||||||
#imgContainer .imgitem .imgbox .imgbox-border {
|
|
||||||
position: relative;
|
|
||||||
overflow: hidden;
|
|
||||||
cursor: zoom-in;
|
|
||||||
min-height: 120px;
|
|
||||||
height: 100%;
|
|
||||||
}
|
|
||||||
#imgContainer .imgitem .imgbox .imgbox-border.radius{
|
|
||||||
border-radius: 18px;
|
|
||||||
}
|
|
||||||
#imgContainer .imgitem .imgbox .imgbox-border .div-black {
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
position: relative;
|
|
||||||
display: -webkit-box;
|
|
||||||
display: -webkit-flex;
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
align-items: center;
|
|
||||||
}
|
|
||||||
#imgContainer .imgitem .imgbox .imgbox-border .div-black .bck{
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
display: none;
|
|
||||||
background: var(--bg-poper);
|
|
||||||
top: 0;
|
|
||||||
left: 0;
|
|
||||||
position: absolute;
|
|
||||||
opacity: 0.7;
|
|
||||||
}
|
|
||||||
#imgContainer .imgitem .imgbox .imgbox-border .img {
|
|
||||||
max-width: 100%;
|
|
||||||
max-height: 100%;
|
|
||||||
width: auto;
|
|
||||||
height: auto;
|
|
||||||
border-radius: 18px;
|
|
||||||
}
|
|
||||||
#imgContainer .imgitem .imgbox .imgbox-border .img.opacity{
|
|
||||||
opacity: 0;
|
|
||||||
}
|
|
||||||
#imgContainer .imgitem .imgbox .imgbox-border .div-black .circular-box{
|
|
||||||
display: none;
|
|
||||||
position: absolute;
|
|
||||||
z-index: 2;
|
|
||||||
width: 45px;
|
|
||||||
height: 45px;
|
|
||||||
border-radius: 50%;
|
|
||||||
}
|
|
||||||
#imgContainer .imgitem .imgbox .imgbox-border .div-black .circular-box .circular-item{
|
|
||||||
width: 45px;
|
|
||||||
height: 45px;
|
|
||||||
border-radius: 50%;
|
|
||||||
color: #333;
|
|
||||||
z-index: 100;
|
|
||||||
font-size: 21px;
|
|
||||||
text-align: center;
|
|
||||||
line-height: 45px;
|
|
||||||
background: #ffffff;
|
|
||||||
position: absolute;
|
|
||||||
transition: top .3s ease-in-out,left .3s ease-in-out;
|
|
||||||
/* transition: all .3s ease-in-out; */
|
|
||||||
top: -22.5px;
|
|
||||||
left: -22.5px;
|
|
||||||
transform-origin: 0px;
|
|
||||||
/* transition-delay: 0.02s; */
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
#imgContainer .imgitem .imgbox .imgbox-border .div-black.fixed{
|
|
||||||
position: fixed;
|
|
||||||
top: 0;
|
|
||||||
left: 0;
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
z-index: 100;
|
|
||||||
}
|
|
||||||
#imgContainer .imgitem .imgbox .imgbox-border .div-black.fixed .bck{
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
#imgContainer .imgitem .imgbox .imgbox-border .div-black.fixed .img{
|
|
||||||
position: absolute;
|
|
||||||
z-index: 2;
|
|
||||||
max-width: inherit;
|
|
||||||
max-height: inherit;
|
|
||||||
}
|
|
||||||
#imgContainer .imgitem .imgbox .imgbox-border .div-black.fixed .circular-box{
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
#imgContainer .imgitem .imgbox .imgbox-border .div-black.fixed .circular-box .round{
|
|
||||||
position: absolute;
|
|
||||||
width: 45px;
|
|
||||||
height: 45px;
|
|
||||||
border-radius: 50%;
|
|
||||||
background: transparent;
|
|
||||||
left: 0px;
|
|
||||||
top: 0px;
|
|
||||||
border: 3px solid var(--bg-poper);
|
|
||||||
}
|
|
||||||
#imgContainer .imgitem .imgbox .imgbox-border .div-black.fixed .circular-box .circular-item-box{
|
|
||||||
position: absolute;
|
|
||||||
left: -67.5px;
|
|
||||||
top: -67.5px;
|
|
||||||
border: 90px solid transparent;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
#imgContainer .imgitem .imgbox .imgbox-border .div-black .circular-box.top .circular-item.first{
|
|
||||||
top: -22.5px;
|
|
||||||
left: -22.5px;
|
|
||||||
}
|
|
||||||
#imgContainer .imgitem .imgbox .imgbox-border .div-black .circular-box.top .circular-item.two{
|
|
||||||
top: 0px;
|
|
||||||
left: -80px;
|
|
||||||
}
|
|
||||||
#imgContainer .imgitem .imgbox .imgbox-border .div-black .circular-box.top .circular-item.three{
|
|
||||||
top: -22.5px;
|
|
||||||
left: -138.5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
#imgContainer .imgitem .imgbox .imgbox-border .div-black.fixed .circular-box .circular-item-box .icon{
|
|
||||||
display: block;
|
|
||||||
}
|
|
||||||
#imgContainer .imgitem .imgbox .imgbox-border .div-black.fixed .circular-box.top .circular-item.first{
|
|
||||||
transform: rotate(0deg);
|
|
||||||
top: -80px;
|
|
||||||
left: -80px;
|
|
||||||
transform-origin: 80px 80px;
|
|
||||||
}
|
|
||||||
#imgContainer .imgitem .imgbox .imgbox-border .div-black.fixed .circular-box.top .circular-item.two{
|
|
||||||
transform: rotate(45deg);
|
|
||||||
top: -80px;
|
|
||||||
left: -80px;
|
|
||||||
transform-origin: 80px 80px;
|
|
||||||
}
|
|
||||||
#imgContainer .imgitem .imgbox .imgbox-border .div-black.fixed .circular-box.top .circular-item.two .icon{
|
|
||||||
transform: rotate(-45deg);
|
|
||||||
}
|
|
||||||
#imgContainer .imgitem .imgbox .imgbox-border .div-black.fixed .circular-box.top .circular-item.three{
|
|
||||||
transform: rotate(90deg);
|
|
||||||
top: -80px;
|
|
||||||
left: -80px;
|
|
||||||
transform-origin: 80px 80px;
|
|
||||||
}
|
|
||||||
#imgContainer .imgitem .imgbox .imgbox-border .div-black.fixed .circular-box.top .circular-item.three .icon{
|
|
||||||
transform: rotate(-90deg);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
#imgContainer .imgitem .imgbox .imgbox-border .div-black .circular-box.top.right .circular-item.first{
|
|
||||||
top: -80.5px;
|
|
||||||
left: 1px;
|
|
||||||
}
|
|
||||||
#imgContainer .imgitem .imgbox .imgbox-border .div-black .circular-box.top.right .circular-item.two{
|
|
||||||
top: -22.5px;
|
|
||||||
left: -22.5px;
|
|
||||||
}
|
|
||||||
#imgContainer .imgitem .imgbox .imgbox-border .div-black .circular-box.top.right .circular-item.three{
|
|
||||||
top: 0px;
|
|
||||||
left: -80px;
|
|
||||||
}
|
|
||||||
#imgContainer .imgitem .imgbox .imgbox-border .div-black.fixed .circular-box.top.right .circular-item.first{
|
|
||||||
transform: rotate(-45deg);
|
|
||||||
top: -80px;
|
|
||||||
left: -80px;
|
|
||||||
transform-origin: 80px 80px;
|
|
||||||
}
|
|
||||||
#imgContainer .imgitem .imgbox .imgbox-border .div-black.fixed .circular-box.top.right .circular-item.first .icon{
|
|
||||||
transform: rotate(45deg);
|
|
||||||
}
|
|
||||||
#imgContainer .imgitem .imgbox .imgbox-border .div-black.fixed .circular-box.top.right .circular-item.two{
|
|
||||||
transform: rotate(0deg);
|
|
||||||
top: -80px;
|
|
||||||
left: -80px;
|
|
||||||
transform-origin: 80px 80px;
|
|
||||||
}
|
|
||||||
#imgContainer .imgitem .imgbox .imgbox-border .div-black.fixed .circular-box.top.right .circular-item.two .icon{
|
|
||||||
transform: rotate(0deg);
|
|
||||||
}
|
|
||||||
#imgContainer .imgitem .imgbox .imgbox-border .div-black.fixed .circular-box.top.right .circular-item.three{
|
|
||||||
transform: rotate(45deg);
|
|
||||||
top: -80px;
|
|
||||||
left: -80px;
|
|
||||||
transform-origin: 80px 80px;
|
|
||||||
}
|
|
||||||
#imgContainer .imgitem .imgbox .imgbox-border .div-black.fixed .circular-box.top.right .circular-item.three .icon{
|
|
||||||
transform: rotate(-45deg);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#imgContainer .imgitem .imgbox .imgbox-border .div-black .circular-box.top.left .circular-item.first{
|
|
||||||
top: 0px;
|
|
||||||
left: -80px;
|
|
||||||
}
|
|
||||||
#imgContainer .imgitem .imgbox .imgbox-border .div-black .circular-box.top.left .circular-item.two{
|
|
||||||
top: -22.5px;
|
|
||||||
left: -136.5px;
|
|
||||||
}
|
|
||||||
#imgContainer .imgitem .imgbox .imgbox-border .div-black .circular-box.top.left .circular-item.three{
|
|
||||||
left: -160px;
|
|
||||||
top: -80px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#imgContainer .imgitem .imgbox .imgbox-border .div-black.fixed .circular-box.top.left .circular-item.first{
|
|
||||||
transform: rotate(45deg);
|
|
||||||
top: -80px;
|
|
||||||
left: -80px;
|
|
||||||
transform-origin: 80px 80px;
|
|
||||||
}
|
|
||||||
#imgContainer .imgitem .imgbox .imgbox-border .div-black.fixed .circular-box.top.left .circular-item.first .icon{
|
|
||||||
transform: rotate(-45deg);
|
|
||||||
}
|
|
||||||
#imgContainer .imgitem .imgbox .imgbox-border .div-black.fixed .circular-box.top.left .circular-item.two{
|
|
||||||
transform: rotate(90deg);
|
|
||||||
top: -80px;
|
|
||||||
left: -80px;
|
|
||||||
transform-origin: 80px 80px;
|
|
||||||
}
|
|
||||||
#imgContainer .imgitem .imgbox .imgbox-border .div-black.fixed .circular-box.top.left .circular-item.two .icon{
|
|
||||||
transform: rotate(-90deg);
|
|
||||||
}
|
|
||||||
#imgContainer .imgitem .imgbox .imgbox-border .div-black.fixed .circular-box.top.left .circular-item.three{
|
|
||||||
transform: rotate(135deg);
|
|
||||||
top: -80px;
|
|
||||||
left: -80px;
|
|
||||||
transform-origin: 80px 80px;
|
|
||||||
}
|
|
||||||
#imgContainer .imgitem .imgbox .imgbox-border .div-black.fixed .circular-box.top.left .circular-item.three .icon{
|
|
||||||
transform: rotate(-135deg);
|
|
||||||
}
|
|
||||||
|
|
||||||
@media screen and (min-width: 768px) {
|
|
||||||
.#imgContainer .imgitem {
|
|
||||||
width: 33.3333%;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media screen and (min-width: 992px) {
|
|
||||||
.#imgContainer .imgitem {
|
|
||||||
width: 25%;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@media screen and (min-width: 1024px) {
|
|
||||||
.#imgContainer .imgitem {
|
|
||||||
width: 20%;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
.van-nav-bar .van-icon{
|
.van-nav-bar .van-icon{
|
||||||
color: var(--content-textHover);
|
color: var(--content-textHover);
|
||||||
}
|
}
|
||||||
@@ -867,72 +146,12 @@
|
|||||||
color: var(--content-textHover);
|
color: var(--content-textHover);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.screen-popup .van-cell::after{
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.about-popup,
|
|
||||||
.my-popup{
|
|
||||||
height: 100%;
|
|
||||||
width: 100%;
|
|
||||||
background: var(--bg-content);
|
|
||||||
color: var(--content-textHover);
|
|
||||||
overflow: hidden;
|
|
||||||
padding-top: 46px;
|
|
||||||
}
|
|
||||||
.about-popup .van-nav-bar,
|
|
||||||
.my-popup .van-nav-bar{
|
|
||||||
position: absolute;
|
|
||||||
top: 0;
|
|
||||||
left: 0;
|
|
||||||
width: 100%;
|
|
||||||
}
|
|
||||||
.about-popup .scroll-box,
|
|
||||||
.my-popup .scroll-box{
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
overflow: auto;
|
|
||||||
padding-top: 0.9375rem;
|
|
||||||
}
|
|
||||||
.my-popup .scroll-box .van-cell-group{
|
|
||||||
background: transparent;
|
|
||||||
}
|
|
||||||
.my-popup .scroll-box .van-cell {
|
|
||||||
background: transparent;
|
|
||||||
}
|
|
||||||
.my-popup .scroll-box .van-cell::after{
|
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
.my-popup .scroll-box .van-cell .van-cell__right-icon{
|
|
||||||
color: var(--header-text);
|
|
||||||
}
|
|
||||||
|
|
||||||
.about-popup .aboutlogo{
|
|
||||||
text-align: center;
|
|
||||||
padding-top: 3.125rem;
|
|
||||||
padding-bottom: 1.875rem;
|
|
||||||
}
|
|
||||||
.about-popup .aboutmessage{
|
|
||||||
padding: 0 2.1875rem;
|
|
||||||
}
|
|
||||||
.about-popup .aboutmessage .aboutlist{
|
|
||||||
margin-bottom: 1.25rem;
|
|
||||||
overflow: hidden;
|
|
||||||
font-size: 1rem;
|
|
||||||
}
|
|
||||||
.about-popup .aboutmessage .aboutlist .title{
|
|
||||||
float: left;
|
|
||||||
}
|
|
||||||
.about-popup .aboutmessage .aboutlist .address{
|
|
||||||
color: var(--color-primary);
|
|
||||||
font-size: 1rem;
|
|
||||||
vertical-align: sub;
|
|
||||||
}
|
|
||||||
@media screen and (min-width: 768px) {
|
|
||||||
.about-popup .aboutmessage{
|
|
||||||
padding: 0 6.25rem;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|||||||
289
dzz/pichome/css/mobile/screen.css
Normal file
289
dzz/pichome/css/mobile/screen.css
Normal file
@@ -0,0 +1,289 @@
|
|||||||
|
.notScreen{
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
.notScreen>div{
|
||||||
|
height: 80px;
|
||||||
|
text-align: center;
|
||||||
|
margin: auto;
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
bottom: 0;
|
||||||
|
right: 0;
|
||||||
|
left: 0;
|
||||||
|
font-size: var(--font-14);
|
||||||
|
color: var(--header-text);
|
||||||
|
}
|
||||||
|
.notScreen>div img{
|
||||||
|
width: 3.125rem;
|
||||||
|
height: 3.125rem;
|
||||||
|
}
|
||||||
|
.sort-popup .van-popup__close-icon--top-right,
|
||||||
|
.screen-popup .van-popup__close-icon--top-right {
|
||||||
|
top: 10px;
|
||||||
|
right: 10px;
|
||||||
|
}
|
||||||
|
/* .sort-popup .van-tree-select{
|
||||||
|
height: calc(100% - 41px) !important;
|
||||||
|
height: -moz-calc(100% - 41px) !important;
|
||||||
|
height: -webkit-calc(100% - 41px) !important;
|
||||||
|
} */
|
||||||
|
.screen-popup .van-tree-select{
|
||||||
|
}
|
||||||
|
.screen-popup .van-tree-select .van-sidebar{
|
||||||
|
width: 6rem;
|
||||||
|
-webkit-box-flex: initial;
|
||||||
|
-webkit-flex: initial;
|
||||||
|
flex: initial;
|
||||||
|
}
|
||||||
|
.sort-popup .van-tree-select__content,
|
||||||
|
.screen-popup .van-tree-select__content{
|
||||||
|
height: 100%;
|
||||||
|
overflow: hidden;
|
||||||
|
position: relative;
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
.van-popup .van-tree-select__content .screen-item-box{
|
||||||
|
height: 100%;
|
||||||
|
width: 100%;
|
||||||
|
position: relative;
|
||||||
|
overflow: hidden;
|
||||||
|
padding-top: 56px;
|
||||||
|
}
|
||||||
|
.van-popup .van-tree-select__content .screen-item .screen-item-option-box{
|
||||||
|
padding: 0px 8px;
|
||||||
|
}
|
||||||
|
.van-popup .van-tree-select__content .screen-item .screen-item-option-box .screen-item-option{
|
||||||
|
padding: 10px 16px;
|
||||||
|
margin-bottom: 8px;
|
||||||
|
border-radius: 8px;
|
||||||
|
}
|
||||||
|
.van-popup .van-tree-select__content .screen-item .screen-item-option-box .screen-item-option.active{
|
||||||
|
background: var(--bg-poperHover);
|
||||||
|
}
|
||||||
|
.screen-popup .van-tree-select__content .screen-item{
|
||||||
|
height: 100%;
|
||||||
|
overflow: auto;
|
||||||
|
padding: 0px 10px;
|
||||||
|
}
|
||||||
|
.screen-popup .van-tree-select__content .screen-item .swip-row{
|
||||||
|
border: 1px solid var(--border-color-base);
|
||||||
|
border-radius: 18px;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
.screen-popup .van-tree-select__content .screen-item .swip-row .swip{
|
||||||
|
height: 30px;
|
||||||
|
line-height: 30px;
|
||||||
|
text-align: center;
|
||||||
|
background-color: var(--bg-input);
|
||||||
|
color: var(--header-text);
|
||||||
|
}
|
||||||
|
.screen-popup .van-tree-select__content .screen-item .swip-row .swip.active{
|
||||||
|
background: var(--color-primary);
|
||||||
|
color: #FFFFFF;
|
||||||
|
}
|
||||||
|
.van-popup .van-tree-select__content .screen-item .van-cell-group .van-cell.van-cell-tag{
|
||||||
|
margin-bottom: 6px;
|
||||||
|
border-radius: 999px;
|
||||||
|
}
|
||||||
|
.van-popup .van-tree-select__content .screen-item .van-cell-group .van-cell.van-cell-tag.active{
|
||||||
|
background-color: var(--bg-poperHover);
|
||||||
|
}
|
||||||
|
.sort-popup .van-tree-select__content .screen-item .van-cell-group,
|
||||||
|
.screen-popup .van-tree-select__content .screen-item .van-cell-group{
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
.sort-popup .van-tree-select__content .screen-item .van-cell-group .van-cell,
|
||||||
|
.screen-popup .van-tree-select__content .screen-item .van-cell-group .van-cell{
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
.van-calendar__day--end, .van-calendar__day--multiple-middle, .van-calendar__day--multiple-selected, .van-calendar__day--start, .van-calendar__day--start-end{
|
||||||
|
background-color: var(--color-primary);
|
||||||
|
}
|
||||||
|
.screen-popup .van-hairline--top-bottom::after, .screen-popup .van-hairline-unset--top-bottom::after {
|
||||||
|
border-width: 0;
|
||||||
|
}
|
||||||
|
.sort-popup .van-hairline--top-bottom::after, .sort-popup .van-hairline-unset--top-bottom::after {
|
||||||
|
border-width: 0;
|
||||||
|
}
|
||||||
|
.screen-popup .van-tree-select__content .screen-item .color-box .quick{
|
||||||
|
overflow: hidden;
|
||||||
|
/* margin-left: -10px; */
|
||||||
|
}
|
||||||
|
.screen-popup .van-tree-select__content .screen-item .color-box .quick .quick-list-box{
|
||||||
|
width: 20%;
|
||||||
|
margin-bottom: 0.1875rem;
|
||||||
|
padding: 0 0.1875rem;
|
||||||
|
display: inline-block;
|
||||||
|
|
||||||
|
}
|
||||||
|
.screen-popup .van-tree-select__content .screen-item .color-box .quick .quick-list{
|
||||||
|
/* float: left;
|
||||||
|
height: calc(20% / 2);
|
||||||
|
width: 20%;
|
||||||
|
height: 2.5rem;
|
||||||
|
width: 2.5rem;
|
||||||
|
z-index: 1;
|
||||||
|
border-radius: 50%;
|
||||||
|
margin-bottom: 0.625rem;
|
||||||
|
margin-left: 0.625rem;
|
||||||
|
border: 1px solid transparent;
|
||||||
|
position: relative; */
|
||||||
|
height: 0;
|
||||||
|
padding: 25% 0;
|
||||||
|
position: relative;
|
||||||
|
border-radius: 8px;
|
||||||
|
}
|
||||||
|
.screen-popup .van-tree-select__content .screen-item .color-box .quick .quick-list .van-icon{
|
||||||
|
position: absolute;
|
||||||
|
color: #FFFFFF;
|
||||||
|
margin: auto;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
bottom: 0;
|
||||||
|
right: 0;
|
||||||
|
}
|
||||||
|
@media screen and (max-width: 768px) {
|
||||||
|
.screen-popup .van-tree-select__content .screen-item .color-box .quick .quick-list .van-icon{
|
||||||
|
font-size: 18px;
|
||||||
|
width: 18px;
|
||||||
|
height: 18px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
@media screen and (min-width: 768px) {
|
||||||
|
.screen-popup .van-tree-select__content .screen-item .color-box .quick .quick-list .van-icon{
|
||||||
|
font-size: 30px;
|
||||||
|
width: 30px;
|
||||||
|
height: 30px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.screen-popup .van-tree-select__content .screen-item .color-box .color-input{
|
||||||
|
position: relative;
|
||||||
|
margin-bottom: 0.9375rem;
|
||||||
|
}
|
||||||
|
.screen-popup .van-tree-select__content .screen-item .color-box .color-input .van-field{
|
||||||
|
/* padding: 0; */
|
||||||
|
/* height: 35px; */
|
||||||
|
padding-left: 35px;
|
||||||
|
/* height: 35px; */
|
||||||
|
border-radius: 8px;
|
||||||
|
}
|
||||||
|
.screen-popup .van-tree-select__content .screen-item .color-box .color-input .color-show{
|
||||||
|
position: absolute;
|
||||||
|
width: 18px;
|
||||||
|
height: 18px;
|
||||||
|
z-index: 1;
|
||||||
|
border-radius: 6px;
|
||||||
|
margin-top: auto;
|
||||||
|
margin-bottom: auto;
|
||||||
|
top: 0;
|
||||||
|
bottom: 0;
|
||||||
|
left: 8px;
|
||||||
|
border: 1px solid transparent;
|
||||||
|
}
|
||||||
|
.screen-popup .van-tree-select__content .screen-item .color-box .color-input .color-show.border{
|
||||||
|
border: 1px solid var(--border-color-base);
|
||||||
|
}
|
||||||
|
.screen-popup .van-tree-select__content .screen-item .color-box .color-input .van-field .van-field__button{
|
||||||
|
padding-left: 8px;
|
||||||
|
line-height: 35px;
|
||||||
|
padding-right: 8px;
|
||||||
|
border-left: 1px solid var(--border-color-base);
|
||||||
|
}
|
||||||
|
.screen-popup .van-tree-select__content .screen-item .color-box .color-input .van-field .van-field__button img{
|
||||||
|
vertical-align: sub;
|
||||||
|
width: 16px;
|
||||||
|
height: 16px;
|
||||||
|
}
|
||||||
|
.screen-popup .van-tree-select__content .screen-item .color-box .color-slider{
|
||||||
|
display: -webkit-box;
|
||||||
|
display: -webkit-flex;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
padding: 15px 0;
|
||||||
|
}
|
||||||
|
.screen-popup .van-calendar__popup .van-button--danger{
|
||||||
|
background-color: var(--color-primary);
|
||||||
|
border-color: var(--color-primary);
|
||||||
|
}
|
||||||
|
.screen-popup .van-calendar__popup .van-calendar__month-mark{
|
||||||
|
opacity: 0.5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.screen-popup .van-tree-select__content .van-tabs{
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
.screen-popup .van-tree-select__content .van-tabs--line .van-tabs__wrap{
|
||||||
|
/* border-bottom: 1px solid var(--slider-line); */
|
||||||
|
padding-right: 8px;
|
||||||
|
padding-left: 8px;
|
||||||
|
}
|
||||||
|
.screen-popup .van-tree-select__content .van-tabs .van-tabs__content{
|
||||||
|
height: calc(100% - 44px);
|
||||||
|
height: -moz-calc(100% - 44px);
|
||||||
|
height: -webkit-calc(100% - 44px);
|
||||||
|
}
|
||||||
|
.screen-popup .van-tree-select__content .van-tabs .van-tabs__content .van-tab__pane{
|
||||||
|
height: 100%;
|
||||||
|
padding-top: 10px;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.screen-popup .van-tree-select__content .van-tabs__nav{
|
||||||
|
background-color: transparent;
|
||||||
|
}
|
||||||
|
.screen-popup .van-tree-select__content .van-tabs__nav .van-tab{
|
||||||
|
color: var(--header-text);
|
||||||
|
}
|
||||||
|
.screen-popup .van-tree-select__content .van-tabs__nav .van-tab.van-tab--active{
|
||||||
|
color: var(--header-active);
|
||||||
|
}
|
||||||
|
.screen-popup .van-tree-select__content .van-cell .num{
|
||||||
|
margin-right: 6px;
|
||||||
|
}
|
||||||
|
.sort-popup .van-tree-select__content .van-cell::after,
|
||||||
|
.screen-popup .van-tree-select__content .van-cell::after{
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.screen-popup .screen-classify-collapse .van-cell{
|
||||||
|
background-color: transparent;
|
||||||
|
margin-bottom: 6px;
|
||||||
|
}
|
||||||
|
.screen-popup .screen-classify-collapse .van-collapse-item.active>.van-cell{
|
||||||
|
background-color: var(--bg-poperHover);
|
||||||
|
border-radius: 999px;
|
||||||
|
}
|
||||||
|
.screen-popup .screen-classify-collapse .van-hairline--top-bottom::after,
|
||||||
|
.screen-popup .screen-classify-collapse .van-collapse-item--border::after{
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.screen-popup .screen-classify-collapse .van-collapse-item__content{
|
||||||
|
background-color: transparent;
|
||||||
|
padding: 0;
|
||||||
|
padding-left: 1rem;
|
||||||
|
}
|
||||||
|
.screen-popup .screen-classify-collapse .van-cell__value{
|
||||||
|
flex: none;
|
||||||
|
}
|
||||||
|
.van-calendar__day--middle{
|
||||||
|
color: var(--header-active);
|
||||||
|
}
|
||||||
|
.van-calendar__day--start{
|
||||||
|
border-radius: 16px 0 0 16px;
|
||||||
|
}
|
||||||
|
.van-calendar__day--end{
|
||||||
|
border-radius: 0 16px 16px 0;
|
||||||
|
}
|
||||||
|
.screen-cell-input{
|
||||||
|
margin-bottom: 16px;
|
||||||
|
border-radius: 8px;
|
||||||
|
}
|
||||||
|
.screen-cell-input::after{
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.screen-cell-input .van-field{
|
||||||
|
border-radius: 8px;
|
||||||
|
}
|
||||||
108
dzz/pichome/css/pc/AddcollectionDialog.css
Normal file
108
dzz/pichome/css/pc/AddcollectionDialog.css
Normal file
@@ -0,0 +1,108 @@
|
|||||||
|
.collection-dialog{
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
.collection-dialog-content{
|
||||||
|
width: 360px;
|
||||||
|
height: 460px;
|
||||||
|
}
|
||||||
|
.collection-dialog-content .header{
|
||||||
|
padding: 12px;
|
||||||
|
padding-bottom: 0;
|
||||||
|
}
|
||||||
|
.collection-dialog-content .content{
|
||||||
|
padding: 12px 0;
|
||||||
|
height: 358px;
|
||||||
|
}
|
||||||
|
.collection-dialog-content .content .el-tree-node__content{
|
||||||
|
height: 64px;
|
||||||
|
padding-right: 8px;
|
||||||
|
border-radius: 3px;
|
||||||
|
}
|
||||||
|
.collection-dialog-content .content .el-tree-node__content .el-tree-node__expand-icon{
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
.collection-dialog-content .content .custom-tree-node{
|
||||||
|
width: 100%;
|
||||||
|
position: relative;
|
||||||
|
padding-left: 55px;
|
||||||
|
height: 100%;
|
||||||
|
display: -webkit-box;
|
||||||
|
display: -ms-flexbox;
|
||||||
|
display: flex;
|
||||||
|
-webkit-box-align: center;
|
||||||
|
-ms-flex-align: center;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.collection-dialog-content .content .custom-tree-node .img{
|
||||||
|
width: 40px;
|
||||||
|
height: 40px;
|
||||||
|
border-radius: 3px;
|
||||||
|
overflow: hidden;
|
||||||
|
margin-top: auto;
|
||||||
|
margin-bottom: auto;
|
||||||
|
position: absolute;
|
||||||
|
left: 0;
|
||||||
|
top: 0;
|
||||||
|
bottom: 0;
|
||||||
|
}
|
||||||
|
.collection-dialog-content .content .custom-tree-node .img img{
|
||||||
|
object-fit: cover;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
.collection-dialog-content .content .custom-tree-node .name{
|
||||||
|
width: 100%;
|
||||||
|
padding-right: 8px;
|
||||||
|
overflow: hidden;
|
||||||
|
white-space: nowrap;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
font-weight: 700;
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
.collection-dialog-content .content .custom-tree-node .btn{
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.collection-dialog-content .content .custom-tree-node:hover .btn{
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
.collection-dialog-content .content .custom-tree-node .avatar{
|
||||||
|
display: -webkit-box;
|
||||||
|
display: -ms-flexbox;
|
||||||
|
display: flex;
|
||||||
|
-webkit-box-align: center;
|
||||||
|
-ms-flex-align: center;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
.collection-dialog-content .content .custom-tree-node .avatar>li{
|
||||||
|
margin-left: -8px;
|
||||||
|
}
|
||||||
|
.collection-dialog-content .content .custom-tree-node .avatar>li:first-child{
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
.collection-dialog-content .content .custom-tree-node .avatar .img-circle{
|
||||||
|
width: 24px;
|
||||||
|
height: 24px;
|
||||||
|
vertical-align: text-top;
|
||||||
|
border: 1px solid var(--border-color-base);
|
||||||
|
}
|
||||||
|
.collection-dialog-content .content .custom-tree-node:hover .avatar{
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.collection-dialog-content .footer{
|
||||||
|
height: 50px;
|
||||||
|
line-height: 50px;
|
||||||
|
font-size: 18px;
|
||||||
|
border-top: 1px solid var(--border-color-base);
|
||||||
|
text-align: center;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
.collection-dialog-content .footer:hover{
|
||||||
|
background-color: var(--bg-poperHover);
|
||||||
|
}
|
||||||
|
.collection-dialog-content .footer i{
|
||||||
|
font-size: 23px;
|
||||||
|
margin-right: 8px;
|
||||||
|
color: var(--starsActive);
|
||||||
|
vertical-align: text-bottom;
|
||||||
|
}
|
||||||
@@ -31,13 +31,36 @@ body,
|
|||||||
body{
|
body{
|
||||||
background-color: var(--bg-content);
|
background-color: var(--bg-content);
|
||||||
}
|
}
|
||||||
|
.el-page-header__left{
|
||||||
|
z-index: 100;
|
||||||
|
color: var(--header-text);
|
||||||
|
margin-right: 6px;
|
||||||
|
}
|
||||||
|
.el-page-header__left:hover{
|
||||||
|
color: var(--header-active);
|
||||||
|
}
|
||||||
|
.el-page-header__left .el-icon-back{
|
||||||
|
font-size: 21px;
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
|
.el-page-header__left .el-page-header__title{
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: 700;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
.el-page-header__left::after{
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
.tipTxt{
|
.tipTxt{
|
||||||
color: var(--tip-color);
|
color: var(--tip-color);
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
line-height: 20px;
|
line-height: 20px;
|
||||||
margin-top: 6px;
|
margin-top: 6px;
|
||||||
}
|
}
|
||||||
|
.highlight {
|
||||||
|
color: var(--leftTreeColor);
|
||||||
|
font-weight: 700;
|
||||||
|
}
|
||||||
.tipTxt:hover {
|
.tipTxt:hover {
|
||||||
color: var(--content-text);
|
color: var(--content-text);
|
||||||
}
|
}
|
||||||
@@ -120,6 +143,9 @@ body{
|
|||||||
.el-progress-bar__outer{
|
.el-progress-bar__outer{
|
||||||
background-color: var(--bg-input);
|
background-color: var(--bg-input);
|
||||||
}
|
}
|
||||||
|
.el-dropdown-menu{
|
||||||
|
min-width: 165px;
|
||||||
|
}
|
||||||
.el-dropdown-menu__item--divided{
|
.el-dropdown-menu__item--divided{
|
||||||
border-color: var(--border-color-base);
|
border-color: var(--border-color-base);
|
||||||
}
|
}
|
||||||
@@ -302,9 +328,15 @@ body{
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
}
|
}
|
||||||
.page-component__scroll>.el-scrollbar__wrap {
|
.el-scrollbar__wrap {
|
||||||
overflow-x: hidden;
|
overflow-x: hidden;
|
||||||
}
|
}
|
||||||
|
#copyInput{
|
||||||
|
opacity: 0;
|
||||||
|
position: fixed;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
}
|
||||||
.Topcarousel{
|
.Topcarousel{
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
@@ -314,17 +346,27 @@ body{
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
color: #FFF;
|
color: #FFF;
|
||||||
}
|
}
|
||||||
#copyInput{
|
|
||||||
opacity: 0;
|
|
||||||
position: fixed;
|
|
||||||
bottom: 0;
|
|
||||||
left: 0;
|
|
||||||
}
|
|
||||||
.img-circle{
|
.img-circle{
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
.img-circle,.Topcarousel{
|
||||||
|
width: 40px;
|
||||||
|
height: 40px;
|
||||||
|
line-height: 40px;
|
||||||
|
}
|
||||||
|
.small .img-circle,.small .Topcarousel{
|
||||||
|
width: 35px;
|
||||||
|
height: 35px;
|
||||||
|
line-height: 35px;
|
||||||
|
}
|
||||||
|
.mini .img-circle,.mini .Topcarousel{
|
||||||
|
width: 24px;
|
||||||
|
height: 24px;
|
||||||
|
line-height: 24px;
|
||||||
|
}
|
||||||
.hide{
|
.hide{
|
||||||
display: none !important;
|
display: none !important;
|
||||||
}
|
}
|
||||||
@@ -414,7 +456,7 @@ ul{
|
|||||||
justify-content: left;
|
justify-content: left;
|
||||||
background: var(--bg-header);
|
background: var(--bg-header);
|
||||||
margin-left: -20px;
|
margin-left: -20px;
|
||||||
|
min-width: 150px;
|
||||||
}
|
}
|
||||||
#top_header .header-content .h-left>a{
|
#top_header .header-content .h-left>a{
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@@ -422,6 +464,7 @@ ul{
|
|||||||
padding-left: 41px;
|
padding-left: 41px;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.container2 #top_header .header-content .h-left>a{
|
.container2 #top_header .header-content .h-left>a{
|
||||||
width: calc(100% - 45px);
|
width: calc(100% - 45px);
|
||||||
}
|
}
|
||||||
|
|||||||
33
dzz/pichome/css/pc/components/addcollect.css
Normal file
33
dzz/pichome/css/pc/components/addcollect.css
Normal file
@@ -0,0 +1,33 @@
|
|||||||
|
.addcollection-dialog .el-checkbox{
|
||||||
|
width: 100%;
|
||||||
|
overflow: hidden;
|
||||||
|
height: 50px;
|
||||||
|
margin: 0;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
.addcollection-dialog .el-checkbox .el-checkbox__input{
|
||||||
|
float: right;
|
||||||
|
line-height: 50px;
|
||||||
|
}
|
||||||
|
.addcollection-dialog .el-checkbox .el-checkbox__label{
|
||||||
|
float: left;
|
||||||
|
line-height: 50px;
|
||||||
|
padding-left: 0;
|
||||||
|
}
|
||||||
|
.addcollection-dialog .el-checkbox .el-checkbox__label .img-circle{
|
||||||
|
width: 32px;
|
||||||
|
height: 32px;
|
||||||
|
margin-top: 9px;
|
||||||
|
vertical-align: top;
|
||||||
|
margin-right: 6px;
|
||||||
|
}
|
||||||
|
.addcollection-dialog .el-checkbox .el-checkbox__label .Topcarousel{
|
||||||
|
width: 32px;
|
||||||
|
height: 32px;
|
||||||
|
margin-top: 9px;
|
||||||
|
margin-right: 6px;
|
||||||
|
color: #FFFFFF;
|
||||||
|
text-align: center;
|
||||||
|
line-height: 32px;
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
132
dzz/pichome/css/pc/components/collect.css
Normal file
132
dzz/pichome/css/pc/components/collect.css
Normal file
@@ -0,0 +1,132 @@
|
|||||||
|
.collection-dialog{
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
.collection-dialog .el-dialog__body{
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
.collection-dialog.el-dialog .collection-dialog-content{
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
.collection-dialog-content{
|
||||||
|
width: 360px;
|
||||||
|
height: 460px;
|
||||||
|
}
|
||||||
|
.collection-dialog-content .header{
|
||||||
|
padding: 12px;
|
||||||
|
padding-bottom: 0;
|
||||||
|
}
|
||||||
|
.collection-dialog-content .content{
|
||||||
|
padding: 12px 0;
|
||||||
|
height: 358px;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
.collection-dialog-content .content.notadd{
|
||||||
|
height: 408px;
|
||||||
|
}
|
||||||
|
.collection-dialog-content .content .el-tree-node__content{
|
||||||
|
height: 64px;
|
||||||
|
padding-right: 8px;
|
||||||
|
border-radius: 3px;
|
||||||
|
}
|
||||||
|
.collection-dialog-content .content .el-tree-node__content .el-tree-node__expand-icon{
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
.collection-dialog-content .content .custom-tree-node{
|
||||||
|
width: 100%;
|
||||||
|
position: relative;
|
||||||
|
padding-left: 55px;
|
||||||
|
height: 100%;
|
||||||
|
display: -webkit-box;
|
||||||
|
display: -ms-flexbox;
|
||||||
|
display: flex;
|
||||||
|
-webkit-box-align: center;
|
||||||
|
-ms-flex-align: center;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
.collection-dialog-content .content .custom-tree-node.notpadding{
|
||||||
|
padding-left: 0px;
|
||||||
|
}
|
||||||
|
.collection-dialog-content .content .custom-tree-node .img{
|
||||||
|
width: 40px;
|
||||||
|
height: 40px;
|
||||||
|
border-radius: 3px;
|
||||||
|
overflow: hidden;
|
||||||
|
margin-top: auto;
|
||||||
|
margin-bottom: auto;
|
||||||
|
position: absolute;
|
||||||
|
left: 0;
|
||||||
|
top: 0;
|
||||||
|
bottom: 0;
|
||||||
|
background: var(--content-imgbg);
|
||||||
|
}
|
||||||
|
.collection-dialog-content .content .custom-tree-node .img img{
|
||||||
|
object-fit: cover;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
.collection-dialog-content .content .custom-tree-node .name{
|
||||||
|
width: 100%;
|
||||||
|
padding-right: 8px;
|
||||||
|
overflow: hidden;
|
||||||
|
white-space: nowrap;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
font-weight: 700;
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
.collection-dialog-content .content .custom-tree-node .btn{
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.collection-dialog-content .content .custom-tree-node:hover .btn{
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
.collection-dialog-content .content .custom-tree-node .avatar{
|
||||||
|
display: -webkit-box;
|
||||||
|
display: -ms-flexbox;
|
||||||
|
display: flex;
|
||||||
|
-webkit-box-align: center;
|
||||||
|
-ms-flex-align: center;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
.collection-dialog-content .content .custom-tree-node .avatar>li{
|
||||||
|
margin-left: -8px;
|
||||||
|
}
|
||||||
|
.collection-dialog-content .content .custom-tree-node .avatar>li:first-child{
|
||||||
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
.collection-dialog-content .content .custom-tree-node .avatar .img-circle{
|
||||||
|
width: 24px;
|
||||||
|
height: 24px;
|
||||||
|
vertical-align: text-top;
|
||||||
|
border: 1px solid var(--border-color-base);
|
||||||
|
}
|
||||||
|
.collection-dialog-content .content .custom-tree-node .avatar .Topcarousel{
|
||||||
|
width: 24px;
|
||||||
|
height: 24px;
|
||||||
|
border: 1px solid var(--border-color-base);
|
||||||
|
text-align: center;
|
||||||
|
line-height: 24px;
|
||||||
|
color: #FFFFFF;
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
.collection-dialog-content .content .custom-tree-node:hover .avatar{
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.collection-dialog-content .footer{
|
||||||
|
height: 50px;
|
||||||
|
line-height: 50px;
|
||||||
|
font-size: 18px;
|
||||||
|
border-top: 1px solid var(--border-color-base);
|
||||||
|
text-align: center;
|
||||||
|
cursor: pointer;
|
||||||
|
color: var(--header-text);
|
||||||
|
}
|
||||||
|
.collection-dialog-content .footer:hover{
|
||||||
|
background-color: var(--bg-poperHover);
|
||||||
|
color: var(--header-active);
|
||||||
|
}
|
||||||
|
.collection-dialog-content .footer i{
|
||||||
|
font-size: 23px;
|
||||||
|
margin-right: 8px;
|
||||||
|
color: var(--starsActive);
|
||||||
|
vertical-align: text-bottom;
|
||||||
|
}
|
||||||
@@ -1,3 +1,11 @@
|
|||||||
|
#Details_Iframe{
|
||||||
|
position: fixed;
|
||||||
|
left: 0;
|
||||||
|
top: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
z-index: 1000;
|
||||||
|
}
|
||||||
#container_scroll .el-loading-mask{
|
#container_scroll .el-loading-mask{
|
||||||
background: var(--bg-content);
|
background: var(--bg-content);
|
||||||
z-index: 20;
|
z-index: 20;
|
||||||
@@ -21,6 +29,11 @@
|
|||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
#container_scroll .container-not.center{
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
.image-container{
|
.image-container{
|
||||||
min-height: 100%;
|
min-height: 100%;
|
||||||
position: relative;
|
position: relative;
|
||||||
@@ -35,11 +48,20 @@
|
|||||||
}
|
}
|
||||||
.image-container .image-wrapper .image-item .image-inside{
|
.image-container .image-wrapper .image-item .image-inside{
|
||||||
padding: 0 4px;
|
padding: 0 4px;
|
||||||
|
position: relative;
|
||||||
}
|
}
|
||||||
.image-container .image-wrapper .image-item .image-inside .image-single{
|
.image-container .image-wrapper .image-item .image-inside .image-single{
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
position: relative;
|
position: relative;
|
||||||
background: var(--bg-content);
|
background: var(--bg-content);
|
||||||
|
border: 1px solid transparent;
|
||||||
|
}
|
||||||
|
.image-container .image-wrapper .image-item.checked .image-inside .image-single{
|
||||||
|
border: 1px solid var(--border-color-base);
|
||||||
|
border-radius: 18px;
|
||||||
|
}
|
||||||
|
.container2 .image-container .image-wrapper .image-item.checked .image-inside .image-single{
|
||||||
|
border-radius: 3px;
|
||||||
}
|
}
|
||||||
.image-container .image-wrapper .image-item .image-inside .image-single.radius{
|
.image-container .image-wrapper .image-item .image-inside .image-single.radius{
|
||||||
border-radius: 18px;
|
border-radius: 18px;
|
||||||
@@ -108,14 +130,54 @@
|
|||||||
.image-container .image-wrapper .image-item .image-inside .message{
|
.image-container .image-wrapper .image-item .image-inside .message{
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
.image-container .image-wrapper .image-item .image-inside .image-single .topFlex{
|
|
||||||
|
.image-container .image-wrapper .image-item .image-inside .el-button-group{
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 8px;
|
z-index: 10;
|
||||||
|
left: 12px;
|
||||||
|
top: 8px;
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.image-container .image-wrapper .image-item .image-inside:hover .el-button-group{
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
.image-container .image-wrapper .image-item .image-inside .el-button-group .reference{
|
||||||
|
margin-right: -1px;
|
||||||
|
border-top-right-radius: 0;
|
||||||
|
border-bottom-right-radius: 0;
|
||||||
|
float: left;
|
||||||
|
border-left: 0;
|
||||||
|
border-top-left-radius: 18px;
|
||||||
|
border-bottom-left-radius: 18px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.container2 .image-container .image-wrapper .image-item .image-inside .el-button-group .reference{
|
||||||
|
border-top-left-radius: 3px;
|
||||||
|
border-bottom-left-radius: 3px;
|
||||||
|
}
|
||||||
|
.container2 .image-container .image-wrapper .image-item .image-inside .el-button-group.border .reference{
|
||||||
|
border-radius: 3px;
|
||||||
|
border-color: #f56c6c;
|
||||||
|
}
|
||||||
|
.image-container .image-wrapper .image-item .image-inside .el-button-group .el-dropdown__caret-button{
|
||||||
|
height: 36px;
|
||||||
|
padding: 0px 3px;
|
||||||
|
border-top-right-radius: 18px;
|
||||||
|
border-bottom-right-radius: 18px;
|
||||||
|
width: 30px;
|
||||||
|
}
|
||||||
|
.container2 .image-container .image-wrapper .image-item .image-inside .el-button-group .el-dropdown__caret-button{
|
||||||
|
border-top-right-radius: 3px;
|
||||||
|
border-bottom-right-radius: 3px;
|
||||||
|
}
|
||||||
|
.image-container .image-wrapper .image-item .image-inside .topFlex{
|
||||||
|
position: absolute;
|
||||||
|
right: 8px;
|
||||||
top: 8px;
|
top: 8px;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
}
|
}
|
||||||
.image-container .image-wrapper .image-item .image-inside .image-single .circulars{
|
.image-container .image-wrapper .image-item .image-inside .circulars{
|
||||||
background-color: var(--content-imgbg-btn);
|
background-color: var(--content-imgbg-btn);
|
||||||
color: var(--content-imgbg-txt);
|
color: var(--content-imgbg-txt);
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
@@ -130,17 +192,17 @@
|
|||||||
display: none;
|
display: none;
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
}
|
}
|
||||||
.image-container .image-wrapper .image-item .image-inside .image-single.showoperation .circulars{
|
.image-container .image-wrapper .image-item .image-inside:hover .circulars{
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
.image-container .image-wrapper .image-item .image-inside .image-single .circulars:first-child{
|
.image-container .image-wrapper .image-item .image-inside .circulars:first-child{
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
}
|
}
|
||||||
.image-container .image-wrapper .image-item .image-inside .image-single .circulars:hover{
|
.image-container .image-wrapper .image-item .image-inside .circulars:hover{
|
||||||
color: var(--content-imgbg-txtHover);
|
color: var(--content-imgbg-txtHover);
|
||||||
background-color: var(--content-imgbg-btnHover);
|
background-color: var(--content-imgbg-btnHover);
|
||||||
}
|
}
|
||||||
.image-container .image-wrapper .image-item .image-inside .image-single .circulars.link{
|
.image-container .image-wrapper .image-item .image-inside .circulars.link{
|
||||||
position: absolute;
|
position: absolute;
|
||||||
bottom: 8px;
|
bottom: 8px;
|
||||||
left: 8px;
|
left: 8px;
|
||||||
@@ -151,13 +213,13 @@
|
|||||||
z-index: 2;
|
z-index: 2;
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
}
|
}
|
||||||
.image-container .image-wrapper .image-item .image-inside .image-single .circulars.link .el-link--inner{
|
.image-container .image-wrapper .image-item .image-inside .circulars.link .el-link--inner{
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.image-container .image-wrapper .image-item .image-inside .image-single .image-playurl .movies-box{
|
.image-container .image-wrapper .image-item .image-inside .image-playurl .movies-box{
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 0;
|
left: 0;
|
||||||
top: 0;
|
top: 0;
|
||||||
@@ -182,10 +244,13 @@
|
|||||||
}
|
}
|
||||||
.image-container .image-wrapper .image-item .image-inside .image-single .image-playurl .movies-box .voice{
|
.image-container .image-wrapper .image-item .image-inside .image-single .image-playurl .movies-box .voice{
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 8px;
|
right: 46px;
|
||||||
top: 8px;
|
top: 7px;
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
}
|
}
|
||||||
|
.image-container .image-wrapper .image-item .image-inside .image-single .image-playurl.exhibit .movies-box .voice{
|
||||||
|
right: 8px;
|
||||||
|
}
|
||||||
.image-container .image-wrapper .image-item .image-inside .image-single .image-playurl .movies-box .voice.yes .no,
|
.image-container .image-wrapper .image-item .image-inside .image-single .image-playurl .movies-box .voice.yes .no,
|
||||||
.image-container .image-wrapper .image-item .image-inside .image-single .image-playurl .movies-box .voice.no .yes{
|
.image-container .image-wrapper .image-item .image-inside .image-single .image-playurl .movies-box .voice.no .yes{
|
||||||
display: none;
|
display: none;
|
||||||
@@ -278,3 +343,54 @@
|
|||||||
.image-container .image-wrapper .image-item .image-inside .message .other .score.active{
|
.image-container .image-wrapper .image-item .image-inside .message .other .score.active{
|
||||||
color: var(--starsActive);
|
color: var(--starsActive);
|
||||||
}
|
}
|
||||||
|
.image-container .image-wrapper .image-item .collect-checkeds{
|
||||||
|
position: absolute;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
z-index: 20;
|
||||||
|
display: none;
|
||||||
|
cursor: pointer;
|
||||||
|
/* border: 2px solid var(--border-color-base); */
|
||||||
|
}
|
||||||
|
.image-container .image-wrapper .image-item.checked .collect-checkeds{
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
.image-container .image-wrapper .image-item .collect-checkeds .check{
|
||||||
|
position: absolute;
|
||||||
|
left: 12px;
|
||||||
|
top: 8px;
|
||||||
|
border-radius: 8px;
|
||||||
|
background: #000;
|
||||||
|
width: 24px;
|
||||||
|
height: 24px;
|
||||||
|
font-size: 16px;
|
||||||
|
font-weight: 700;
|
||||||
|
text-align: center;
|
||||||
|
line-height: 24px;
|
||||||
|
color: #FFFFFF;
|
||||||
|
}
|
||||||
|
#imagelayout .collects-move-btn-box{
|
||||||
|
position: fixed;
|
||||||
|
bottom: 30px;
|
||||||
|
left: 0;
|
||||||
|
z-index: 100;
|
||||||
|
width: 100%;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
#imagelayout .collects-move-btn-box .item{
|
||||||
|
width: 58px;
|
||||||
|
height: 58px;
|
||||||
|
text-align: center;
|
||||||
|
line-height: 58px;
|
||||||
|
font-size: 22px;
|
||||||
|
background: var(--header-textHover);
|
||||||
|
border-radius: 50%;
|
||||||
|
color: var(--header-text);
|
||||||
|
display: inline-block;
|
||||||
|
box-shadow: rgb(0,0,0,0.1) 0px 0px 20px;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
#imagelayout .collects-move-btn-box .item:hover{
|
||||||
|
background: var(--header-textHover);
|
||||||
|
color: var(--header-iconHover);
|
||||||
|
}
|
||||||
@@ -86,9 +86,6 @@
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
#container_scroll .el-scrollbar__wrap{
|
|
||||||
overflow-x: hidden;
|
|
||||||
}
|
|
||||||
#container_scroll .el-scrollbar__wrap .el-scrollbar__view{
|
#container_scroll .el-scrollbar__wrap .el-scrollbar__view{
|
||||||
min-height: 100%;
|
min-height: 100%;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
@@ -99,14 +96,6 @@
|
|||||||
#container_scroll .el-scrollbar__bar.is-vertical{
|
#container_scroll .el-scrollbar__bar.is-vertical{
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
}
|
}
|
||||||
#Details_Iframe{
|
|
||||||
position: fixed;
|
|
||||||
left: 0;
|
|
||||||
top: 0;
|
|
||||||
width: 100%;
|
|
||||||
height: 100%;
|
|
||||||
z-index: 1000;
|
|
||||||
}
|
|
||||||
.container2 .el-header{
|
.container2 .el-header{
|
||||||
padding: 0;
|
padding: 0;
|
||||||
z-index: 10;
|
z-index: 10;
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
--header-screenDel:#C9405A;/* 头部清除筛选的 × 背景色 */
|
--header-screenDel:#C9405A;/* 头部清除筛选的 × 背景色 */
|
||||||
|
|
||||||
--bg-content:#1E1E1E;/* 内容背景色 */
|
--bg-content:#1E1E1E;/* 内容背景色 */
|
||||||
|
--bg-contentopacity:rgb(30,30,30,0.6);/* 内容背景色透明 */
|
||||||
--content-text:#BCBCBC;/* 内容文字颜色 */
|
--content-text:#BCBCBC;/* 内容文字颜色 */
|
||||||
--content-textHover:#F4F4F4;/* 内容文字hover颜色 */
|
--content-textHover:#F4F4F4;/* 内容文字hover颜色 */
|
||||||
--content-imgbg:#161616;/* 图片背景色 */
|
--content-imgbg:#161616;/* 图片背景色 */
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
--header-screenDel:#C33A54;/* 头部清除筛选的 × 背景色 */
|
--header-screenDel:#C33A54;/* 头部清除筛选的 × 背景色 */
|
||||||
|
|
||||||
--bg-content:#383838;/* 内容背景色 */
|
--bg-content:#383838;/* 内容背景色 */
|
||||||
|
--bg-contentopacity:rgb(56,56,56,0.6);/* 内容背景色透明 */
|
||||||
--content-text:#C4C4C4;/* 内容文字颜色 */
|
--content-text:#C4C4C4;/* 内容文字颜色 */
|
||||||
--content-textHover:#F6F6F6;/* 内容文字hover颜色 */
|
--content-textHover:#F6F6F6;/* 内容文字hover颜色 */
|
||||||
--content-imgbg:#303030;/* 图片背景色 */
|
--content-imgbg:#303030;/* 图片背景色 */
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
--header-screenDel:#F66E88;/* 头部清除筛选的 × 背景色 */
|
--header-screenDel:#F66E88;/* 头部清除筛选的 × 背景色 */
|
||||||
|
|
||||||
--bg-content:#E2E4E5;/* 内容背景色 */
|
--bg-content:#E2E4E5;/* 内容背景色 */
|
||||||
|
--bg-contentopacity:rgb(226,228,229,0.6);/* 内容背景色透明 */
|
||||||
--content-text:#26292A;/* 内容文字颜色 */
|
--content-text:#26292A;/* 内容文字颜色 */
|
||||||
--content-textHover:#121516;/* 内容文字hover颜色 */
|
--content-textHover:#121516;/* 内容文字hover颜色 */
|
||||||
--content-imgbg:#FFFFFF;/* 图片背景色 */
|
--content-imgbg:#FFFFFF;/* 图片背景色 */
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
--header-screenDel:#CD4562;/* 头部清除筛选的 × 背景色 */
|
--header-screenDel:#CD4562;/* 头部清除筛选的 × 背景色 */
|
||||||
|
|
||||||
--bg-content:#303342;/* 内容背景色 */
|
--bg-content:#303342;/* 内容背景色 */
|
||||||
|
--bg-contentopacity:rgb(48,51,66,0.6);/* 内容背景色透明 */
|
||||||
--content-text:#C1C2C7;/* 内容文字颜色 */
|
--content-text:#C1C2C7;/* 内容文字颜色 */
|
||||||
--content-textHover:#F2F2F3;/* 内容文字hover颜色 */
|
--content-textHover:#F2F2F3;/* 内容文字hover颜色 */
|
||||||
--content-imgbg:#2A2C39;/* 图片背景色 */
|
--content-imgbg:#2A2C39;/* 图片背景色 */
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
--header-screenDel:#CE4462;/* 头部清除筛选的 × 背景色 */
|
--header-screenDel:#CE4462;/* 头部清除筛选的 × 背景色 */
|
||||||
|
|
||||||
--bg-content:#343141;/* 内容背景色 */
|
--bg-content:#343141;/* 内容背景色 */
|
||||||
|
--bg-contentopacity:rgb(52,49,65,0.6);/* 内容背景色透明 */
|
||||||
--content-text:#C2C2C6;/* 内容文字颜色 */
|
--content-text:#C2C2C6;/* 内容文字颜色 */
|
||||||
--content-textHover:#FFFFFF;/* 内容文字hover颜色 */
|
--content-textHover:#FFFFFF;/* 内容文字hover颜色 */
|
||||||
--content-imgbg:#2D2A38;/* 图片背景色 */
|
--content-imgbg:#2D2A38;/* 图片背景色 */
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
--header-screenDel:#F46B85;/* 头部清除筛选的 × 背景色 */
|
--header-screenDel:#F46B85;/* 头部清除筛选的 × 背景色 */
|
||||||
|
|
||||||
--bg-content:#F8F8F8;/* 内容背景色 */
|
--bg-content:#F8F8F8;/* 内容背景色 */
|
||||||
|
--bg-contentopacity:rgb(248,248,248,0.6);/* 内容背景色透明 */
|
||||||
--content-text:#272727;/* 内容文字颜色 */
|
--content-text:#272727;/* 内容文字颜色 */
|
||||||
--content-textHover:#111111;/* 内容文字hover颜色 */
|
--content-textHover:#111111;/* 内容文字hover颜色 */
|
||||||
--content-imgbg:#FFFFFF;/* 图片背景色 */
|
--content-imgbg:#FFFFFF;/* 图片背景色 */
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ $processname = 'DZZ_LOCK_PICHOMEDELETE';
|
|||||||
if (!dzz_process::islocked($processname, 60*60)) {
|
if (!dzz_process::islocked($processname, 60*60)) {
|
||||||
$locked=false;
|
$locked=false;
|
||||||
}
|
}
|
||||||
|
//dzz_process::unlock($processname);
|
||||||
if ($locked) {
|
if ($locked) {
|
||||||
exit(json_encode( array('error'=>'进程已被锁定请稍后再试')));
|
exit(json_encode( array('error'=>'进程已被锁定请稍后再试')));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -10,7 +10,6 @@ $attach = DB::fetch_first("select path,appid from %t where rid = %s",array('pich
|
|||||||
$librarydata = DB::fetch_first("select path,iswebsitefile from %t where appid = %s",array('pichome_vapp',$attach['appid']));
|
$librarydata = DB::fetch_first("select path,iswebsitefile from %t where appid = %s",array('pichome_vapp',$attach['appid']));
|
||||||
|
|
||||||
$attachurl = $librarydata['path'].BS.$attach['path'];
|
$attachurl = $librarydata['path'].BS.$attach['path'];
|
||||||
|
|
||||||
$d = new FileDownload();
|
$d = new FileDownload();
|
||||||
$d->download($attachurl, $resourcesdata['name'], $resourcesdata['size'], 0, true);
|
$d->download($attachurl, $resourcesdata['name'], $resourcesdata['size'], 0, true);
|
||||||
exit();
|
exit();
|
||||||
@@ -3,16 +3,16 @@
|
|||||||
if (!defined('IN_OAOOA')) {
|
if (!defined('IN_OAOOA')) {
|
||||||
exit('Access Denied');
|
exit('Access Denied');
|
||||||
}
|
}
|
||||||
|
@ignore_user_abort(true);
|
||||||
@set_time_limit(0);
|
@set_time_limit(0);
|
||||||
ini_set('memory_limit', -1);
|
@ini_set('memory_limit', -1);
|
||||||
@ini_set('max_execution_time', 0);
|
@ini_set('max_execution_time', 0);
|
||||||
|
|
||||||
$appid = isset($_GET['appid']) ? trim($_GET['appid']):0;
|
$appid = isset($_GET['appid']) ? trim($_GET['appid']):0;
|
||||||
$processname = 'DZZ_EXPORTFILE_LOCK_'.$appid;
|
$processname = 'DZZ_EXPORTFILE_LOCK_'.$appid;
|
||||||
// dzz_process::unlock($processname);
|
//dzz_process::unlock($processname);
|
||||||
$locked = true;
|
$locked = true;
|
||||||
if (!dzz_process::islocked($processname, 60*5)) {
|
if (!dzz_process::islocked($processname, 60*60*24)) {
|
||||||
$locked=false;
|
$locked=false;
|
||||||
}
|
}
|
||||||
if ($locked) {
|
if ($locked) {
|
||||||
@@ -22,21 +22,42 @@
|
|||||||
$force = isset($_GET['force']) ? intval($_GET['force']):0;
|
$force = isset($_GET['force']) ? intval($_GET['force']):0;
|
||||||
$data = C::t('pichome_vapp')->fetch($appid);
|
$data = C::t('pichome_vapp')->fetch($appid);
|
||||||
if(!$data) exit(json_encode(array('error'=>'no data')));
|
if(!$data) exit(json_encode(array('error'=>'no data')));
|
||||||
if($data['state'] != 2 || $data['isdelete'] != 0) exit(json_encode(array('error'=>'is deleted or state is not allow')));
|
if($data['state'] != 2 && $data['isdelete'] != 0) exit(json_encode(array('error'=>'is deleted or state is not allow')));
|
||||||
if($data['type'] == 0){
|
if($data['type'] == 0){
|
||||||
include_once dzz_libfile('eagleexport');
|
include_once DZZ_ROOT.'dzz'.BS.'eagle'.BS.'class'.BS.'class_eagleexport.php';
|
||||||
|
//include_once dzz_libfile('eagleexport');
|
||||||
$eagleexport = new eagleexport($data);
|
$eagleexport = new eagleexport($data);
|
||||||
|
try{
|
||||||
$return = $eagleexport->execExport($force);
|
$return = $eagleexport->execExport($force);
|
||||||
|
}catch (Exception $e){
|
||||||
|
dzz_process::unlock($processname);
|
||||||
|
}
|
||||||
|
|
||||||
}elseif($data['type'] == 1){
|
}elseif($data['type'] == 1){
|
||||||
include_once dzz_libfile('localexport');
|
include_once DZZ_ROOT.'dzz'.BS.'local'.BS.'class'.BS.'class_localexport.php';
|
||||||
|
//include_once dzz_libfile('localexport');
|
||||||
$localexport = new localexport($data);
|
$localexport = new localexport($data);
|
||||||
//执行导入文件
|
//执行导入文件
|
||||||
|
try{
|
||||||
$return = $localexport->execExport($force);
|
$return = $localexport->execExport($force);
|
||||||
|
}catch (Exception $e){
|
||||||
|
dzz_process::unlock($processname);
|
||||||
|
}
|
||||||
}elseif ($data['type'] == 2){
|
}elseif ($data['type'] == 2){
|
||||||
include_once DZZ_ROOT.'dzz'.BS.'billfish'.BS.'class'.BS.'class_billfishexport.php';
|
include_once DZZ_ROOT.'dzz'.BS.'billfish'.BS.'class'.BS.'class_billfishexport.php';
|
||||||
$billfishxport = new billfishxport($data);
|
$billfishxport = new billfishxport($data);
|
||||||
$return = $billfishxport->execExport();
|
try{
|
||||||
|
$return = $billfishxport->execExport($force);
|
||||||
|
}catch (Exception $e){
|
||||||
|
dzz_process::unlock($processname);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
dzz_process::unlock($processname);
|
dzz_process::unlock($processname);
|
||||||
exit('success');
|
$data = C::t('pichome_vapp')->fetch($appid);
|
||||||
|
if($data['state'] == 2){
|
||||||
|
dfsockopen(getglobal('localurl') . 'index.php?mod=pichome&op=exportfile&appid=' . $appid, 0, '', '', false, '', 1);
|
||||||
|
}elseif($data['state'] == 3){
|
||||||
|
dfsockopen(getglobal('localurl') . 'index.php?mod=pichome&op=exportfilecheck&appid=' . $appid, 0, '', '', false, '', 1);
|
||||||
|
}
|
||||||
|
// exit('success');
|
||||||
|
|
||||||
@@ -11,7 +11,7 @@ $appid = isset($_GET['appid']) ? trim($_GET['appid']) : 0;
|
|||||||
$processname = 'DZZ_EXPORTCHECKFILE_LOCK_' . $appid;
|
$processname = 'DZZ_EXPORTCHECKFILE_LOCK_' . $appid;
|
||||||
//dzz_process::unlock($processname);
|
//dzz_process::unlock($processname);
|
||||||
$locked = true;
|
$locked = true;
|
||||||
if (!dzz_process::islocked($processname, 60 * 5)) {
|
if (!dzz_process::islocked($processname, 60*60*24)) {
|
||||||
$locked = false;
|
$locked = false;
|
||||||
}
|
}
|
||||||
if ($locked) {
|
if ($locked) {
|
||||||
@@ -21,13 +21,15 @@ if ($locked) {
|
|||||||
$force = isset($_GET['force']) ? intval($_GET['force']) : 0;
|
$force = isset($_GET['force']) ? intval($_GET['force']) : 0;
|
||||||
$data = C::t('pichome_vapp')->fetch($appid);
|
$data = C::t('pichome_vapp')->fetch($appid);
|
||||||
if (!$data) exit(json_encode(array('error' => 'no data')));
|
if (!$data) exit(json_encode(array('error' => 'no data')));
|
||||||
if ($data['state'] != 3 || $data['isdelete'] != 0) exit(json_encode(array('error' => 'is deleted or state is not allow')));
|
if ($data['state'] != 3 && $data['isdelete'] != 0) exit(json_encode(array('error' => 'is deleted or state is not allow')));
|
||||||
if ($data['type'] == 0) {
|
if ($data['type'] == 0) {
|
||||||
include_once dzz_libfile('eagleexport');
|
include_once DZZ_ROOT.'dzz'.BS.'eagle'.BS.'class'.BS.'class_eagleexport.php';
|
||||||
|
//include_once dzz_libfile('eagleexport');
|
||||||
$eagleexport = new eagleexport($data);
|
$eagleexport = new eagleexport($data);
|
||||||
$return = $eagleexport->execCheckFile();
|
$return = $eagleexport->execCheckFile();
|
||||||
} elseif ($data['type'] == 1) {
|
} elseif ($data['type'] == 1) {
|
||||||
include_once dzz_libfile('localexport');
|
include_once DZZ_ROOT.'dzz'.BS.'local'.BS.'class'.BS.'class_localexport.php';
|
||||||
|
//include_once dzz_libfile('localexport');
|
||||||
$localexport = new localexport($data);
|
$localexport = new localexport($data);
|
||||||
$return = $localexport->execCheckFile();
|
$return = $localexport->execCheckFile();
|
||||||
}elseif ($data['type'] == 2){
|
}elseif ($data['type'] == 2){
|
||||||
@@ -36,4 +38,8 @@ if ($data['type'] == 0) {
|
|||||||
$return = $billfishxport->execCheckFile();
|
$return = $billfishxport->execCheckFile();
|
||||||
}
|
}
|
||||||
dzz_process::unlock($processname);
|
dzz_process::unlock($processname);
|
||||||
|
$data = C::t('pichome_vapp')->fetch($appid);
|
||||||
|
if($data['state'] == 3){
|
||||||
|
dfsockopen(getglobal('localurl') . 'index.php?mod=pichome&op=exportfilecheck&appid=' . $appid, 0, '', '', false, '', 1);
|
||||||
|
}
|
||||||
|
|
||||||
@@ -484,6 +484,7 @@ if ($operation == 'filelist') {
|
|||||||
default:
|
default:
|
||||||
$orderarr[] = ' r.dateline ' . $asc;
|
$orderarr[] = ' r.dateline ' . $asc;
|
||||||
}
|
}
|
||||||
|
$orderarr[] = " r.rid ".$asc;
|
||||||
$ordersql = implode(',', $orderarr);
|
$ordersql = implode(',', $orderarr);
|
||||||
if (!empty($para)) $params = array_merge($params, $para);
|
if (!empty($para)) $params = array_merge($params, $para);
|
||||||
if (!empty($orderparams)) $params = array_merge($params, $orderparams);
|
if (!empty($orderparams)) $params = array_merge($params, $orderparams);
|
||||||
|
|||||||
BIN
dzz/pichome/image/flashlight.png
Normal file
BIN
dzz/pichome/image/flashlight.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 453 B |
@@ -2,9 +2,10 @@
|
|||||||
if (!defined('IN_OAOOA')) {
|
if (!defined('IN_OAOOA')) {
|
||||||
exit('Access Denied');
|
exit('Access Denied');
|
||||||
}
|
}
|
||||||
@set_time_limit(0);
|
@ignore_user_abort(true);
|
||||||
@ini_set('memory_limit', -1);
|
@set_time_limit(0);
|
||||||
@ini_set('max_execution_time', 0);
|
@ini_set('memory_limit', -1);
|
||||||
|
@ini_set('max_execution_time', 0);
|
||||||
|
|
||||||
$appid = isset($_GET['appid']) ? trim($_GET['appid']):0;
|
$appid = isset($_GET['appid']) ? trim($_GET['appid']):0;
|
||||||
$force = isset($_GET['force']) ? intval($_GET['force']):0;
|
$force = isset($_GET['force']) ? intval($_GET['force']):0;
|
||||||
@@ -12,11 +13,13 @@
|
|||||||
if(!$data) exit(json_encode(array('error'=>'no data')));
|
if(!$data) exit(json_encode(array('error'=>'no data')));
|
||||||
if(($data['state'] > 1 && $data['state'] < 4) || $data['isdelete'] != 0) exit(json_encode(array('error'=>'export is runing or is deleted')));
|
if(($data['state'] > 1 && $data['state'] < 4) || $data['isdelete'] != 0) exit(json_encode(array('error'=>'export is runing or is deleted')));
|
||||||
if($data['type'] == 0){
|
if($data['type'] == 0){
|
||||||
include_once dzz_libfile('eagleexport');
|
include_once DZZ_ROOT.'dzz'.BS.'eagle'.BS.'class'.BS.'class_eagleexport.php';
|
||||||
|
//include_once dzz_libfile('eagleexport');
|
||||||
$eagleexport = new eagleexport($data);
|
$eagleexport = new eagleexport($data);
|
||||||
$return = $eagleexport->initExport();
|
$return = $eagleexport->initExport();
|
||||||
}elseif($data['type'] == 1 ){
|
}elseif($data['type'] == 1 ){
|
||||||
include_once dzz_libfile('localexport');
|
include_once DZZ_ROOT.'dzz'.BS.'local'.BS.'class'.BS.'class_localexport.php';
|
||||||
|
//include_once dzz_libfile('localexport');
|
||||||
$localexport = new localexport($data);
|
$localexport = new localexport($data);
|
||||||
$return = $localexport->initExport();
|
$return = $localexport->initExport();
|
||||||
}elseif ($data['type'] == 2){
|
}elseif ($data['type'] == 2){
|
||||||
@@ -24,5 +27,9 @@
|
|||||||
$billfishxport = new billfishxport($data);
|
$billfishxport = new billfishxport($data);
|
||||||
$return = $billfishxport->initExport();
|
$return = $billfishxport->initExport();
|
||||||
}
|
}
|
||||||
|
$data = C::t('pichome_vapp')->fetch($appid);
|
||||||
|
if($data['state'] == 2){
|
||||||
|
dfsockopen(getglobal('localurl') . 'index.php?mod=pichome&op=exportfile&appid=' . $appid, 0, '', '', false, '', 1);
|
||||||
|
}
|
||||||
exit(json_encode(array('success'=>true)));
|
exit(json_encode(array('success'=>true)));
|
||||||
|
|
||||||
@@ -1,6 +1,3 @@
|
|||||||
jQuery(document).ready(function() {
|
|
||||||
|
|
||||||
});
|
|
||||||
function debounce(fun, delay) {
|
function debounce(fun, delay) {
|
||||||
var time;
|
var time;
|
||||||
return function(args) {
|
return function(args) {
|
||||||
|
|||||||
142
dzz/pichome/js/pc/components/addcollect.js
Normal file
142
dzz/pichome/js/pc/components/addcollect.js
Normal file
@@ -0,0 +1,142 @@
|
|||||||
|
Vue.component('add-star-tree', {
|
||||||
|
props:['rids','dialogvisible'],
|
||||||
|
template: `<el-dialog
|
||||||
|
title="创建收藏夹"
|
||||||
|
custom-class="addcollection-dialog"
|
||||||
|
@opened="PopoverShow"
|
||||||
|
@closed="PopoverHide"
|
||||||
|
:visible.sync="dialogvisible">
|
||||||
|
<el-form ref="form" :model="formdata" label-position="top">
|
||||||
|
<el-form-item label="名称" required>
|
||||||
|
<el-input v-model.trim="formdata.name" placeholder="请输入名称"></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="用户权限">
|
||||||
|
<el-radio-group v-model="formdata.perm">
|
||||||
|
<el-radio :label="1">观察员</el-radio>
|
||||||
|
<el-radio :label="2">协作成员</el-radio>
|
||||||
|
<el-radio :label="3">管理员</el-radio>
|
||||||
|
</el-radio-group>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="添加合作用户">
|
||||||
|
<el-input v-model.trim="Userkeyword" @input="UserKeywordInput" placeholder="姓名搜索" clearable></el-input>
|
||||||
|
<div style="padding: 12px 24px 0 24px;">
|
||||||
|
<template v-if="user.loading">
|
||||||
|
<div style="position: relative;width: 100%;height: 100px;">
|
||||||
|
<div class="img-loading center">
|
||||||
|
<span class="el-icon-loading"></span>加载中...
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<template v-else>
|
||||||
|
<el-checkbox-group v-model="formdata.user">
|
||||||
|
<el-checkbox v-for="item in user.data" :label="item.uid">
|
||||||
|
<div>
|
||||||
|
<div style="display:inline-block" v-html="item.icon"></div>
|
||||||
|
{{item.username}}
|
||||||
|
</div>
|
||||||
|
</el-checkbox>
|
||||||
|
</el-checkbox-group>
|
||||||
|
</template>
|
||||||
|
</div>
|
||||||
|
</el-form-item>
|
||||||
|
</el-form>
|
||||||
|
<span slot="footer" class="dialog-footer">
|
||||||
|
<el-button @click="dialogvisible = false">取 消</el-button>
|
||||||
|
<el-button type="primary" @click="handleSubmit" :disabled="formdata.name?false:true">确 定</el-button>
|
||||||
|
</span>
|
||||||
|
</el-dialog>`,
|
||||||
|
|
||||||
|
data: function() {
|
||||||
|
return {
|
||||||
|
user:{
|
||||||
|
data:[],
|
||||||
|
loading:true
|
||||||
|
},
|
||||||
|
Userkeyword:'',
|
||||||
|
formdata:{
|
||||||
|
name:'',
|
||||||
|
perm:1,
|
||||||
|
user:[],
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
watch:{
|
||||||
|
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
|
||||||
|
},
|
||||||
|
methods:{
|
||||||
|
UserKeywordInput:debounce(function(val){//输入
|
||||||
|
this.GetUsers();
|
||||||
|
},800),
|
||||||
|
PopoverShow(){
|
||||||
|
this.GetUsers();
|
||||||
|
},
|
||||||
|
PopoverHide(){
|
||||||
|
var self = this;
|
||||||
|
self.user.loading = true;
|
||||||
|
self.Userkeyword = '';
|
||||||
|
self.formdata = {
|
||||||
|
name:'',
|
||||||
|
perm:1,
|
||||||
|
user:[],
|
||||||
|
};
|
||||||
|
self.$emit('closeaddcollectdialog');
|
||||||
|
},
|
||||||
|
handleSubmit(){
|
||||||
|
var self = this;
|
||||||
|
var param = {
|
||||||
|
name:self.formdata.name,
|
||||||
|
perm:self.formdata.perm,
|
||||||
|
uids:self.formdata.user.join(','),
|
||||||
|
};
|
||||||
|
$.post(SITEURL+DZZSCRIPT+'?mod=collection&op=collect&do=addcollect',param,function(json){
|
||||||
|
if(json.success){
|
||||||
|
self.addCollect(json.success.clid);
|
||||||
|
}else{
|
||||||
|
self.$message.error(json.error);
|
||||||
|
}
|
||||||
|
|
||||||
|
},'json');
|
||||||
|
},
|
||||||
|
addCollect(clid){
|
||||||
|
var self = this;
|
||||||
|
var param = {
|
||||||
|
rids:this.rids.join(','),
|
||||||
|
clid:clid
|
||||||
|
};
|
||||||
|
$.post(SITEURL+DZZSCRIPT+'?mod=collection&op=collect&do=addfilecollect',param,function(json){
|
||||||
|
if(json.success){
|
||||||
|
self.$message({
|
||||||
|
type:'success',
|
||||||
|
message:'收藏夹创建成功'
|
||||||
|
});
|
||||||
|
self.$message({
|
||||||
|
type:'success',
|
||||||
|
message:'文件收藏成功'
|
||||||
|
});
|
||||||
|
self.PopoverHide();
|
||||||
|
}else{
|
||||||
|
self.$message.error(json.error);
|
||||||
|
}
|
||||||
|
},'json');
|
||||||
|
},
|
||||||
|
GetUsers(){
|
||||||
|
var self = this;
|
||||||
|
self.user.loading = true;
|
||||||
|
$.post(SITEURL+DZZSCRIPT+'?mod=collection&op=collect&do=getuser',{
|
||||||
|
keyword:self.Userkeyword
|
||||||
|
},function(json){
|
||||||
|
var data = [];
|
||||||
|
self.user.data = json.success;
|
||||||
|
self.user.loading = false;
|
||||||
|
},'json');
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
|
||||||
|
},
|
||||||
|
beforeRouteLeave() {
|
||||||
|
},
|
||||||
|
});
|
||||||
262
dzz/pichome/js/pc/components/collect.js
Normal file
262
dzz/pichome/js/pc/components/collect.js
Normal file
@@ -0,0 +1,262 @@
|
|||||||
|
|
||||||
|
Vue.component('star-tree', {
|
||||||
|
template: `<el-popover
|
||||||
|
popper-class="collection-dialog"
|
||||||
|
@show="PopoverShow"
|
||||||
|
@hide="PopoverHide"
|
||||||
|
placement="bottom"
|
||||||
|
ref="refcollectiondialog"
|
||||||
|
trigger="click">
|
||||||
|
<div class="collection-dialog-content">
|
||||||
|
<div class="header">
|
||||||
|
<el-input
|
||||||
|
clearable
|
||||||
|
v-model.trim="filterText"
|
||||||
|
placeholder="请输入关键字"></el-input>
|
||||||
|
</div>
|
||||||
|
<div class="content">
|
||||||
|
<div v-if="loading" style="background: var(--bg-header);position: absolute;width: 100%;height: 100%;z-index: 10;">
|
||||||
|
<div class="img-loading center">
|
||||||
|
<span class="el-icon-loading"></span>加载中...
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<el-scrollbar style="height:100%;">
|
||||||
|
<div style="padding:0 12px;">
|
||||||
|
<el-tree
|
||||||
|
v-if="NodeShow"
|
||||||
|
ref="lefttree"
|
||||||
|
:load="GetTreeData"
|
||||||
|
node-key="cid"
|
||||||
|
lazy
|
||||||
|
:props="defaultProps"
|
||||||
|
:filter-node-method="TreeDataFilterNode"
|
||||||
|
:default-expanded-keys="ExpandedNodeKeys">
|
||||||
|
<div class="custom-tree-node" slot-scope="{ node, data }">
|
||||||
|
<div class="img">
|
||||||
|
<img v-if="data.covert" :src="data.covert" />
|
||||||
|
</div>
|
||||||
|
<div class="name" v-cloak>{{ data.catname }}</div>
|
||||||
|
<ul class="avatar">
|
||||||
|
<li v-for="item in data.uids" v-html="item.icon"></li>
|
||||||
|
</ul>
|
||||||
|
<el-button class="btn" @click.stop.prevent="handleSubmit(data.cid,data.clid,data.parent)" type="primary" size="medium">收藏</el-button>
|
||||||
|
</div>
|
||||||
|
</el-tree>
|
||||||
|
</div>
|
||||||
|
</el-scrollbar>
|
||||||
|
</div>
|
||||||
|
<div class="footer" @click="handleOpenAdd">
|
||||||
|
<i class="el-icon-circle-plus"></i>创建收藏夹
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<button slot="reference" type="button" class="el-button el-button--danger reference el-button--medium">
|
||||||
|
<span>收藏</span>
|
||||||
|
</button>
|
||||||
|
</el-popover>`,
|
||||||
|
props:['rids'],
|
||||||
|
data: function() {
|
||||||
|
return {
|
||||||
|
filterText:'',
|
||||||
|
defaultProps: {
|
||||||
|
children: 'children',
|
||||||
|
label: 'catname'
|
||||||
|
},
|
||||||
|
loading:true,
|
||||||
|
NodeShow:false,
|
||||||
|
ExpandedNodeKeys:[],
|
||||||
|
alreadyExpandedNodeKeys:[]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
watch:{
|
||||||
|
filterText:debounce(function(val){
|
||||||
|
var self = this;
|
||||||
|
if(val){
|
||||||
|
self.alreadyExpandedNodeKeys = [];
|
||||||
|
self.ExpandedNodeKeys = [];
|
||||||
|
self.loading = true;
|
||||||
|
this.NodeShow = false;
|
||||||
|
$.post(SITEURL+DZZSCRIPT+'?mod=collection&op=collect&do=searchcollect',{
|
||||||
|
keyword:val
|
||||||
|
},function(json){
|
||||||
|
var data = [];
|
||||||
|
for(var i in json.clid){
|
||||||
|
var id = json.clid[i];
|
||||||
|
if(data.indexOf('p'+id)<0){
|
||||||
|
data.push('p'+id);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
for(var x in json.cids){
|
||||||
|
var id = json.cids[x];
|
||||||
|
if(data.indexOf(parseInt(id))<0){
|
||||||
|
data.push(parseInt(id));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
self.ExpandedNodeKeys = data;
|
||||||
|
self.$nextTick(function(){
|
||||||
|
self.NodeShow = true;
|
||||||
|
});
|
||||||
|
},'json');
|
||||||
|
}else{
|
||||||
|
this.filterTextclear();
|
||||||
|
}
|
||||||
|
},800)
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
|
||||||
|
},
|
||||||
|
methods:{
|
||||||
|
filterTextclear(){
|
||||||
|
var self = this;
|
||||||
|
self.alreadyExpandedNodeKeys = [];
|
||||||
|
self.ExpandedNodeKeys = [];
|
||||||
|
self.loading = true;
|
||||||
|
self.NodeShow = false;
|
||||||
|
self.$nextTick(function(){
|
||||||
|
self.NodeShow = true;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
GetTreeData(node,resolve){
|
||||||
|
var self = this;
|
||||||
|
var param = {};
|
||||||
|
if(node.level == 1){
|
||||||
|
param = {
|
||||||
|
clid:node.data.cid.replace('p','')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(node.level > 1){
|
||||||
|
param = {
|
||||||
|
cid:node.data.cid,
|
||||||
|
clid:node.data.clid
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$.post(SITEURL+DZZSCRIPT+'?mod=collection&op=collect&do=collectlist',param,function(json){
|
||||||
|
var data = [];
|
||||||
|
for(var i in json.success){
|
||||||
|
var item = json.success[i];
|
||||||
|
if(node.level == 0){
|
||||||
|
item['cid'] = 'p'+item.clid;
|
||||||
|
item['catname'] = item.name;
|
||||||
|
item['parent'] = true;
|
||||||
|
self.alreadyExpandedNodeKeys.push(item['cid']);
|
||||||
|
}else{
|
||||||
|
item['cid'] = parseInt(item.cid);
|
||||||
|
item['parent'] = false;
|
||||||
|
self.alreadyExpandedNodeKeys.push(parseInt(item['cid']));
|
||||||
|
}
|
||||||
|
|
||||||
|
data.push(item)
|
||||||
|
}
|
||||||
|
resolve(data);
|
||||||
|
self.$nextTick(function(){
|
||||||
|
self.LeftGetTreeDataFinish();
|
||||||
|
})
|
||||||
|
},'json');
|
||||||
|
},
|
||||||
|
LeftGetTreeDataFinish(){
|
||||||
|
var self = this;
|
||||||
|
var finish = false;
|
||||||
|
if(self.ExpandedNodeKeys.length){
|
||||||
|
for(var i in self.ExpandedNodeKeys){
|
||||||
|
var id = self.ExpandedNodeKeys[i];
|
||||||
|
if(self.alreadyExpandedNodeKeys.indexOf(id)>-1){
|
||||||
|
finish = true;
|
||||||
|
}else{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(finish){
|
||||||
|
if(self.filterText){
|
||||||
|
self.$refs['lefttree'].filter(self.filterText);
|
||||||
|
}
|
||||||
|
self.loading = false;
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
if(self.filterText){
|
||||||
|
self.$refs['lefttree'].filter(self.filterText);
|
||||||
|
}
|
||||||
|
self.loading = false;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
PopoverShow(){
|
||||||
|
var self = this;
|
||||||
|
var collectkey = JSON.parse(localStorage.getItem('collectkey'));
|
||||||
|
if(collectkey){
|
||||||
|
var keys = collectkey.key.split('-');
|
||||||
|
if(keys.length>1){
|
||||||
|
keys.pop();
|
||||||
|
}
|
||||||
|
var newkeys = [];
|
||||||
|
for(var i in keys){
|
||||||
|
if(keys[i].indexOf('p')>-1){
|
||||||
|
newkeys.push(keys[i]);
|
||||||
|
}else{
|
||||||
|
newkeys.push(parseInt(keys[i]));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
this.ExpandedNodeKeys = newkeys;
|
||||||
|
}
|
||||||
|
|
||||||
|
this.NodeShow = true;
|
||||||
|
},
|
||||||
|
PopoverHide(){
|
||||||
|
this.NodeShow = false;
|
||||||
|
},
|
||||||
|
handleSubmit(cid,clid,parent){
|
||||||
|
var param = {}
|
||||||
|
var self = this;
|
||||||
|
if(parent){
|
||||||
|
param = {
|
||||||
|
rids:this.rids,
|
||||||
|
clid:cid.replace('p','')
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
param = {
|
||||||
|
rids:this.rids,
|
||||||
|
cid:cid,
|
||||||
|
clid:clid
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
$.post(SITEURL+DZZSCRIPT+'?mod=collection&op=collect&do=addfilecollect',param,function(json){
|
||||||
|
if(json.success){
|
||||||
|
var node = self.$refs['lefttree'].getNode(cid);
|
||||||
|
if(parent){
|
||||||
|
var collect = {
|
||||||
|
name:node.data.catname,
|
||||||
|
key:cid
|
||||||
|
};
|
||||||
|
}else{
|
||||||
|
var collectkey = clid+'-'+node.data.pathkey;
|
||||||
|
var collect = {
|
||||||
|
name:node.data.catname,
|
||||||
|
key:'p'+clid+'-'+node.data.pathkey
|
||||||
|
};
|
||||||
|
}
|
||||||
|
localStorage.setItem('collectkey', JSON.stringify(collect));
|
||||||
|
self.$message({
|
||||||
|
type:'success',
|
||||||
|
message:'收藏成功'
|
||||||
|
});
|
||||||
|
self.$emit('addcollectsuccess');
|
||||||
|
self.$refs['refcollectiondialog'].doClose();
|
||||||
|
}else{
|
||||||
|
self.$message.error(json.error);
|
||||||
|
}
|
||||||
|
},'json');
|
||||||
|
},
|
||||||
|
handleOpenAdd(){
|
||||||
|
var self = this;
|
||||||
|
self.$refs['refcollectiondialog'].doClose();
|
||||||
|
self.$emit('openaddcollect',this.rids);
|
||||||
|
},
|
||||||
|
TreeDataFilterNode(value, data) {
|
||||||
|
if (!value) return true;
|
||||||
|
return data.catname.indexOf(value) !== -1;
|
||||||
|
},
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
var self = this;
|
||||||
|
},
|
||||||
|
beforeRouteLeave() {
|
||||||
|
},
|
||||||
|
});
|
||||||
256
dzz/pichome/js/pc/components/collectdialog.js
Normal file
256
dzz/pichome/js/pc/components/collectdialog.js
Normal file
@@ -0,0 +1,256 @@
|
|||||||
|
|
||||||
|
Vue.component('star-tree-dialog', {
|
||||||
|
props:['rids','dialogvisible'],
|
||||||
|
template: `<el-dialog
|
||||||
|
title="选择收藏夹"
|
||||||
|
custom-class="collection-dialog"
|
||||||
|
@open="PopoverShow"
|
||||||
|
@close="PopoverHide"
|
||||||
|
:visible.sync="dialogvisible">
|
||||||
|
<div class="collection-dialog-content">
|
||||||
|
<div class="header">
|
||||||
|
<el-input
|
||||||
|
clearable
|
||||||
|
v-model.trim="filterText"
|
||||||
|
placeholder="请输入关键字"></el-input>
|
||||||
|
</div>
|
||||||
|
<div class="content">
|
||||||
|
<el-scrollbar style="height:100%;">
|
||||||
|
<div style="padding:0 12px;">
|
||||||
|
<el-tree
|
||||||
|
v-if="NodeShow"
|
||||||
|
ref="lefttree"
|
||||||
|
:load="GetTreeData"
|
||||||
|
node-key="cid"
|
||||||
|
lazy
|
||||||
|
:props="defaultProps"
|
||||||
|
:filter-node-method="TreeDataFilterNode"
|
||||||
|
:default-expanded-keys="ExpandedNodeKeys">
|
||||||
|
<div class="custom-tree-node" :class="{notpadding:!data.parent}" slot-scope="{ node, data }">
|
||||||
|
<div class="img" v-if="data.parent">
|
||||||
|
<img v-if="data.covert" :src="data.covert" />
|
||||||
|
</div>
|
||||||
|
<div class="name" v-cloak>{{ data.catname }}</div>
|
||||||
|
<ul class="avatar">
|
||||||
|
<li v-for="item in data.uids" v-html="item.icon"></li>
|
||||||
|
</ul>
|
||||||
|
<el-button class="btn" @click.stop.prevent="handleSubmit(data.cid,data.clid,data.parent)" type="primary" size="medium">收藏</el-button>
|
||||||
|
</div>
|
||||||
|
</el-tree>
|
||||||
|
</div>
|
||||||
|
</el-scrollbar>
|
||||||
|
</div>
|
||||||
|
<div class="footer" @click="handleOpenAdd">
|
||||||
|
<i class="el-icon-circle-plus"></i>创建收藏夹
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</el-dialog>`,
|
||||||
|
data: function() {
|
||||||
|
return {
|
||||||
|
filterText:'',
|
||||||
|
defaultProps: {
|
||||||
|
children: 'children',
|
||||||
|
label: 'catname'
|
||||||
|
},
|
||||||
|
loading:true,
|
||||||
|
NodeShow:false,
|
||||||
|
ExpandedNodeKeys:[],
|
||||||
|
alreadyExpandedNodeKeys:[]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
watch:{
|
||||||
|
filterText:debounce(function(val){
|
||||||
|
var self = this;
|
||||||
|
if(val){
|
||||||
|
self.alreadyExpandedNodeKeys = [];
|
||||||
|
self.ExpandedNodeKeys = [];
|
||||||
|
self.loading = true;
|
||||||
|
this.NodeShow = false;
|
||||||
|
$.post(SITEURL+DZZSCRIPT+'?mod=collection&op=collect&do=searchcollect',{
|
||||||
|
keyword:val
|
||||||
|
},function(json){
|
||||||
|
var data = [];
|
||||||
|
for(var i in json.clid){
|
||||||
|
var id = json.clid[i];
|
||||||
|
if(data.indexOf('p'+id)<0){
|
||||||
|
data.push('p'+id);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
for(var x in json.cids){
|
||||||
|
var id = json.cids[x];
|
||||||
|
if(data.indexOf(parseInt(id))<0){
|
||||||
|
data.push(parseInt(id));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
self.ExpandedNodeKeys = data;
|
||||||
|
self.$nextTick(function(){
|
||||||
|
self.NodeShow = true;
|
||||||
|
});
|
||||||
|
},'json');
|
||||||
|
}else{
|
||||||
|
self.filterTextclear();
|
||||||
|
}
|
||||||
|
},800)
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
// console.log(this.tabindex)
|
||||||
|
},
|
||||||
|
methods:{
|
||||||
|
filterTextclear(){
|
||||||
|
var self = this;
|
||||||
|
self.alreadyExpandedNodeKeys = [];
|
||||||
|
self.ExpandedNodeKeys = [];
|
||||||
|
self.loading = true;
|
||||||
|
self.NodeShow = false;
|
||||||
|
self.$nextTick(function(){
|
||||||
|
self.NodeShow = true;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
GetTreeData(node,resolve){
|
||||||
|
var self = this;
|
||||||
|
var param = {};
|
||||||
|
if(node.level == 1){
|
||||||
|
param = {
|
||||||
|
clid:node.data.cid.replace('p','')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(node.level > 1){
|
||||||
|
param = {
|
||||||
|
cid:node.data.cid,
|
||||||
|
clid:node.data.clid
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$.post(SITEURL+DZZSCRIPT+'?mod=collection&op=collect&do=collectlist',param,function(json){
|
||||||
|
var data = [];
|
||||||
|
for(var i in json.success){
|
||||||
|
var item = json.success[i];
|
||||||
|
if(node.level == 0){
|
||||||
|
item['cid'] = 'p'+item.clid;
|
||||||
|
item['catname'] = item.name;
|
||||||
|
item['parent'] = true;
|
||||||
|
self.alreadyExpandedNodeKeys.push(item['cid']);
|
||||||
|
}else{
|
||||||
|
item['cid'] = parseInt(item.cid);
|
||||||
|
item['parent'] = false;
|
||||||
|
self.alreadyExpandedNodeKeys.push(parseInt(item['cid']));
|
||||||
|
}
|
||||||
|
|
||||||
|
data.push(item)
|
||||||
|
}
|
||||||
|
resolve(data);
|
||||||
|
self.$nextTick(function(){
|
||||||
|
self.GetTreeDataFinish();
|
||||||
|
})
|
||||||
|
},'json');
|
||||||
|
},
|
||||||
|
GetTreeDataFinish(){
|
||||||
|
var self = this;
|
||||||
|
var finish = false;
|
||||||
|
if(self.ExpandedNodeKeys.length){
|
||||||
|
for(var i in self.ExpandedNodeKeys){
|
||||||
|
var id = self.ExpandedNodeKeys[i];
|
||||||
|
if(self.alreadyExpandedNodeKeys.indexOf(id)>-1){
|
||||||
|
finish = true;
|
||||||
|
}else{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(finish){
|
||||||
|
if(self.filterText){
|
||||||
|
self.$refs['lefttree'].filter(self.filterText);
|
||||||
|
}
|
||||||
|
self.loading = false;
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
if(self.filterText){
|
||||||
|
self.$refs['lefttree'].filter(self.filterText);
|
||||||
|
}
|
||||||
|
self.loading = false;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
handleSubmit(cid,clid,parent){
|
||||||
|
var param = {}
|
||||||
|
var self = this;
|
||||||
|
if(parent){
|
||||||
|
param = {
|
||||||
|
rids:this.rids.join(','),
|
||||||
|
clid:cid.replace('p','')
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
param = {
|
||||||
|
rids:this.rids.join(','),
|
||||||
|
cid:cid,
|
||||||
|
clid:clid,
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
$.post(SITEURL+DZZSCRIPT+'?mod=collection&op=collect&do=addfilecollect',param,function(json){
|
||||||
|
if(json.success){
|
||||||
|
var node = self.$refs['lefttree'].getNode(cid);
|
||||||
|
if(parent){
|
||||||
|
var collect = {
|
||||||
|
name:node.data.catname,
|
||||||
|
key:cid
|
||||||
|
};
|
||||||
|
}else{
|
||||||
|
// var collectkey = clid+'-'+node.data.pathkey;
|
||||||
|
var collect = {
|
||||||
|
name:node.data.catname,
|
||||||
|
key:'p'+clid+'-'+node.data.pathkey.replaceAll('_','')
|
||||||
|
};
|
||||||
|
}
|
||||||
|
localStorage.setItem('collectkey', JSON.stringify(collect));
|
||||||
|
self.$message({
|
||||||
|
type:'success',
|
||||||
|
message:'文件收藏成功'
|
||||||
|
});
|
||||||
|
self.$emit('addcollectsuccess');
|
||||||
|
self.PopoverHide();
|
||||||
|
}else{
|
||||||
|
self.$message.error(json.error);
|
||||||
|
}
|
||||||
|
},'json');
|
||||||
|
},
|
||||||
|
PopoverShow(){
|
||||||
|
var self = this;
|
||||||
|
var collectkey = JSON.parse(localStorage.getItem('collectkey'));
|
||||||
|
if(collectkey){
|
||||||
|
var keys = collectkey.key.split('-');
|
||||||
|
if(keys.length>1){
|
||||||
|
keys.pop();
|
||||||
|
}
|
||||||
|
var newkeys = [];
|
||||||
|
for(var i in keys){
|
||||||
|
if(keys[i].indexOf('p')>-1){
|
||||||
|
newkeys.push(keys[i]);
|
||||||
|
}else{
|
||||||
|
newkeys.push(parseInt(keys[i]));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
this.ExpandedNodeKeys = newkeys;
|
||||||
|
}
|
||||||
|
|
||||||
|
this.NodeShow = true;
|
||||||
|
},
|
||||||
|
PopoverHide(){
|
||||||
|
var self = this;
|
||||||
|
self.NodeShow = false;
|
||||||
|
self.filterText = '';
|
||||||
|
self.alreadyExpandedNodeKeys = [];
|
||||||
|
self.$emit('closecollectdialog');
|
||||||
|
},
|
||||||
|
handleOpenAdd(){
|
||||||
|
var self = this;
|
||||||
|
self.$emit('openaddcollect',this.rids);
|
||||||
|
},
|
||||||
|
TreeDataFilterNode(value, data) {
|
||||||
|
if (!value) return true;
|
||||||
|
return data.catname.indexOf(value) !== -1;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
|
||||||
|
},
|
||||||
|
beforeRouteLeave() {
|
||||||
|
},
|
||||||
|
});
|
||||||
File diff suppressed because one or more lines are too long
@@ -11,6 +11,7 @@ if ($operation == 'fetch') {
|
|||||||
if (submitcheck('settingsubmit')) {
|
if (submitcheck('settingsubmit')) {
|
||||||
if (!$appid) exit(json_encode(array('error' => true)));
|
if (!$appid) exit(json_encode(array('error' => true)));
|
||||||
$setarr = [
|
$setarr = [
|
||||||
|
'appname' => isset($_GET['appname']) ? trim($_GET['appname']) : '',
|
||||||
'filter' => isset($_GET['filter']) ? serialize($_GET['filter']) : '',
|
'filter' => isset($_GET['filter']) ? serialize($_GET['filter']) : '',
|
||||||
'share' => isset($_GET['share']) ? intval($_GET['share']) : 0,
|
'share' => isset($_GET['share']) ? intval($_GET['share']) : 0,
|
||||||
'download' => isset($_GET['download']) ? intval($_GET['download']) : 0,
|
'download' => isset($_GET['download']) ? intval($_GET['download']) : 0,
|
||||||
@@ -27,46 +28,71 @@ if ($operation == 'fetch') {
|
|||||||
}
|
}
|
||||||
exit(json_encode(array('success' => true)));
|
exit(json_encode(array('success' => true)));
|
||||||
} else {
|
} else {
|
||||||
|
require_once(DZZ_ROOT . './dzz/class/class_encode.php');
|
||||||
if ($data = DB::fetch_first("select * from %t where appid=%s and isdelete = 0 ", array('pichome_vapp', $appid))) {
|
if ($data = DB::fetch_first("select * from %t where appid=%s and isdelete = 0 ", array('pichome_vapp', $appid))) {
|
||||||
|
$p = new Encode_Core();
|
||||||
|
$charset = $p->get_encoding($data['path']);
|
||||||
|
//echo $charset;die
|
||||||
|
if($data['charset'] != CHARSET){
|
||||||
|
//echo $val['path'];die;
|
||||||
|
$data['convertpath'] = diconv($data['path'], $charset, CHARSET);
|
||||||
|
} else $data['convertpath'] = $data['path'];
|
||||||
$data['path'] = urlencode($data['path']);
|
$data['path'] = urlencode($data['path']);
|
||||||
$data['filter'] = unserialize($data['filter']);
|
$data['filter'] = unserialize($data['filter']);
|
||||||
$getinfonum = 0;
|
/*$data['getinfonum'] = DB::result_first("SELECT count(ra.rid) FROM %t ra left join %t fc on ra.rid = fc.rid left join %t ic on ra.rid= ic.rid
|
||||||
$data['getinfonum'] = DB::result_first("SELECT count(ra.rid) FROM %t ra left join %t fc on ra.rid = fc.rid left join %t ic on ra.rid= ic.rid
|
|
||||||
where ra.appid = %s and ((ra.isget = 0 and ISNULL(fc.rid) and ISNULL(ic.rid)) or (ra.isget=1))",
|
where ra.appid = %s and ((ra.isget = 0 and ISNULL(fc.rid) and ISNULL(ic.rid)) or (ra.isget=1))",
|
||||||
array('pichome_resources_attr','pichome_ffmpeg_record','pichome_imagickrecord',$appid));
|
array('pichome_resources_attr','pichome_ffmpeg_record','pichome_imagickrecord',$appid));*/
|
||||||
$catdata = C::t('pichome_taggroup')->fetch_by_appid($appid);
|
$catdata = C::t('pichome_taggroup')->fetch_by_appid($appid);
|
||||||
if (($data['state'] == 2)) {
|
if (($data['state'] == 2)) {
|
||||||
|
$processname = 'DZZ_PAGEEXPORTFILE_LOCK_' . $appid;
|
||||||
|
$locked = true;
|
||||||
|
if (!dzz_process::islocked($processname, 60 * 5)) {
|
||||||
|
$locked = false;
|
||||||
|
}
|
||||||
|
if (!$locked) {
|
||||||
dfsockopen(getglobal('localurl') . 'index.php?mod=pichome&op=exportfile&appid=' . $appid, 0, '', '', false, '', 1);
|
dfsockopen(getglobal('localurl') . 'index.php?mod=pichome&op=exportfile&appid=' . $appid, 0, '', '', false, '', 1);
|
||||||
|
}
|
||||||
|
|
||||||
} elseif ($data['state'] == 3) {
|
} elseif ($data['state'] == 3) {
|
||||||
|
$processname = 'DZZ_PAGEEXPORTCHECKFILE_LOCK_' . $appid;
|
||||||
|
$locked = true;
|
||||||
|
if (!dzz_process::islocked($processname, 60 * 5)) {
|
||||||
|
$locked = false;
|
||||||
|
}
|
||||||
|
if (!$locked) {
|
||||||
dfsockopen(getglobal('localurl') . 'index.php?mod=pichome&op=exportfilecheck&appid=' . $appid, 0, '', '', false, '', 1);
|
dfsockopen(getglobal('localurl') . 'index.php?mod=pichome&op=exportfilecheck&appid=' . $appid, 0, '', '', false, '', 1);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
exit(json_encode(array('success' => true, 'data' => $data, 'catdata' => $catdata)));
|
exit(json_encode(array('success' => true, 'data' => $data, 'catdata' => $catdata)));
|
||||||
} else {
|
} else {
|
||||||
exit(json_encode(array('error' => true)));
|
exit(json_encode(array('error' => true)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} elseif ($operation == 'getdata') {
|
}
|
||||||
|
elseif ($operation == 'getdata') {
|
||||||
$data = array();
|
$data = array();
|
||||||
|
require_once(DZZ_ROOT . './dzz/class/class_encode.php');
|
||||||
foreach (DB::fetch_all("select * from %t where isdelete = 0 order by disp", array('pichome_vapp')) as $val) {
|
foreach (DB::fetch_all("select * from %t where isdelete = 0 order by disp", array('pichome_vapp')) as $val) {
|
||||||
$val['connect'] = (is_dir($val['path'])) ? 1:0;
|
$val['connect'] = (is_dir($val['path'])) ? 1:0;
|
||||||
|
$p = new Encode_Core();
|
||||||
|
$charset = $p->get_encoding($val['path']);
|
||||||
|
//echo $charset;die
|
||||||
if($val['charset'] != CHARSET){
|
if($val['charset'] != CHARSET){
|
||||||
$val['path'] = diconv($val['path'], $val['charset'], CHARSET);
|
//echo $val['path'];die;
|
||||||
|
$val['path'] = diconv($val['path'], $charset, CHARSET);
|
||||||
}
|
}
|
||||||
$data[] = $val;
|
$data[] = $val;
|
||||||
}
|
}
|
||||||
exit(json_encode(array('data' => $data)));
|
exit(json_encode(array('data' => $data)));
|
||||||
|
|
||||||
} elseif($operation == 'getinfonum'){//已获取文件信息个数
|
}elseif($operation == 'getinfonum'){//已获取文件信息个数
|
||||||
$returndata = [];
|
$returndata = [];
|
||||||
foreach(DB::fetch_all("select appid from %t where isdelete = 0 and getinfo = 1 and `type` = 1 and getinfonum < filenum", array('pichome_vapp')) as $v){
|
foreach(DB::fetch_all("select appid,getinfonum from %t where isdelete = 0 and getinfo = 1 and `type` = 1 and getinfonum < filenum", array('pichome_vapp')) as $v){
|
||||||
$getinfonum= DB::result_first("SELECT count(ra.rid) FROM %t ra left join %t fc on ra.rid = fc.rid left join %t ic on ra.rid= ic.rid
|
$returndata[$v['appid']] = $v['getinfonum'];
|
||||||
where ra.appid = %s and ((ra.isget = 0 and ISNULL(fc.rid) and ISNULL(ic.rid)) or (ra.isget=1))",
|
|
||||||
array('pichome_resources_attr','pichome_ffmpeg_record','pichome_imagickrecord',$v['appid']));
|
|
||||||
C::t('pichome_vapp')->update($v['appid'],array('getinfonum'=>$getinfonum));
|
|
||||||
$returndata['appid'] = $getinfonum;
|
|
||||||
}
|
}
|
||||||
exit(json_encode(array('data' => $returndata)));
|
exit(json_encode(array('data' => $returndata)));
|
||||||
}elseif ($operation == 'addlibrary') {
|
}
|
||||||
|
elseif ($operation == 'addlibrary') {
|
||||||
//接收路径
|
//接收路径
|
||||||
$path = isset($_GET['path']) ? trim($_GET['path']) : '';
|
$path = isset($_GET['path']) ? trim($_GET['path']) : '';
|
||||||
//接收编码
|
//接收编码
|
||||||
@@ -124,7 +150,6 @@ where ra.appid = %s and ((ra.isget = 0 and ISNULL(fc.rid) and ISNULL(ic.rid)) or
|
|||||||
'allowext'=>getglobal('setting/pichomeimportallowext'),
|
'allowext'=>getglobal('setting/pichomeimportallowext'),
|
||||||
'filter' => 'a:13:{i:0;a:3:{s:3:"key";s:8:"classify";s:4:"text";s:6:"分类";s:7:"checked";s:1:"1";}i:1;a:4:{s:3:"key";s:3:"tag";s:4:"text";s:6:"标签";s:7:"checked";s:1:"1";s:8:"showtype";s:1:"0";}i:2;a:3:{s:3:"key";s:5:"color";s:4:"text";s:6:"颜色";s:7:"checked";s:1:"1";}i:3;a:3:{s:3:"key";s:4:"link";s:4:"text";s:6:"链接";s:7:"checked";s:1:"1";}i:4;a:3:{s:3:"key";s:4:"desc";s:4:"text";s:6:"注释";s:7:"checked";s:1:"1";}i:5;a:3:{s:3:"key";s:8:"duration";s:4:"text";s:6:"时长";s:7:"checked";s:1:"1";}i:6;a:3:{s:3:"key";s:4:"size";s:4:"text";s:6:"尺寸";s:7:"checked";s:1:"1";}i:7;a:3:{s:3:"key";s:3:"ext";s:4:"text";s:6:"类型";s:7:"checked";s:1:"1";}i:8;a:3:{s:3:"key";s:5:"shape";s:4:"text";s:6:"形状";s:7:"checked";s:1:"1";}i:9;a:3:{s:3:"key";s:5:"grade";s:4:"text";s:6:"评分";s:7:"checked";s:1:"1";}i:10;a:3:{s:3:"key";s:5:"btime";s:4:"text";s:12:"添加时间";s:7:"checked";s:1:"1";}i:11;a:3:{s:3:"key";s:8:"dateline";s:4:"text";s:12:"修改日期";s:7:"checked";s:1:"1";}i:12;a:3:{s:3:"key";s:5:"mtime";s:4:"text";s:12:"创建日期";s:7:"checked";s:1:"1";}}'
|
'filter' => 'a:13:{i:0;a:3:{s:3:"key";s:8:"classify";s:4:"text";s:6:"分类";s:7:"checked";s:1:"1";}i:1;a:4:{s:3:"key";s:3:"tag";s:4:"text";s:6:"标签";s:7:"checked";s:1:"1";s:8:"showtype";s:1:"0";}i:2;a:3:{s:3:"key";s:5:"color";s:4:"text";s:6:"颜色";s:7:"checked";s:1:"1";}i:3;a:3:{s:3:"key";s:4:"link";s:4:"text";s:6:"链接";s:7:"checked";s:1:"1";}i:4;a:3:{s:3:"key";s:4:"desc";s:4:"text";s:6:"注释";s:7:"checked";s:1:"1";}i:5;a:3:{s:3:"key";s:8:"duration";s:4:"text";s:6:"时长";s:7:"checked";s:1:"1";}i:6;a:3:{s:3:"key";s:4:"size";s:4:"text";s:6:"尺寸";s:7:"checked";s:1:"1";}i:7;a:3:{s:3:"key";s:3:"ext";s:4:"text";s:6:"类型";s:7:"checked";s:1:"1";}i:8;a:3:{s:3:"key";s:5:"shape";s:4:"text";s:6:"形状";s:7:"checked";s:1:"1";}i:9;a:3:{s:3:"key";s:5:"grade";s:4:"text";s:6:"评分";s:7:"checked";s:1:"1";}i:10;a:3:{s:3:"key";s:5:"btime";s:4:"text";s:12:"添加时间";s:7:"checked";s:1:"1";}i:11;a:3:{s:3:"key";s:8:"dateline";s:4:"text";s:12:"修改日期";s:7:"checked";s:1:"1";}i:12;a:3:{s:3:"key";s:5:"mtime";s:4:"text";s:12:"创建日期";s:7:"checked";s:1:"1";}}'
|
||||||
];
|
];
|
||||||
|
|
||||||
if ($type == 1) $appattr['allowext'] = $Defaultallowext;
|
if ($type == 1) $appattr['allowext'] = $Defaultallowext;
|
||||||
$path = str_replace(array('/', './', '\\'), BS, $path);
|
$path = str_replace(array('/', './', '\\'), BS, $path);
|
||||||
if (strpos($path, DZZ_ROOT) !== 0) $appattr['iswebsitefile'] = 0;
|
if (strpos($path, DZZ_ROOT) !== 0) $appattr['iswebsitefile'] = 0;
|
||||||
@@ -137,15 +162,57 @@ where ra.appid = %s and ((ra.isget = 0 and ISNULL(fc.rid) and ISNULL(ic.rid)) or
|
|||||||
exit(json_encode(array('error' => 'create failer')));
|
exit(json_encode(array('error' => 'create failer')));
|
||||||
}
|
}
|
||||||
|
|
||||||
} elseif ($operation == 'dellibrary') {
|
}
|
||||||
|
elseif($operation == 'changePath'){
|
||||||
$appid = isset($_GET['appid']) ? trim($_GET['appid']) : '';
|
$appid = isset($_GET['appid']) ? trim($_GET['appid']) : '';
|
||||||
|
$path = isset($_GET['path']) ? trim($_GET['path']):'';
|
||||||
|
//接收编码
|
||||||
|
$charset = isset($_GET['charset']) ? trim($_GET['charset']) : 'utf8';
|
||||||
|
//转换路径
|
||||||
|
$path = str_replace('/', BS, $path);
|
||||||
|
//转换编码,防止路径找不到(linux下中文乱码,前端展示为正常编码,依据前端传递编码转换出原路径存储)
|
||||||
|
if (CHARSET != $charset) $path = diconv($path, CHARSET, $charset);
|
||||||
|
//存在相同路径的不允许重复添加
|
||||||
|
if (DB::result_first("select appid from %t where path = %s and isdelete = 0", array('pichome_vapp', $path))) {
|
||||||
|
exit(json_encode(array('tips' => '路径对应库已存在,不允许修改')));
|
||||||
|
}else{
|
||||||
|
$appdata = C::t('pichome_vapp')->fetch($appid);
|
||||||
|
}
|
||||||
|
if(!$appdata) exit(json_encode(array('tips' => '库不存在或已被删除,不允许修改')));
|
||||||
|
$type = $appdata['type'];
|
||||||
|
if ($type == 0) {
|
||||||
|
$metajsonfile = $path . BS . 'metadata.json';
|
||||||
|
if (!is_file($metajsonfile)) {
|
||||||
|
exit(json_encode(array('error' => '系统检测该库不已符合eagle库标准,修改失败')));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if ($type == 2) {
|
||||||
|
$dbfile = $path . BS . '.bf'.BS.'billfish.db';
|
||||||
|
if (!is_file($dbfile)) {
|
||||||
|
exit(json_encode(array('tips' => '系统检测该库已不符合billfish库标准,修改失败')));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
//if(!is_dir($path)) exit(json_encode(array('tips' => '系统检测该库准,修改失败')));
|
||||||
|
if (strpos($path, DZZ_ROOT) !== 0) $iswebsitefile = 0;
|
||||||
|
else $iswebsitefile = 1;
|
||||||
|
if (C::t('pichome_vapp')->update($appid, array('path' => $path,'iswebsitefile'=>$iswebsitefile))) {
|
||||||
|
//dfsockopen(getglobal('localurl') . 'index.php?mod=pichome&op=initexport&appid='.$appid, 0, '', '', false, '', 0.1);
|
||||||
|
exit(json_encode(array('success' => true)));
|
||||||
|
} else {
|
||||||
|
exit(json_encode(array('error' => true)));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
elseif ($operation == 'dellibrary') {
|
||||||
|
$appid = isset($_GET['appid']) ? trim($_GET['appid']) : '';
|
||||||
|
//if (C::t('pichome_vapp')->update($appid, array('isdelete' => 1,'deluid'=>getglobal('uid'),'delusername'=>getglobal('username')))) {
|
||||||
if (C::t('pichome_vapp')->update($appid, array('isdelete' => 1))) {
|
if (C::t('pichome_vapp')->update($appid, array('isdelete' => 1))) {
|
||||||
dfsockopen(getglobal('localurl') . 'index.php?mod=pichome&op=delete', 0, '', '', false, '', 0.1);
|
dfsockopen(getglobal('localurl') . 'index.php?mod=pichome&op=delete', 0, '', '', false, '', 0.1);
|
||||||
exit(json_encode(array('success' => true)));
|
exit(json_encode(array('success' => true)));
|
||||||
} else {
|
} else {
|
||||||
exit(json_encode(array('error' => true)));
|
exit(json_encode(array('error' => true)));
|
||||||
}
|
}
|
||||||
} elseif ($operation == 'getpath') {
|
}
|
||||||
|
elseif ($operation == 'getpath') {
|
||||||
require_once(DZZ_ROOT . './dzz/class/class_encode.php');
|
require_once(DZZ_ROOT . './dzz/class/class_encode.php');
|
||||||
$path = isset($_GET['path']) ? trim($_GET['path']) : '';
|
$path = isset($_GET['path']) ? trim($_GET['path']) : '';
|
||||||
$gettype = isset($_GET['gettype']) ? intval($_GET['gettype']) : 0;
|
$gettype = isset($_GET['gettype']) ? intval($_GET['gettype']) : 0;
|
||||||
@@ -176,10 +243,11 @@ where ra.appid = %s and ((ra.isget = 0 and ISNULL(fc.rid) and ISNULL(ic.rid)) or
|
|||||||
if ($dh = @opendir($path)) {
|
if ($dh = @opendir($path)) {
|
||||||
while (($file = readdir($dh)) !== false) {
|
while (($file = readdir($dh)) !== false) {
|
||||||
if ($file != '.' && $file != '..' && is_dir($path . BS . $file) && !preg_match('/^(' . $notallowdir . ')$/i', $file)) {
|
if ($file != '.' && $file != '..' && is_dir($path . BS . $file) && !preg_match('/^(' . $notallowdir . ')$/i', $file)) {
|
||||||
$returnfile = $file;
|
|
||||||
|
$returnfile = trim($file);
|
||||||
$p = new Encode_Core();
|
$p = new Encode_Core();
|
||||||
$charset = $p->get_encoding($file);
|
$charset = $p->get_encoding($file);
|
||||||
if (CHARSET != $charset) $returnfile = diconv($returnfile, $charset, CHARSET);
|
$returnfile = diconv($returnfile, $charset, CHARSET);
|
||||||
$datas[] = ['path' => $returnfile, 'charset' => $charset];
|
$datas[] = ['path' => $returnfile, 'charset' => $charset];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -194,7 +262,7 @@ where ra.appid = %s and ((ra.isget = 0 and ISNULL(fc.rid) and ISNULL(ic.rid)) or
|
|||||||
$returnfile = $path . $file;
|
$returnfile = $path . $file;
|
||||||
$p = new Encode_Core();
|
$p = new Encode_Core();
|
||||||
$charset = $p->get_encoding($file);
|
$charset = $p->get_encoding($file);
|
||||||
if (CHARSET != $charset) $returnfile = diconv($returnfile, $charset, CHARSET);
|
$returnfile = diconv($returnfile, $charset, CHARSET);
|
||||||
$datas[] = ['path' => $returnfile, 'charset' => $charset];
|
$datas[] = ['path' => $returnfile, 'charset' => $charset];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -209,7 +277,8 @@ where ra.appid = %s and ((ra.isget = 0 and ISNULL(fc.rid) and ISNULL(ic.rid)) or
|
|||||||
|
|
||||||
}
|
}
|
||||||
exit(json_encode(array('data' => $datas)));
|
exit(json_encode(array('data' => $datas)));
|
||||||
} elseif ($operation == 'sort') {
|
}
|
||||||
|
elseif ($operation == 'sort') {
|
||||||
$appids = isset($_GET['appids']) ? trim($_GET['appids']) : '';
|
$appids = isset($_GET['appids']) ? trim($_GET['appids']) : '';
|
||||||
if (submitcheck('settingsubmit')) {
|
if (submitcheck('settingsubmit')) {
|
||||||
if (!$appids) exit(json_encode(array('error' => true)));
|
if (!$appids) exit(json_encode(array('error' => true)));
|
||||||
@@ -221,7 +290,7 @@ where ra.appid = %s and ((ra.isget = 0 and ISNULL(fc.rid) and ISNULL(ic.rid)) or
|
|||||||
}
|
}
|
||||||
exit(json_encode(array('success' => true)));
|
exit(json_encode(array('success' => true)));
|
||||||
}
|
}
|
||||||
} else {
|
}else {
|
||||||
$theme = GetThemeColor();
|
$theme = GetThemeColor();
|
||||||
include template('pc/page/library');
|
include template('pc/page/library');
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
$sid = isset($_GET['sid']) ? dzzdecode($_GET['sid'],'',0):'';
|
$sid = isset($_GET['sid']) ? dzzdecode($_GET['sid'],'',0):'';
|
||||||
$sharedata = C::t('pichome_share')->fetch_by_id($sid);
|
$sharedata = C::t('pichome_share')->fetch_by_id($sid);
|
||||||
$resourcesdata = $sharedata['resourcesdata'];
|
$resourcesdata = $sharedata['resourcesdata'];
|
||||||
$resourcesdata['share'] = 0;
|
|
||||||
$colors = array();
|
$colors = array();
|
||||||
foreach($resourcesdata['colors'] as $cval){
|
foreach($resourcesdata['colors'] as $cval){
|
||||||
$colors[] = $cval;
|
$colors[] = $cval;
|
||||||
@@ -26,11 +26,6 @@ foreach($resourcesdata['foldernames'] as $fval){
|
|||||||
$foldernames[] = $fval;
|
$foldernames[] = $fval;
|
||||||
}
|
}
|
||||||
$resourcesdata['foldernames'] = json_encode($foldernames);
|
$resourcesdata['foldernames'] = json_encode($foldernames);
|
||||||
$theme = GetThemeColor();
|
|
||||||
$ismobile = helper_browser::ismobile();
|
|
||||||
|
|
||||||
if (($ismobile)) {
|
$theme = GetThemeColor();
|
||||||
include template('mobile/page/share');
|
include template('pc/page/share');
|
||||||
} else {
|
|
||||||
include template('pc/page/share');
|
|
||||||
}
|
|
||||||
@@ -2,6 +2,7 @@
|
|||||||
var CommonJs = {
|
var CommonJs = {
|
||||||
CommonLibrary(){
|
CommonLibrary(){
|
||||||
if(this.ParamLibrary.data.length==0){
|
if(this.ParamLibrary.data.length==0){
|
||||||
|
this.ParamImages.loading = false;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
this.ParamLibrary.fdata = [{
|
this.ParamLibrary.fdata = [{
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
<div class="pic-container-scroll">
|
<div class="pic-container-scroll">
|
||||||
<div class="img-container">
|
<div class="img-container">
|
||||||
<div id="imgContainer" :class="ParamSort.layout.value=='imageList'?'imagelist':''">
|
<div id="imgContainer" :class="ParamSort.layout.value=='imageList'?'imagelist':''">
|
||||||
|
<van-checkbox-group v-model="ParamImages.operation.rids">
|
||||||
<div
|
<div
|
||||||
class="imgitem"
|
class="imgitem"
|
||||||
v-for="item in ParamImages.Newdatas"
|
v-for="item in ParamImages.Newdatas"
|
||||||
@@ -8,6 +9,7 @@
|
|||||||
:key="item.rid"
|
:key="item.rid"
|
||||||
:rid="item.rid"
|
:rid="item.rid"
|
||||||
@click="ImagesDetailClick(item.rid,item.index)">
|
@click="ImagesDetailClick(item.rid,item.index)">
|
||||||
|
<van-checkbox v-if="ParamImages.checked" class="imgchecked" icon-size="20px" :name="item.rid" disabled></van-checkbox>
|
||||||
<div class="imgbox">
|
<div class="imgbox">
|
||||||
<div
|
<div
|
||||||
class="imgbox-border radius"
|
class="imgbox-border radius"
|
||||||
@@ -21,16 +23,6 @@
|
|||||||
@load="ImagesImgload(item.rid)"
|
@load="ImagesImgload(item.rid)"
|
||||||
:src="item.icondata"
|
:src="item.icondata"
|
||||||
alt="" />
|
alt="" />
|
||||||
<!-- <img
|
|
||||||
class="img el-image__inner opacity"
|
|
||||||
:ref="'ref_'+item.rid"
|
|
||||||
@load="ImagesImgload(item.rid)"
|
|
||||||
:src="item.icondata"
|
|
||||||
@touchevent="ImagesTouchEvent"
|
|
||||||
@touchstart="ImagesTouchStart"
|
|
||||||
@touchmove="ImagesTouchMove"
|
|
||||||
@touchend="ImagesTouchEnd"
|
|
||||||
alt="" /> -->
|
|
||||||
<div class="circular-box">
|
<div class="circular-box">
|
||||||
<div class="circular-item-box">
|
<div class="circular-item-box">
|
||||||
<div class="circular-item first"><i class="ri-file-search-line icon"></i></div>
|
<div class="circular-item first"><i class="ri-file-search-line icon"></i></div>
|
||||||
@@ -45,9 +37,13 @@
|
|||||||
<div v-if="ParamSort.showinformation.value.indexOf('tagging')>-1&&parseInt(item.annonationnum)>0" class="annotation">{{item.annonationnum}}</div>
|
<div v-if="ParamSort.showinformation.value.indexOf('tagging')>-1&&parseInt(item.annonationnum)>0" class="annotation">{{item.annonationnum}}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="bottom-img-message">
|
<div class="bottom-img-message">
|
||||||
<div class="name" v-if="ParamSort.showinformation.value.indexOf('name')>-1 || ParamSort.showinformation.value.indexOf('extension')>-1">
|
<div class="name">
|
||||||
<span v-if="ParamSort.showinformation.value.indexOf('name')>-1" v-cloak>{{item.name}}</span>
|
<div class="text" v-if="ParamSort.showinformation.value.indexOf('name')>-1||ParamSort.showinformation.value.indexOf('extension')>-1">
|
||||||
<span v-if="ParamSort.showinformation.value.indexOf('extension')>-1" class="suffix" v-cloak>.{{item.ext}}</span>
|
<template v-if="ParamSort.showinformation.value.indexOf('name')>-1" v-cloak>{{item.name}}</template><template v-if="ParamSort.showinformation.value.indexOf('extension')>-1" v-cloak>.{{item.ext}}</template>
|
||||||
|
</div>
|
||||||
|
<div v-if="!ParamImages.checked" class="circulars" @click.stop="ImagesMoreClick(item.rid,item.dpath)">
|
||||||
|
<i class="ri-more-fill"></i>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<template v-if="ParamSort.showinformation.value.indexOf('other')>-1">
|
<template v-if="ParamSort.showinformation.value.indexOf('other')>-1">
|
||||||
<div class="other" v-if="ParamSort.otherinformation.value=='size'">
|
<div class="other" v-if="ParamSort.otherinformation.value=='size'">
|
||||||
@@ -76,6 +72,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
</van-checkbox-group>
|
||||||
<template v-if="ParamImages.data.length&&ParamBasic.page>=ParamBasic.totalpage&&!ParamImages.loading&&!ParamImages.valloading">
|
<template v-if="ParamImages.data.length&&ParamBasic.page>=ParamBasic.totalpage&&!ParamImages.loading&&!ParamImages.valloading">
|
||||||
<div style="position: absolute;bottom: 0;left: 0;width: 100%;line-height: 40px;text-align: center;color: var(--content-text);font-size: 14px;">没有更多了</div>
|
<div style="position: absolute;bottom: 0;left: 0;width: 100%;line-height: 40px;text-align: center;color: var(--content-text);font-size: 14px;">没有更多了</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -99,36 +96,18 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
<van-overlay :show="ParamImages.loading" :z-index="5000" />
|
<van-overlay :show="ParamImages.loading" :z-index="5000" />
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var ImagesData = {
|
var ImagesData = $.extend({},{
|
||||||
ParamImages:{
|
ParamImages:{
|
||||||
resize:0,
|
resize:0,
|
||||||
data:[],
|
data:[],
|
||||||
Newdatas:{},
|
Newdatas:{},
|
||||||
type:'refresh',
|
type:'refresh',
|
||||||
|
checked:false,
|
||||||
operation:{
|
operation:{
|
||||||
time:'',
|
type:'',
|
||||||
istouch:false,
|
rids:[]
|
||||||
target:'',
|
|
||||||
click:true,
|
|
||||||
details:{
|
|
||||||
touchMinw:0,
|
|
||||||
touchMaxw:0,
|
|
||||||
touchMinh:0,
|
|
||||||
touchMaxh:0,
|
|
||||||
},
|
|
||||||
share:{
|
|
||||||
touchMinw:0,
|
|
||||||
touchMaxw:0,
|
|
||||||
touchMinh:0,
|
|
||||||
touchMaxh:0,
|
|
||||||
},
|
|
||||||
down:{
|
|
||||||
touchMinw:0,
|
|
||||||
touchMaxw:0,
|
|
||||||
touchMinh:0,
|
|
||||||
touchMaxh:0,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
imageList:{
|
imageList:{
|
||||||
maxNewtop:0,
|
maxNewtop:0,
|
||||||
@@ -170,7 +149,7 @@
|
|||||||
loading:true,
|
loading:true,
|
||||||
valloading:false
|
valloading:false
|
||||||
}
|
}
|
||||||
};
|
});
|
||||||
var ImagesWatchJs = {
|
var ImagesWatchJs = {
|
||||||
'ParamImages.resize':debounce(function(val){
|
'ParamImages.resize':debounce(function(val){
|
||||||
var self = this;
|
var self = this;
|
||||||
@@ -189,6 +168,31 @@
|
|||||||
deep:true,
|
deep:true,
|
||||||
// immediate:true
|
// immediate:true
|
||||||
},
|
},
|
||||||
|
'ParamImages.checked':{
|
||||||
|
handler(val){
|
||||||
|
if(val){
|
||||||
|
this.ParamFooter.data.clear.show = false;
|
||||||
|
this.ParamFooter.data.search.show = false;
|
||||||
|
this.ParamFooter.data.screen.show = false;
|
||||||
|
this.ParamFooter.data.sort.show = false;
|
||||||
|
this.ParamFooter.data.user.show = false;
|
||||||
|
this.ParamFooter.data.collectcheck.show = true;
|
||||||
|
this.ParamFooter.data.outcheck.show = true;
|
||||||
|
}else{
|
||||||
|
this.CommonSetFooterBadge();
|
||||||
|
this.ParamFooter.data.search.show = true;
|
||||||
|
this.ParamFooter.data.screen.show = true;
|
||||||
|
this.ParamFooter.data.sort.show = true;
|
||||||
|
this.ParamFooter.data.user.show = true;
|
||||||
|
this.ParamFooter.data.collectcheck.show = false;
|
||||||
|
this.ParamFooter.data.outcheck.show = false;
|
||||||
|
}
|
||||||
|
this.ParamImages.type = 'refresh';
|
||||||
|
this.ImagesLayoutInit();
|
||||||
|
},
|
||||||
|
deep:true,
|
||||||
|
// immediate:true
|
||||||
|
},
|
||||||
'ParamImages.loading':{
|
'ParamImages.loading':{
|
||||||
handler(val){
|
handler(val){
|
||||||
var self = this;
|
var self = this;
|
||||||
@@ -208,100 +212,22 @@
|
|||||||
immediate:true
|
immediate:true
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
var ImagesJs = {
|
var ImagesJs = $.extend({},{
|
||||||
ImagesTouchEvent(){
|
ImagesMoreClick(rid,dpath){
|
||||||
},
|
this.ParamImages.operation.rids = [rid];
|
||||||
ImagesTouchStart(e){
|
this.ImagesMore.dpath = dpath;
|
||||||
// var self = this;
|
this.ImagesMore.visible = true;
|
||||||
// self.ParamImages.operation.click = false;
|
|
||||||
// self.ParamImages.operation.time = setTimeout(function(){
|
|
||||||
// self.asdfasdfdsf(e);
|
|
||||||
// },600);
|
|
||||||
},
|
|
||||||
ImagesTouchStartLongpress(e){
|
|
||||||
var self = this;
|
|
||||||
var img = $(e.target);
|
|
||||||
self.ParamImages.operation.target = img.closest('.div-black');
|
|
||||||
var circular = img.siblings('.circular-box');
|
|
||||||
var style = {
|
|
||||||
width:img.width()+'px',
|
|
||||||
height:img.height()+'px',
|
|
||||||
top:img.offset().top+'px',
|
|
||||||
left:img.offset().left+'px',
|
|
||||||
}
|
|
||||||
var box = $(document).width();
|
|
||||||
|
|
||||||
var touch = e.touches[0];
|
|
||||||
var pageR = touch.pageX+22.5+62;
|
|
||||||
var pageT = 22.5+70;
|
|
||||||
var pageL = 62+22.5;
|
|
||||||
var pageB = touch.pageX+22.5+62;
|
|
||||||
circular.addClass('top');
|
|
||||||
if(pageR>box){
|
|
||||||
circular.addClass('right')
|
|
||||||
}
|
|
||||||
if(pageL>touch.pageX){
|
|
||||||
circular.addClass('left')
|
|
||||||
}
|
|
||||||
self.ParamImages.operation.istouch = true;
|
|
||||||
circular.css({
|
|
||||||
top:touch.pageY-((circular.width()+6)/2),
|
|
||||||
left:touch.pageX-((circular.height()+6)/2),
|
|
||||||
});
|
|
||||||
img.css(style);
|
|
||||||
img.closest('.div-black').addClass('fixed');
|
|
||||||
|
|
||||||
setTimeout(function(){
|
|
||||||
var first = circular.find('.circular-item.first');
|
|
||||||
self.ParamImages.operation.details = {
|
|
||||||
touchMinw:first.offset().left,
|
|
||||||
touchMaxw:first.offset().left+45,
|
|
||||||
touchMinh:first.offset().top,
|
|
||||||
touchMaxh:first.offset().top+45,
|
|
||||||
};
|
|
||||||
var two = circular.find('.circular-item.two');
|
|
||||||
self.ParamImages.operation.share = {
|
|
||||||
touchMinw:two.offset().left,
|
|
||||||
touchMaxw:two.offset().left+45,
|
|
||||||
touchMinh:two.offset().top,
|
|
||||||
touchMaxh:two.offset().top+45,
|
|
||||||
};
|
|
||||||
var three = circular.find('.circular-item.three');
|
|
||||||
self.ParamImages.operation.share = {
|
|
||||||
touchMinw:three.offset().left,
|
|
||||||
touchMaxw:three.offset().left+45,
|
|
||||||
touchMinh:three.offset().top,
|
|
||||||
touchMaxh:three.offset().top+45,
|
|
||||||
};
|
|
||||||
},500)
|
|
||||||
|
|
||||||
},
|
|
||||||
ImagesTouchMove(e){
|
|
||||||
var self = this;
|
|
||||||
var touch = e.touches[0];
|
|
||||||
var x = touch.pageX;
|
|
||||||
var y = touch.pageY;
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
},
|
|
||||||
ImagesTouchEnd(e){
|
|
||||||
var self = this;
|
|
||||||
// e.preventDefault();
|
|
||||||
clearTimeout(self.ParamImages.operation.time);
|
|
||||||
self.ParamImages.operation.click = true;
|
|
||||||
if(self.ParamImages.operation.istouch){
|
|
||||||
self.ParamImages.operation.target.removeClass('fixed');
|
|
||||||
self.ParamImages.operation.target.find('.circular-box').removeClass('top left right');
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
ImagesDetailClick(rid,index){
|
ImagesDetailClick(rid,index){
|
||||||
var self = this;
|
var self = this;
|
||||||
// this.ParamDetail.ridIndex = index;
|
if(self.ParamImages.checked){
|
||||||
// this.ParamDetail.rid = rid;
|
var index = self.ParamImages.operation.rids.indexOf(rid);
|
||||||
// this.ParamDetail.PopupVisible = true;
|
if(index > -1){
|
||||||
|
self.ParamImages.operation.rids.splice(index,1);
|
||||||
|
}else{
|
||||||
|
self.ParamImages.operation.rids.push(rid);
|
||||||
|
}
|
||||||
|
}else{
|
||||||
var arr = [];
|
var arr = [];
|
||||||
for(var i in self.ParamImages.data){
|
for(var i in self.ParamImages.data){
|
||||||
arr.push(self.ParamImages.data[i].rid);
|
arr.push(self.ParamImages.data[i].rid);
|
||||||
@@ -309,6 +235,8 @@
|
|||||||
arr = arr.join(',');
|
arr = arr.join(',');
|
||||||
window.localStorage.setItem('imgs',arr);
|
window.localStorage.setItem('imgs',arr);
|
||||||
window.location.href = SITEURL+MOD_URL+'&op=details#rid='+rid;
|
window.location.href = SITEURL+MOD_URL+'&op=details#rid='+rid;
|
||||||
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
ImagesMounted(){
|
ImagesMounted(){
|
||||||
var self = this;
|
var self = this;
|
||||||
@@ -317,7 +245,13 @@
|
|||||||
$('.pic-container-scroll').scroll(function(e){
|
$('.pic-container-scroll').scroll(function(e){
|
||||||
var afterScrollTop = $(this).scrollTop(),
|
var afterScrollTop = $(this).scrollTop(),
|
||||||
updown = afterScrollTop - beforeScrollTop;
|
updown = afterScrollTop - beforeScrollTop;
|
||||||
if( updown === 0 ) return false;
|
if(afterScrollTop == 0){
|
||||||
|
self.ParamFooter.IsShow = 'up';
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if( updown === 0 ) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
beforeScrollTop = afterScrollTop;
|
beforeScrollTop = afterScrollTop;
|
||||||
self.ParamFooter.IsShow = updown > 0 ? "down" : "up"; //判断往上还是往下
|
self.ParamFooter.IsShow = updown > 0 ? "down" : "up"; //判断往上还是往下
|
||||||
self.ImagesLayoutScrollShow();
|
self.ImagesLayoutScrollShow();
|
||||||
@@ -339,35 +273,6 @@
|
|||||||
var item = $(self.$refs['ref_'+rid]);
|
var item = $(self.$refs['ref_'+rid]);
|
||||||
item.removeClass('opacity');
|
item.removeClass('opacity');
|
||||||
item.parents('.imgbox-border').css('background','').removeClass('radius');
|
item.parents('.imgbox-border').css('background','').removeClass('radius');
|
||||||
self.ParamImages.operation.click = 0;
|
|
||||||
// item[0].addEventListener("touchstart",function(e){
|
|
||||||
// var touch = e.touches[0];
|
|
||||||
// self.ParamImages.operation.click = touch.clientY;
|
|
||||||
// self.ParamImages.operation.time = setTimeout(function(){
|
|
||||||
// self.ParamImages.operation.click = true;
|
|
||||||
// self.ImagesTouchStartLongpress(e);
|
|
||||||
// },600);
|
|
||||||
|
|
||||||
|
|
||||||
// },false);
|
|
||||||
|
|
||||||
// item[0].addEventListener("touchmove",function(e){
|
|
||||||
// var touch = e.touches[0];
|
|
||||||
// console.log(Math.abs(touch.clientY - self.ParamImages.operation.click))
|
|
||||||
// if(Math.abs(touch.clientY - self.ParamImages.operation.click) < 10){
|
|
||||||
// e.preventDefault();
|
|
||||||
// }
|
|
||||||
// clearTimeout(self.ParamImages.operation.time);
|
|
||||||
|
|
||||||
// },false);
|
|
||||||
// item[0].addEventListener("touchend",function(e){
|
|
||||||
// clearTimeout(self.ParamImages.operation.time);
|
|
||||||
// // if(self.ParamImages.operation.istouch){
|
|
||||||
// self.ParamImages.operation.target.removeClass('fixed');
|
|
||||||
// self.ParamImages.operation.target.find('.circular-box').removeClass('top left right');
|
|
||||||
// // }
|
|
||||||
|
|
||||||
// },false)
|
|
||||||
},
|
},
|
||||||
ImagesLayoutInit(){
|
ImagesLayoutInit(){
|
||||||
var self = this;
|
var self = this;
|
||||||
@@ -396,9 +301,12 @@
|
|||||||
$('#imgContainer').height(0);
|
$('#imgContainer').height(0);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
var OtherHeight = 0
|
var OtherHeight = 0;
|
||||||
|
if(!self.ParamImages.checked){
|
||||||
|
OtherHeight = 30;
|
||||||
|
}
|
||||||
if(self.ParamSort.showinformation.value.indexOf('name')>-1 || self.ParamSort.showinformation.value.indexOf('extension')>-1){
|
if(self.ParamSort.showinformation.value.indexOf('name')>-1 || self.ParamSort.showinformation.value.indexOf('extension')>-1){
|
||||||
OtherHeight += 45;
|
OtherHeight = 45;
|
||||||
}
|
}
|
||||||
if(self.ParamSort.showinformation.value.indexOf('other')>-1){
|
if(self.ParamSort.showinformation.value.indexOf('other')>-1){
|
||||||
OtherHeight += 20;
|
OtherHeight += 20;
|
||||||
@@ -585,9 +493,12 @@
|
|||||||
self.ParamImages.imageList.newWidth = (boxWidth-(columns*self.ParamImages.imageList.Margin-self.ParamImages.imageList.Margin)) / columns;
|
self.ParamImages.imageList.newWidth = (boxWidth-(columns*self.ParamImages.imageList.Margin-self.ParamImages.imageList.Margin)) / columns;
|
||||||
self.ParamImages.imageList.newHeight = 2 / 3 * self.ParamImages.imageList.newWidth;
|
self.ParamImages.imageList.newHeight = 2 / 3 * self.ParamImages.imageList.newWidth;
|
||||||
|
|
||||||
var OtherHeight = 0
|
var OtherHeight = 0;
|
||||||
|
if(!self.ParamImages.checked){
|
||||||
|
OtherHeight = 30;
|
||||||
|
}
|
||||||
if(self.ParamSort.showinformation.value.indexOf('name')>-1 || self.ParamSort.showinformation.value.indexOf('extension')>-1){
|
if(self.ParamSort.showinformation.value.indexOf('name')>-1 || self.ParamSort.showinformation.value.indexOf('extension')>-1){
|
||||||
OtherHeight += 45;
|
OtherHeight = 45;
|
||||||
}
|
}
|
||||||
if(self.ParamSort.showinformation.value.indexOf('other')>-1){
|
if(self.ParamSort.showinformation.value.indexOf('other')>-1){
|
||||||
OtherHeight += 20;
|
OtherHeight += 20;
|
||||||
@@ -654,9 +565,12 @@
|
|||||||
self.ParamImages.imgageWaterfall.imgWidth = 252;
|
self.ParamImages.imgageWaterfall.imgWidth = 252;
|
||||||
self.ParamImages.imgageWaterfall.columns = parseInt(boxWidth/self.ParamImages.imgageWaterfall.imgWidth);
|
self.ParamImages.imgageWaterfall.columns = parseInt(boxWidth/self.ParamImages.imgageWaterfall.imgWidth);
|
||||||
}
|
}
|
||||||
var OtherHeight = 0
|
var OtherHeight = 0;
|
||||||
|
if(!self.ParamImages.checked){
|
||||||
|
OtherHeight = 30;
|
||||||
|
}
|
||||||
if(self.ParamSort.showinformation.value.indexOf('name')>-1 || self.ParamSort.showinformation.value.indexOf('extension')>-1){
|
if(self.ParamSort.showinformation.value.indexOf('name')>-1 || self.ParamSort.showinformation.value.indexOf('extension')>-1){
|
||||||
OtherHeight += 45;
|
OtherHeight = 45;
|
||||||
}
|
}
|
||||||
if(self.ParamSort.showinformation.value.indexOf('other')>-1){
|
if(self.ParamSort.showinformation.value.indexOf('other')>-1){
|
||||||
OtherHeight += 20;
|
OtherHeight += 20;
|
||||||
@@ -751,5 +665,5 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
};
|
});
|
||||||
</script>
|
</script>
|
||||||
@@ -8,10 +8,10 @@
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template #right>
|
<template #right>
|
||||||
<van-dropdown-menu>
|
<van-dropdown-menu v-if="ParamLibrary.data.length">
|
||||||
<van-dropdown-item @change="ChangeLibrary" v-model="ParamLibrary.activeId" :options="ParamLibrary.fdata" />
|
<van-dropdown-item @change="ChangeLibrary" v-model="ParamLibrary.activeId" :options="ParamLibrary.fdata" />
|
||||||
</van-dropdown-menu>
|
</van-dropdown-menu>
|
||||||
|
<!-- <van-icon style="display: block;margin-left: 18px;" name="setting-o" @click="ParamImages.checked=true" size="18" /> -->
|
||||||
</template>
|
</template>
|
||||||
</van-nav-bar>
|
</van-nav-bar>
|
||||||
<div class="pic-container">
|
<div class="pic-container">
|
||||||
@@ -51,11 +51,13 @@
|
|||||||
<!--{template mobile/components/index/JsSort}-->
|
<!--{template mobile/components/index/JsSort}-->
|
||||||
<!--{template mobile/components/index/JsScreen}-->
|
<!--{template mobile/components/index/JsScreen}-->
|
||||||
<!--{template mobile/components/index/JsMy}-->
|
<!--{template mobile/components/index/JsMy}-->
|
||||||
|
<!--{template mobile/components/index/image/more}-->
|
||||||
|
<!--{template mobile/components/index/image/classify}-->
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
new Vue({
|
new Vue({
|
||||||
el: '#dzzoffice',
|
el: '#dzzoffice',
|
||||||
data: function() {
|
data: function() {
|
||||||
return $.extend({},MyData,SearchData,SortData,ImagesData,ScreenData,{
|
return $.extend({},MyData,SearchData,SortData,ImagesData,ScreenData,ImagesMoreData,ImagesClassifyData,{
|
||||||
ParamFooter:{
|
ParamFooter:{
|
||||||
IsShow:'up',
|
IsShow:'up',
|
||||||
data:{
|
data:{
|
||||||
@@ -63,7 +65,9 @@
|
|||||||
search:{type:'search',icon:'icon ri-search-line',show:true},
|
search:{type:'search',icon:'icon ri-search-line',show:true},
|
||||||
screen:{type:'screen',icon:'icon ri-filter-2-fill',show:false},
|
screen:{type:'screen',icon:'icon ri-filter-2-fill',show:false},
|
||||||
sort:{type:'sort',icon:'icon ri-arrow-up-down-fill',show:true},
|
sort:{type:'sort',icon:'icon ri-arrow-up-down-fill',show:true},
|
||||||
user:{type:'user',icon:'',show:true}
|
user:{type:'user',icon:'',show:true},
|
||||||
|
collectcheck:{type:'collectcheck',icon:'icon ri-star-fill',show:false},
|
||||||
|
outcheck:{type:'outcheck',icon:'icon ri-close-fill',show:false}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
ParamDataInit:{
|
ParamDataInit:{
|
||||||
@@ -166,7 +170,7 @@
|
|||||||
}
|
}
|
||||||
this.StartData();
|
this.StartData();
|
||||||
},
|
},
|
||||||
methods:$.extend({},CommonJs,SearchJs,MyJs,ScreenJs,SortJs,ImagesJs,{
|
methods:$.extend({},CommonJs,SearchJs,MyJs,ScreenJs,SortJs,ImagesJs,ImagesMoreMethods,ImagesClassifyMethods,{
|
||||||
StartData(){
|
StartData(){
|
||||||
this.CommonLibrary();
|
this.CommonLibrary();
|
||||||
},
|
},
|
||||||
@@ -179,6 +183,7 @@
|
|||||||
window.location.reload();
|
window.location.reload();
|
||||||
},
|
},
|
||||||
handleFooterClick(type){
|
handleFooterClick(type){
|
||||||
|
var self = this;
|
||||||
if(type == 'search'){
|
if(type == 'search'){
|
||||||
this.ParamSearch.PopupVisible = true;
|
this.ParamSearch.PopupVisible = true;
|
||||||
}else if(type == 'screen'){
|
}else if(type == 'screen'){
|
||||||
@@ -190,6 +195,16 @@
|
|||||||
this.ScreenReset();
|
this.ScreenReset();
|
||||||
this.CommonSetFooterBadge();
|
this.CommonSetFooterBadge();
|
||||||
this.CommonhandleHash();
|
this.CommonhandleHash();
|
||||||
|
}else if(type == 'outcheck'){
|
||||||
|
this.ParamImages.operation.rids = [];
|
||||||
|
this.ParamImages.checked = false;
|
||||||
|
}else if(type == 'collectcheck'){
|
||||||
|
if(!self.ParamImages.operation.rids.length){
|
||||||
|
self.$notify({ type: 'warning', message: '请先选择文件' });
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
this.ParamImages.operation.type = 'collect';
|
||||||
|
this.ImagesClassify.PopupVisible = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -43,7 +43,7 @@
|
|||||||
<span class="title">版本信息:</span><span class="mes">$_G[setting][version]</span>
|
<span class="title">版本信息:</span><span class="mes">$_G[setting][version]</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="aboutlist">
|
<div class="aboutlist">
|
||||||
<span class="title">版权信息:</span><span class="mes">Powered By oaooa PicHome © 2020-2021 欧奥图文</span>
|
<span class="title">版权信息:</span><span class="mes">Powered By oaooa PicHome © 2020-2022 欧奥图文</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="aboutlist">
|
<div class="aboutlist">
|
||||||
<span class="title">网站地址:</span><span class="mes"><a class="address" href="https://oaooa.com/" target="_blank">oaooa.com</a></span>
|
<span class="title">网站地址:</span><span class="mes"><a class="address" href="https://oaooa.com/" target="_blank">oaooa.com</a></span>
|
||||||
@@ -82,13 +82,11 @@
|
|||||||
self.$dialog.confirm({
|
self.$dialog.confirm({
|
||||||
title: '提示',
|
title: '提示',
|
||||||
message: '您确定要注销登录?',
|
message: '您确定要注销登录?',
|
||||||
}).then(() => {
|
}).then(function(){
|
||||||
// on confirm
|
// on confirm
|
||||||
jQuery.get('user.php?mod=login&op=logging&action=logout&formhash={FORMHASH}&t='+new Date().getTime(),function(data){
|
jQuery.get('user.php?mod=login&op=logging&action=logout&formhash={FORMHASH}&t='+new Date().getTime(),function(data){
|
||||||
window.location.reload();
|
window.location.reload();
|
||||||
});
|
});
|
||||||
}).catch(() => {
|
|
||||||
// on cancel
|
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
case 'login':
|
case 'login':
|
||||||
|
|||||||
162
dzz/pichome/template/mobile/components/index/image/JsCollect.htm
Normal file
162
dzz/pichome/template/mobile/components/index/image/JsCollect.htm
Normal file
@@ -0,0 +1,162 @@
|
|||||||
|
<script type="text/javascript">
|
||||||
|
Vue.component('collect-all', {
|
||||||
|
template: `<van-collapse v-model="parammodel.active" :border="false">
|
||||||
|
<van-collapse-item v-for="item in paramdata" :key="item.cid" :name="item.cid" :class="{'active':parammodel.checkedvalue.indexOf(item.cid)>-1}" :ref="'collapse_'+item.cid">
|
||||||
|
<template #title>
|
||||||
|
<div @click.stop.self.prevent="select(item)">
|
||||||
|
{{item.catname}}
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<template #right-icon>
|
||||||
|
<template v-if="!item.leaf">
|
||||||
|
<i @click.stop="toggle(item)" class="van-icon van-icon-arrow van-cell__right-icon"></i>
|
||||||
|
</template>
|
||||||
|
<template v-else>
|
||||||
|
<div style="width: 20px;"></div>
|
||||||
|
</template>
|
||||||
|
</template>
|
||||||
|
<div class="van-cell" v-if="item.loading">
|
||||||
|
<van-loading type="spinner" size="24px" />
|
||||||
|
</div>
|
||||||
|
<template v-if="item.children && item.children.length">
|
||||||
|
<collect-all
|
||||||
|
:parammodel="parammodel"
|
||||||
|
:paramdata="item.children"
|
||||||
|
@select="select"
|
||||||
|
:expandedkeys="expandedkeys"
|
||||||
|
:keyword="keyword"
|
||||||
|
@append="append"
|
||||||
|
:issearch="issearch"
|
||||||
|
:level="parseInt(level)+1"></collect-all>
|
||||||
|
</template>
|
||||||
|
</van-collapse-item>
|
||||||
|
</van-collapse>`,
|
||||||
|
props:['paramdata','parammodel','expandedkeys','keyword','level','issearch'],
|
||||||
|
data: function() {
|
||||||
|
return {
|
||||||
|
getnum:0
|
||||||
|
}
|
||||||
|
},
|
||||||
|
watch:{
|
||||||
|
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
if(this.level == 0){
|
||||||
|
this.getdata();
|
||||||
|
}else{
|
||||||
|
this.openChild(this.paramdata);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods:{
|
||||||
|
toggle(item){
|
||||||
|
var self = this;
|
||||||
|
var cid = item.cid;
|
||||||
|
if(self.$refs['collapse_'+cid] && self.$refs['collapse_'+cid].length){
|
||||||
|
var expanded = self.$refs['collapse_'+cid][0].expanded;
|
||||||
|
if(!item.loaded){
|
||||||
|
self.getdata(item);
|
||||||
|
}
|
||||||
|
self.$nextTick(function(){
|
||||||
|
self.$refs['collapse_'+cid][0].toggle(!expanded);
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
},
|
||||||
|
append(data){
|
||||||
|
var self = this;
|
||||||
|
self.$emit('append',data);
|
||||||
|
},
|
||||||
|
select(data){
|
||||||
|
var self = this;
|
||||||
|
self.$emit('select',data);
|
||||||
|
},
|
||||||
|
getdata(data){
|
||||||
|
var self = this;
|
||||||
|
var param = {};
|
||||||
|
if(data){
|
||||||
|
data.loading = true;
|
||||||
|
if(data.parent){
|
||||||
|
param['clid'] = data.clid;
|
||||||
|
}else{
|
||||||
|
param['clid'] = data.clid;
|
||||||
|
param['cid'] = data.cid;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$.post('index.php?mod=collection&op=collect&do=collectlist',param,function(json){
|
||||||
|
if(json.success){
|
||||||
|
var arr = [];
|
||||||
|
for(var i in json.success){
|
||||||
|
var item = json.success[i];
|
||||||
|
if(data){
|
||||||
|
item['cid'] = parseInt(item['cid']);
|
||||||
|
item['parent'] = false;
|
||||||
|
}else{
|
||||||
|
item['cid'] = 'p'+item['clid'];
|
||||||
|
item['catname'] = item['name'];
|
||||||
|
item['parent'] = true;
|
||||||
|
}
|
||||||
|
item['children'] = [];
|
||||||
|
item['loaded'] = false;
|
||||||
|
item['loading'] = false;
|
||||||
|
item['leaf'] = false;
|
||||||
|
if(self.issearch){
|
||||||
|
if(self.expandedkeys.indexOf(item.cid)>-1){
|
||||||
|
arr.push(item);
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
arr.push(item);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
if(data){
|
||||||
|
if(arr.length){
|
||||||
|
self.append({
|
||||||
|
data:data,
|
||||||
|
val:arr
|
||||||
|
});
|
||||||
|
data.leaf = false;
|
||||||
|
}else{
|
||||||
|
data.leaf = true;
|
||||||
|
}
|
||||||
|
data.loading = false;
|
||||||
|
data.loaded = true;
|
||||||
|
}else{
|
||||||
|
self.append({
|
||||||
|
type:'parent',
|
||||||
|
val:arr
|
||||||
|
});
|
||||||
|
}
|
||||||
|
if(self.getnum == 0){
|
||||||
|
self.$nextTick(function(){
|
||||||
|
self.getnum = 1;
|
||||||
|
self.openChild(arr);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
}else{
|
||||||
|
|
||||||
|
}
|
||||||
|
},'json');
|
||||||
|
},
|
||||||
|
openChild(data){
|
||||||
|
if(this.expandedkeys.length){
|
||||||
|
for(var i in data){
|
||||||
|
var item = data[i];
|
||||||
|
if(parseInt(this.level) == 0){
|
||||||
|
if(this.expandedkeys.indexOf(item.cid)>-1){
|
||||||
|
this.getdata(item);
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
if(this.expandedkeys.indexOf(parseInt(item.cid))>-1){
|
||||||
|
this.getdata(item);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
mounted() {
|
||||||
|
},
|
||||||
|
});
|
||||||
|
</script>
|
||||||
216
dzz/pichome/template/mobile/components/index/image/classify.htm
Normal file
216
dzz/pichome/template/mobile/components/index/image/classify.htm
Normal file
@@ -0,0 +1,216 @@
|
|||||||
|
<van-popup class="screen-popup page-popup" v-model="ImagesClassify.PopupVisible" position="right" style="width: 100%;height: 100%;" @open="ImagesClassifyPopupOpen" @closed="ImagesClassifyPopupClosed">
|
||||||
|
<van-nav-bar left-arrow @click-left="ImagesClassify.PopupVisible=false" title="选择收藏夹"></van-nav-bar>
|
||||||
|
<div class="scroll-box" style="padding: 0px 4px;height: 100%;overflow: auto;padding-bottom: 35%;">
|
||||||
|
<div class="screen-classify-collapse">
|
||||||
|
<collect-all
|
||||||
|
v-if="ImagesClassify.isshowloading"
|
||||||
|
:parammodel="ImagesClassify"
|
||||||
|
:paramdata="ImagesClassify.data"
|
||||||
|
@select="ImagesClassifyselect"
|
||||||
|
:expandedkeys="ImagesClassify.expandedkeys"
|
||||||
|
:keyword="ImagesClassify.search.name"
|
||||||
|
@append="ImagesClassifyAppenddata"
|
||||||
|
:issearch="ImagesClassify.issearch"
|
||||||
|
:level="0"></collect-all>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<footer class="pic-toolbar footershow">
|
||||||
|
<div class="tabbar">
|
||||||
|
<template v-for="item in ImagesClassify.Footer">
|
||||||
|
<template v-if="item.show">
|
||||||
|
<div class="tab-item" @click="ImagesClassifyFooterClick(item)">
|
||||||
|
<i :class="item.icon"></i>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
</template>
|
||||||
|
</div>
|
||||||
|
</footer>
|
||||||
|
</van-popup>
|
||||||
|
<van-popup class="seasrch-popup footer-popup" v-model="ImagesClassify.search.PopupVisible" round position="bottom" :style="{ height: '90%' }" @open="ImagesClassifySearchPopupOpen" @close="ImagesClassifySearchPopupClose">
|
||||||
|
<div class="vam-popup-title" @click="ImagesClassify.search.PopupVisible=false">搜索</div>
|
||||||
|
<div class="van-search-box">
|
||||||
|
<van-search class="popup-search-input" v-model.trim="ImagesClassify.search.name" shape="round" placeholder="输入关键词" maxlength="50" :clearable="false">
|
||||||
|
<template #right-icon>
|
||||||
|
<van-icon v-show="ImagesClassify.search.name" @click="ImagesClassify.search.name=''" name="cross" />
|
||||||
|
</template>
|
||||||
|
</van-search>
|
||||||
|
</div>
|
||||||
|
<div class="btn-bottom">
|
||||||
|
<van-row gutter="20">
|
||||||
|
<van-col span="24" style="text-align: center;">
|
||||||
|
<van-button round type="info" size="large" @click="ImagesClassify.search.PopupVisible=false">确定</van-button>
|
||||||
|
</van-col>
|
||||||
|
</van-row>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</van-popup>
|
||||||
|
<!--{template mobile/components/index/image/JsCollect}-->
|
||||||
|
<script type="text/javascript">
|
||||||
|
var ImagesClassifyData = {
|
||||||
|
ImagesClassify:{
|
||||||
|
PopupVisible:false,
|
||||||
|
data:[],
|
||||||
|
expandedkeys:[],
|
||||||
|
active:[],
|
||||||
|
value:'',
|
||||||
|
node:'',
|
||||||
|
checkedvalue:[],
|
||||||
|
loading:false,
|
||||||
|
isshowloading:false,
|
||||||
|
issearch:false,
|
||||||
|
Footer:{
|
||||||
|
search:{type:'search',icon:'icon ri-search-line',show:true},
|
||||||
|
collect:{type:'collect',icon:'icon ri-star-fill',show:true},
|
||||||
|
},
|
||||||
|
search:{
|
||||||
|
PopupVisible:false,
|
||||||
|
name:'',
|
||||||
|
realname:'',
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
var ImagesClassifyMethods = {
|
||||||
|
ImagesClassifyAppenddata(data){
|
||||||
|
if(data.type == 'parent'){
|
||||||
|
this.ImagesClassify.data = data.val;
|
||||||
|
}else{
|
||||||
|
data.data.children = data.val;
|
||||||
|
|
||||||
|
}
|
||||||
|
},
|
||||||
|
ImagesClassifySearchPopupClose(){
|
||||||
|
var self = this;
|
||||||
|
if(this.ImagesClassify.search.realname != this.ImagesClassify.search.name){
|
||||||
|
self.ImagesClassify.isshowloading = false;
|
||||||
|
self.ImagesClassify.expandedkeys = [];
|
||||||
|
self.ImagesClassify.data = [];
|
||||||
|
if(this.ImagesClassify.search.name){
|
||||||
|
self.ImagesClassify.issearch = true;
|
||||||
|
$.post(MOD_URL+'&op=collect&do=searchcollect',{
|
||||||
|
keyword:self.ImagesClassify.search.name
|
||||||
|
},function(json){
|
||||||
|
for(var i in json.clid){
|
||||||
|
self.ImagesClassify.expandedkeys.push('p'+json.clid[i]);
|
||||||
|
self.ImagesClassify.active.push('p'+json.clid[i]);
|
||||||
|
}
|
||||||
|
for(var x in json.cids){
|
||||||
|
self.ImagesClassify.expandedkeys.push(parseInt(json.cids[x]));
|
||||||
|
self.ImagesClassify.active.push(parseInt(json.cids[x]));
|
||||||
|
}
|
||||||
|
self.$nextTick(function(){
|
||||||
|
self.ImagesClassify.isshowloading = true;
|
||||||
|
});
|
||||||
|
|
||||||
|
},'json');
|
||||||
|
}else{
|
||||||
|
self.ImagesClassify.issearch = false;
|
||||||
|
self.$nextTick(function(){
|
||||||
|
self.ImagesClassify.isshowloading = true;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
},
|
||||||
|
ImagesClassifyFooterClick(data){
|
||||||
|
var self = this;
|
||||||
|
switch(data.type){
|
||||||
|
case 'search':
|
||||||
|
self.ImagesClassify.search.PopupVisible = true;
|
||||||
|
break;
|
||||||
|
case 'collect':
|
||||||
|
if(!self.ParamImages.operation.rids.length){
|
||||||
|
self.$notify({ type: 'warning', message: '请先选择文件' });
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
if(!this.ImagesClassify.value){
|
||||||
|
self.$notify({ type: 'warning', message: '请选择分类' });
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
var param = {};
|
||||||
|
if(self.ImagesClassify.node.parent){
|
||||||
|
param = {
|
||||||
|
rids:self.ParamImages.operation.rids.join(','),
|
||||||
|
clid:self.ImagesClassify.node.clid
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
param = {
|
||||||
|
rids:self.ParamImages.operation.rids.join(','),
|
||||||
|
clid:self.ImagesClassify.node.clid,
|
||||||
|
cid:self.ImagesClassify.node.cid
|
||||||
|
}
|
||||||
|
}
|
||||||
|
var url = 'index.php?mod=collection&op=collect&do=addfilecollect';
|
||||||
|
$.post(url,param,function(json){
|
||||||
|
if(json.success){
|
||||||
|
if(self.ImagesClassify.node.parent){
|
||||||
|
var collect = {
|
||||||
|
name:self.ImagesClassify.node.catname,
|
||||||
|
key:self.ImagesClassify.node.cid
|
||||||
|
};
|
||||||
|
}else{
|
||||||
|
var collect = {
|
||||||
|
name:self.ImagesClassify.node.catname,
|
||||||
|
key:'p'+self.ImagesClassify.node.clid+'-'+self.ImagesClassify.node.pathkey.replaceAll('_','')
|
||||||
|
};
|
||||||
|
}
|
||||||
|
localStorage.setItem('collectkey', JSON.stringify(collect));
|
||||||
|
self.$notify({ type: 'success', message: '文件收藏成功' });
|
||||||
|
}else{
|
||||||
|
self.$notify({ type: 'warning', message: json.error });
|
||||||
|
}
|
||||||
|
self.ImagesClassify.PopupVisible = false;
|
||||||
|
},'json')
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
ImagesClassifyselect(data){
|
||||||
|
if(this.ImagesClassify.value == data.cid){
|
||||||
|
this.ImagesClassify.value = '';
|
||||||
|
this.ImagesClassify.node = '';
|
||||||
|
this.ImagesClassify.checkedvalue = [];
|
||||||
|
}else{
|
||||||
|
this.ImagesClassify.node = JSON.parse(JSON.stringify(data));
|
||||||
|
this.ImagesClassify.value = data.cid;
|
||||||
|
this.ImagesClassify.checkedvalue = [data.cid];
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
ImagesClassifySearchPopupOpen(){
|
||||||
|
var self = this;
|
||||||
|
this.ImagesClassify.search.realname = JSON.parse(JSON.stringify(this.ImagesClassify.search.name));
|
||||||
|
},
|
||||||
|
ImagesClassifyPopupOpen(){
|
||||||
|
var collectkey = JSON.parse(localStorage.getItem('collectkey'));
|
||||||
|
if(collectkey){
|
||||||
|
var keys = collectkey.key.split('-');
|
||||||
|
if(keys.length>1){
|
||||||
|
keys.pop();
|
||||||
|
}
|
||||||
|
var newkeys = [];
|
||||||
|
for(var i in keys){
|
||||||
|
if(keys[i].indexOf('p')>-1){
|
||||||
|
newkeys.push(keys[i]);
|
||||||
|
}else{
|
||||||
|
newkeys.push(parseInt(keys[i]));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
this.ImagesClassify.expandedkeys = newkeys;
|
||||||
|
this.ImagesClassify.active = newkeys;
|
||||||
|
}
|
||||||
|
this.ImagesClassify.isshowloading = true;
|
||||||
|
},
|
||||||
|
ImagesClassifyPopupClosed(){
|
||||||
|
var self = this;
|
||||||
|
this.ImagesClassify.loading = false;
|
||||||
|
this.ImagesClassify.isshowloading = false;
|
||||||
|
this.ImagesClassify.data = [];
|
||||||
|
this.ImagesClassify.active = [];
|
||||||
|
this.ImagesClassify.value = '';
|
||||||
|
this.ImagesClassify.node = '';
|
||||||
|
this.ImagesClassify.checkedvalue = [];
|
||||||
|
this.ImagesClassify.search.name = '';
|
||||||
|
this.ImagesClassify.search.realname = '';
|
||||||
|
this.ParamImages.operation.rids = [];
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
54
dzz/pichome/template/mobile/components/index/image/more.htm
Normal file
54
dzz/pichome/template/mobile/components/index/image/more.htm
Normal file
@@ -0,0 +1,54 @@
|
|||||||
|
<van-action-sheet
|
||||||
|
style="padding-top: 10px;"
|
||||||
|
v-model="ImagesMore.visible"
|
||||||
|
:actions="ImagesMore.data"
|
||||||
|
cancel-text="取消"
|
||||||
|
@select="ImagesMoreSheetChange"
|
||||||
|
close-on-click-action>
|
||||||
|
</van-action-sheet>
|
||||||
|
<script type="text/javascript">
|
||||||
|
var ImagesMoreData = {
|
||||||
|
ImagesMore:{
|
||||||
|
visible:false,
|
||||||
|
dpath:'',
|
||||||
|
data:[
|
||||||
|
// { name: '收藏',type:'collect' },
|
||||||
|
{ name: '分享',type:'share' },
|
||||||
|
{ name: '下载',type:'down' },
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
|
var ImagesMoreMethods = {
|
||||||
|
ImagesMoreSheetChange(data){
|
||||||
|
var self = this;
|
||||||
|
switch(data.type){
|
||||||
|
case 'share':
|
||||||
|
$.post('{MOD_URL}&op=ajax&operation=createshare',{
|
||||||
|
rid:self.ParamImages.operation.rids.join(',')
|
||||||
|
},function(data){
|
||||||
|
if(data.success){
|
||||||
|
self.$dialog.confirm({
|
||||||
|
title: '',
|
||||||
|
confirmButtonText:'复制地址',
|
||||||
|
message: data.success,
|
||||||
|
}).then(function(){
|
||||||
|
self.CommonCopyTxt(data.success)
|
||||||
|
}).catch(function(){
|
||||||
|
// on cancel
|
||||||
|
});
|
||||||
|
}else{
|
||||||
|
self.$toast.fail('分享地址获取失败');
|
||||||
|
}
|
||||||
|
},'json');
|
||||||
|
break;
|
||||||
|
case 'down':
|
||||||
|
window.open(SITEURL+MOD_URL+'&op=download&dpath='+self.ImagesMore.dpath);
|
||||||
|
break;
|
||||||
|
case 'collect':
|
||||||
|
self.ParamImages.operation.type = data.type;
|
||||||
|
self.ImagesClassify.PopupVisible = true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
||||||
@@ -527,9 +527,9 @@
|
|||||||
message: data.success,
|
message: data.success,
|
||||||
confirmButtonText:'复制地址',
|
confirmButtonText:'复制地址',
|
||||||
cancelButtonText:'关闭'
|
cancelButtonText:'关闭'
|
||||||
}).then(() => {
|
}).then(function() {
|
||||||
self.CommonCopyTxt(data.success);
|
self.CommonCopyTxt(data.success);
|
||||||
}).catch(() => {
|
}).catch(function() {
|
||||||
// on cancel
|
// on cancel
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
<!--{template mobile/frame/header_simple_start}-->
|
<!--{template mobile/frame/header_simple_start}-->
|
||||||
<link rel="stylesheet" type="text/css" href="{MOD_PATH}/css/mobile/index.css?{VERHASH}" />
|
<link rel="stylesheet" type="text/css" href="{MOD_PATH}/css/mobile/index.css?{VERHASH}" />
|
||||||
|
<link rel="stylesheet" type="text/css" href="{MOD_PATH}/css/mobile/image.css?{VERHASH}" />
|
||||||
|
<link rel="stylesheet" type="text/css" href="{MOD_PATH}/css/mobile/screen.css?{VERHASH}" />
|
||||||
<!--{template mobile/frame/header_simple_end}-->
|
<!--{template mobile/frame/header_simple_end}-->
|
||||||
<div id="dzzoffice">
|
<div id="dzzoffice">
|
||||||
<!--{template mobile/components/index/JsIndex}-->
|
<!--{template mobile/components/index/JsIndex}-->
|
||||||
|
|||||||
@@ -277,9 +277,9 @@
|
|||||||
message: data.success,
|
message: data.success,
|
||||||
confirmButtonText:'复制地址',
|
confirmButtonText:'复制地址',
|
||||||
cancelButtonText:'关闭'
|
cancelButtonText:'关闭'
|
||||||
}).then(() => {
|
}).then(function() {
|
||||||
self.CommonCopyTxt(data.success);
|
self.CommonCopyTxt(data.success);
|
||||||
}).catch(() => {
|
}).catch(function() {
|
||||||
// on cancel
|
// on cancel
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -2,11 +2,19 @@
|
|||||||
<div>
|
<div>
|
||||||
<div id="top_header" style="padding: 4px 16px;">
|
<div id="top_header" style="padding: 4px 16px;">
|
||||||
<div class="header-content">
|
<div class="header-content">
|
||||||
<div class="h-left">
|
<!-- <div class="h-left">
|
||||||
<a href="{MOD_URL}">
|
<a href="{MOD_URL}">
|
||||||
<el-image src="data/attachment/sitelogo/sitelogo.png?{VERHASH}" fit="contain"></el-image>
|
<el-image src="data/attachment/sitelogo/sitelogo.png?{VERHASH}" fit="contain"></el-image>
|
||||||
<span class="text">$_G['setting'][sitename]</span>
|
<span class="text">$_G['setting'][sitename]</span>
|
||||||
</a>
|
</a>
|
||||||
|
</div> -->
|
||||||
|
<div class="h-left">
|
||||||
|
<div class="el-page-header__left" @click="goBack">
|
||||||
|
<i class="el-icon-back"></i>
|
||||||
|
</div>
|
||||||
|
<span class="text" >
|
||||||
|
<span v-cloak>$_G['setting'][sitename]</span>
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="h-center">
|
<div class="h-center">
|
||||||
</div>
|
</div>
|
||||||
@@ -15,13 +23,17 @@
|
|||||||
<el-dropdown v-cloak trigger="click" @command="handleavatar">
|
<el-dropdown v-cloak trigger="click" @command="handleavatar">
|
||||||
<div id="dzz_avatar_img">{eval echo avatar_block($_G[uid]);} </div>
|
<div id="dzz_avatar_img">{eval echo avatar_block($_G[uid]);} </div>
|
||||||
<el-dropdown-menu slot="dropdown" style="width: 165px;">
|
<el-dropdown-menu slot="dropdown" style="width: 165px;">
|
||||||
|
<!-- <el-dropdown-item command="collection">收藏夹</el-dropdown-item> -->
|
||||||
<el-dropdown-item command="personal">个人设置</el-dropdown-item>
|
<el-dropdown-item command="personal">个人设置</el-dropdown-item>
|
||||||
<el-dropdown-item command="help">帮助文档</el-dropdown-item>
|
<el-dropdown-item command="help">帮助文档</el-dropdown-item>
|
||||||
<el-dropdown-item command="problem">问题反馈</el-dropdown-item>
|
<el-dropdown-item command="problem">问题反馈</el-dropdown-item>
|
||||||
|
<!--{if $_G['adminid']==1}-->
|
||||||
<el-divider></el-divider>
|
<el-divider></el-divider>
|
||||||
<el-dropdown-item command="setting">站点设置</el-dropdown-item>
|
<el-dropdown-item command="setting">站点设置</el-dropdown-item>
|
||||||
<el-dropdown-item command="library">库设置</el-dropdown-item>
|
<el-dropdown-item command="library">库设置</el-dropdown-item>
|
||||||
|
<!-- <el-dropdown-item command="orguser">用户管理</el-dropdown-item> -->
|
||||||
<el-dropdown-item command="system">系统工具</el-dropdown-item>
|
<el-dropdown-item command="system">系统工具</el-dropdown-item>
|
||||||
|
<!--{/if}-->
|
||||||
<el-divider></el-divider>
|
<el-divider></el-divider>
|
||||||
<el-dropdown-item command="about">关于PicHome</el-dropdown-item>
|
<el-dropdown-item command="about">关于PicHome</el-dropdown-item>
|
||||||
<el-dropdown-item command="OutLogin">退出站点</el-dropdown-item>
|
<el-dropdown-item command="OutLogin">退出站点</el-dropdown-item>
|
||||||
@@ -49,6 +61,9 @@
|
|||||||
methods:{
|
methods:{
|
||||||
handleavatar(type) {//头像点击
|
handleavatar(type) {//头像点击
|
||||||
switch(type){
|
switch(type){
|
||||||
|
case 'collection':
|
||||||
|
window.location.href = DZZSCRIPT + '?mod=collection';
|
||||||
|
break;
|
||||||
case 'personal':
|
case 'personal':
|
||||||
window.location.href = MOD_URL + '&op=user&do=personal';
|
window.location.href = MOD_URL + '&op=user&do=personal';
|
||||||
break;
|
break;
|
||||||
@@ -77,7 +92,7 @@
|
|||||||
<span class="title">版本信息:</span><span class="mes">$_G[setting][version]</span>
|
<span class="title">版本信息:</span><span class="mes">$_G[setting][version]</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="aboutlist">
|
<div class="aboutlist">
|
||||||
<span class="title">版权信息:</span><span class="mes">Powered By oaooa PicHome © 2020-2021 欧奥图文</span>
|
<span class="title">版权信息:</span><span class="mes">Powered By oaooa PicHome © 2020-2022 欧奥图文</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="aboutlist">
|
<div class="aboutlist">
|
||||||
<span class="title">网站地址:</span><span class="mes"><a class="address" href="https://oaooa.com/" target="_blank">oaooa.com</a></span>
|
<span class="title">网站地址:</span><span class="mes"><a class="address" href="https://oaooa.com/" target="_blank">oaooa.com</a></span>
|
||||||
@@ -97,20 +112,26 @@
|
|||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
cancelButtonText: '取消',
|
cancelButtonText: '取消',
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
}).then(() => {
|
}).then(function() {
|
||||||
jQuery.get('user.php?mod=login&op=logging&action=logout&formhash={FORMHASH}&t='+new Date().getTime(),function(data){
|
jQuery.get('user.php?mod=login&op=logging&action=logout&formhash={FORMHASH}&t='+new Date().getTime(),function(data){
|
||||||
window.location.reload();
|
window.location.reload();
|
||||||
});
|
});
|
||||||
}).catch(() => {
|
}).catch(function() {
|
||||||
|
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
case 'system':
|
case 'system':
|
||||||
window.open(SITEURL+'admin.php?mod=system');
|
window.open(SITEURL+'admin.php?mod=system');
|
||||||
break;
|
break;
|
||||||
|
case 'orguser':
|
||||||
|
window.open(SITEURL+'admin.php?mod=orguser');
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
goBack(){
|
||||||
|
window.location.href=MOD_URL;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
ImageAudioPlayMouseenter(tage){
|
ImageAudioPlayMouseenter(tage){
|
||||||
var find = tage.find('.image-playurl');
|
var find = tage.find('.image-playurl');
|
||||||
|
|
||||||
tage.addClass('showoperation');
|
tage.closest('.image-inside').addClass('showoperation');
|
||||||
var status = find.data('status');
|
var status = find.data('status');
|
||||||
var type = find.data('type');
|
var type = find.data('type');
|
||||||
if(type == 'video' || type == 'audio'){
|
if(type == 'video' || type == 'audio'){
|
||||||
@@ -23,7 +23,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
ImageAudioPlayMouseleave(tage){
|
ImageAudioPlayMouseleave(tage){
|
||||||
tage.removeClass('showoperation');
|
tage.closest('.image-inside').removeClass('showoperation');
|
||||||
tage.find('.image-playurl').removeClass('show');
|
tage.find('.image-playurl').removeClass('show');
|
||||||
},
|
},
|
||||||
ImageAudioPlayVideo(box){
|
ImageAudioPlayVideo(box){
|
||||||
|
|||||||
@@ -52,8 +52,8 @@
|
|||||||
var str = JSON.parse(JSON.stringify(self.ImageDataList[findex]));
|
var str = JSON.parse(JSON.stringify(self.ImageDataList[findex]));
|
||||||
var rid = str.rid;
|
var rid = str.rid;
|
||||||
arr[rid] = str;
|
arr[rid] = str;
|
||||||
var w = parseInt(arr[rid]['width']);
|
var w = parseInt(arr[rid]['thumbwidth']);
|
||||||
var h = parseInt(arr[rid]['height']);
|
var h = parseInt(arr[rid]['thumbheight']);
|
||||||
var r = w / h;
|
var r = w / h;
|
||||||
var r1 = h / w;
|
var r1 = h / w;
|
||||||
if (h > 360) {
|
if (h > 360) {
|
||||||
|
|||||||
@@ -57,7 +57,7 @@
|
|||||||
}else{
|
}else{
|
||||||
arr[i]['pwidth'] = pwidth;
|
arr[i]['pwidth'] = pwidth;
|
||||||
}
|
}
|
||||||
var h = ppwidth/parseFloat(arr[i].width)*parseInt(arr[i].height)>120?ppwidth/parseFloat(arr[i].width)*parseInt(arr[i].height):120;
|
var h = ppwidth/parseFloat(arr[i].thumbwidth)*parseInt(arr[i].thumbheight)>120?ppwidth/parseFloat(arr[i].thumbwidth)*parseInt(arr[i].thumbheight):120;
|
||||||
arr[i]['pheight'] = h;
|
arr[i]['pheight'] = h;
|
||||||
if (index < self.ImageWaterfall.columns) {
|
if (index < self.ImageWaterfall.columns) {
|
||||||
arr[i]['ptop'] = 0;
|
arr[i]['ptop'] = 0;
|
||||||
|
|||||||
@@ -109,6 +109,24 @@
|
|||||||
return decodeURIComponent(r[2]);
|
return decodeURIComponent(r[2]);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
CommonHighlight(text,words){
|
||||||
|
// 默认的标签,如果没有指定,使用span
|
||||||
|
var i, len = words.length,
|
||||||
|
re;
|
||||||
|
//匹配每一个特殊字符 ,进行转义
|
||||||
|
var specialStr = ["*", ".", "?", "+", "$", "^", "[", "]", "{", "}", "|", "\\", "(", ")", "/", "%"];
|
||||||
|
$.each(specialStr, function(i, item) {
|
||||||
|
if(words.indexOf(item) != -1) {
|
||||||
|
words = words.replace(new RegExp("\\" + item, 'g'), "\\" + item);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
//匹配整个关键词
|
||||||
|
re = new RegExp(words, 'g');
|
||||||
|
if(re.test(text)) {
|
||||||
|
text = text.replace(re, '<span class="highlight">$&</span>');
|
||||||
|
}
|
||||||
|
return text;
|
||||||
|
},
|
||||||
CommonDeleteAll(){
|
CommonDeleteAll(){
|
||||||
this.HeaderKeyword = '';
|
this.HeaderKeyword = '';
|
||||||
this.ScreenDeleteAll();
|
this.ScreenDeleteAll();
|
||||||
|
|||||||
@@ -3,43 +3,95 @@
|
|||||||
<!-- <div class="left" v-cloak>找到文件 {{ImageParams.counttotal}} 个</div> -->
|
<!-- <div class="left" v-cloak>找到文件 {{ImageParams.counttotal}} 个</div> -->
|
||||||
<div class="right" v-if="DocumentTemplate==2 && ImageDataIsExpanded"><el-checkbox v-model="ImageParams.expanded" @change="ImageExpandedChange">显示子分类内容</el-checkbox></div>
|
<div class="right" v-if="DocumentTemplate==2 && ImageDataIsExpanded"><el-checkbox v-model="ImageParams.expanded" @change="ImageExpandedChange">显示子分类内容</el-checkbox></div>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- <div class="collects-move-btn-box" v-if="ImageCollect.show" :style="{'padding-left':DocumentLeftWidth+'px'}">
|
||||||
|
<el-tooltip class="item" effect="dark" content="收藏" placement="top">
|
||||||
|
<div class="item" @click="ImageCollect.dialogVisible=true">
|
||||||
|
<i class="ri-star-fill"></i>
|
||||||
|
</div>
|
||||||
|
</el-tooltip>
|
||||||
|
<el-tooltip class="item" effect="dark" content="取消选中" placement="top">
|
||||||
|
<div class="item" @click="ImageCollectCancelChecked">
|
||||||
|
<i class="ri-close-circle-fill"></i>
|
||||||
|
</div>
|
||||||
|
</el-tooltip>
|
||||||
|
</div> -->
|
||||||
<div class="image-container">
|
<div class="image-container">
|
||||||
<div class="image-wrapper">
|
<div class="image-wrapper">
|
||||||
<template v-for="item in ImageDataListShow">
|
<template v-for="item in ImageDataListShow">
|
||||||
<div class="image-item" :key="item.rid" :style="{top:item.ptop+'px',left:item.pleft+'px',width:item.pwidth+'px'}" >
|
<div
|
||||||
|
class="image-item"
|
||||||
|
:class="{checked:ImageCollect.show&&ImageCollect.rids.indexOf(item.rid)>-1}"
|
||||||
|
:key="item.rid"
|
||||||
|
:data-rid="item.rid"
|
||||||
|
:style="{top:item.ptop+'px',left:item.pleft+'px',width:item.pwidth+'px'}"
|
||||||
|
@click="ImageCtrlClick(item.rid)">
|
||||||
|
<div class="collect-checkeds" @click="ImageCtrlClick(item.rid,'1')">
|
||||||
|
<div class="check">
|
||||||
|
<i class="el-icon-check"></i>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="image-inside">
|
<div class="image-inside">
|
||||||
|
<!--{if $_G[uid]}-->
|
||||||
|
<!-- <div class="el-button-group" :class="{border:!ImageCollect.quick}" v-if="!ImageDocumentCtrl">
|
||||||
|
<button type="button" class="el-button el-button--danger reference el-button--medium" @click.stop="ImageQuickChangeCollect(item.rid)">
|
||||||
|
<span>收藏</span>
|
||||||
|
</button>
|
||||||
|
<el-tooltip v-if="ImageCollect.quick" class="item" effect="dark" :content="ImageCollect.name?'收藏到:'+ImageCollect.name:''" placement="top">
|
||||||
|
<button type="button" class="el-button el-button--danger el-dropdown__caret-button el-button--medium" style="padding: 0;" @click.stop="ImageQuickAddCollect(item.rid)">
|
||||||
|
<img style="height: 20px;" src="dzz/pichome/image/flashlight.png" alt="">
|
||||||
|
</button>
|
||||||
|
</el-tooltip>
|
||||||
|
</div> -->
|
||||||
|
<!--{/if}-->
|
||||||
|
|
||||||
|
<div class="topFlex" v-if="!ImageDocumentCtrl">
|
||||||
|
<!-- <div v-if="parseInt(item.share)" class="circulars" @click.stop="ImageOperation('share',item.rid)">
|
||||||
|
<i class="ri-share-line"></i>
|
||||||
|
</div> -->
|
||||||
|
<!-- <div v-if="parseInt(item.download)" class="circulars" @click.stop="ImageOperation('down',item.dpath)">
|
||||||
|
<i class="ri-download-2-line"></i>
|
||||||
|
</div> -->
|
||||||
|
<el-dropdown trigger="click" @command="ImageOperation" placement="bottom" v-if="parseInt(item.share) || parseInt(item.download)">
|
||||||
|
<div class="circulars">
|
||||||
|
<i class="ri-more-2-fill"></i>
|
||||||
|
</div>
|
||||||
|
<el-dropdown-menu slot="dropdown" style="width: 165px;">
|
||||||
|
<el-dropdown-item v-if="parseInt(item.share)" :command="ImageOperationVal('share',item.rid)">
|
||||||
|
<i class="ri-share-line" style="vertical-align: bottom;font-size: 16px;"></i>
|
||||||
|
分享
|
||||||
|
</el-dropdown-item>
|
||||||
|
<el-dropdown-item v-if="parseInt(item.download)" :command="ImageOperationVal('down',item.dpath)" class="circulars">
|
||||||
|
<i class="ri-download-2-line" style="vertical-align: bottom;font-size: 16px;"></i>
|
||||||
|
下载
|
||||||
|
</el-dropdown-item>
|
||||||
|
</el-dropdown-menu>
|
||||||
|
</el-dropdown>
|
||||||
|
</div>
|
||||||
<div
|
<div
|
||||||
class="image-single radius"
|
class="image-single radius"
|
||||||
:class="[{'border':item.opentype=='video'||item.opentype=='audio'},ImageType]"
|
:class="[{'border':item.opentype=='video'||item.opentype=='audio'},ImageType]"
|
||||||
:style="{height: item.pheight+'px',width: (item.pwidth-8)+'px',background:'#'+item.color}"
|
:style="{height: item.pheight+'px',width: (item.pwidth-8)+'px',background:'#'+item.color}"
|
||||||
@mouseenter="ImageMouseenter"
|
@mouseenter="ImageMouseenter"
|
||||||
@mouseleave="ImageMouseleave"
|
@mouseleave="ImageMouseleave"
|
||||||
@click="item.type!='audio'&&ImageDetails(item.rid)">
|
@click="item.type!='audio'&&!ImageDocumentCtrl&&ImageDetails(item.rid)">
|
||||||
<div class="image-storage">
|
<div class="image-storage">
|
||||||
<img class="img thumbnail" :src="item.icondata" alt="">
|
<img class="img thumbnail" :src="item.icondata" alt="">
|
||||||
<img class="img opacity" :src="item.icondata" alt="" @load="Imageload(item.rid)" :ref="'img_'+item.rid" />
|
<img class="img opacity" :src="item.icondata" alt="" @load="Imageload(item.rid)" :ref="'img_'+item.rid" />
|
||||||
</div>
|
</div>
|
||||||
<div class="topFlex" v-if="parseInt(item.download)||parseInt(item.share)">
|
|
||||||
<div v-if="parseInt(item.share)" class="circulars" @click.stop="ImageOperation('share',item.rid)">
|
|
||||||
<i class="ri-share-line"></i>
|
|
||||||
</div>
|
|
||||||
<div v-if="parseInt(item.download)" class="circulars" @click.stop="ImageOperation('down',item.dpath)">
|
|
||||||
<i class="ri-download-2-line"></i>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<template v-if="item.type=='audio'">
|
<template v-if="item.type=='audio'">
|
||||||
<div @click.stop="ImageDetails(item.rid)" class="circulars link">
|
<div v-if="!ImageDocumentCtrl" @click.stop="ImageDetails(item.rid)" class="circulars link">
|
||||||
<i class="ri-search-line"></i>
|
<i class="ri-search-line"></i>
|
||||||
<span class="el-link--inner">详情</span>
|
<span class="el-link--inner">详情</span>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
<div v-if="item.link" @click.stop="ImageLink(item.link)" class="circulars link">
|
<div v-if="item.link&&!ImageDocumentCtrl" @click.stop="ImageLink(item.link)" class="circulars link">
|
||||||
<i class="ri-link"></i>
|
<i class="ri-link"></i>
|
||||||
<span class="el-link--inner">链接</span>
|
<span class="el-link--inner">链接</span>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<div v-if="item.type=='audio'||item.type=='video'" class="image-playurl" data-status="true" :data-type="item.type" :data-playurl="item.realpath">
|
<div v-if="!ImageDocumentCtrl && (item.type=='audio'||item.type=='video')" class="image-playurl" data-status="true" :data-type="item.type" :data-playurl="item.realpath" :class="{exhibit:!parseInt(item.share)&&!parseInt(item.download)}">
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -103,6 +155,13 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<add-star-tree :rids="ImageCollect.rids" :dialogvisible="ImageCollect.AdddialogVisible" @closeaddcollectdialog="ImageCloseAddcollectdialog"></add-star-tree>
|
||||||
|
<star-tree-dialog
|
||||||
|
:rids="ImageCollect.rids"
|
||||||
|
:dialogvisible="ImageCollect.dialogVisible"
|
||||||
|
@closecollectdialog="ImageClosecollectdialog"
|
||||||
|
@openaddcollect="ImageOpenAddCollect"
|
||||||
|
@addcollectsuccess="ImageOpenAddCollectsuccess"></star-tree-dialog>
|
||||||
<!--{template pc/components/image/ImageWaterfall}-->
|
<!--{template pc/components/image/ImageWaterfall}-->
|
||||||
<!--{template pc/components/image/ImageRowGrid}-->
|
<!--{template pc/components/image/ImageRowGrid}-->
|
||||||
<!--{template pc/components/image/ImageList}-->
|
<!--{template pc/components/image/ImageList}-->
|
||||||
@@ -141,6 +200,7 @@
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
var JsImageData = $.extend({},JsImageWaterfallData,JsImageRowGridData,JsImageListData,ImageAudioPlayData,{
|
var JsImageData = $.extend({},JsImageWaterfallData,JsImageRowGridData,JsImageListData,ImageAudioPlayData,{
|
||||||
|
ImageDocumentCtrl:false,
|
||||||
ImageDataIsExpanded:false,
|
ImageDataIsExpanded:false,
|
||||||
ImageDataList:[],
|
ImageDataList:[],
|
||||||
ImageDataListShow:{},
|
ImageDataListShow:{},
|
||||||
@@ -158,10 +218,24 @@
|
|||||||
Height:0,
|
Height:0,
|
||||||
Videovoice:true,
|
Videovoice:true,
|
||||||
Musicovoice:false
|
Musicovoice:false
|
||||||
|
},
|
||||||
|
ImageCollect:{
|
||||||
|
show:false,
|
||||||
|
name:'',
|
||||||
|
dialogVisible:false,
|
||||||
|
AdddialogVisible:false,
|
||||||
|
rids:[],
|
||||||
|
quick:false
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
var JsImageMethods = $.extend({},JsImageWaterfallMethods,JsImageRowGridMethods,JsImageListMethods,ImageAudioPlayMethods,{
|
var JsImageMethods = $.extend({},JsImageWaterfallMethods,JsImageRowGridMethods,JsImageListMethods,ImageAudioPlayMethods,{
|
||||||
|
|
||||||
ImageCreate(){
|
ImageCreate(){
|
||||||
|
var collectkey = JSON.parse(localStorage.getItem('collectkey'));
|
||||||
|
if(collectkey){
|
||||||
|
this.ImageCollect.name = collectkey.name;
|
||||||
|
this.ImageCollect.quick = true;
|
||||||
|
}
|
||||||
var pagesetting = $pagesetting;
|
var pagesetting = $pagesetting;
|
||||||
var layout = 'waterFall';
|
var layout = 'waterFall';
|
||||||
var imageexpanded = false;
|
var imageexpanded = false;
|
||||||
@@ -196,6 +270,77 @@
|
|||||||
this.ImageParams.expanded = imageexpanded;
|
this.ImageParams.expanded = imageexpanded;
|
||||||
this.ImageType = layout;
|
this.ImageType = layout;
|
||||||
},
|
},
|
||||||
|
ImageCloseAddcollectdialog(){
|
||||||
|
this.ImageCollect.AdddialogVisible = false;
|
||||||
|
},
|
||||||
|
ImageClosecollectdialog(){
|
||||||
|
this.ImageCollect.dialogVisible = false;
|
||||||
|
},
|
||||||
|
ImageCtrlClick(rid,type){
|
||||||
|
var self = this;
|
||||||
|
if(!self.ImageDocumentCtrl && !type){
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
var index = self.ImageCollect.rids.indexOf(rid);
|
||||||
|
if(index>-1){
|
||||||
|
self.ImageCollect.rids.splice(index,1);
|
||||||
|
|
||||||
|
}else{
|
||||||
|
self.ImageCollect.rids.push(rid);
|
||||||
|
}
|
||||||
|
if(self.ImageCollect.rids.length){
|
||||||
|
self.ImageCollect.show = true;
|
||||||
|
}else{
|
||||||
|
self.ImageCollect.show = false;
|
||||||
|
self.ImageDocumentCtrl = false;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
ImageCollectCancelChecked(){
|
||||||
|
this.ImageCollect.show = false;
|
||||||
|
this.ImageCollect.rids = [];
|
||||||
|
},
|
||||||
|
ImageOpenAddCollect(val){
|
||||||
|
this.ImageCollect.rids = [val];
|
||||||
|
this.ImageCollect.dialogVisible = false;
|
||||||
|
this.ImageCollect.AdddialogVisible = true;
|
||||||
|
},
|
||||||
|
ImageOpenAddCollectsuccess(){
|
||||||
|
var collectkey = JSON.parse(localStorage.getItem('collectkey'));
|
||||||
|
if(collectkey){
|
||||||
|
this.ImageCollect.name = collectkey.name;
|
||||||
|
this.ImageCollect.quick = true;
|
||||||
|
}
|
||||||
|
this.ImageCollect.show = false;
|
||||||
|
this.ImageCollect.rids = [];
|
||||||
|
},
|
||||||
|
ImageQuickChangeCollect(rid){
|
||||||
|
this.ImageCollect.rids = [rid];
|
||||||
|
this.ImageCollect.dialogVisible = true;
|
||||||
|
},
|
||||||
|
ImageQuickAddCollect(rid){
|
||||||
|
var self = this;
|
||||||
|
var collectkey = JSON.parse(localStorage.getItem('collectkey'));
|
||||||
|
if(collectkey){
|
||||||
|
var keys = collectkey.key.split('-');
|
||||||
|
var param = {
|
||||||
|
rids:rid,
|
||||||
|
clid:keys[0].replace('p','')
|
||||||
|
}
|
||||||
|
if(keys.length>1){
|
||||||
|
param['cid'] = keys.pop()
|
||||||
|
}
|
||||||
|
$.post(SITEURL+DZZSCRIPT+'?mod=collection&op=collect&do=addfilecollect',param,function(json){
|
||||||
|
if(json.success){
|
||||||
|
self.$message({
|
||||||
|
type:'success',
|
||||||
|
message:'收藏成功'
|
||||||
|
});
|
||||||
|
}else{
|
||||||
|
self.$message.error(json.error);
|
||||||
|
}
|
||||||
|
},'json');
|
||||||
|
}
|
||||||
|
},
|
||||||
ImageInit(){
|
ImageInit(){
|
||||||
var IsRefresh = true;
|
var IsRefresh = true;
|
||||||
if(this.ImageParams.scroll){
|
if(this.ImageParams.scroll){
|
||||||
@@ -268,7 +413,15 @@
|
|||||||
item.removeClass('opacity').siblings('.img').remove();
|
item.removeClass('opacity').siblings('.img').remove();
|
||||||
|
|
||||||
},
|
},
|
||||||
ImageOperation(type,val){
|
ImageOperationVal(type,val){
|
||||||
|
return {
|
||||||
|
type:type,
|
||||||
|
val:val
|
||||||
|
};
|
||||||
|
},
|
||||||
|
ImageOperation(command){
|
||||||
|
var type = command.type;
|
||||||
|
var val = command.val;
|
||||||
if(type == 'share'){
|
if(type == 'share'){
|
||||||
var self = this;
|
var self = this;
|
||||||
$.post('{MOD_URL}&op=ajax&operation=createshare',{
|
$.post('{MOD_URL}&op=ajax&operation=createshare',{
|
||||||
@@ -314,6 +467,19 @@
|
|||||||
sessionStorage.setItem('imageexpanded',status?1:0);
|
sessionStorage.setItem('imageexpanded',status?1:0);
|
||||||
<!--{/if}-->
|
<!--{/if}-->
|
||||||
this.CommonGetImageData();
|
this.CommonGetImageData();
|
||||||
|
},
|
||||||
|
ImageMounted(){
|
||||||
|
var self = this;
|
||||||
|
// $(document).keydown(function(e){
|
||||||
|
// if (e.which === 17 && !self.ImageDocumentCtrl){
|
||||||
|
// self.ImageDocumentCtrl = true;
|
||||||
|
// }
|
||||||
|
|
||||||
|
// }).keyup(function(e){
|
||||||
|
// if (e.which === 17 && self.ImageDocumentCtrl){
|
||||||
|
// self.ImageDocumentCtrl = false;
|
||||||
|
// }
|
||||||
|
// });
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
@@ -61,6 +61,8 @@
|
|||||||
this.HeaderKeyword=value.slice(0,100)
|
this.HeaderKeyword=value.slice(0,100)
|
||||||
}
|
}
|
||||||
this.HdeaderSearchInputKeyword(1);
|
this.HdeaderSearchInputKeyword(1);
|
||||||
|
}else{
|
||||||
|
this.HdeaderSearchInputSubmit();
|
||||||
}
|
}
|
||||||
},300),
|
},300),
|
||||||
HeaderKeywordInputKeyup(){
|
HeaderKeywordInputKeyup(){
|
||||||
|
|||||||
@@ -2,12 +2,15 @@
|
|||||||
<el-dropdown trigger="click" @command="HeaderRightAvatar" v-cloak>
|
<el-dropdown trigger="click" @command="HeaderRightAvatar" v-cloak>
|
||||||
<div id="dzz_avatar_img">{eval echo avatar_block($_G[uid]);} </div>
|
<div id="dzz_avatar_img">{eval echo avatar_block($_G[uid]);} </div>
|
||||||
<el-dropdown-menu slot="dropdown" style="width: 165px;">
|
<el-dropdown-menu slot="dropdown" style="width: 165px;">
|
||||||
|
<!-- <el-dropdown-item command="collection">收藏夹</el-dropdown-item> -->
|
||||||
<el-dropdown-item command="personal">个人设置</el-dropdown-item>
|
<el-dropdown-item command="personal">个人设置</el-dropdown-item>
|
||||||
<el-dropdown-item command="help">帮助文档</el-dropdown-item>
|
<el-dropdown-item command="help">帮助文档</el-dropdown-item>
|
||||||
<el-dropdown-item command="problem">问题反馈</el-dropdown-item>
|
<el-dropdown-item command="problem">问题反馈</el-dropdown-item>
|
||||||
|
<!--{if $_G['adminid']==1}-->
|
||||||
<el-divider></el-divider>
|
<el-divider></el-divider>
|
||||||
<el-dropdown-item command="setting">站点设置</el-dropdown-item>
|
<el-dropdown-item command="setting">站点设置</el-dropdown-item>
|
||||||
<el-dropdown-item command="library">库设置</el-dropdown-item>
|
<el-dropdown-item command="library">库设置</el-dropdown-item>
|
||||||
|
<!-- <el-dropdown-item command="orguser">用户管理</el-dropdown-item> -->
|
||||||
<el-dropdown-item command="system">
|
<el-dropdown-item command="system">
|
||||||
<span style="position: relative;">
|
<span style="position: relative;">
|
||||||
系统工具
|
系统工具
|
||||||
@@ -16,6 +19,7 @@
|
|||||||
<!--{/if}-->
|
<!--{/if}-->
|
||||||
</span>
|
</span>
|
||||||
</el-dropdown-item>
|
</el-dropdown-item>
|
||||||
|
<!--{/if}-->
|
||||||
<el-divider></el-divider>
|
<el-divider></el-divider>
|
||||||
<el-dropdown-item command="about">关于PicHome</el-dropdown-item>
|
<el-dropdown-item command="about">关于PicHome</el-dropdown-item>
|
||||||
<el-dropdown-item command="OutLogin">退出站点</el-dropdown-item>
|
<el-dropdown-item command="OutLogin">退出站点</el-dropdown-item>
|
||||||
@@ -29,6 +33,12 @@
|
|||||||
HeaderRightAvatar(type){
|
HeaderRightAvatar(type){
|
||||||
var self = this;
|
var self = this;
|
||||||
switch(type){
|
switch(type){
|
||||||
|
case 'collection':
|
||||||
|
window.location.href = DZZSCRIPT + '?mod=collection';
|
||||||
|
break;
|
||||||
|
case 'orguser':
|
||||||
|
window.open(SITEURL+'admin.php?mod=orguser');
|
||||||
|
break;
|
||||||
case 'personal':
|
case 'personal':
|
||||||
window.location.href = MOD_URL + '&op=user&do=personal';
|
window.location.href = MOD_URL + '&op=user&do=personal';
|
||||||
break;
|
break;
|
||||||
@@ -57,7 +67,7 @@
|
|||||||
<span class="title">版本信息:</span><span class="mes">$_G[setting][version]</span>
|
<span class="title">版本信息:</span><span class="mes">$_G[setting][version]</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="aboutlist">
|
<div class="aboutlist">
|
||||||
<span class="title">版权信息:</span><span class="mes">Powered By oaooa PicHome © 2020-2021 欧奥图文</span>
|
<span class="title">版权信息:</span><span class="mes">Powered By oaooa PicHome © 2020-2022 欧奥图文</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="aboutlist">
|
<div class="aboutlist">
|
||||||
<span class="title">网站地址:</span><span class="mes"><a class="address" href="https://oaooa.com/" target="_blank">oaooa.com</a></span>
|
<span class="title">网站地址:</span><span class="mes"><a class="address" href="https://oaooa.com/" target="_blank">oaooa.com</a></span>
|
||||||
@@ -77,11 +87,11 @@
|
|||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
cancelButtonText: '取消',
|
cancelButtonText: '取消',
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
}).then(() => {
|
}).then(function() {
|
||||||
jQuery.get('user.php?mod=login&op=logging&action=logout&formhash={FORMHASH}&t='+new Date().getTime(),function(data){
|
jQuery.get('user.php?mod=login&op=logging&action=logout&formhash={FORMHASH}&t='+new Date().getTime(),function(data){
|
||||||
window.location.reload();
|
window.location.reload();
|
||||||
});
|
});
|
||||||
}).catch(() => {
|
}).catch(function() {
|
||||||
|
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
:filter-node-method="LeftTreeFilterNode"
|
:filter-node-method="LeftTreeFilterNode"
|
||||||
highlight-current>
|
highlight-current>
|
||||||
<div class="custom-tree-node" slot-scope="{ node, data }" :class="{'tree-node-color':node.level==1?Appid==data.fid:Appid==data.appid}">
|
<div class="custom-tree-node" slot-scope="{ node, data }" :class="{'tree-node-color':node.level==1?Appid==data.fid:Appid==data.appid}">
|
||||||
<div class="name" v-cloak>{{ node.label }}</div>
|
<div class="name" v-cloak v-html="data.pfname"></div>
|
||||||
<div class="num" v-if="node.expanded && parseInt(data.nosubfilenum)>0">{{data.nosubfilenum}}</div>
|
<div class="num" v-if="node.expanded && parseInt(data.nosubfilenum)>0">{{data.nosubfilenum}}</div>
|
||||||
<div class="num" v-if="!node.expanded && parseInt(data.filenum)>0">{{data.filenum}}</div>
|
<div class="num" v-if="!node.expanded && parseInt(data.filenum)>0">{{data.filenum}}</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -59,6 +59,7 @@
|
|||||||
defaultChecked:'',
|
defaultChecked:'',
|
||||||
defaultOpenkeysInit:[],
|
defaultOpenkeysInit:[],
|
||||||
defaultOpenkeys:[],
|
defaultOpenkeys:[],
|
||||||
|
defaultOpenkeysSearch:[],
|
||||||
arrangement:[],
|
arrangement:[],
|
||||||
arrangementLast:[],
|
arrangementLast:[],
|
||||||
}
|
}
|
||||||
@@ -138,6 +139,7 @@
|
|||||||
self.LeftTree.defaultChecked = self.Appid;
|
self.LeftTree.defaultChecked = self.Appid;
|
||||||
self.LeftTree.defaultOpenkeys = [];
|
self.LeftTree.defaultOpenkeys = [];
|
||||||
self.LeftTree.defaultOpenkeysInit = [];
|
self.LeftTree.defaultOpenkeysInit = [];
|
||||||
|
self.LeftTree.defaultOpenkeysSearch = [];
|
||||||
this.CommonGetImageData();
|
this.CommonGetImageData();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -149,6 +151,7 @@
|
|||||||
LeftClassifyFilterInput:debounce(function(val){//输入
|
LeftClassifyFilterInput:debounce(function(val){//输入
|
||||||
var self = this;
|
var self = this;
|
||||||
self.LeftTree.defaultOpenkeys = [];
|
self.LeftTree.defaultOpenkeys = [];
|
||||||
|
self.LeftTree.defaultOpenkeysSearch = [];
|
||||||
self.LeftTree.arrangementLast = [];
|
self.LeftTree.arrangementLast = [];
|
||||||
self.LeftTree.show = false;
|
self.LeftTree.show = false;
|
||||||
self.Leftloading = true;
|
self.Leftloading = true;
|
||||||
@@ -156,6 +159,12 @@
|
|||||||
$.post(MOD_URL+'&op=ajax&operation=searchfolderbyname',{
|
$.post(MOD_URL+'&op=ajax&operation=searchfolderbyname',{
|
||||||
keyword:val
|
keyword:val
|
||||||
},function(data){
|
},function(data){
|
||||||
|
for(var i in self.Librarys){
|
||||||
|
var item = self.Librarys[i];
|
||||||
|
if(item.appname.indexOf(val)>-1){
|
||||||
|
self.LeftTree.defaultOpenkeys.push(item.appid);
|
||||||
|
}
|
||||||
|
}
|
||||||
for(var b in data.folderdata){
|
for(var b in data.folderdata){
|
||||||
var bitem = data.folderdata[b];
|
var bitem = data.folderdata[b];
|
||||||
var pathkey = [];
|
var pathkey = [];
|
||||||
@@ -163,7 +172,7 @@
|
|||||||
self.LeftTree.arrangementLast.push(bitem.fid);
|
self.LeftTree.arrangementLast.push(bitem.fid);
|
||||||
}
|
}
|
||||||
if(self.LeftTree.defaultOpenkeys.indexOf(bitem.appid)<0){
|
if(self.LeftTree.defaultOpenkeys.indexOf(bitem.appid)<0){
|
||||||
self.LeftTree.defaultOpenkeys.push(bitem.appid)
|
self.LeftTree.defaultOpenkeys.push(bitem.appid);
|
||||||
}
|
}
|
||||||
self.LeftTree.arrangement = [];
|
self.LeftTree.arrangement = [];
|
||||||
if(bitem.pathkey){
|
if(bitem.pathkey){
|
||||||
@@ -207,14 +216,15 @@
|
|||||||
},
|
},
|
||||||
LeftGetTreeDataSubstringFinish(){
|
LeftGetTreeDataSubstringFinish(){
|
||||||
var self = this;
|
var self = this;
|
||||||
if(this.LeftTree.defaultOpenkeys.length){
|
if(self.LeftTree.defaultOpenkeys.length){
|
||||||
var status = false;
|
var status = false;
|
||||||
for(var i in this.LeftTree.defaultOpenkeys){
|
for(var i in self.LeftTree.defaultOpenkeys){
|
||||||
var node = self.$refs.lefttree.getNode(this.LeftTree.defaultOpenkeys[i]);
|
var id = self.LeftTree.defaultOpenkeys[i];
|
||||||
if(!node){
|
if(self.LeftTree.defaultOpenkeysSearch.indexOf(id)>-1){
|
||||||
|
status = true;
|
||||||
|
}else{
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
status = true;
|
|
||||||
}
|
}
|
||||||
if(status){
|
if(status){
|
||||||
self.Leftloading = false;
|
self.Leftloading = false;
|
||||||
@@ -227,43 +237,44 @@
|
|||||||
var self = this;
|
var self = this;
|
||||||
if(node.level == 0){
|
if(node.level == 0){
|
||||||
var arr = [];
|
var arr = [];
|
||||||
if(self.LeftTree.filterText){
|
var num = 0;
|
||||||
for(var i in self.Librarys){
|
for(var i in self.Librarys){
|
||||||
var item = self.Librarys[i];
|
var item = self.Librarys[i];
|
||||||
|
num += parseInt(item.filenum);
|
||||||
|
if(self.LeftTree.filterText){
|
||||||
if(self.LeftTree.defaultOpenkeys.indexOf(item.appid)>-1){
|
if(self.LeftTree.defaultOpenkeys.indexOf(item.appid)>-1){
|
||||||
arr.push({
|
arr.push({
|
||||||
fid:item.appid,
|
fid:item.appid,
|
||||||
fname:item.appname,
|
fname:item.appname,
|
||||||
leaf:item.leaf,
|
leaf:item.leaf,
|
||||||
filenum:item.filenum,
|
filenum:item.filenum,
|
||||||
nosubfilenum:item.nosubfilenum
|
nosubfilenum:item.nosubfilenum,
|
||||||
|
pfname:self.CommonHighlight(item.appname,self.LeftTree.filterText)
|
||||||
});
|
});
|
||||||
}
|
self.LeftTree.defaultOpenkeysSearch.push(item.appid);
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
var num = 0;
|
|
||||||
for(var i in self.Librarys){
|
|
||||||
var item = self.Librarys[i];
|
|
||||||
num += parseInt(item.filenum);
|
|
||||||
arr.push({
|
arr.push({
|
||||||
fid:item.appid,
|
fid:item.appid,
|
||||||
fname:item.appname,
|
fname:item.appname,
|
||||||
leaf:item.leaf,
|
leaf:item.leaf,
|
||||||
filenum:item.filenum,
|
filenum:item.filenum,
|
||||||
nosubfilenum:item.nosubfilenum
|
nosubfilenum:item.nosubfilenum,
|
||||||
|
pfname:self.CommonHighlight(item.appname,self.LeftTree.filterText)
|
||||||
});
|
});
|
||||||
|
self.LeftTree.defaultOpenkeysSearch.push(item.appid);
|
||||||
}
|
}
|
||||||
if(self.Librarys.length>1){
|
|
||||||
|
}
|
||||||
|
if(!self.LeftTree.filterText && self.Librarys.length>1){
|
||||||
arr.unshift({
|
arr.unshift({
|
||||||
fid:'all',
|
fid:'all',
|
||||||
fname:'全部库',
|
fname:'全部库',
|
||||||
|
pfname:'全部库',
|
||||||
filenum:num,
|
filenum:num,
|
||||||
leaf:true
|
leaf:true
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
resolve(arr);
|
resolve(arr);
|
||||||
self.$nextTick(function(){
|
self.$nextTick(function(){
|
||||||
self.LeftGetTreeDataSubstringFinish();
|
self.LeftGetTreeDataSubstringFinish();
|
||||||
@@ -277,11 +288,14 @@
|
|||||||
var num = 0;
|
var num = 0;
|
||||||
for(var i in data.folderdatanum){
|
for(var i in data.folderdatanum){
|
||||||
var item = data.folderdatanum[i];
|
var item = data.folderdatanum[i];
|
||||||
|
self.LeftTree.defaultOpenkeysSearch.push(item.fid);
|
||||||
if(self.LeftTree.filterText){
|
if(self.LeftTree.filterText){
|
||||||
|
item['pfname'] = self.CommonHighlight(item['fname'],self.LeftTree.filterText);
|
||||||
if(self.LeftTree.defaultOpenkeys.indexOf(item.fid)>-1 || self.LeftTree.arrangementLast.indexOf(item.fid)>-1){
|
if(self.LeftTree.defaultOpenkeys.indexOf(item.fid)>-1 || self.LeftTree.arrangementLast.indexOf(item.fid)>-1){
|
||||||
arr.push(item);
|
arr.push(item);
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
|
item['pfname'] = item['fname'];
|
||||||
arr.push(item);
|
arr.push(item);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -300,11 +314,14 @@
|
|||||||
var num = 0;
|
var num = 0;
|
||||||
for(var i in data.folderdatanum){
|
for(var i in data.folderdatanum){
|
||||||
var item = data.folderdatanum[i];
|
var item = data.folderdatanum[i];
|
||||||
|
self.LeftTree.defaultOpenkeysSearch.push(item.fid);
|
||||||
if(self.LeftTree.filterText){
|
if(self.LeftTree.filterText){
|
||||||
|
item['pfname'] = self.CommonHighlight(item['fname'],self.LeftTree.filterText);
|
||||||
if(self.LeftTree.defaultOpenkeys.indexOf(item.fid)>-1 || self.LeftTree.arrangementLast.indexOf(item.fid)>-1){
|
if(self.LeftTree.defaultOpenkeys.indexOf(item.fid)>-1 || self.LeftTree.arrangementLast.indexOf(item.fid)>-1){
|
||||||
arr.push(item);
|
arr.push(item);
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
|
item['pfname'] = item['fname'];
|
||||||
arr.push(item);
|
arr.push(item);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,6 +16,18 @@
|
|||||||
<el-scrollbar class="page-component__scroll">
|
<el-scrollbar class="page-component__scroll">
|
||||||
<div class="content" style="padding: 16px 25px;">
|
<div class="content" style="padding: 16px 25px;">
|
||||||
<el-form ref="form" :model="formdata" label-width="200px">
|
<el-form ref="form" :model="formdata" label-width="200px">
|
||||||
|
<!-- <el-form-item label="本机地址:">
|
||||||
|
<el-input class="maxWidth" v-model="formdata.sitename"></el-input>
|
||||||
|
<p class="tipTxt">用于服务器本机访问</p>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="网络地址:">
|
||||||
|
<el-input class="maxWidth" v-model="formdata.sitename"></el-input>
|
||||||
|
<p class="tipTxt">用于内网其它电脑、手机、平板访问</p>
|
||||||
|
</el-form-item> -->
|
||||||
|
<!-- <el-form-item label="设备号:">
|
||||||
|
<el-input class="maxWidth" v-model="formdata.sitename"></el-input>
|
||||||
|
<p class="tipTxt">服务器识别码,用于与商业功能绑定</p>
|
||||||
|
</el-form-item> -->
|
||||||
<el-form-item label="站点LOGO:">
|
<el-form-item label="站点LOGO:">
|
||||||
<el-upload
|
<el-upload
|
||||||
class="avatar-uploader"
|
class="avatar-uploader"
|
||||||
|
|||||||
@@ -11,6 +11,8 @@
|
|||||||
}
|
}
|
||||||
.avatarstatus .img-circle{
|
.avatarstatus .img-circle{
|
||||||
border-radius: 0;
|
border-radius: 0;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
}
|
}
|
||||||
.page-content .Topcarousel{
|
.page-content .Topcarousel{
|
||||||
line-height: 148px;
|
line-height: 148px;
|
||||||
|
|||||||
@@ -833,10 +833,10 @@
|
|||||||
handleCommandColor(val){
|
handleCommandColor(val){
|
||||||
if(val == 'common'){
|
if(val == 'common'){
|
||||||
<!--{if $opentype=='current'}-->
|
<!--{if $opentype=='current'}-->
|
||||||
window.parent.window.location.hash = '#appid=' + this.imagesData.appid + '&color=' + this.ColorPopver.base;
|
window.parent.window.location.hash = '#color=' + this.ColorPopver.base;
|
||||||
window.parent.window.location.reload()
|
window.parent.window.location.reload()
|
||||||
<!--{else}-->
|
<!--{else}-->
|
||||||
window.location.href = '#appid=' + this.imagesData.appid + '&color=' + this.ColorPopver.base;
|
window.location.href = '#color=' + this.ColorPopver.base;
|
||||||
<!--{/if}-->
|
<!--{/if}-->
|
||||||
}else{
|
}else{
|
||||||
CopyTxt(this,val)
|
CopyTxt(this,val)
|
||||||
@@ -844,7 +844,7 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
handleView(){
|
handleView(){
|
||||||
window.open(SITEURL+this.imagesData.icondata);
|
window.open(this.imagesData.originalimg);
|
||||||
},
|
},
|
||||||
handleShare() {
|
handleShare() {
|
||||||
var self = this;
|
var self = this;
|
||||||
@@ -889,10 +889,10 @@
|
|||||||
},
|
},
|
||||||
handleClickTag(tid){
|
handleClickTag(tid){
|
||||||
<!--{if $opentype=='current'}-->
|
<!--{if $opentype=='current'}-->
|
||||||
window.parent.window.location.hash = '#appid=' + this.imagesData.appid + '&tag=' + tid;
|
window.parent.window.location.hash = '#tag=' + tid;
|
||||||
window.parent.window.location.reload()
|
window.parent.window.location.reload()
|
||||||
<!--{else}-->
|
<!--{else}-->
|
||||||
window.location.href = '#appid=' + this.imagesData.appid + '&tag=' + tid;
|
window.location.href = '#tag=' + tid;
|
||||||
<!--{/if}-->
|
<!--{/if}-->
|
||||||
|
|
||||||
},
|
},
|
||||||
@@ -1024,7 +1024,7 @@
|
|||||||
<span class="title">版本信息:</span><span class="mes">Beat 1</span>
|
<span class="title">版本信息:</span><span class="mes">Beat 1</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="aboutlist">
|
<div class="aboutlist">
|
||||||
<span class="title">版权信息:</span><span class="mes">Powered By oaooa PicHome © 2020-2021 欧奥图文</span>
|
<span class="title">版权信息:</span><span class="mes">Powered By oaooa PicHome © 2020-2022 欧奥图文</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="aboutlist">
|
<div class="aboutlist">
|
||||||
<span class="title">网站地址:</span><span class="mes"><a class="address" href="https://oaooa.com/" target="_blank">oaooa.com</a></span>
|
<span class="title">网站地址:</span><span class="mes"><a class="address" href="https://oaooa.com/" target="_blank">oaooa.com</a></span>
|
||||||
@@ -1044,11 +1044,11 @@
|
|||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
cancelButtonText: '取消',
|
cancelButtonText: '取消',
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
}).then(() => {
|
}).then(function() {
|
||||||
jQuery.get('user.php?mod=login&op=logging&action=logout&formhash={FORMHASH}&t='+new Date().getTime(),function(data){
|
jQuery.get('user.php?mod=login&op=logging&action=logout&formhash={FORMHASH}&t='+new Date().getTime(),function(data){
|
||||||
window.location.reload();
|
window.location.reload();
|
||||||
});
|
});
|
||||||
}).catch(() => {
|
}).catch(function() {
|
||||||
|
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -2,13 +2,19 @@
|
|||||||
<link rel="stylesheet" type="text/css" href="{MOD_PATH}/css/pc/index.css?{VERHASH}"/>
|
<link rel="stylesheet" type="text/css" href="{MOD_PATH}/css/pc/index.css?{VERHASH}"/>
|
||||||
<link rel="stylesheet" type="text/css" href="{MOD_PATH}/css/pc/screen.css?{VERHASH}"/>
|
<link rel="stylesheet" type="text/css" href="{MOD_PATH}/css/pc/screen.css?{VERHASH}"/>
|
||||||
<link rel="stylesheet" type="text/css" href="{MOD_PATH}/css/pc/image.css?{VERHASH}"/>
|
<link rel="stylesheet" type="text/css" href="{MOD_PATH}/css/pc/image.css?{VERHASH}"/>
|
||||||
|
<link rel="stylesheet" type="text/css" href="{MOD_PATH}/css/pc/components/collect.css?{VERHASH}"/>
|
||||||
|
<link rel="stylesheet" type="text/css" href="{MOD_PATH}/css/pc/components/addcollect.css?{VERHASH}"/>
|
||||||
<script type="text/javascript" src="{MOD_PATH}/js/pc/plug/wavesurfer.js?{VERHASH}"></script>
|
<script type="text/javascript" src="{MOD_PATH}/js/pc/plug/wavesurfer.js?{VERHASH}"></script>
|
||||||
<script type="text/javascript" src="{MOD_PATH}/js/pc/plug/DomResize.js?{VERHASH}"></script>
|
<script type="text/javascript" src="{MOD_PATH}/js/pc/plug/DomResize.js?{VERHASH}"></script>
|
||||||
|
<!-- <script type="text/javascript" src="{MOD_PATH}/js/pc/components/collect.js?{VERHASH}"></script> -->
|
||||||
|
<script type="text/javascript" src="{MOD_PATH}/js/pc/components/collectdialog.js?{VERHASH}"></script>
|
||||||
|
<script type="text/javascript" src="{MOD_PATH}/js/pc/components/addcollect.js?{VERHASH}"></script>
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
.el-header{
|
.el-header{
|
||||||
border-bottom: 0;
|
border-bottom: 0;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
<!--{template mobile/components/classify}-->
|
||||||
<!--{template pc/frame/header_simple_end}-->
|
<!--{template pc/frame/header_simple_end}-->
|
||||||
<div id="dzzoffice">
|
<div id="dzzoffice">
|
||||||
<el-scrollbar id="container_scroll">
|
<el-scrollbar id="container_scroll">
|
||||||
@@ -41,6 +47,7 @@
|
|||||||
el: '#dzzoffice',
|
el: '#dzzoffice',
|
||||||
data: function() {
|
data: function() {
|
||||||
return $.extend({},JsCommonData,JsHeaderData,JsImageData,{
|
return $.extend({},JsCommonData,JsHeaderData,JsImageData,{
|
||||||
|
DocumentLeftWidth:0,
|
||||||
DocumentResize:0,
|
DocumentResize:0,
|
||||||
DocumentTemplate:1,
|
DocumentTemplate:1,
|
||||||
OpenDetailType:'new',
|
OpenDetailType:'new',
|
||||||
@@ -122,6 +129,7 @@
|
|||||||
mounted() {
|
mounted() {
|
||||||
var self = this;
|
var self = this;
|
||||||
this.HeaderPopoverSearchMounted();
|
this.HeaderPopoverSearchMounted();
|
||||||
|
this.ImageMounted();
|
||||||
window.onresize = function(){
|
window.onresize = function(){
|
||||||
self.LayoutStructure();
|
self.LayoutStructure();
|
||||||
if(!self.ImageParams.loading){
|
if(!self.ImageParams.loading){
|
||||||
|
|||||||
@@ -2,8 +2,13 @@
|
|||||||
<link rel="stylesheet" type="text/css" href="{MOD_PATH}/css/pc/index.css?{VERHASH}"/>
|
<link rel="stylesheet" type="text/css" href="{MOD_PATH}/css/pc/index.css?{VERHASH}"/>
|
||||||
<link rel="stylesheet" type="text/css" href="{MOD_PATH}/css/pc/screen.css?{VERHASH}"/>
|
<link rel="stylesheet" type="text/css" href="{MOD_PATH}/css/pc/screen.css?{VERHASH}"/>
|
||||||
<link rel="stylesheet" type="text/css" href="{MOD_PATH}/css/pc/image.css?{VERHASH}"/>
|
<link rel="stylesheet" type="text/css" href="{MOD_PATH}/css/pc/image.css?{VERHASH}"/>
|
||||||
|
<link rel="stylesheet" type="text/css" href="{MOD_PATH}/css/pc/components/collect.css?{VERHASH}"/>
|
||||||
|
<link rel="stylesheet" type="text/css" href="{MOD_PATH}/css/pc/components/addcollect.css?{VERHASH}"/>
|
||||||
<script type="text/javascript" src="{MOD_PATH}/js/pc/plug/wavesurfer.js?{VERHASH}"></script>
|
<script type="text/javascript" src="{MOD_PATH}/js/pc/plug/wavesurfer.js?{VERHASH}"></script>
|
||||||
<script type="text/javascript" src="{MOD_PATH}/js/pc/plug/DomResize.js?{VERHASH}"></script>
|
<script type="text/javascript" src="{MOD_PATH}/js/pc/plug/DomResize.js?{VERHASH}"></script>
|
||||||
|
<!-- <script type="text/javascript" src="{MOD_PATH}/js/pc/components/collect.js?{VERHASH}"></script> -->
|
||||||
|
<script type="text/javascript" src="{MOD_PATH}/js/pc/components/collectdialog.js?{VERHASH}"></script>
|
||||||
|
<script type="text/javascript" src="{MOD_PATH}/js/pc/components/addcollect.js?{VERHASH}"></script>
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
.el-header{
|
.el-header{
|
||||||
border-bottom: 0;
|
border-bottom: 0;
|
||||||
@@ -173,6 +178,7 @@
|
|||||||
mounted() {
|
mounted() {
|
||||||
var self = this;
|
var self = this;
|
||||||
this.HeaderPopoverSearchMounted();
|
this.HeaderPopoverSearchMounted();
|
||||||
|
this.ImageMounted();
|
||||||
$(document).resize(function(){
|
$(document).resize(function(){
|
||||||
self.LayoutStructure();
|
self.LayoutStructure();
|
||||||
self.DocumentResize += 1;
|
self.DocumentResize += 1;
|
||||||
|
|||||||
@@ -91,17 +91,19 @@
|
|||||||
<div class="h-center">
|
<div class="h-center">
|
||||||
</div>
|
</div>
|
||||||
<div class="h-right" style="overflow: hidden;">
|
<div class="h-right" style="overflow: hidden;">
|
||||||
<el-button type="primary" style="float: left;" size="small" icon="el-icon-circle-plus-outline" @click="catalogue.dialogVisible = true">新建库</el-button>
|
<el-button type="primary" style="float: left;" size="small" icon="el-icon-circle-plus-outline" @click="CreateNewLubrary">新建库</el-button>
|
||||||
<div class="r-option" style="float: left;margin-left: 8px;">
|
<div class="r-option" style="float: left;margin-left: 8px;">
|
||||||
<el-dropdown v-cloak trigger="click" @command="handleavatar">
|
<el-dropdown v-cloak trigger="click" @command="handleavatar">
|
||||||
<div id="dzz_avatar_img">{eval echo avatar_block($_G[uid]);} </div>
|
<div id="dzz_avatar_img" class="small">{eval echo avatar_block($_G[uid]);} </div>
|
||||||
<el-dropdown-menu slot="dropdown" style="width: 165px;">
|
<el-dropdown-menu slot="dropdown" style="width: 165px;">
|
||||||
|
<!-- <el-dropdown-item command="collection">收藏夹</el-dropdown-item> -->
|
||||||
<el-dropdown-item command="personal">个人设置</el-dropdown-item>
|
<el-dropdown-item command="personal">个人设置</el-dropdown-item>
|
||||||
<el-dropdown-item command="help">帮助文档</el-dropdown-item>
|
<el-dropdown-item command="help">帮助文档</el-dropdown-item>
|
||||||
<el-dropdown-item command="problem">问题反馈</el-dropdown-item>
|
<el-dropdown-item command="problem">问题反馈</el-dropdown-item>
|
||||||
<el-divider></el-divider>
|
<el-divider></el-divider>
|
||||||
<el-dropdown-item command="setting">站点设置</el-dropdown-item>
|
<el-dropdown-item command="setting">站点设置</el-dropdown-item>
|
||||||
<el-dropdown-item command="library">库设置</el-dropdown-item>
|
<el-dropdown-item command="library">库设置</el-dropdown-item>
|
||||||
|
<!-- <el-dropdown-item command="orguser">用户管理</el-dropdown-item> -->
|
||||||
<el-dropdown-item command="system">系统工具</el-dropdown-item>
|
<el-dropdown-item command="system">系统工具</el-dropdown-item>
|
||||||
<el-divider></el-divider>
|
<el-divider></el-divider>
|
||||||
<el-dropdown-item command="about">关于PicHome</el-dropdown-item>
|
<el-dropdown-item command="about">关于PicHome</el-dropdown-item>
|
||||||
@@ -247,7 +249,7 @@
|
|||||||
<div class="operation">
|
<div class="operation">
|
||||||
<template>
|
<template>
|
||||||
<el-tooltip :enterable="false" effect="dark" content="更新" placement="top" v-if="parseInt(scope.row.connect) == 1">
|
<el-tooltip :enterable="false" effect="dark" content="更新" placement="top" v-if="parseInt(scope.row.connect) == 1">
|
||||||
<i class="icon el-icon-refresh" @click="handleRefresh(scope.row.appid)" :class="{loading:parseInt(scope.row.state)==1||parseInt(scope.row.state)==2||parseInt(scope.row.state)==3}"></i>
|
<i class="icon ri-refresh-line" style="vertical-align: sub;" @click="handleRefresh(scope.row.appid)" :class="{loading:parseInt(scope.row.state)==1||parseInt(scope.row.state)==2||parseInt(scope.row.state)==3}"></i>
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
<el-tooltip :enterable="false" effect="dark" content="设置" placement="top">
|
<el-tooltip :enterable="false" effect="dark" content="设置" placement="top">
|
||||||
<i class="icon el-icon-setting" @click="handleSetting(scope.row.appid,scope.row.appname)"></i>
|
<i class="icon el-icon-setting" @click="handleSetting(scope.row.appid,scope.row.appname)"></i>
|
||||||
@@ -299,7 +301,7 @@
|
|||||||
<div class="block">
|
<div class="block">
|
||||||
<div class="text">连接状态:</div>
|
<div class="text">连接状态:</div>
|
||||||
|
|
||||||
<div class="message">当连接状态为<span style="color: #e6a23c;">连接中断</span>时,库内容将不会在页面中显示。可能原因为库目录被移动或者删除,如果是移动了库目录位置,可以先删除掉库,然后重新添加。</div>
|
<div class="message">当连接状态为<span style="color: #e6a23c;">连接中断</span>时,库内容将不会在页面中显示。可能原因为库目录被移动或者删除,如果是移动了库目录位置,可以在设置中修改库目录位置。</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="block">
|
<div class="block">
|
||||||
<div class="text">转缩略图:</div>
|
<div class="text">转缩略图:</div>
|
||||||
@@ -317,7 +319,7 @@
|
|||||||
@open="cataloguedialogOpen">
|
@open="cataloguedialogOpen">
|
||||||
<div style="padding-bottom:16px">
|
<div style="padding-bottom:16px">
|
||||||
<span style="color: var(--header-text);">库类型:</span>
|
<span style="color: var(--header-text);">库类型:</span>
|
||||||
<el-radio-group v-model="catalogue.type">
|
<el-radio-group v-model="catalogue.type" :disabled="catalogue.dialogtype=='add'?false:true">
|
||||||
<el-radio label="0">Eagle库</el-radio>
|
<el-radio label="0">Eagle库</el-radio>
|
||||||
<el-radio label="2">billfish</el-radio>
|
<el-radio label="2">billfish</el-radio>
|
||||||
<el-radio label="1">普通目录</el-radio>
|
<el-radio label="1">普通目录</el-radio>
|
||||||
@@ -378,7 +380,7 @@
|
|||||||
<el-button type="warning" @click="ImportDataDialogClick('eagle')" size="small">作为Eagle库导入</el-button>
|
<el-button type="warning" @click="ImportDataDialogClick('eagle')" size="small">作为Eagle库导入</el-button>
|
||||||
</span>
|
</span>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
<el-dialog :title="dialog.title" :visible.sync="dialog.Visible" :close-on-click-modal="false">
|
<el-dialog :title="dialog.title" :visible.sync="dialog.Visible" :close-on-click-modal="false" :show-close="formdta.loading?false:true">
|
||||||
<el-form :model="formdta" label-width="140px">
|
<el-form :model="formdta" label-width="140px">
|
||||||
<!-- <el-form-item label="开放权限:">
|
<!-- <el-form-item label="开放权限:">
|
||||||
<el-radio-group v-model="formdta.personal">
|
<el-radio-group v-model="formdta.personal">
|
||||||
@@ -386,13 +388,21 @@
|
|||||||
<el-radio :label="1">私有</el-radio>
|
<el-radio :label="1">私有</el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</el-form-item> -->
|
</el-form-item> -->
|
||||||
|
<el-form-item label="库名称:">
|
||||||
|
<el-input v-model="formdta.appname"></el-input>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="库位置:">
|
||||||
|
<el-input v-model="formdta.path" readonly style="border: 0;">
|
||||||
|
<i slot="suffix" style="cursor: pointer;" class="el-input__icon el-icon-edit" @click="FormdtaPathClick"></i>
|
||||||
|
</el-input>
|
||||||
|
</el-form-item>
|
||||||
<el-form-item label="开放分享:">
|
<el-form-item label="开放分享:">
|
||||||
<el-switch v-model="formdta.share" active-value="1" inactive-value="0"></el-switch>
|
<el-switch v-model="formdta.share" active-value="1" inactive-value="0"></el-switch>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="开放下载:">
|
<el-form-item label="开放下载:">
|
||||||
<el-switch v-model="formdta.download" active-value="1" inactive-value="0"></el-switch>
|
<el-switch v-model="formdta.download" active-value="1" inactive-value="0"></el-switch>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<template v-if="formdta.eagle">
|
<template v-if="parseInt(formdta.eagle)==1">
|
||||||
<el-form-item label="允许导入文件:">
|
<el-form-item label="允许导入文件:">
|
||||||
<el-input type="textarea" v-model="formdta.allowext"></el-input>
|
<el-input type="textarea" v-model="formdta.allowext"></el-input>
|
||||||
<p class="tipTxt">多个使用英文 " , " 隔开。1、"*.png" 代表所有png文件,2、"风景*.jpg"代表所有风景开头的png文件</p>
|
<p class="tipTxt">多个使用英文 " , " 隔开。1、"*.png" 代表所有png文件,2、"风景*.jpg"代表所有风景开头的png文件</p>
|
||||||
@@ -432,8 +442,8 @@
|
|||||||
<!-- <el-popconfirm title="确定删除该库?确定后无法恢复" @Confirm="deleteLibrary">
|
<!-- <el-popconfirm title="确定删除该库?确定后无法恢复" @Confirm="deleteLibrary">
|
||||||
<el-button slot="reference" style="float: left;">删除</el-button>
|
<el-button slot="reference" style="float: left;">删除</el-button>
|
||||||
</el-popconfirm> -->
|
</el-popconfirm> -->
|
||||||
<el-button @click="dialog.Visible = false">取 消</el-button>
|
<el-button @click="dialog.Visible = false" :disabled="formdta.loading">取 消</el-button>
|
||||||
<el-button type="primary" @click="handleSubmit">确 定</el-button>
|
<el-button type="primary" @click="handleSubmit" :loading="formdta.loading">确 定</el-button>
|
||||||
</div>
|
</div>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
</el-container>
|
</el-container>
|
||||||
@@ -451,7 +461,10 @@
|
|||||||
Visible:false,
|
Visible:false,
|
||||||
},
|
},
|
||||||
formdta:{
|
formdta:{
|
||||||
|
appname:'',
|
||||||
|
loading:false,
|
||||||
appid:'',
|
appid:'',
|
||||||
|
path:'',
|
||||||
share:'0',
|
share:'0',
|
||||||
getinfo:'0',
|
getinfo:'0',
|
||||||
download:'0',
|
download:'0',
|
||||||
@@ -461,10 +474,14 @@
|
|||||||
eagle:0,
|
eagle:0,
|
||||||
allowext:'',
|
allowext:'',
|
||||||
notallowext:'',
|
notallowext:'',
|
||||||
|
charset:'',
|
||||||
|
|
||||||
},
|
},
|
||||||
newscreens:[],
|
newscreens:[],
|
||||||
newClassfiy:[],
|
newClassfiy:[],
|
||||||
catalogue:{
|
catalogue:{
|
||||||
|
appid:'',
|
||||||
|
dialogtype:'',
|
||||||
search:'',
|
search:'',
|
||||||
defaultsearch:'',
|
defaultsearch:'',
|
||||||
searchStatus:false,
|
searchStatus:false,
|
||||||
@@ -481,7 +498,8 @@
|
|||||||
charset:'utf8',
|
charset:'utf8',
|
||||||
force:0
|
force:0
|
||||||
},
|
},
|
||||||
ImportDataVisible:false
|
ImportDataVisible:false,
|
||||||
|
getinfonumtimestatus:''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch:{
|
watch:{
|
||||||
@@ -492,6 +510,26 @@
|
|||||||
this.GetCatalogueSelect();
|
this.GetCatalogueSelect();
|
||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
|
FormdtaPathClick(){
|
||||||
|
this.catalogue.dialogtype = 'setting';
|
||||||
|
this.catalogue.type = this.formdta.type;
|
||||||
|
this.catalogue.appid = this.formdta.appid;
|
||||||
|
var showVal = this.formdta.path;
|
||||||
|
showVal = showVal.split('/');
|
||||||
|
showVal.pop();
|
||||||
|
var newshowVal = showVal.join('/');
|
||||||
|
this.catalogue.showVal = '';
|
||||||
|
this.catalogue.search = newshowVal;
|
||||||
|
this.catalogue.defaultsearch = newshowVal;
|
||||||
|
this.catalogue.searchStatus = true;
|
||||||
|
this.catalogue.charset = this.formdta.charset;
|
||||||
|
this.dialog.Visible = false;
|
||||||
|
this.catalogue.dialogVisible = true;
|
||||||
|
},
|
||||||
|
CreateNewLubrary(){
|
||||||
|
this.catalogue.dialogtype = 'add';
|
||||||
|
this.catalogue.dialogVisible = true;
|
||||||
|
},
|
||||||
TableSortable(){
|
TableSortable(){
|
||||||
var _this = this;
|
var _this = this;
|
||||||
var tbody = document.querySelector('.el-table__body-wrapper tbody');
|
var tbody = document.querySelector('.el-table__body-wrapper tbody');
|
||||||
@@ -531,6 +569,7 @@
|
|||||||
handleSubmit(){
|
handleSubmit(){
|
||||||
var self = this;
|
var self = this;
|
||||||
var filter = [];
|
var filter = [];
|
||||||
|
self.formdta.loading = true;
|
||||||
for(var c in self.newscreens){
|
for(var c in self.newscreens){
|
||||||
var citem = self.newscreens[c];
|
var citem = self.newscreens[c];
|
||||||
if(self.formdta.screen.indexOf(citem.key)>-1){
|
if(self.formdta.screen.indexOf(citem.key)>-1){
|
||||||
@@ -561,6 +600,7 @@
|
|||||||
settingsubmit:true,
|
settingsubmit:true,
|
||||||
formhash:'{FORMHASH}',
|
formhash:'{FORMHASH}',
|
||||||
appid:self.formdta.appid,
|
appid:self.formdta.appid,
|
||||||
|
appname:self.formdta.appname,
|
||||||
getinfo:self.formdta.getinfo,
|
getinfo:self.formdta.getinfo,
|
||||||
share:self.formdta.share,
|
share:self.formdta.share,
|
||||||
download:self.formdta.download,
|
download:self.formdta.download,
|
||||||
@@ -571,6 +611,13 @@
|
|||||||
$.post(MOD_URL+'&op=library&operation=fetch',param,function(data){
|
$.post(MOD_URL+'&op=library&operation=fetch',param,function(data){
|
||||||
self.dialog.Visible = false;
|
self.dialog.Visible = false;
|
||||||
if(data.success){
|
if(data.success){
|
||||||
|
for(var x in self.tableData){
|
||||||
|
if(self.tableData[x].appid == self.formdta.appid){
|
||||||
|
self.tableData[x].getinfo = self.formdta.getinfo;
|
||||||
|
self.tableData[x].appname = self.formdta.appname;
|
||||||
|
self.tableDataForEach();
|
||||||
|
}
|
||||||
|
}
|
||||||
self.$message({
|
self.$message({
|
||||||
type:'success',
|
type:'success',
|
||||||
message:'设置成功'
|
message:'设置成功'
|
||||||
@@ -578,6 +625,7 @@
|
|||||||
}else{
|
}else{
|
||||||
self.$message.error('设置失败');
|
self.$message.error('设置失败');
|
||||||
}
|
}
|
||||||
|
self.formdta.loading = false;
|
||||||
},'json');
|
},'json');
|
||||||
},
|
},
|
||||||
handleSetting(appid,title){
|
handleSetting(appid,title){
|
||||||
@@ -593,66 +641,72 @@
|
|||||||
var fclassif = [];
|
var fclassif = [];
|
||||||
var fclassif1 = [];
|
var fclassif1 = [];
|
||||||
var ftype = 0;
|
var ftype = 0;
|
||||||
if(data.data.filter){
|
// if(data.data.filter){
|
||||||
for(var fi in data.data.filter){
|
// for(var fi in data.data.filter){
|
||||||
var fiitem = data.data.filter[fi];
|
// var fiitem = data.data.filter[fi];
|
||||||
var fstr = {
|
// var fstr = {
|
||||||
key:fiitem.key,
|
// key:fiitem.key,
|
||||||
text:fiitem.text,
|
// text:fiitem.text,
|
||||||
checked:parseInt(fiitem.checked),
|
// checked:parseInt(fiitem.checked),
|
||||||
};
|
// };
|
||||||
if(fstr.checked){
|
// if(fstr.checked){
|
||||||
fscreen.push(fstr.key)
|
// fscreen.push(fstr.key)
|
||||||
}
|
// }
|
||||||
if(fstr.key=='tag'){
|
// if(fstr.key=='tag'){
|
||||||
self.formdta.type = parseInt(fstr.showtype);
|
// self.formdta.type = parseInt(fstr.showtype);
|
||||||
if(fstr.checked&&fiitem.group){
|
// console.log(self.formdta.type)
|
||||||
ftype = 1;
|
// if(fstr.checked&&fiitem.group){
|
||||||
for(var b in fiitem.group){
|
// ftype = 1;
|
||||||
var bitem = fiitem.group[b];
|
// for(var b in fiitem.group){
|
||||||
for(var n in data.catdata){
|
// var bitem = fiitem.group[b];
|
||||||
var nitem = data.catdata[n];
|
// for(var n in data.catdata){
|
||||||
if(bitem.cid == nitem.cid){
|
// var nitem = data.catdata[n];
|
||||||
if(parseInt(bitem.checked)){
|
// if(bitem.cid == nitem.cid){
|
||||||
fclassif.push(nitem.cid);
|
// if(parseInt(bitem.checked)){
|
||||||
}
|
// fclassif.push(nitem.cid);
|
||||||
self.newClassfiy.push(nitem);
|
// }
|
||||||
fclassif1.push(nitem.cid);
|
// self.newClassfiy.push(nitem);
|
||||||
}
|
// fclassif1.push(nitem.cid);
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
if(data.catdata.length>fclassif1.length){
|
// }
|
||||||
for(var n in data.catdata){
|
// if(data.catdata.length>fclassif1.length){
|
||||||
var nitem = data.catdata[n];
|
// for(var n in data.catdata){
|
||||||
if(fclassif1.indexOf(nitem.cid)<0){
|
// var nitem = data.catdata[n];
|
||||||
self.newClassfiy.push(nitem);
|
// if(fclassif1.indexOf(nitem.cid)<0){
|
||||||
}
|
// self.newClassfiy.push(nitem);
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}else{
|
// }
|
||||||
self.newClassfiy = data.catdata;
|
// }else{
|
||||||
}
|
// self.newClassfiy = data.catdata;
|
||||||
|
// }
|
||||||
}
|
|
||||||
self.newscreens.push(fstr);
|
|
||||||
}
|
|
||||||
}else{
|
|
||||||
self.newClassfiy = data.catdata;
|
|
||||||
self.newscreens = self.screens;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
// }
|
||||||
|
// self.newscreens.push(fstr);
|
||||||
|
// }
|
||||||
|
// }else{
|
||||||
|
// self.newClassfiy = data.catdata;
|
||||||
|
// self.newscreens = self.screens;
|
||||||
|
// }
|
||||||
|
var showVal = data.data.convertpath.replace(/\\/g,"/");
|
||||||
self.dialog.Visible = true;
|
self.dialog.Visible = true;
|
||||||
self.formdta = {
|
self.formdta = {
|
||||||
appid:appid,
|
appid:appid,
|
||||||
|
appname:data.data.appname,
|
||||||
|
path:showVal,
|
||||||
|
type:data.data.type,
|
||||||
getinfo:data.data.getinfo,
|
getinfo:data.data.getinfo,
|
||||||
share:data.data.share,
|
share:data.data.share,
|
||||||
download:data.data.download,
|
download:data.data.download,
|
||||||
screen:fscreen,
|
screen:fscreen,
|
||||||
classif:fclassif,
|
classif:fclassif,
|
||||||
type:ftype,
|
charset:data.data.charset,
|
||||||
|
// type:ftype,
|
||||||
eagle:parseInt(data.data.type),
|
eagle:parseInt(data.data.type),
|
||||||
allowext:data.data.allowext,
|
allowext:data.data.allowext,
|
||||||
notallowext:data.data.notallowext,
|
notallowext:data.data.notallowext,
|
||||||
|
loading:false
|
||||||
};
|
};
|
||||||
}else{
|
}else{
|
||||||
self.$message.error('数据获取失败');
|
self.$message.error('数据获取失败');
|
||||||
@@ -660,6 +714,9 @@
|
|||||||
},'json');
|
},'json');
|
||||||
},
|
},
|
||||||
cataloguedialogOpen(){
|
cataloguedialogOpen(){
|
||||||
|
if(this.catalogue.dialogtype == 'setting'){
|
||||||
|
return false;
|
||||||
|
}
|
||||||
var dzzroot = '$dzzroot';
|
var dzzroot = '$dzzroot';
|
||||||
var defaultVal = [];
|
var defaultVal = [];
|
||||||
var showVal = '';
|
var showVal = '';
|
||||||
@@ -668,6 +725,7 @@
|
|||||||
defaultVal = str.split('/');
|
defaultVal = str.split('/');
|
||||||
showVal = defaultVal.join('/');
|
showVal = defaultVal.join('/');
|
||||||
}
|
}
|
||||||
|
|
||||||
this.catalogue.search = '';
|
this.catalogue.search = '';
|
||||||
this.catalogue.defaultsearch = '';
|
this.catalogue.defaultsearch = '';
|
||||||
this.catalogue.searchStatus = '';
|
this.catalogue.searchStatus = '';
|
||||||
@@ -675,14 +733,14 @@
|
|||||||
this.catalogue.type = '0';
|
this.catalogue.type = '0';
|
||||||
this.catalogue.nodeId = 0;
|
this.catalogue.nodeId = 0;
|
||||||
this.catalogue.parent = [];
|
this.catalogue.parent = [];
|
||||||
|
this.catalogue.showVal = '';
|
||||||
this.catalogue.showVal = showVal;
|
|
||||||
this.catalogue.charset = 'utf8';
|
this.catalogue.charset = 'utf8';
|
||||||
this.catalogue.force = 0;
|
this.catalogue.force = 0;
|
||||||
if(this.catalogue.parentnode){
|
if(this.catalogue.parentnode){
|
||||||
this.catalogue.parentnode.childNodes = []
|
this.catalogue.parentnode.childNodes = []
|
||||||
this.LoadNodeTree(this.catalogue.parentnode,this.catalogue.parentresolve);
|
this.LoadNodeTree(this.catalogue.parentnode,this.catalogue.parentresolve);
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
ImportDataDialogClick(type){
|
ImportDataDialogClick(type){
|
||||||
if(type == 'eagle'){
|
if(type == 'eagle'){
|
||||||
@@ -748,12 +806,10 @@
|
|||||||
|
|
||||||
}else{
|
}else{
|
||||||
param['path'] = self.catalogue.defaultsearch+'/'+node.data.label;
|
param['path'] = self.catalogue.defaultsearch+'/'+node.data.label;
|
||||||
|
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
param['path'] = self.catalogue.search;
|
param['path'] = self.catalogue.search;
|
||||||
}
|
}
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
if(node.level > 0){
|
if(node.level > 0){
|
||||||
if(node.level > 1){
|
if(node.level > 1){
|
||||||
@@ -837,21 +893,45 @@
|
|||||||
self.$message.error('请选择路径');
|
self.$message.error('请选择路径');
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
var url = MOD_URL+'&op=library&operation=addlibrary';
|
||||||
|
if(this.catalogue.dialogtype == 'setting'){
|
||||||
|
url = MOD_URL+'&op=library&operation=changePath';
|
||||||
|
var param = {
|
||||||
|
appid:self.catalogue.appid,
|
||||||
|
path:self.catalogue.showVal,
|
||||||
|
type:self.catalogue.type,
|
||||||
|
charset:self.catalogue.charset
|
||||||
|
}
|
||||||
|
}else{
|
||||||
var param = {
|
var param = {
|
||||||
path:self.catalogue.showVal,
|
path:self.catalogue.showVal,
|
||||||
type:self.catalogue.type,
|
type:self.catalogue.type,
|
||||||
charset:self.catalogue.charset
|
charset:self.catalogue.charset
|
||||||
}
|
}
|
||||||
if(self.catalogue.type == 1 && self.catalogue.force){
|
}
|
||||||
|
|
||||||
|
if(parseInt(self.catalogue.type) == 1 && self.catalogue.force){
|
||||||
param['force'] = 1;
|
param['force'] = 1;
|
||||||
}
|
}
|
||||||
$.post(MOD_URL+'&op=library&operation=addlibrary',param,function(data){
|
$.post(url,param,function(data){
|
||||||
if(data.tips){
|
if(data.tips){
|
||||||
self.ImportDataVisible = true;
|
self.ImportDataVisible = true;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if(data.error){
|
if(data.error){
|
||||||
self.$message.error(data.error);
|
self.$message.error(data.error);
|
||||||
|
}else{
|
||||||
|
if(self.catalogue.dialogtype == 'setting'){
|
||||||
|
// for(var a in self.tableData){
|
||||||
|
// if(self.tableData[a].appid == param.appid){
|
||||||
|
// self.tableData[a].path = param.path;
|
||||||
|
// }
|
||||||
|
// }
|
||||||
|
// self.$message({
|
||||||
|
// message: '修改成功',
|
||||||
|
// type: 'success'
|
||||||
|
// });
|
||||||
|
window.location.reload();
|
||||||
}else{
|
}else{
|
||||||
self.$message({
|
self.$message({
|
||||||
message: '添加成功',
|
message: '添加成功',
|
||||||
@@ -862,7 +942,12 @@
|
|||||||
fdata['filenum'] = 0;
|
fdata['filenum'] = 0;
|
||||||
fdata['percent'] = 0;
|
fdata['percent'] = 0;
|
||||||
fdata['connect'] = 1;
|
fdata['connect'] = 1;
|
||||||
|
fdata['type'] = self.catalogue.type;
|
||||||
|
fdata['getinfonum'] = 0;
|
||||||
|
|
||||||
self.tableData.push(fdata);
|
self.tableData.push(fdata);
|
||||||
|
}
|
||||||
|
|
||||||
self.catalogue.dialogVisible = false;
|
self.catalogue.dialogVisible = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -884,10 +969,8 @@
|
|||||||
index = i;
|
index = i;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(self.tableData[index]['time']){
|
|
||||||
clearInterval(self.tableData[index]['time']);
|
|
||||||
}
|
|
||||||
self.tableData.splice(index,1);
|
self.tableData.splice(index,1);
|
||||||
|
self.tableDataForEach();
|
||||||
}else{
|
}else{
|
||||||
self.$message.error('删除失败');
|
self.$message.error('删除失败');
|
||||||
}
|
}
|
||||||
@@ -902,41 +985,63 @@
|
|||||||
if(parseInt(self.tableData[i].state) == 1 || parseInt(self.tableData[i].state) == 2 || parseInt(self.tableData[i].state) == 3){
|
if(parseInt(self.tableData[i].state) == 1 || parseInt(self.tableData[i].state) == 2 || parseInt(self.tableData[i].state) == 3){
|
||||||
self.handleimplement(i,self.tableData[i].appid)
|
self.handleimplement(i,self.tableData[i].appid)
|
||||||
}
|
}
|
||||||
self.getinfonum(self.tableData[i]);
|
self.tableDataForEach();
|
||||||
}
|
}
|
||||||
self.$nextTick(function(){
|
self.$nextTick(function(){
|
||||||
self.TableSortable();
|
self.TableSortable();
|
||||||
});
|
});
|
||||||
},'json');
|
},'json');
|
||||||
},
|
},
|
||||||
getinfonum(item){
|
tableDataForEach(){
|
||||||
var self = this;
|
var self = this;
|
||||||
if(parseInt(item.state) == 4 && parseInt(item.type) == 1 && parseInt(item.getinfo) == 1 && parseInt(item.getinfonum)<parseInt(item.filenum)){
|
var isInterval = false;
|
||||||
var index = 0;
|
|
||||||
for(var i in self.tableData){
|
for(var i in self.tableData){
|
||||||
if(self.tableData[i].appid == item.appid){
|
var item = self.tableData[i];
|
||||||
index = i;
|
if(parseInt(item.state) == 4 && parseInt(item.type) == 1 && parseInt(item.getinfo) == 1 && parseInt(item.getinfonum)<parseInt(item.filenum)){
|
||||||
|
isInterval = true;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(!self.tableData[index]['getinfotime']){
|
if(isInterval){
|
||||||
self.tableData[index]['getinfotime'] = '';
|
self.getinfonumtime();
|
||||||
|
}else{
|
||||||
|
if(self.getinfonumtimestatus){
|
||||||
|
clearInterval(self.getinfonumtimestatus);
|
||||||
}
|
}
|
||||||
this.getinfonumtime(index,item.appid);
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
getinfonumtime(index,appid){
|
getinfonumtime(){
|
||||||
var self = this;
|
var self = this;
|
||||||
self.tableData[index]['getinfotime'] = setInterval(function(){
|
self.getinfonumtimestatus = setInterval(function(){
|
||||||
$.post(MOD_URL+'&op=library&operation=getinfonum',{
|
$.get(MOD_URL+'&op=library&operation=getinfonum',function(data){
|
||||||
appid:appid
|
var status = true;
|
||||||
},function(data){
|
for(var i in self.tableData){
|
||||||
if(parseInt(self.tableData[index].getinfonum)==parseInt(self.tableData[index].filenum)){
|
for(var a in data.data){
|
||||||
clearInterval(self.tableData[index]['getinfotime']);
|
if(self.tableData[i].appid == a){
|
||||||
|
if(parseInt(data.data[a])>0){
|
||||||
|
self.tableData[i].getinfonum = data.data[a];
|
||||||
}else{
|
}else{
|
||||||
self.tableData[index].getinfonum = data.data.appid;
|
self.tableData[i].getinfonum = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
for(var x in self.tableData){
|
||||||
|
for(var t in data.data){
|
||||||
|
if(self.tableData[x].appid == t){
|
||||||
|
if(parseInt(self.tableData[x].filenum) != parseInt(data.data[t])){
|
||||||
|
status = false;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if(status){
|
||||||
|
clearInterval(self.getinfonumtimestatus);
|
||||||
}
|
}
|
||||||
},'json');
|
},'json');
|
||||||
},8000)
|
},5000)
|
||||||
|
|
||||||
},
|
},
|
||||||
handleRefresh(appid){
|
handleRefresh(appid){
|
||||||
@@ -1052,6 +1157,12 @@
|
|||||||
},
|
},
|
||||||
handleavatar(type) {//头像点击
|
handleavatar(type) {//头像点击
|
||||||
switch(type){
|
switch(type){
|
||||||
|
case 'collection':
|
||||||
|
window.location.href = DZZSCRIPT + '?mod=collection';
|
||||||
|
break;
|
||||||
|
case 'orguser':
|
||||||
|
window.open(SITEURL+'admin.php?mod=orguser');
|
||||||
|
break;
|
||||||
case 'personal':
|
case 'personal':
|
||||||
window.location.href = MOD_URL + '&op=user&do=personal';
|
window.location.href = MOD_URL + '&op=user&do=personal';
|
||||||
break;
|
break;
|
||||||
@@ -1080,7 +1191,7 @@
|
|||||||
<span class="title">版本信息:</span><span class="mes">$_G[setting][version]</span>
|
<span class="title">版本信息:</span><span class="mes">$_G[setting][version]</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="aboutlist">
|
<div class="aboutlist">
|
||||||
<span class="title">版权信息:</span><span class="mes">Powered By oaooa PicHome © 2020-2021 欧奥图文</span>
|
<span class="title">版权信息:</span><span class="mes">Powered By oaooa PicHome © 2020-2022 欧奥图文</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="aboutlist">
|
<div class="aboutlist">
|
||||||
<span class="title">网站地址:</span><span class="mes"><a class="address" href="https://oaooa.com/" target="_blank">oaooa.com</a></span>
|
<span class="title">网站地址:</span><span class="mes"><a class="address" href="https://oaooa.com/" target="_blank">oaooa.com</a></span>
|
||||||
@@ -1100,11 +1211,11 @@
|
|||||||
confirmButtonText: '确定',
|
confirmButtonText: '确定',
|
||||||
cancelButtonText: '取消',
|
cancelButtonText: '取消',
|
||||||
type: 'warning'
|
type: 'warning'
|
||||||
}).then(() => {
|
}).then(function() {
|
||||||
jQuery.get('user.php?mod=login&op=logging&action=logout&formhash={FORMHASH}&t='+new Date().getTime(),function(data){
|
jQuery.get('user.php?mod=login&op=logging&action=logout&formhash={FORMHASH}&t='+new Date().getTime(),function(data){
|
||||||
window.location.reload();
|
window.location.reload();
|
||||||
});
|
});
|
||||||
}).catch(() => {
|
}).catch(function() {
|
||||||
|
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -711,7 +711,7 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
handleView(){
|
handleView(){
|
||||||
window.open(SITEURL+this.imagesData.icondata);
|
window.open(this.imagesData.originalimg);
|
||||||
},
|
},
|
||||||
handleShare() {
|
handleShare() {
|
||||||
var self = this;
|
var self = this;
|
||||||
@@ -863,7 +863,7 @@
|
|||||||
<span class="title">版本信息:</span><span class="mes">Beat 1</span>
|
<span class="title">版本信息:</span><span class="mes">Beat 1</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="aboutlist">
|
<div class="aboutlist">
|
||||||
<span class="title">版权信息:</span><span class="mes">Powered By oaooa PicHome © 2020-2021 欧奥图文</span>
|
<span class="title">版权信息:</span><span class="mes">Powered By oaooa PicHome © 2020-2022 欧奥图文</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="aboutlist">
|
<div class="aboutlist">
|
||||||
<span class="title">网站地址:</span><span class="mes"><a class="address" href="https://oaooa.com/" target="_blank">oaooa.com</a></span>
|
<span class="title">网站地址:</span><span class="mes"><a class="address" href="https://oaooa.com/" target="_blank">oaooa.com</a></span>
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -47,7 +47,12 @@ INSERT INTO dzz_hooks (id, app_market_id, `name`, description, `type`, update_ti
|
|||||||
(21, 0, 'pichomegetinfo', ' ', 1, 0, 'dzz\\imageColor\\classes\\getcolor', 1, 0),
|
(21, 0, 'pichomegetinfo', ' ', 1, 0, 'dzz\\imageColor\\classes\\getcolor', 1, 0),
|
||||||
(22, 0, 'pichomegetinfo', ' ', 1, 0, 'dzz\\ffmpeg\\classes\\info', 1, 0),
|
(22, 0, 'pichomegetinfo', ' ', 1, 0, 'dzz\\ffmpeg\\classes\\info', 1, 0),
|
||||||
(23, 0, 'getpichomethumb', ' ', 1, 0, 'dzz\\billfish\\classes\\getpichomethumb', 1, 0),
|
(23, 0, 'getpichomethumb', ' ', 1, 0, 'dzz\\billfish\\classes\\getpichomethumb', 1, 0),
|
||||||
(24, 0, 'pichomevappdelete', ' ', 1, 0, 'dzz\\billfish\\classes\\pichomevappdelete', 1, 0);
|
(24, 0, 'pichomevappdelete', ' ', 1, 0, 'dzz\\billfish\\classes\\pichomevappdelete', 1, 0),
|
||||||
|
(25, 0, 'pichomedatadeleteafter', ' ', 1, 0, 'dzz\\eagle\\classes\\deleteafter', 1, 0),
|
||||||
|
(26, 0, 'pichomevappdelete', ' ', 1, 0, 'dzz\\eagle\\classes\\pichomevappdelete', 1, 0),
|
||||||
|
(27, 0, 'delpichomefolderafter', ' ', 1, 0, 'dzz\\billfish\\classes\\delpichomefolderafter', 1, 0),
|
||||||
|
(28, 0, 'delpichomefolderafter', ' ', 1, 0, 'dzz\\eagle\\classes\\delpichomefolderafter', 1, 0),
|
||||||
|
(29, 0, 'pichomedatadeleteafter', ' ', 1, 0, 'dzz\\local\\classes\\deleteafter', 1, 0);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user