Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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
罗超
SuperMan
Commits
3c35e6de
Commit
3c35e6de
authored
3 years ago
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
d6dadee7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
19 deletions
+8
-19
GnHotelInfo.vue
src/components/Hotel/GnHotelInfo.vue
+7
-14
comImgList.vue
src/components/commonPage/comImgList.vue
+1
-5
No files found.
src/components/Hotel/GnHotelInfo.vue
View file @
3c35e6de
...
...
@@ -147,7 +147,7 @@
:label=
"subItem.Label==''?'默认':subItem.Label"
>
<div
class=
"InnerHotelDiv"
>
<div
class=
"InnerHoImgDiv"
v-for=
"(sItem,sIndex) in subItem.ImgList"
:key=
"sIndex"
>
<img
:src=
"getIconLink(sItem.Path)"
@
click=
"showImg(s
Item.Path
)"
/>
<img
:src=
"getIconLink(sItem.Path)"
@
click=
"showImg(s
ubItem,sIndex
)"
/>
</div>
</div>
</el-tab-pane>
...
...
@@ -253,7 +253,7 @@
<button
class=
"cancel-Btn"
@
click=
"goUrl('GnHotelManagement')"
>
{{$t('pub.cancelBtn')}}
</button>
</div>
<viewer
:images=
"images"
:options=
'imageOptions'
@
inited=
"inited"
class=
"viewer"
ref=
"viewer"
>
<img
v-for=
"
src in images"
:src=
"src"
:key=
"src
"
>
<img
v-for=
"
(src,index) in images"
:src=
"src.Path"
:key=
"index
"
>
</viewer>
</div>
</template>
...
...
@@ -478,20 +478,13 @@
inited
(
viewer
)
{
this
.
$viewer
=
viewer
},
showImg
:
function
(
src
)
{
let
srcArr
=
src
.
split
(
'?'
)
src
=
srcArr
[
0
]
let
isExsit
=
false
this
.
images
.
forEach
(
x
=>
{
if
(
x
===
src
)
isExsit
=
true
})
if
(
!
isExsit
)
{
this
.
images
.
push
(
src
)
}
else
{
this
.
$viewer
.
view
(
this
.
images
.
indexOf
(
src
))
showImg
(
obj
,
index
){
this
.
images
=
[];
if
(
obj
.
ImgList
&&
obj
.
ImgList
.
length
>
0
){
this
.
images
=
obj
.
ImgList
;
}
this
.
$viewer
.
show
()
this
.
$viewer
.
view
(
index
)
},
//保存酒店信息
saveResource
()
{
...
...
This diff is collapsed.
Click to expand it.
src/components/commonPage/comImgList.vue
View file @
3c35e6de
...
...
@@ -46,10 +46,8 @@
</div>
<div
style=
"display:inline-block;margin-left:9px;position:relative"
v-for=
"(item,index) in comImgArr"
:key=
"index"
>
<!--
{{
item
}}
-->
<img
:src=
"item.Path"
v-if=
"item.MappingId>0"
class=
"app-attachment-img"
<img
:src=
"getIconLink(item.Path)"
class=
"app-attachment-img"
style=
"width: 100px; height: 100px;"
>
<img
:src=
"item.AllPath"
v-else
class=
"app-attachment-img"
style=
"width: 100px; height: 100px;"
>
<i
class=
"iconfont icon-bumenguanli-shanchu hotel_DelIcon"
@
click=
"delHotelImg(item,index)"
></i>
</div>
</div>
...
...
@@ -196,11 +194,9 @@
var
path
=
"/Upload/DMC/"
;
this
.
UploadSelfFileT
(
path
,
newArr
,
x
=>
{
var
str
=
x
.
data
.
FilePath
;
var
imgUrl
=
this
.
domainManager
().
ViittoFileUrl
+
x
.
data
.
FilePath
;
var
obj
=
{
MappingId
:
0
,
PicId
:
0
,
AllPath
:
imgUrl
,
Path
:
x
.
data
.
FilePath
}
if
(
this
.
commonIndex
==
-
1
)
{
...
...
This diff is collapsed.
Click to expand it.
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