|
|
|
@ -120,12 +120,13 @@
|
|
|
|
|
padding:20rpx 0; |
|
|
|
|
min-width:150rpx; |
|
|
|
|
" |
|
|
|
|
@click="selectTip(item)"> |
|
|
|
|
@click="selectTip(item)" |
|
|
|
|
@mousedown.prevent> |
|
|
|
|
<u-text :text="item" size="28"></u-text> |
|
|
|
|
</view> |
|
|
|
|
<view style="padding:20rpx 0;display:flex;justify-content: flex-end;text-align: right;" @click="tipShow = false;"> |
|
|
|
|
<u-button text="关闭提示" size="mini" custom-style="background-color:#FF9545;"></u-button> |
|
|
|
|
</view> |
|
|
|
|
<!-- <view style="padding:20rpx 0;display:flex;justify-content: flex-end;text-align: right;" @click="tipShow = false;">--> |
|
|
|
|
<!-- <u-button text="关闭提示" size="mini" custom-style="background-color:#FF9545;"></u-button>--> |
|
|
|
|
<!-- </view>--> |
|
|
|
|
</view> |
|
|
|
|
<u-input |
|
|
|
|
fontSize="28" |
|
|
|
@ -134,6 +135,7 @@
|
|
|
|
|
border="none" |
|
|
|
|
@change="filterTip" |
|
|
|
|
@focus="filterTip" |
|
|
|
|
@blur="blurCompany" |
|
|
|
|
> |
|
|
|
|
</u-input> |
|
|
|
|
|
|
|
|
@ -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(){ |
|
|
|
|