2024-06-19 09:57:10 +08:00

105 lines
1.9 KiB
JavaScript

const app = getApp()
import {
getMeetingRoomServiceAndEquipmentRq,
queryServiceMsgRq
} from "../../../../api/meeting/meetingRoom.js"
Page({
/**
* 页面的初始数据
*/
data: {
IMG_NAME: app.IMG_NAME,
meetingRoomId: null,
detail: {},
msg: {},
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
let _this = this;
_this.setData({
...options
})
// 获取数据
_this.getData();
},
// 获取数据
getData() {
let _this = this;
getMeetingRoomServiceAndEquipmentRq(_this.data.meetingRoomId).then(res => {
_this.setData({
detail: res.data
})
})
// 查询服务信息
queryServiceMsgRq({
"dictType": "server_info"
}).then(res => {
console.log('queryServiceMsgRq', res);
for (let i = 0; i < res.data.length; i++) {
if (res.data[i].dictValue == wx.getStorageSync('parkId')) {
_this.setData({
msg: res.data[i].dictLabel
})
break;
}
}
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})