You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
117 lines
3.8 KiB
117 lines
3.8 KiB
// index.js |
|
// 获取应用实例 |
|
const app = getApp() |
|
|
|
Page({ |
|
data: { |
|
indicatorDots: false, |
|
autoplay: true, |
|
banner: [{ |
|
url: 'https://ss0.baidu.com/94o3dSag_xI4khGko9WTAnF6hhy/zhidao/pic/item/cb8065380cd791230f4870a5ac345982b3b780b3.jpg', |
|
id: 1 |
|
}, |
|
{ |
|
url: 'https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fcdn.duitang.com%2Fuploads%2Fitem%2F201303%2F29%2F20130329205806_kTTnv.thumb.700_0.jpeg&refer=http%3A%2F%2Fcdn.duitang.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1628591572&t=361f72adbc156de6bfe6af5256ec471b', |
|
id: 1 |
|
}, |
|
{ |
|
url: 'https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fpic14.nipic.com%2F20110507%2F4858670_180729227101_2.jpg&refer=http%3A%2F%2Fpic14.nipic.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1628591572&t=26eeea41b45a2dea54bf852f073bdaa7', |
|
id: 1 |
|
}, |
|
{ |
|
url: 'https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fblog.sina.com.cn%2Fpic%2F44f59d727e4f484157caa&refer=http%3A%2F%2Fblog.sina.com.cn&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1628591572&t=73f048b7ee8d700bef3603516ff2f463', |
|
id: 1 |
|
} |
|
], |
|
tabs: [{ |
|
text: '地块可研', |
|
url: '/assets/images/study.png', |
|
page: '/pages/feasibility-study/feasibility-study' |
|
}, |
|
{ |
|
text: '定期报告', |
|
url: '/assets/images/report.png', |
|
page: '/pages/periodic-report/periodic-report' |
|
}, |
|
{ |
|
text: '专题研究', |
|
url: '/assets/images/research.png', |
|
page: '/pages/special-research/special-research' |
|
}, |
|
{ |
|
text: '土地推介', |
|
url: '/assets/images/promotion.png', |
|
page: '/pages/land-promotion/land-promotion' |
|
} |
|
], |
|
refresher: false, |
|
list: [], |
|
}, |
|
onReady() { |
|
this.refresh() |
|
}, |
|
/** |
|
* 生命周期函数--监听页面显示 |
|
*/ |
|
onShow: function () { |
|
if (typeof this.getTabBar === 'function' && |
|
this.getTabBar()) { |
|
this.getTabBar().setData({ |
|
selected: 2 |
|
}) |
|
} |
|
|
|
|
|
}, |
|
getList() { |
|
let list = this.data.list.concat(this.data.list); |
|
this.setData({ |
|
list |
|
}) |
|
}, |
|
refresh() { |
|
let list = [{ |
|
title: '巴南区大杨石组团大桥石区大桥大桥大桥S分区4-25', |
|
timer: '2021/01/01', |
|
state: 1 |
|
}, { |
|
title: '巴南区大杨石组团大桥石区大桥大桥大桥S分区4-25', |
|
timer: '2021/01/01', |
|
state: 2 |
|
}, { |
|
title: '巴南区大杨石组团大桥石区大桥大桥大桥S分区4-25', |
|
timer: '2021/01/01', |
|
state: 3 |
|
}, { |
|
title: '巴南区大杨石组团大桥石区大桥大桥大桥S分区4-25', |
|
timer: '2021/01/01', |
|
state: 4 |
|
}, { |
|
title: '巴南区大杨石组团大桥石区大桥大桥大桥S分区4-25', |
|
timer: '2021/01/01', |
|
state: 1 |
|
}, { |
|
title: '巴南区大杨石组团大桥石区大桥大桥大桥S分区4-25', |
|
timer: '2021/01/01', |
|
state: 2 |
|
}] |
|
setTimeout(() => { |
|
this.setData({ |
|
list, |
|
refresher: false |
|
}) |
|
}, 200) |
|
}, |
|
pageComing(e) { |
|
let url = e.currentTarget.dataset.page |
|
wx.navigateTo({ |
|
url |
|
}) |
|
}, |
|
// 跳转 |
|
navigate() { |
|
wx.navigateTo({ |
|
url: '/pages/air-report/air-report', |
|
}) |
|
}, |
|
}) |