Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform-ui
Project
Project
Details
Activity
Releases
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
youjj
cloud-platform-ui
Commits
87eb8e7e
Commit
87eb8e7e
authored
Jul 16, 2019
by
lixy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
banner发现
parent
57bc073c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
4 deletions
+28
-4
bannerSetting.vue
src/views/baseInfo/bannerSetting.vue
+28
-4
No files found.
src/views/baseInfo/bannerSetting.vue
View file @
87eb8e7e
...
...
@@ -6,7 +6,7 @@
</el-button>
</div>
<el-table
:key=
'tableKey'
:data=
"list"
border
fit
highlight-current-row
style=
"width: 1
3
00px"
>
style=
"width: 1
5
00px"
>
<el-table-column
type=
"index"
align=
"center"
label=
"序号"
width=
"98"
>
...
...
@@ -18,7 +18,13 @@
</el-table-column>
<el-table-column
width=
"200"
align=
"center"
label=
"类型"
>
<
template
scope=
"scope"
>
<span>
{{
scope
.
row
.
type
==
0
?
"app首页"
:
scope
.
row
.
type
==
1
?
"app旅游页"
:
scope
.
row
.
type
==
2
?
"租车"
:
scope
.
row
.
type
==
3
?
"个人中心"
:
scope
.
row
.
type
==
4
?
"小程序首页"
:
scope
.
row
.
type
}}
</span>
<span>
{{
scope
.
row
.
type
==
0
?
"app首页"
:
scope
.
row
.
type
==
1
?
"app旅游页"
:
scope
.
row
.
type
==
2
?
"租车"
:
scope
.
row
.
type
==
3
?
"个人中心"
:
scope
.
row
.
type
==
4
?
"小程序首页"
:
scope
.
row
.
type
==
5
?
'发现'
:
scope
.
row
.
type
}}
</span>
</
template
>
</el-table-column>
<!--location 1:推荐 2:拍拍 3:短视频 4:问答-->
<el-table-column
width=
"200"
align=
"center"
label=
"位置"
>
<
template
scope=
"scope"
>
<span>
{{
scope
.
row
.
location
==
0
?
"所有页面"
:
scope
.
row
.
location
==
1
?
"推荐"
:
scope
.
row
.
location
==
2
?
"拍拍"
:
scope
.
row
.
location
==
3
?
"短视频"
:
scope
.
row
.
location
==
4
?
"问答"
:
scope
.
row
.
location
}}
</span>
</
template
>
</el-table-column>
<el-table-column
width=
"300"
align=
"center"
label=
"banner图"
>
...
...
@@ -68,6 +74,15 @@
<el-radio
class=
"radio"
v-model=
"form.type"
label=
"2"
>
租车
</el-radio>
<el-radio
class=
"radio"
v-model=
"form.type"
label=
"3"
>
个人中心
</el-radio>
<el-radio
class=
"radio"
v-model=
"form.type"
label=
"4"
>
小程序首页
</el-radio>
<el-radio
class=
"radio"
v-model=
"form.type"
label=
"5"
>
发现
</el-radio>
</el-form-item>
<!--location 1:推荐 2:拍拍 3:短视频 4:问答-->
<el-form-item
label=
"位置"
prop=
"location"
v-if=
"form.type == 5"
>
<el-radio
class=
"radio"
v-model=
"form.location"
label=
"0"
>
所有页面
</el-radio>
<el-radio
class=
"radio"
v-model=
"form.location"
label=
"1"
>
推荐
</el-radio>
<el-radio
class=
"radio"
v-model=
"form.location"
label=
"2"
>
拍拍
</el-radio>
<el-radio
class=
"radio"
v-model=
"form.location"
label=
"3"
>
短视频
</el-radio>
<el-radio
class=
"radio"
v-model=
"form.location"
label=
"4"
>
问答
</el-radio>
</el-form-item>
<!--BASE_API + -->
<el-form-item
label=
"banner图"
prop=
"cover"
:style=
"{display:'block'}"
>
...
...
@@ -147,7 +162,8 @@
title
:
""
,
url
:
""
,
cover
:
""
,
type
:
"0"
type
:
"0"
,
location
:
"0"
},
listQuery
:
{
pageNo
:
1
,
...
...
@@ -166,6 +182,12 @@
message
:
'请选择banner类型'
,
trigger
:
'blur'
},
location
:{
type
:
"string"
,
required
:
true
,
message
:
'请选择位置类型'
,
trigger
:
'blur'
},
cover
:
{
type
:
'string'
,
required
:
true
,
...
...
@@ -235,7 +257,8 @@
title
:
""
,
cover
:
""
,
url
:
""
,
type
:
"0"
type
:
"0"
,
location
:
"0"
}
},
showImgDialog
(
drivingLicensePath
)
{
...
...
@@ -254,6 +277,7 @@
listRs
=
response
.
data
.
data
;
response
.
data
.
data
.
map
(
function
(
item
){
item
.
type
=
item
.
type
+
""
;
item
.
location
=
item
.
location
?
item
.
location
+
""
:
"0"
;
item
.
visible2
=
false
;
});
totalCountRs
=
response
.
data
.
totalCount
;
...
...
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