Commit 5ea87c78 authored by 罗超's avatar 罗超

111

parents 1dac7281 033b1315
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
<u-icon name="arrow-left" size="44"></u-icon> <u-icon name="arrow-left" size="44"></u-icon>
</view> </view>
</view> </view>
<!-- <view @click='yj' style="width: 200px;height: 50px;">活动</view> --> <view @click='yj' style="width: 200px;height: 50px;">活动</view>
<u-tabs v-if="myPageData.home_pages && myPageData.home_pages.navs.length > 1" name="name" :list="myPageData.home_pages.navs" <u-tabs v-if="myPageData.home_pages && myPageData.home_pages.navs.length > 1" name="name" :list="myPageData.home_pages.navs"
:is-scroll="true" :active-color="mainColor" :current="active" :bar-width="80" :font-size="32" :bold="false" @change="changeHandler"></u-tabs> :is-scroll="true" :active-color="mainColor" :current="active" :bar-width="80" :font-size="32" :bold="false" @change="changeHandler"></u-tabs>
<template v-for="(item, i) in myPageData.home_pages.navs"> <template v-for="(item, i) in myPageData.home_pages.navs">
...@@ -1133,7 +1133,8 @@ ...@@ -1133,7 +1133,8 @@
yj(){ yj(){
uni.navigateTo({ uni.navigateTo({
url: '/pages/blindDate/message' url: '/pages/kotra/identification'
// url: '/pages/kotra/carrier/list'
}) })
} }
}, },
......
<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>
...@@ -10,9 +10,9 @@ ...@@ -10,9 +10,9 @@
:current="active" @change="changeHandler" :show-bar="true" :activeFontSize="34" :bold="true" height="100" :current="active" @change="changeHandler" :show-bar="true" :activeFontSize="34" :bold="true" height="100"
duration="0" font-size="28"></u-tabs> duration="0" font-size="28"></u-tabs>
</view> </view>
<div style="width: 64rpx;height: 48rpx;display: table-cell; vertical-align: middle;text-align: right;"> <!-- <div style="width: 64rpx;height: 48rpx;display: table-cell; vertical-align: middle;text-align: right;">
<u-icon name="filter-o" color="#111" size="42"></u-icon> <u-icon name="filter-o" color="#111" size="42"></u-icon>
</div> </div> -->
</view> </view>
<u-empty v-if="dataList.length == 0" text="暂无数据" mode="list" class="noBox"></u-empty> <u-empty v-if="dataList.length == 0" text="暂无数据" mode="list" class="noBox"></u-empty>
<view style="height: calc(100% - 101px);" v-if="dataList.length > 0"> <view style="height: calc(100% - 101px);" v-if="dataList.length > 0">
...@@ -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.BannerList[0]"/> :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