Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
fenzhan_zsb
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
esf
fenzhan_zsb
Commits
dbf0370b
Commit
dbf0370b
authored
Jul 15, 2020
by
liuqiao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改分站上传图片方法
parent
49a91162
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
360pic_inc.php
new_admincp/applications/zsb/views/nj/360pic_inc.php
+5
-4
No files found.
new_admincp/applications/zsb/views/nj/360pic_inc.php
View file @
dbf0370b
...
...
@@ -61,7 +61,7 @@
<div
class=
"addPicBox radius3"
>
<div
class=
"addPicLeft"
>
全景图
</div>
<div
class=
"addPicRight pre"
>
<div
style=
"width: 89px;"
id=
"spanButtonPlaceholder
<?=
$key
?>
"
class=
"addBtn radius5"
>
<div
style=
"width: 89px;"
id=
"spanButtonPlaceholder
360
"
class=
"addBtn radius5"
>
<span>
从电脑选择图片
</span>
</div>
...
...
@@ -170,6 +170,7 @@
const
uploadImgLimit
=
15
;
//最大上传数量
function
uploads_zsb_360
(
id
,
key
)
{
console
.
log
(
id
);
var
uploader
=
new
plupload
.
Uploader
({
browse_button
:
id
,
//触发文件选择对话框的按钮,为那个元素id
//url: '/pic/house?pic_from_sell='+pic_from_sell, //服务器端的上传页面地址
...
...
@@ -197,7 +198,7 @@
if
(
uploadImgLength
>=
uploadImgLimit
){
alert
(
'全景图上传最多'
+
uploadImgLimit
+
'张'
);
uploader
.
stop
();
//
uploader.removeFile(file)
uploader
.
removeFile
(
file
)
return
;
}
...
...
@@ -231,7 +232,7 @@
}
return
false
;
}
uploadSuccessEvent
(
imgurl
,
key
,
'thumbnails'
+
key
)
uploadSuccessEvent
(
imgurl
)
});
uploader
.
bind
(
'Error'
,
function
(
uploader
,
errObject
)
{
...
...
@@ -310,7 +311,7 @@
<?php
}}
?>
var
ids
<?=
$key
?>
;
uploads_zsb_360
(
"spanButtonPlaceholder
<?=
$key
?>
"
,
"
<?=
$key
?>
"
);
uploads_zsb_360
(
"spanButtonPlaceholder
360
"
,
"
<?=
$key
?>
"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment