|
|
@@ -86,10 +86,10 @@ Page({
|
|
|
.select('.container')
|
|
|
.boundingClientRect((rect) => {
|
|
|
if (rect) {
|
|
|
- const shouldBarandBeMini = rect.top <= -480; // 在container上移到-480px时,品牌栏mini出现
|
|
|
- if (this.data.isBrandMini !== shouldBarandBeMini) {
|
|
|
+ const shouldBrandBeMini = rect.top <= -480; // 在container上移到-480px时,品牌栏mini出现
|
|
|
+ if (this.data.isBrandMini !== shouldBrandBeMini) {
|
|
|
this.setData({
|
|
|
- isBrandMini: shouldBarandBeMini
|
|
|
+ isBrandMini: shouldBrandBeMini
|
|
|
});
|
|
|
}
|
|
|
const shouldCategoryBeMini = rect.top <= -680; // 在container上移到-680px时,分类栏mini出现
|