mirror of
https://gitee.com/elegant_wings/dbd-meeting-wx-small.git
synced 2025-06-21 14:19:38 +08:00
97 lines
1.7 KiB
JavaScript
97 lines
1.7 KiB
JavaScript
const app = getApp()
|
|
|
|
Page({
|
|
|
|
/**
|
|
* 页面的初始数据
|
|
*/
|
|
data: {
|
|
IMG_NAME: app.IMG_NAME,
|
|
contentSwichFLag: true,
|
|
bannerList: [{
|
|
bg: '/profile/static/index/banner/1.jpg',
|
|
url: ''
|
|
}, {
|
|
bg: '/profile/static/index/banner/2.jpg',
|
|
url: ''
|
|
}, {
|
|
bg: '/profile/static/index/banner/3.jpg',
|
|
url: ''
|
|
}],
|
|
mapData: {
|
|
latitude: 33.601291,
|
|
longitude: 119.031829,
|
|
markers: [{
|
|
id: 1,
|
|
latitude: 33.601291,
|
|
longitude: 119.031829,
|
|
title: '淮安茂业天地购物中心'
|
|
}]
|
|
}
|
|
},
|
|
|
|
/**
|
|
* 生命周期函数--监听页面加载
|
|
*/
|
|
onLoad(options) {
|
|
|
|
},
|
|
|
|
// 切换内容展示
|
|
contentSwich() {
|
|
console.log('contentSwich', 1);
|
|
let _this = this;
|
|
_this.setData({
|
|
"contentSwichFLag": !_this.data.contentSwichFLag
|
|
})
|
|
},
|
|
|
|
/**
|
|
* 生命周期函数--监听页面初次渲染完成
|
|
*/
|
|
onReady() {
|
|
|
|
},
|
|
|
|
/**
|
|
* 生命周期函数--监听页面显示
|
|
*/
|
|
onShow() {
|
|
|
|
},
|
|
|
|
/**
|
|
* 生命周期函数--监听页面隐藏
|
|
*/
|
|
onHide() {
|
|
|
|
},
|
|
|
|
/**
|
|
* 生命周期函数--监听页面卸载
|
|
*/
|
|
onUnload() {
|
|
|
|
},
|
|
|
|
/**
|
|
* 页面相关事件处理函数--监听用户下拉动作
|
|
*/
|
|
onPullDownRefresh() {
|
|
|
|
},
|
|
|
|
/**
|
|
* 页面上拉触底事件的处理函数
|
|
*/
|
|
onReachBottom() {
|
|
|
|
},
|
|
|
|
/**
|
|
* 用户点击右上角分享
|
|
*/
|
|
onShareAppMessage() {
|
|
|
|
}
|
|
}) |