市北人才赋能平台 --小程序端
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.

38 lines
868 B

// pages/billboards/park/index.js
4 years ago
import { config } from '../../../config.js'
Page({
/**
* 页面的初始数据
*/
data: {
4 years ago
img1:config.api_url + '/image/1.png',
img2:config.api_url + '/image/2.png',
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
3 years ago
wx.showShareMenu({
withShareTicket: true,
menus: ['shareAppMessage']
});
},
6 years ago
onClickItem(e) {
const { code, title } = e.currentTarget.dataset
6 years ago
console.log(code)
wx.navigateTo({
url: '/pages/billboards/park/park-category/index?code=' + code + '&title=' + title,
6 years ago
})
// wx.navigateTo({
// url: '/pages/billboards/park/park-list/index?code=' + code,
// })
},
4 years ago
detail:function(e){
var id = e.currentTarget.dataset.code
wx.navigateTo({
url: '/pages/article/index?id=' + id,
})
}
})