|
|
@@ -35,7 +35,9 @@ export default {
|
|
|
globalFinishGetItem:0,
|
|
|
globalPage:1,
|
|
|
globalPy:'',
|
|
|
- globalItemData:[]
|
|
|
+ globalItemData:[],
|
|
|
+ globalScrollTopPlace:0,
|
|
|
+ globalScrollTopOldPlace:0
|
|
|
};
|
|
|
},
|
|
|
onLoad(options) {
|
|
|
@@ -198,6 +200,9 @@ export default {
|
|
|
globalSwitchClass(cur,item) {
|
|
|
this.globalClassIndex = cur
|
|
|
this.globalPage = 1
|
|
|
+ this.globalPy = ''
|
|
|
+ this.$refs.globalSearchRef.search = ''
|
|
|
+ this.globalScrollTopPlace = 0
|
|
|
this.globalClassId = item.id
|
|
|
this.globalFinishGetItem = 0
|
|
|
this.getGlobalProductList()
|
|
|
@@ -235,16 +240,16 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
globalSearch(){
|
|
|
+ this.globalScrollTopPlace = 0
|
|
|
+ this.globalPage = 1
|
|
|
if(!this.$util.isEmpty(this.globalPy)){
|
|
|
- this.globalPage = 1
|
|
|
this.globalClassIndex = -1
|
|
|
this.globalFinishGetItem = 0
|
|
|
this.getGlobalProductList()
|
|
|
}else{
|
|
|
- this.globalPage = 1
|
|
|
- this.globalClassIndex = 0
|
|
|
- this.globalFinishGetItem = 0
|
|
|
- this.getGlobalProductList()
|
|
|
+ // this.globalClassIndex = 0
|
|
|
+ // this.globalFinishGetItem = 0
|
|
|
+ // this.getGlobalProductList()
|
|
|
}
|
|
|
},
|
|
|
globalScrollBottom(){
|