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

修改列表样式

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