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.
|
|
|
// pages/billboards/park/index.js
|
|
|
|
import { config } from '../../../config.js'
|
|
|
|
Page({
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 页面的初始数据
|
|
|
|
*/
|
|
|
|
data: {
|
|
|
|
img1:config.api_url + '/image/1.png',
|
|
|
|
img2:config.api_url + '/image/2.png',
|
|
|
|
},
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 生命周期函数--监听页面加载
|
|
|
|
*/
|
|
|
|
onLoad: function (options) {
|
|
|
|
|
|
|
|
},
|
|
|
|
onClickItem(e) {
|
|
|
|
const { code, title } = e.currentTarget.dataset
|
|
|
|
console.log(code)
|
|
|
|
wx.navigateTo({
|
|
|
|
url: '/pages/billboards/park/park-category/index?code=' + code + '&title=' + title,
|
|
|
|
})
|
|
|
|
// wx.navigateTo({
|
|
|
|
// url: '/pages/billboards/park/park-list/index?code=' + code,
|
|
|
|
// })
|
|
|
|
},
|
|
|
|
detail:function(e){
|
|
|
|
var id = e.currentTarget.dataset.code
|
|
|
|
wx.navigateTo({
|
|
|
|
url: '/pages/article/index?id=' + id,
|
|
|
|
})
|
|
|
|
}
|
|
|
|
})
|