From 8c03902a415256e14c9039dcfc6e49982a709ee8 Mon Sep 17 00:00:00 2001
From: Mr.Zhang <710666463@qq.com>
Date: 星期三, 13 九月 2023 17:07:31 +0800
Subject: [PATCH] 小程序
---
minipro_standard/pages/index/index.vue | 33 +++++++++++++++++++++++++++------
1 files changed, 27 insertions(+), 6 deletions(-)
diff --git a/minipro_standard/pages/index/index.vue b/minipro_standard/pages/index/index.vue
index f8df598..8e9afcd 100644
--- a/minipro_standard/pages/index/index.vue
+++ b/minipro_standard/pages/index/index.vue
@@ -9,8 +9,25 @@
:style="{background: '#fff', zIndex: '999', paddingTop: `${statusbarHeight}px`, height: `${navHeight}px`, lineHeight:`${navHeight}px`, textAlign: 'center'}">
寰呭姙</view>
<div class="content_search">
- <v-Search @searchInput="searchInput" @submit="search" @reset="reset" :isShow="true"
+ <v-Search @searchInput="searchInput" @submit="confirm" @reset="resetType" :isShow="true"
placeholder="鎼滅储鍏抽敭瀛�">
+ <template v-slot:content>
+ <view class="rp contanir">
+ <view class="c2 b">绫诲瀷</view>
+ <view class="content">
+ <u-grid col="2" :border="false">
+ <u-grid-item v-for="item in types" :key="item.id">
+ <view class="ptb20 f26 c9 type-style tc rd10" :class="type===item.id?'sbtn_green':'sbtn_gray'"
+ @click="type=item.id">{{ item.name }}</view>
+ </u-grid-item>
+ </u-grid>
+ </view>
+ <!-- <view class="flex ap tc bottom-view">
+ <view class="fx1 ptb20 sbtn_gray c9" @click="resetType">閲嶇疆</view>
+ <view class="fx1 ml20 ptb20 sbtn_green" @click="confirm">纭畾</view>
+ </view> -->
+ </view>
+ </template>
</v-Search>
<div class="content_search_x"></div>
<LabelSelection :TagList="tagList" :isShow="true" @change="clickTag"></LabelSelection>
@@ -166,7 +183,6 @@
.in(this)
.select('.content_search')
.boundingClientRect((rect) => {
- console.log('-----',rect);
that.height = `calc(100vh - ${rect.height + 80}px)`
that.top = `${rect.height}px`
})
@@ -186,7 +202,6 @@
searchInput(val) {
this.searchForm.mixParam = val;
this.search();
- this.getPageCount()
},
getPageCount() {
pageCount({mixParam: this.searchForm.mixParam})
@@ -220,8 +235,10 @@
refresh() {
if (this.triggered) return
this.triggered = true;
- this.page.page = 1
- this.loadData()
+ this.search()
+ // this.page.page = 1
+ // this.loadData()
+ // this.getPageCount()
},
loadMore() {
this.page.page += 1
@@ -233,6 +250,7 @@
this.search()
},
jump(item) {
+ console.log(item.type);
switch(item.type) {
case 0: case 2: case 5: {
if (item.status === 0) {
@@ -240,6 +258,7 @@
url: `/pages_inspect/pages/OutOperation/OutOperation?id=${item.objId}&dbid=${item.id}&type=7`
})
} else {
+ debugger
uni.navigateTo({
url: `/pages_adjust/pages/warehousingDetails/warehousingDetails?id=${item.objId}&status=${item.status}&type=${item.type}&dbid=${item.id}`
})
@@ -388,7 +407,8 @@
resetType() {
this.type = ''
this.searchForm.type = ''
- this.confirm()
+ this.confirm()
+
},
confirm() {
this.searchForm.type = this.type
@@ -398,6 +418,7 @@
search() {
this.page.page = 1
this.loadData()
+ this.getPageCount()
}
}
}
--
Gitblit v1.9.3