|
|
@@ -48,18 +48,6 @@ Page({
|
|
|
showNoMore: "没有更多信息...", //显示已无更多
|
|
|
},
|
|
|
onLoad: function(options) {
|
|
|
-
|
|
|
- },
|
|
|
- start() {
|
|
|
- let cityName = wx.getStorageSync('city') || app.globalData.userInfo.city || '无锡'
|
|
|
- console.log(cityName)
|
|
|
- this.setData({
|
|
|
- cityName: cityName
|
|
|
- })
|
|
|
- this.fetchBanner();
|
|
|
- this.workType(this.data.filter);
|
|
|
- },
|
|
|
- onShow: function() {
|
|
|
if (app.globalData.userInfo) {
|
|
|
console.log('有info===', app.globalData)
|
|
|
this.start();
|
|
|
@@ -83,6 +71,18 @@ Page({
|
|
|
}
|
|
|
|
|
|
},
|
|
|
+ start() {
|
|
|
+ let cityName = wx.getStorageSync('city') || app.globalData.userInfo.city || '无锡'
|
|
|
+ console.log(cityName)
|
|
|
+ this.setData({
|
|
|
+ cityName: cityName
|
|
|
+ })
|
|
|
+ this.fetchBanner();
|
|
|
+ this.workType(this.data.filter);
|
|
|
+ },
|
|
|
+ onShow: function() {
|
|
|
+
|
|
|
+ },
|
|
|
//下拉刷新
|
|
|
onPullDownRefresh: function() {
|
|
|
this.setData({
|