From df30e4364a6b73d0a2610d3eee0c0bb064aae5b5 Mon Sep 17 00:00:00 2001
From: 396316021 <396316021@qq.com>
Date: Fri, 8 Sep 2023 18:07:13 +0800
Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E7=BC=96=E8=BE=91=E8=B5=84?=
=?UTF-8?q?=E6=96=99,=E8=BE=93=E5=85=A5=E8=A1=A5=E5=85=A8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/User/edit.vue | 22 ++++++++++++++++------
1 file changed, 16 insertions(+), 6 deletions(-)
diff --git a/pages/User/edit.vue b/pages/User/edit.vue
index fec8d89..88607eb 100644
--- a/pages/User/edit.vue
+++ b/pages/User/edit.vue
@@ -120,12 +120,13 @@
padding:20rpx 0;
min-width:150rpx;
"
- @click="selectTip(item)">
+ @click="selectTip(item)"
+ @mousedown.prevent>
-
-
-
+
+
+
@@ -362,6 +364,11 @@ export default {
this.getTips();
},
methods: {
+ blurCompany(){
+ uni.$u.sleep(50).then(() => {
+ this.tipShow = false;
+ });
+ },
selectTip(item){
this.model.userInfo.company = item;
this.tipShow = false;
@@ -372,10 +379,13 @@ export default {
}).then(res => {
this.companyTip = res.data;
});
- [].filter(res => res.indexOf(this.model.userInfo.company))
},
filterTip(){
- this.tips = this.companyTip.filter(res => (res.indexOf(this.model.userInfo.company)!==-1))
+ let i = 0;
+ this.tips = this.companyTip.filter(res => {
+ i++;
+ return (res.indexOf(this.model.userInfo.company)!==-1 && i<=5);
+ })
this.tipShow = true;
},
initForm(){