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(){