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
990 B

// pages/index/home/home.js
Page({
/**
* 页面的初始数据
*/
data: {
selectBox:[
{
roomType:"会议室类型",
array:['小型会议室', '中型会议室', '大型会议室']
},
{
roomType:"楼栋选择",
array:['一号楼','二号楼','三号楼'],
}
],
roomLevel:"", //当前选择的类型
builds:"", //当前选择的楼栋
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
},
bindValue(e){
let type = e.detail.type
if(type == 0){
this.data.roomLevel = e.detail.val
}else{
this.data.builds = e.detail.val
}
console.log(this.data.roomLevel)
console.log(this.data.builds)
},
})