Commit 2ef9e43d authored by 罗超's avatar 罗超

修改列表样式

parent aa4a031e
<template>
<div style="background-color: #f6f6f6;height: 100vh;padding-bottom: 65px; overflow: hidden;">
<div style="background-color: #f6f6f6;overflow: hidden;" :style="{height:contentHeight+'px'}">
<view style="padding:5px 10px;">
<u-search placeholder="搜索载体名称" :focus="false" :show-action="false" :clearabled="true" radius="40" v-model="searchKey"
@search="searchHandler" @custom="searchHandler" bg-color="#FFF" ></u-search>
......@@ -29,7 +29,7 @@
height:100%;
border-radius: 10rpx 10rpx 0 0;
" mode='aspectFill'
:src="item.Logo" />
:src="item.BannerList[0]" />
</view>
</view>
<div class="good-info">
......@@ -94,7 +94,7 @@
Developers:"",
StartOpenTime:"",
EndOpenTime:"",
ProjectType:1,
ProjectType:0,
OrderBy:0
},
loading: false,
......@@ -105,13 +105,15 @@
loading: "努力加载中",
nomore: "没有更多了",
},
contentHeight:0
};
},
onLoad(options) {
if(options && options.id){
this.msg.ProjectType = options.id
}
let c = this.$uiConfig.is_bang ? 78 : 50;
this.contentHeight = this.$utils.calcContentHeight(c)+40;
this.getTypeList()
},
created() {
......@@ -133,8 +135,12 @@
this.request2(parms, (res) => {
if (res.resultCode == 1) {
// this.pageCount = res.data.pageCount
this.typeList = res.data
if(this.msg.ProjectType ==1){
this.typeList.push({
Id:0,
Name:"全部"
})
this.typeList.concat(res.data)
if(this.msg.ProjectType ==0){
}else{//指定跳入分类
......
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