Commit 87eb8e7e authored by lixy's avatar lixy

banner发现

parent 57bc073c
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
</el-button> </el-button>
</div> </div>
<el-table :key='tableKey' :data="list" border fit highlight-current-row <el-table :key='tableKey' :data="list" border fit highlight-current-row
style="width: 1300px"> style="width: 1500px">
<el-table-column <el-table-column
type="index" type="index"
align="center" label="序号" width="98"> align="center" label="序号" width="98">
...@@ -18,7 +18,13 @@ ...@@ -18,7 +18,13 @@
</el-table-column> </el-table-column>
<el-table-column width="200" align="center" label="类型"> <el-table-column width="200" align="center" label="类型">
<template scope="scope"> <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> </template>
</el-table-column> </el-table-column>
<el-table-column width="300" align="center" label="banner图"> <el-table-column width="300" align="center" label="banner图">
...@@ -68,6 +74,15 @@ ...@@ -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="2">租车</el-radio>
<el-radio class="radio" v-model="form.type" label="3">个人中心</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="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> </el-form-item>
<!--BASE_API + --> <!--BASE_API + -->
<el-form-item label="banner图" prop="cover" :style="{display:'block'}"> <el-form-item label="banner图" prop="cover" :style="{display:'block'}">
...@@ -147,7 +162,8 @@ ...@@ -147,7 +162,8 @@
title: "", title: "",
url: "", url: "",
cover:"", cover:"",
type: "0" type: "0",
location: "0"
}, },
listQuery: { listQuery: {
pageNo: 1, pageNo: 1,
...@@ -166,6 +182,12 @@ ...@@ -166,6 +182,12 @@
message: '请选择banner类型', message: '请选择banner类型',
trigger: 'blur' trigger: 'blur'
}, },
location:{
type: "string",
required: true,
message: '请选择位置类型',
trigger: 'blur'
},
cover: { cover: {
type: 'string', type: 'string',
required: true, required: true,
...@@ -235,7 +257,8 @@ ...@@ -235,7 +257,8 @@
title: "", title: "",
cover: "", cover: "",
url:"", url:"",
type: "0" type: "0",
location: "0"
} }
}, },
showImgDialog(drivingLicensePath) { showImgDialog(drivingLicensePath) {
...@@ -254,6 +277,7 @@ ...@@ -254,6 +277,7 @@
listRs = response.data.data; listRs = response.data.data;
response.data.data.map(function(item){ response.data.data.map(function(item){
item.type = item.type+""; item.type = item.type+"";
item.location = item.location?item.location+"": "0";
item.visible2 = false; item.visible2 = false;
}); });
totalCountRs = response.data.totalCount; totalCountRs = response.data.totalCount;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment