取消分类、服务列表的下拉刷新
This commit is contained in:
parent
73cf2229fd
commit
b015747510
|
@ -22,15 +22,13 @@
|
|||
{
|
||||
"path": "pages/service/cate",
|
||||
"style": {
|
||||
"navigationBarTitleText": "分类",
|
||||
"enablePullDownRefresh": true
|
||||
"navigationBarTitleText": "分类"
|
||||
}
|
||||
},
|
||||
{
|
||||
"path": "pages/service/list",
|
||||
"style": {
|
||||
"navigationBarTitleText": "服务列表",
|
||||
"enablePullDownRefresh": true
|
||||
"navigationBarTitleText": "服务列表"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
|
|
@ -80,7 +80,14 @@ export default {
|
|||
x: x - this.$utils.rpx2px(20),
|
||||
y: y - this.$utils.rpx2px(40),
|
||||
};
|
||||
this.initPage();
|
||||
// 加载分类
|
||||
this.data.push({
|
||||
id: 0,
|
||||
name: "热门推荐",
|
||||
cover: "",
|
||||
child: await this.hotCate(),
|
||||
});
|
||||
this.loadCate();
|
||||
},
|
||||
onShow() {
|
||||
this.newId = this.currentId = this.currentCateId;
|
||||
|
@ -91,22 +98,8 @@ export default {
|
|||
this.$store.commit("system/currentCateId", this.newId);
|
||||
},
|
||||
onReachBottom() {},
|
||||
onPullDownRefresh() {
|
||||
this.initPage();
|
||||
uni.stopPullDownRefresh();
|
||||
},
|
||||
onPullDownRefresh() {},
|
||||
methods: {
|
||||
async initPage() {
|
||||
this.data = [];
|
||||
// 加载分类
|
||||
this.data.push({
|
||||
id: 0,
|
||||
name: "热门推荐",
|
||||
cover: "",
|
||||
child: await this.hotCate(),
|
||||
});
|
||||
this.loadCate();
|
||||
},
|
||||
/**
|
||||
* 推荐
|
||||
*/
|
||||
|
|
|
@ -65,20 +65,13 @@ export default {
|
|||
return;
|
||||
}
|
||||
this.currentId = e.id;
|
||||
this.initPage();
|
||||
this.loadList(this.currentId);
|
||||
},
|
||||
onShow() {},
|
||||
onReady() {},
|
||||
onReachBottom() {},
|
||||
onPullDownRefresh() {
|
||||
this.initPage();
|
||||
uni.stopPullDownRefresh();
|
||||
},
|
||||
onPullDownRefresh() {},
|
||||
methods: {
|
||||
initPage() {
|
||||
this.data = [];
|
||||
this.loadList(this.currentId);
|
||||
},
|
||||
/**
|
||||
* 加载列表
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue