Fix(千县名品):店铺—产业—招商政策—更多政策,少做了搜索框,效果图是有搜索框的
This commit is contained in:
@@ -28,6 +28,53 @@ each(@colors, {
|
|||||||
|
|
||||||
.generateFontSize(20);
|
.generateFontSize(20);
|
||||||
|
|
||||||
|
.generateMarginAndPadding(@n, @i:0) when (@i<= @n) {
|
||||||
|
@baseNum: @i * 8rpx;
|
||||||
|
.v12-mt-@{i} {
|
||||||
|
margin-top: @baseNum;
|
||||||
|
}
|
||||||
|
.v12-ml-@{i} {
|
||||||
|
margin-left: @baseNum;
|
||||||
|
}
|
||||||
|
.v12-mr-@{i} {
|
||||||
|
margin-right: @baseNum;
|
||||||
|
}
|
||||||
|
.v12-mb-@{i} {
|
||||||
|
margin-bottom: @baseNum;
|
||||||
|
}
|
||||||
|
.v12-ma-@{i} {
|
||||||
|
margin: @baseNum;
|
||||||
|
}
|
||||||
|
.v12-mx-@{i} {
|
||||||
|
margin: 0 @baseNum;
|
||||||
|
}
|
||||||
|
.v12-my-@{i} {
|
||||||
|
margin: @baseNum 0;
|
||||||
|
}
|
||||||
|
.v12-pt-@{i} {
|
||||||
|
padding-top: @baseNum;
|
||||||
|
}
|
||||||
|
.v12-pl-@{i} {
|
||||||
|
padding-left: @baseNum;
|
||||||
|
}
|
||||||
|
.v12-pr-@{i} {
|
||||||
|
padding-right: @baseNum;
|
||||||
|
}
|
||||||
|
.v12-pb-@{i} {
|
||||||
|
padding-bottom: @baseNum;
|
||||||
|
}
|
||||||
|
.v12-pa-@{i} {
|
||||||
|
padding: @baseNum;
|
||||||
|
}
|
||||||
|
.v12-px-@{i} {
|
||||||
|
padding: 0 @baseNum
|
||||||
|
}
|
||||||
|
.v12-py-@{i} {
|
||||||
|
padding: @baseNum 0
|
||||||
|
}
|
||||||
|
.generateMarginAndPadding(@n, (@i + 1))
|
||||||
|
}
|
||||||
|
.generateMarginAndPadding(40);
|
||||||
.v12-font-bold{
|
.v12-font-bold{
|
||||||
font-weight: bold !important;
|
font-weight: bold !important;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,19 @@
|
|||||||
<template>
|
<template>
|
||||||
<view class="list-page">
|
<view class="list-page">
|
||||||
|
<view class="v12-mb-3">
|
||||||
|
<u-search
|
||||||
|
placeholder="请输入关键词查询"
|
||||||
|
v-model="keyword"
|
||||||
|
shape="round"
|
||||||
|
:show-action="false"
|
||||||
|
height="72rpx"
|
||||||
|
@search="handleSearch"
|
||||||
|
bg-color="#fff">
|
||||||
|
</u-search>
|
||||||
|
</view>
|
||||||
<view v-if="isLoad" class="file-list">
|
<view v-if="isLoad" class="file-list">
|
||||||
<view
|
<view
|
||||||
v-for="(file, fileIndex) in list"
|
v-for="(file, fileIndex) in currentList"
|
||||||
:key="fileIndex"
|
:key="fileIndex"
|
||||||
class="file-item"
|
class="file-item"
|
||||||
@click="fileItemClick(file)"
|
@click="fileItemClick(file)"
|
||||||
@@ -15,11 +26,11 @@
|
|||||||
class="icon"
|
class="icon"
|
||||||
/>
|
/>
|
||||||
</view>
|
</view>
|
||||||
<image
|
<!-- <image
|
||||||
:src="webUrl + '/home/no-data-bg.png'"
|
:src="webUrl + '/home/no-data-bg.png'"
|
||||||
mode="widthFix"
|
mode="widthFix"
|
||||||
class="loadend"
|
class="loadend"
|
||||||
/>
|
/> -->
|
||||||
</view>
|
</view>
|
||||||
<goo-skeleton v-else />
|
<goo-skeleton v-else />
|
||||||
</view>
|
</view>
|
||||||
@@ -37,7 +48,9 @@ export default {
|
|||||||
webUrl: this.$VUE_APP_RESOURCES_URL,
|
webUrl: this.$VUE_APP_RESOURCES_URL,
|
||||||
isLoad: false,
|
isLoad: false,
|
||||||
pageKeyId: '',
|
pageKeyId: '',
|
||||||
list: []
|
list: [],
|
||||||
|
keyword: '',
|
||||||
|
currentList: []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(options) {
|
onLoad(options) {
|
||||||
@@ -45,6 +58,9 @@ export default {
|
|||||||
this.getListReq(id)
|
this.getListReq(id)
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
handleSearch() {
|
||||||
|
this.currentList = this.list.filter(item => item.title.indexOf(this.keyword) > -1)
|
||||||
|
},
|
||||||
getListReq(id) {
|
getListReq(id) {
|
||||||
getCountyFamousInvestmentFile({
|
getCountyFamousInvestmentFile({
|
||||||
countyFamousDataId: id,
|
countyFamousDataId: id,
|
||||||
@@ -55,6 +71,7 @@ export default {
|
|||||||
if (success) {
|
if (success) {
|
||||||
this.isLoad = true
|
this.isLoad = true
|
||||||
this.list = data.records || []
|
this.list = data.records || []
|
||||||
|
this.currentList = [...this.list]
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user