瀏覽代碼

部分搜索改为固定布局

zhaoxiaohai 3 年之前
父節點
當前提交
ae88ad06ee

+ 5 - 0
components/My_SearchInputBox/index.js

@@ -4,6 +4,11 @@ Component({
      * 组件的属性列表
      */
     properties: {
+        /* 粘性定位 */
+        flexd: {
+            type: Boolean,
+            value: false
+        },
         /* 搜索方法 */
         searchQuery: {
             type: Function

+ 1 - 1
components/My_SearchInputBox/index.wxml

@@ -1,4 +1,4 @@
-<view class="search_box" style="margin-top: {{marTop}}rpx;">
+<view class="search_box {{flexd?'box-flexd':''}}" style="margin-top: {{marTop}}rpx;">
     <view class="searc" style="background-color: {{inputColor}}; border-radius:{{inputRadius}}rpx;" wx:if="{{route!='team'}}">
         <van-icon name="search" /><input type="search" confirm-type="search" placeholder="请输入搜索关键字" value="{{text}}" bindblur='searchBlur' bindinput="inputText" />
         <view class="clear" bindtap="clearInput">

+ 6 - 0
components/My_SearchInputBox/index.wxss

@@ -17,6 +17,12 @@
     padding-left: 20rpx;
 }
 
+.box-flexd {
+    position: fixed;
+    top: 0;
+    left: 0;
+}
+
 input {
     flex: 1;
     text-align: left;

+ 1 - 1
pages/productManagement/index.wxml

@@ -1,5 +1,5 @@
 <!-- 搜索 -->
-<My_SearchInputBox bind:searchQuery="searchQuery" route="product" fisadministrator="{{fisadministrator}}" bindisOnShow='isOnShow'></My_SearchInputBox>
+<My_SearchInputBox flexd='{{true}}' bind:searchQuery="searchQuery" route="product" fisadministrator="{{fisadministrator}}" bindisOnShow='isOnShow'></My_SearchInputBox>
 <!-- 列表 -->
 <My_GeneralTemplate padBot="20rpx">
     <view class="product_list">

+ 1 - 1
pages/teamManagement/applyFor.js

@@ -29,7 +29,7 @@ Page({
             "classname": "customer.usercenter.teammsg.teammsg",
             "method": "getEntryTeamApplyList",
             "content": {
-                pageSize: 20
+                pageSize: 999
             }
         }).then(res => {
             console.log("团队申请加入列表", res)

+ 1 - 1
pages/teamManagement/index.wxml

@@ -1,5 +1,5 @@
 <!-- 搜索 -->
-<My_SearchInputBox route="team" invitation fisadministrator="{{fisadministrator}}" bindisOnShow='isOnShow'></My_SearchInputBox>
+<My_SearchInputBox route="team" flexd='{{true}}' invitation fisadministrator="{{fisadministrator}}" bindisOnShow='isOnShow'></My_SearchInputBox>
 <!-- 列表 -->
 <My_GeneralTemplate>
     <view class="member_list">