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

轮播图

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