取消首页下拉刷新
This commit is contained in:
parent
b015747510
commit
2d1f0f79e0
|
@ -3,8 +3,7 @@
|
||||||
{
|
{
|
||||||
"path": "pages/index/index",
|
"path": "pages/index/index",
|
||||||
"style": {
|
"style": {
|
||||||
"navigationBarTitleText": "熊熊安装队",
|
"navigationBarTitleText": "熊熊安装队"
|
||||||
"enablePullDownRefresh": true
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
|
@ -120,38 +120,31 @@ export default {
|
||||||
WidgetModal,
|
WidgetModal,
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
this.initPage();
|
// 首页轮播
|
||||||
|
this.$request({
|
||||||
|
api: "index.banner",
|
||||||
|
}).then((response) => {
|
||||||
|
response.data.forEach((item) => {
|
||||||
|
this.bannerList.push({
|
||||||
|
image: item.image,
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
// 系统公告
|
||||||
|
this.$models.system.notifyList().then((list) => {
|
||||||
|
this.notifyList = list;
|
||||||
|
});
|
||||||
|
// 导航
|
||||||
|
this.$models.system.navList().then((list) => {
|
||||||
|
this.installServiceList = list.install;
|
||||||
|
this.aftermarketServiceList = list.aftermarket;
|
||||||
|
});
|
||||||
},
|
},
|
||||||
onShow() {},
|
onShow() {},
|
||||||
onReady() {},
|
onReady() {},
|
||||||
onReachBottom() {},
|
onReachBottom() {},
|
||||||
onPullDownRefresh() {
|
onPullDownRefresh() {},
|
||||||
this.initPage();
|
|
||||||
uni.stopPullDownRefresh();
|
|
||||||
},
|
|
||||||
methods: {
|
methods: {
|
||||||
initPage() {
|
|
||||||
this.bannerList = [];
|
|
||||||
// 首页轮播
|
|
||||||
this.$request({
|
|
||||||
api: "index.banner",
|
|
||||||
}).then((response) => {
|
|
||||||
response.data.forEach((item) => {
|
|
||||||
this.bannerList.push({
|
|
||||||
image: item.image,
|
|
||||||
});
|
|
||||||
});
|
|
||||||
});
|
|
||||||
// 系统公告
|
|
||||||
this.$models.system.notifyList().then((list) => {
|
|
||||||
this.notifyList = list;
|
|
||||||
});
|
|
||||||
// 导航
|
|
||||||
this.$models.system.navList().then((list) => {
|
|
||||||
this.installServiceList = list.install;
|
|
||||||
this.aftermarketServiceList = list.aftermarket;
|
|
||||||
});
|
|
||||||
},
|
|
||||||
/**
|
/**
|
||||||
* 跳转
|
* 跳转
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue