仓库地址修改

This commit is contained in:
mindskip
2020-09-01 22:58:28 +08:00
parent a8d9b11da0
commit c5a5a1f039
294 changed files with 75 additions and 5581 deletions

View File

@@ -1,40 +0,0 @@
Component({
externalClasses: ['i-class'],
options: {
multipleSlots: true
},
relations : {
'../sticky/index' : {
type : 'parent'
}
},
data : {
top : 0,
height : 0,
isFixed : false,
index : -1,
},
methods: {
updateScrollTopChange(scrollTop){
const data = this.data;
const top = data.top;
const height = data.height;
this.setData({
isFixed : ( scrollTop >= top && scrollTop < top + height ) ? true : false
})
},
updateDataChange(index) {
const className = '.i-sticky-item';
const query = wx.createSelectorQuery().in(this);
query.select( className ).boundingClientRect((res)=>{
if( res ){
this.setData({
top : res.top,
height : res.height,
index : index
})
}
}).exec()
}
}
})