Mr.Zhang
2023-09-18 ca2200ba53b236e8902b706c444375408c782f07
minipro_standard/pages/index/index.vue
@@ -1,5 +1,8 @@
<template>
   <view class="index">
<template>
   <page-meta :page-style="ban ?'overflow: hidden;': ''"/>
   <view class="index" >
      <!-- :class="ban?'scroll-ban': ''" -->
      <!-- <view class="mask" @tap="tapMask" @touchmove="moveHandle"></view> -->
      <!-- <web-view v-if="show" @onPostMessage="onMessage" :src="'https://dmtest.ahapp.net/doumeeplant_h5/#/appletLogin?code=' + code"></web-view> -->
      <!-- {{$store.state.statusbarHeight}} -->
      
@@ -10,7 +13,7 @@
               待办</view>
            <div class="content_search">
               <v-Search @searchInput="searchInput" @submit="confirm" @reset="resetType" :isShow="true"
                  placeholder="搜索关键字">
                  placeholder="搜索关键字" @scrollerBan="$event => ban=$event">
                  <template v-slot:content>
                     <view class="rp contanir">
                        <view class="c2 b">类型</view>
@@ -35,7 +38,7 @@
         </view>
      </u-sticky>
      
      <scroll-view :style="{height: height}" v-if="projectList.length" scroll-y refresher-enabled="true" :refresher-triggered="triggered" @scrolltolower="loadMore"
      <scroll-view   :style="{height: height}" v-if="projectList.length" scroll-y refresher-enabled="true" :refresher-triggered="triggered" @scrolltolower="loadMore"
         @refresherrefresh="refresh"
      >
         <view v-for="(item, index) in projectList" :key="index">
@@ -58,7 +61,7 @@
         </view>
      </scroll-view>
      <view v-else class="tc c6">暂无数据...</view>
      <u-popup :show="show" @close="close" :round="8" zIndex="20000">
      <!-- <u-popup :show="show" @close="close" :round="8" zIndex="20000">
         <view class="rp p40 contanir">
            <view class="c2 b">类型</view>
            <view class="content">
@@ -73,7 +76,7 @@
               <view class="fx1 ptb20 sbtn_gray c9" @click="resetType">重置</view>
               <view class="fx1 ml20 ptb20 sbtn_green" @click="confirm">确定</view>
            </view>
         </view>
         </view> -->
      </u-popup>
      <myTabbar :index="0" />
   </view>
@@ -98,6 +101,7 @@
      },
      data() {
         return {
            ban: false,
            height: '',
            top: '',
            code: '',
@@ -183,7 +187,7 @@
               .in(this)
               .select('.content_search')
               .boundingClientRect((rect) => {
                  that.height = `calc(100vh - ${rect.height + 80}px)`
                  that.height = `calc(100vh - ${rect.height + 150}px)`
                  that.top = `${rect.height}px`
               })
               .exec()
@@ -211,6 +215,10 @@
               .then(res => {
                  this.tagList[0].num = res.data.startNum
                  this.tagList[1].num = res.data.endNum
                  this.$store.commit('SETNUM', {
                     d: res.data.startNum,
                     y: res.data.endNum
                  })
               })
               .catch(err => {})
         },
@@ -409,13 +417,15 @@
         },
         resetType() {
            this.type = ''
            this.searchForm.type = ''
            this.searchForm.type = ''
            this.ban =false
            this.confirm()
            
         },
         confirm() {
            this.searchForm.type = this.type
            this.show = false
            this.ban =false
            this.search()
         },
         search() {
@@ -557,5 +567,15 @@
   }
   .content_search_x {
      height: 24rpx;
   }
   .mask {
      z-index: 8000;
      position: fixed;
      left: 0;
      top: 0;
      right: 0;
      bottom: 0;
      height: 100vh;
      background-color: rgba(0, 0, 0, 0.5);
   }
</style>