|
@@ -198,11 +198,11 @@ export default {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
globalSwitchClass(cur,item) {
|
|
globalSwitchClass(cur,item) {
|
|
|
|
|
+ this.globalGoToTop()
|
|
|
this.globalClassIndex = cur
|
|
this.globalClassIndex = cur
|
|
|
this.globalPage = 1
|
|
this.globalPage = 1
|
|
|
this.globalPy = ''
|
|
this.globalPy = ''
|
|
|
this.$refs.globalSearchRef.search = ''
|
|
this.$refs.globalSearchRef.search = ''
|
|
|
- this.globalScrollTopPlace = 0
|
|
|
|
|
this.globalClassId = item.id
|
|
this.globalClassId = item.id
|
|
|
this.globalFinishGetItem = 0
|
|
this.globalFinishGetItem = 0
|
|
|
this.getGlobalProductList()
|
|
this.getGlobalProductList()
|
|
@@ -240,18 +240,24 @@ export default {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
globalSearch(){
|
|
globalSearch(){
|
|
|
- this.globalScrollTopPlace = 0
|
|
|
|
|
this.globalPage = 1
|
|
this.globalPage = 1
|
|
|
if(!this.$util.isEmpty(this.globalPy)){
|
|
if(!this.$util.isEmpty(this.globalPy)){
|
|
|
|
|
+ this.globalGoToTop()
|
|
|
this.globalClassIndex = -1
|
|
this.globalClassIndex = -1
|
|
|
this.globalFinishGetItem = 0
|
|
this.globalFinishGetItem = 0
|
|
|
this.getGlobalProductList()
|
|
this.getGlobalProductList()
|
|
|
- }else{
|
|
|
|
|
- // this.globalClassIndex = 0
|
|
|
|
|
- // this.globalFinishGetItem = 0
|
|
|
|
|
- // this.getGlobalProductList()
|
|
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
+ globalGoToTop(){
|
|
|
|
|
+ let that = this
|
|
|
|
|
+ this.globalScrollTopPlace = this.globalScrollTopOldPlace
|
|
|
|
|
+ this.$nextTick(()=>{
|
|
|
|
|
+ that.globalScrollTopPlace = 0
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
|
|
+ globalGetScroll(event){
|
|
|
|
|
+ this.globalScrollTopOldPlace = event.detail.scrollTop
|
|
|
|
|
+ },
|
|
|
globalScrollBottom(){
|
|
globalScrollBottom(){
|
|
|
this.getGlobalProductList()
|
|
this.getGlobalProductList()
|
|
|
},
|
|
},
|