Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
GaoQuYingJiH5-ASD
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
xinzhedeai
GaoQuYingJiH5-ASD
Commits
d41d6683
Commit
d41d6683
authored
Oct 13, 2025
by
xinzhedeai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 图片上传个数还原。商户编辑图片个数问题排查处理。
parent
fdf8850a
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
20 additions
and
11 deletions
+20
-11
_check_info.js
src/_check_info.js
+2
-2
_peixun_yanlian_detail-anquan.js
src/_peixun_yanlian_detail-anquan.js
+2
-2
_peixun_yanlian_detail-yingji.js
src/_peixun_yanlian_detail-yingji.js
+2
-2
_shanghu_detail-edit.css
src/_shanghu_detail-edit.css
+1
-0
_shanghu_detail-edit.html
src/_shanghu_detail-edit.html
+2
-2
_shanghu_detail-edit.js
src/_shanghu_detail-edit.js
+11
-3
No files found.
src/_check_info.js
View file @
d41d6683
...
@@ -243,8 +243,8 @@ window.onload = function () {
...
@@ -243,8 +243,8 @@ window.onload = function () {
},
},
paizhao
(
item
)
{
paizhao
(
item
)
{
var
data
=
[
"
相册
"
,
"
相机
"
];
var
data
=
[
"
相册
"
,
"
相机
"
];
//
var maxSelectNum = 4;
var
maxSelectNum
=
4
;
var
maxSelectNum
=
1
;
//
var maxSelectNum = 1;
lightAppJssdk
.
notification
.
showMediaAlert
({
lightAppJssdk
.
notification
.
showMediaAlert
({
arg0
:
data
,
arg0
:
data
,
success
:
function
(
data
)
{
success
:
function
(
data
)
{
...
...
src/_peixun_yanlian_detail-anquan.js
View file @
d41d6683
...
@@ -137,8 +137,8 @@ window.addEventListener("load", function() {
...
@@ -137,8 +137,8 @@ window.addEventListener("load", function() {
},
},
paizhao
()
{
paizhao
()
{
var
data
=
[
"
相册
"
,
"
相机
"
];
var
data
=
[
"
相册
"
,
"
相机
"
];
//
var maxSelectNum = 6;
var
maxSelectNum
=
6
;
var
maxSelectNum
=
1
;
//
var maxSelectNum = 1;
lightAppJssdk
.
notification
.
showMediaAlert
({
lightAppJssdk
.
notification
.
showMediaAlert
({
arg0
:
data
,
arg0
:
data
,
success
:
function
(
data
)
{
success
:
function
(
data
)
{
...
...
src/_peixun_yanlian_detail-yingji.js
View file @
d41d6683
...
@@ -104,8 +104,8 @@ window.addEventListener("load", function() {
...
@@ -104,8 +104,8 @@ window.addEventListener("load", function() {
},
},
paizhao
()
{
paizhao
()
{
var
data
=
[
"
相册
"
,
"
相机
"
];
var
data
=
[
"
相册
"
,
"
相机
"
];
//
var maxSelectNum = 6;
var
maxSelectNum
=
6
;
var
maxSelectNum
=
1
;
//
var maxSelectNum = 1;
lightAppJssdk
.
notification
.
showMediaAlert
({
lightAppJssdk
.
notification
.
showMediaAlert
({
arg0
:
data
,
arg0
:
data
,
success
:
function
(
data
)
{
success
:
function
(
data
)
{
...
...
src/_shanghu_detail-edit.css
View file @
d41d6683
...
@@ -249,4 +249,5 @@ select:disabled {
...
@@ -249,4 +249,5 @@ select:disabled {
.img-wrapper
{
.img-wrapper
{
display
:
flex
;
display
:
flex
;
gap
:
.12rem
;
gap
:
.12rem
;
flex-wrap
:
wrap
;
}
}
\ No newline at end of file
src/_shanghu_detail-edit.html
View file @
d41d6683
...
@@ -230,7 +230,7 @@
...
@@ -230,7 +230,7 @@
</div>
</div>
<div
v-if=
"formData.floorEvacuationPlan.length<4 && flag=='XG' "
>
<div
v-if=
"formData.floorEvacuationPlan.length<4 && flag=='XG' "
>
<img
src=
"../image/code/upload.png"
style=
"width:1.6rem;height: 1.6rem;"
<img
src=
"../image/code/upload.png"
style=
"width:1.6rem;height: 1.6rem;"
alt=
""
srcset=
""
@
click=
"paizhao('floorEvacuationPlan',
1
)"
>
alt=
""
srcset=
""
@
click=
"paizhao('floorEvacuationPlan',
4
)"
>
</div>
</div>
</div>
</div>
<!-- 结束 -->
<!-- 结束 -->
...
@@ -268,7 +268,7 @@
...
@@ -268,7 +268,7 @@
</div>
</div>
<div
v-if=
"formData.floorPlanPhotos.length<4 && flag=='XG' "
>
<div
v-if=
"formData.floorPlanPhotos.length<4 && flag=='XG' "
>
<img
src=
"../image/code/upload.png"
style=
"width:1.6rem;height: 1.6rem;"
<img
src=
"../image/code/upload.png"
style=
"width:1.6rem;height: 1.6rem;"
alt=
""
srcset=
""
@
click=
"paizhao('floorPlanPhotos',
1
)"
>
alt=
""
srcset=
""
@
click=
"paizhao('floorPlanPhotos',
4
)"
>
</div>
</div>
</div>
</div>
<!-- 结束 -->
<!-- 结束 -->
...
...
src/_shanghu_detail-edit.js
View file @
d41d6683
...
@@ -185,10 +185,18 @@ window.addEventListener('load', function () {
...
@@ -185,10 +185,18 @@ window.addEventListener('load', function () {
console
.
log
(
'
大小
'
,
photosVar
.
length
,
maxSelectNum
,
photosVar
.
length
>
maxSelectNum
)
console
.
log
(
'
大小
'
,
photosVar
.
length
,
maxSelectNum
,
photosVar
.
length
>
maxSelectNum
)
if
(
photosVar
.
length
>
maxSelectNum
)
{
if
(
photosVar
.
length
>
maxSelectNum
)
{
const
result
=
photosVar
.
slice
(
0
,
maxSelectNum
)
const
result
=
photosVar
.
slice
(
0
,
maxSelectNum
)
console
.
log
(
'
大小比较
'
,
photosVar
.
length
>
maxSelectNum
,
result
)
// VUE.formData.floorEvacuationPlan = result
photosVar
=
[]
photosVar
.
push
(...
result
)
// 根据选择的图片不同进行数据裁剪后重新赋值(不能用photosVar变量替代。引用地址在这里会发生改变-unknowReason)
if
(
VUE
.
photosType
===
'
floorPlanPhotos
'
){
VUE
.
formData
.
floorPlanPhotos
=
result
}
else
if
(
VUE
.
photosType
===
'
businessLicensePhotos
'
){
VUE
.
formData
.
businessLicensePhotos
=
result
}
else
if
(
VUE
.
photosType
===
'
storefrontPhotos
'
){
VUE
.
formData
.
storefrontPhotos
=
result
}
else
if
(
VUE
.
photosType
===
'
floorEvacuationPlan
'
){
VUE
.
formData
.
floorEvacuationPlan
=
result
}
}
}
}
}
},
},
...
...
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