Commit 20017cb3 authored by 吴冠's avatar 吴冠

轮播图

parent c6c4bb65
......@@ -198,11 +198,10 @@ export function getChangeDetails(id){
})
}
//轮播图
export function getLoopPic(params){
export function getLoopPic(){
return request({
url:'/banner/list',
method:'get',
params:params
url:'/banner/banner/1',
method:'get'
})
}
//二次验证
......
......@@ -4,7 +4,7 @@
<div class="banner">
<el-carousel trigger="click" height="5.3rem" width="100%" >
<el-carousel-item v-for="(item,index) in picArr" :key="index">
<img :src="item.picUrl" alt="" class="src-img">
<img :src="item.pic" alt="" class="src-img">
</el-carousel-item>
</el-carousel>
<!-- <img src="~/assets/images/back.png" style="height:5.3rem;width:100%"> -->
......@@ -97,10 +97,10 @@ import Cookies from "js-cookie"
this.getListSite2()
},
async asyncData({ params, route, error }){
let mes = {
status:1
}
const {data} = await getLoopPic(mes)
/* let mes = {
bannerWeb:1
} */
const {data} = await getLoopPic()
return{
picArr:data,
}
......@@ -196,9 +196,9 @@ import Cookies from "js-cookie"
this.$router.push("/login/user")
},
async getLoopPic(){
let message = {}
message.status =1
const {data} = await getLoopPic(message)
/* let message = {}
message.status =1 */
const {data} = await getLoopPic(/* message */)
this.picArr = data
},
//添加退出按钮 清空token
......@@ -266,6 +266,10 @@ import Cookies from "js-cookie"
<style scoped>
.src-img{
cursor: pointer;
/* background-size: cover; */
position: absolute;
width: 100%;
height:100%;
}
.banner {
width:100%;
......
......@@ -389,16 +389,16 @@
<!-- 完善 -->
<div class="perfect content" v-if="active == 1">
<div class="flex-between perfect-head">
<div class="y2 flex">
<div class="y2 flex contentText">
<div>单位名称:</div>
<div>{{form.companyName}}</div>
</div>
<div class="y3 flex">
<div class="y3 flex" contentText>
<div>注册角色:</div>
<div v-if="form.type=='1'">采购商</div>
<div v-else>供应商</div>
</div>
<div class="t2 flex" v-if = "1<0">
<div class="t2 flex contentText" v-if = "1<0">
<div>行政区域:</div>
<div>浙江省 杭州市 滨江区</div>
</div>
......@@ -1493,4 +1493,7 @@ export default {
left: 4rem;
cursor: pointer;
}
.contentText>div{
font-size:14px;
}
</style>
\ No newline at end of file
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