Commit 99a8a6a8 authored by Facius's avatar Facius

搜索页

parent 6f9ee5b1
......@@ -290,9 +290,11 @@
{
"path": "warehouse/searchParts",
"style": {
"navigationStyle": "custom",
"navigationBarTitleText": " ", // 配件单搜索
"enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#F4F5F7"
"navigationBarBackgroundColor": "#F4F5F7",
"disableScroll": true
}
},
{
......
......@@ -160,7 +160,7 @@
},
{
pathName: 'warehouse/records',
title: '出入记录',
title: '出入记录',
value: '',
icon: process.uniEnv.qn_base_url + 'churuku.png',
imageStyle: 'width:50rpx;height:54rpx'
......
......@@ -3,8 +3,8 @@
<view class="ware-house">
<u-navbar back-icon-color="#333333" background="#FFFFFF" title="我的配件" titleColor="#333333"
:border-bottom="false" title-bold></u-navbar>
<view class="search-view">
<u-search :clearabled="false" @focus="handleClickSearch" @custom="handleClickSearch" placeholder="请输入关键字" :action-style="actionStyle" placeholder-color="#999999"
<view class="search-view" @click.self="handleClickSearch">
<u-search :clearabled="false" disabled @custom="handleClickSearch" placeholder="请输入关键字" :action-style="actionStyle" placeholder-color="#999999"
color="#333333" bg-color="#FFFFFF" height="72" search-icon-color="#999999">
</u-search>
</view>
......@@ -180,6 +180,7 @@
})
},
handleClickSearch() {
var pages = getCurrentPages();
uni.navigateTo({
url: 'pages/mine/warehouse/searchParts'
})
......
......@@ -11,10 +11,7 @@
</view>
<NoOrder v-if="noParts" imageName="wupeijianxinxi.png" text="当前暂无返件信息" :customStyle="noPartsCustomStyle" />
<view v-else class="tab-view">
<scroll-view scroll-y style="height: 100%;width: 100%;" @scrolltolower="reachBottom" scroll-anchoring
refresher-enabled="true" :refresher-triggered="triggered" :refresher-threshold="100"
:scroll-top="scrollTop" refresher-background="#F4F5F7" @refresherpulling="triggered = true"
@refresherrefresh="onRefresh" @refresherrestore="onRestore" enable-back-to-top>
<scroll-view scroll-y style="height: 100%;width: 100%;" scroll-anchoring enable-back-to-top>
<view class="loading-view" v-if="!loaded">
<u-loading mode="flower"></u-loading>
</view>
......
<!-- 工单-搜索页 -->
<template>
<view class="search-parts">
<u-navbar back-icon-color="#333333" background="#FFFFFF" title=" " titleColor="#333333"
:border-bottom="false" title-bold></u-navbar>
<view class="top-item">
<u-search
v-model="search.keyword"
......@@ -125,9 +127,13 @@
<style lang="scss"scoped>
.search-parts {
display: flex;
flex-direction: column;
height: 100vh;
.top-item {
height: 100100%;
position: sticky;
padding: 20rpx 0;
padding: 10rpx 0;
top: 0rpx;
background-color: #F4F5F7;
z-index: 2;
......
......@@ -20,10 +20,7 @@
</view>
</view>
<view class="tab-view">
<scroll-view scroll-y style="height: 100%;width: 100%;" @scrolltolower="reachBottom" scroll-anchoring
refresher-enabled="true" :refresher-triggered="triggered" :refresher-threshold="100"
:scroll-top="scrollTop" refresher-background="#F4F5F7" @refresherpulling="triggered = true"
@refresherrefresh="onRefresh" @refresherrestore="onRestore" enable-back-to-top>
<scroll-view scroll-y style="height: 100%;width: 100%;" scroll-anchoring enable-back-to-top>
<view class="loading-view" v-if="!loaded">
<u-loading mode="flower"></u-loading>
</view>
......
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