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

34 lines
647 B

// pages/billboards/park/park-detail/index.js
import { BillboardModel } from '../../../../models/billboard.js'
let billboard = new BillboardModel()
Page({
/**
* 页面的初始数据
*/
data: {
content: '',
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
const {code, name} = options
console.log(code)
wx.setNavigationBarTitle({
title: name,
})
this.fetchCategoryIntro(code)
},
fetchCategoryIntro (code) {
billboard.fetchCategoryArtice(code, res => {
console.log(res)
this.setData({
content: res.result.brief
})
})
}
})