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.
32 lines
655 B
32 lines
655 B
// pages/html/notice/index.js
|
|
const request = require('../../../utils/request') //导入模块
|
|
const util = require('../../../utils/util')
|
|
|
|
Page({
|
|
|
|
/**
|
|
* 页面的初始数据
|
|
*/
|
|
data: {
|
|
noticeInfo: null
|
|
},
|
|
|
|
/**
|
|
* 生命周期函数--监听页面加载
|
|
*/
|
|
onLoad: function (options) {
|
|
if(!util.isEmpty(options.id)){
|
|
wx.showLoading({
|
|
title: '加载中',
|
|
mask: true
|
|
})
|
|
request.get('/recycle-service/get/index-info/' + options.id).then(result => {
|
|
wx.hideLoading()
|
|
this.setData({ noticeInfo: result.data })
|
|
}).catch(err => {
|
|
wx.hideLoading()
|
|
})
|
|
}
|
|
}
|
|
|
|
})
|