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
996a5468
Commit
996a5468
authored
Jul 02, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
ffdbaed4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
8 deletions
+48
-8
b2b_dialog.vue
src/components/WebSet/plug-in/b2b_dialog.vue
+48
-8
No files found.
src/components/WebSet/plug-in/b2b_dialog.vue
View file @
996a5468
...
...
@@ -73,8 +73,16 @@
<template
v-if=
"plugData.Type==1||plugData.Type==2"
>
<el-row
v-for=
"(item,index) in plugData.Details"
:key=
"index"
style=
"margin-bottom:20px;"
>
<el-col
:span=
"10"
>
<div
class=
"webSliderDiv"
>
<img
v-if=
"item.TripImageUrl"
:src=
"item.TripImageUrl"
class=
"web_imgUrl"
alt=
""
/>
<div
class=
"webSliderDiv"
@
click=
"clickIndex=index"
>
<el-upload
:http-request=
"UploadImage"
:multiple=
"true"
accept=
"image/jpeg,image/gif,image/png,image/bmp"
:show-file-list=
"false"
action=
""
>
<img
v-if=
"item.TripImageUrl"
:src=
"item.TripImageUrl"
class=
"web_imgUrl"
alt=
""
/>
<div
class=
"addIconDiv"
>
<i
class=
"web_addImg iconfont icon-img_haha"
></i>
<i
class=
"web_delImg iconfont icon-img_delete_small"
style=
"margin-left:10px;"
@
click
.
stop=
"item.TripImageUrl=''"
></i>
</div>
</el-upload>
</div>
</el-col>
<el-col
:span=
"14"
>
...
...
@@ -86,6 +94,13 @@
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"24"
>
<el-form-item
:label=
"'行程名稱'+' '+(index+1)"
>
<el-input
type=
"text"
v-model=
"item.TripTitle"
></el-input>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col
:span=
"12"
>
<el-form-item
label=
"價格"
>
...
...
@@ -127,8 +142,16 @@
</el-col>
</el-row>
<el-form-item>
<div
class=
"b2b_imgList"
>
<div
class=
"sectionImg"
:style=
"
{backgroundImage:'url(' + item.TripImageUrl + ')'}">
</div>
<div
class=
"webSliderDiv"
@
click=
"clickIndex=index"
>
<el-upload
:http-request=
"UploadImage"
:multiple=
"true"
accept=
"image/jpeg,image/gif,image/png,image/bmp"
:show-file-list=
"false"
action=
""
>
<div
class=
"sectionImg"
:style=
"
{backgroundImage:'url(' + item.TripImageUrl + ')'}">
</div>
<div
class=
"addIconDiv"
>
<i
class=
"web_addImg iconfont icon-img_haha"
></i>
<i
class=
"web_delImg iconfont icon-img_delete_small"
style=
"margin-left:10px;"
@
click
.
stop=
"item.TripImageUrl=''"
></i>
</div>
</el-upload>
</div>
</el-form-item>
</el-col>
...
...
@@ -137,10 +160,16 @@
<
template
v-if=
"plugData.Type==4"
>
<el-row
v-for=
"(item,index) in plugData.Details"
:key=
"index"
style=
"margin-bottom:20px;"
>
<el-col
:span=
"8"
>
<div
class=
"webSliderDiv webImg_radius"
>
<div
class=
"b2b_imgList"
>
<div
class=
"sectionImg"
:style=
"
{backgroundImage:'url(' + item.TripImageUrl + ')'}">
</div>
</div>
<div
class=
"webSliderDiv webImg_radius"
@
click=
"clickIndex=index"
>
<el-upload
:http-request=
"UploadImage"
:multiple=
"true"
accept=
"image/jpeg,image/gif,image/png,image/bmp"
:show-file-list=
"false"
action=
""
>
<img
v-if=
"item.TripImageUrl"
:src=
"item.TripImageUrl"
style=
"width:auto;"
class=
"web_imgUrl"
alt=
""
/>
<div
class=
"addIconDiv"
>
<i
class=
"web_addImg iconfont icon-img_haha"
></i>
<i
class=
"web_delImg iconfont icon-img_delete_small"
style=
"margin-left:10px;"
@
click
.
stop=
"item.TripImageUrl=''"
></i>
</div>
</el-upload>
</div>
</el-col>
<el-col
:span=
"16"
>
...
...
@@ -181,6 +210,17 @@
},
created
()
{},
methods
:
{
UploadImage
(
file
)
{
let
newArr
=
[];
newArr
.
push
(
file
.
file
);
let
fileName
=
file
.
file
.
name
;
var
path
=
"/Upload/WebSite/"
;
this
.
UploadSelfFileT
(
path
,
newArr
,
x
=>
{
var
str
=
x
.
data
.
FilePath
;
var
imgUrl
=
this
.
domainManager
().
ViittoFileUrl
+
str
;
this
.
plugData
.
Details
[
this
.
clickIndex
].
TripImageUrl
=
imgUrl
;
});
},
//获取选择行程数据
getChooseTripData
()
{
var
tempArray
=
this
.
$refs
.
chooseTrip
.
getChooseData
();
...
...
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