Browse Source

我的种植 添加搜索功能

master
邓宏 2 years ago
parent
commit
9faa6169fa
  1. 14
      pages/massif/myPlant.vue

14
pages/massif/myPlant.vue

@ -2,8 +2,14 @@
.container{
height:100%;
background:#f6f6f6;
display:flex;
flex-direction: column;
&>.d-search{
margin-bottom:-30rpx;
}
scroll-view{
height:100%;
flex-grow: 1;
height:1rpx;
.items{
padding:30rpx 30rpx 0;
&+.items{
@ -126,6 +132,7 @@
</style>
<template>
<view class="container">
<d-search v-model="searchVal.search" @search="clean();search()"/>
<scroll-view scroll-y @scrolltolower="search">
<view class="items" v-for="(v,k) in list" :key="k">
<view class="card">
@ -158,7 +165,9 @@
</template>
<script>
import request,{host} from '@/common/request.js'
import dSearch from '../../uni_modules/d-search/components/d-search/d-search.vue'
export default {
components: { dSearch },
data(){
return{
host:host('imgUrl'),
@ -166,7 +175,8 @@ export default {
total:0,
searchVal:{
pageNo:1,
pageSize:6
pageSize:6,
search:"",
},
}
},

Loading…
Cancel
Save