From a52f13d719ee9cd53f129f4c59dcad783977fce9 Mon Sep 17 00:00:00 2001
From: Mr.Zhang <710666463@qq.com>
Date: 星期五, 01 九月 2023 11:36:34 +0800
Subject: [PATCH] 小程序接口api 添加
---
minipro_standard/pages/index/index.vue | 13 ++++++++-----
1 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/minipro_standard/pages/index/index.vue b/minipro_standard/pages/index/index.vue
index 3640c53..9c02c28 100644
--- a/minipro_standard/pages/index/index.vue
+++ b/minipro_standard/pages/index/index.vue
@@ -50,8 +50,8 @@
<u-grid col="2" :border="false">
<u-grid-item v-for="item in types" :key="item.id">
<view class="ptb20 c9 type-style tc rd10"
- :class="searchForm.type===item.id?'sbtn_green':'sbtn_gray'"
- @click="searchForm.type=item.id">{{ item.name }}</view>
+ :class="type===item.id?'sbtn_green':'sbtn_gray'"
+ @click="type=item.id">{{ item.name }}</view>
</u-grid-item>
</u-grid>
</view>
@@ -115,7 +115,8 @@
id: 8,
name: '瀹㈤��/杩斿搧鍥炲巶妫�楠�'
}
- ],
+ ],
+ type: '',
searchForm: {
name: '',
status: 0,
@@ -273,11 +274,13 @@
close() {
this.show = false
},
- resetType() {
+ resetType() {
+ this.type = ''
this.searchForm.type = ''
this.confirm()
},
- confirm() {
+ confirm() {
+ this.searchForm.type = this.type
this.show = false
this.scrolltoupper()
}
--
Gitblit v1.9.3