优化message页面
This commit is contained in:
parent
ece85b81c6
commit
ef9d6ef5b2
|
@ -121,9 +121,8 @@ export default {
|
||||||
this.switchTab(e.detail.current);
|
this.switchTab(e.detail.current);
|
||||||
},
|
},
|
||||||
setTabHeight() {
|
setTabHeight() {
|
||||||
let element = ".tab" + this.tabIndex;
|
|
||||||
let query = uni.createSelectorQuery().in(this);
|
let query = uni.createSelectorQuery().in(this);
|
||||||
query.select(element).boundingClientRect();
|
query.select(".tab" + this.tabIndex).boundingClientRect();
|
||||||
query.exec((res) => {
|
query.exec((res) => {
|
||||||
if (res && res[0]) {
|
if (res && res[0]) {
|
||||||
this.tabHeight = res[0].height;
|
this.tabHeight = res[0].height;
|
||||||
|
|
Loading…
Reference in New Issue