描述:会议详细信息

This commit is contained in:
SelfRidicule 2024-03-02 16:27:19 +08:00
parent dafe81fac3
commit 22eaae784e
3 changed files with 28 additions and 20 deletions

View File

@ -18,4 +18,12 @@ export function meetingRoomListRq(data) {
method: "post", method: "post",
data data
}); });
}
// 会议室详情信息
export function meetingRoomDetailRq(id) {
return request({
url: '/api/roomContent/info/' + id,
method: "get",
});
} }

View File

@ -1,5 +1,5 @@
const app = getApp() const app = getApp()
import {meetingRoomDetailRq} from "../../../api/meeting/meetingRoom.js"
Page({ Page({
/** /**
@ -9,16 +9,7 @@ Page({
IMG_NAME: app.IMG_NAME, IMG_NAME: app.IMG_NAME,
contentSwichFLag: true, contentSwichFLag: true,
detail : {}, detail : {},
bannerList: [{ bannerList: [],
bg: '/profile/static/index/banner/1.jpg',
url: ''
}, {
bg: '/profile/static/index/banner/2.jpg',
url: ''
}, {
bg: '/profile/static/index/banner/3.jpg',
url: ''
}],
mapData: { mapData: {
latitude: 33.601291, latitude: 33.601291,
longitude: 119.031829, longitude: 119.031829,
@ -35,7 +26,15 @@ Page({
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad(options) { onLoad(options) {
let _this = this;
console.log('onLoad' , options); console.log('onLoad' , options);
meetingRoomDetailRq(options.id).then(res=>{
console.log('meetingRoomDetailRq' , res);
_this.setData({
detail : res.roomContent,
bannerList : [res.roomContent.indoorPicUrl]
})
})
}, },
// 切换内容展示 // 切换内容展示

View File

@ -2,7 +2,7 @@
<!-- 轮播图 --> <!-- 轮播图 -->
<swiper class='swiper-box' indicator-dots autoplay interval="3000" duration="1000" circular='true'> <swiper class='swiper-box' indicator-dots autoplay interval="3000" duration="1000" circular='true'>
<swiper-item wx:for="{{bannerList}}" wx:key="index"> <swiper-item wx:for="{{bannerList}}" wx:key="index">
<image class="img" src="{{IMG_NAME + item.bg}}" mode="aspectFill"></image> <image class="img" src="{{IMG_NAME + item}}" mode="aspectFill"></image>
</swiper-item> </swiper-item>
</swiper> </swiper>
@ -12,23 +12,24 @@
<view class="typeView"> <view class="typeView">
<view class="typeItem"> <view class="typeItem">
<view class="name">所在楼层</view> <view class="name">所在楼层</view>
<view class="value">12层</view> <view class="value">{{detail.buildingName}}</view>
</view> </view>
<view class="typeItem"> <view class="typeItem">
<view class="name">空间面积</view> <view class="name">空间面积</view>
<view class="value">12345m</view> <view class="value">{{detail.renArea}}m</view>
</view> </view>
<view class="typeItem"> <view class="typeItem">
<view class="name">办公面积</view> <view class="name">办公面积</view>
<view class="value">550m</view> <view class="value">{{detail.area}}m</view>
</view> </view>
</view> </view>
<!-- 文字内容 --> <!-- 文字内容 -->
<view class="content {{contentSwichFLag ? 'hidden' : ''}}"> <view class="content {{contentSwichFLag ? 'hidden' : ''}}">
在组件上使用 wx:for 控制属性绑定一个数组,即可使用数组中各项的数据重复渲染该组件。默认数组的当前项的下标变量名默认为 index数组当前项的变量名默认为 item在组件上使用 wx:for 控制属性绑定一个数组,即可使用数组中各项的数据重复渲染该组件。默认数组的当前项的下标变量名默认为 index数组当前项的变量名默认为 item在组件上使用 wx:for 控制属性绑定一个数组,即可使用数组中各项的数据重复渲染该组件。默认数组的当前项的下标变量名默认为 index数组当前项的变量名默认为 item在组件上使用 wx:for 控制属性绑定一个数组,即可使用数组中各项的数据重复渲染该组件。默认数组的当前项的下标变量名默认为 index数组当前项的变量名默认为 item 一般的会议室功能区包括主席台、听众区和发言区。部分会议室则不作明确区分,如圆桌会议室和会见式会议室。会场的布置类型可以是标准化的,也可以是个性化的一般的会议室功能区包括主席台、听众区和发言区。部分会议室则不作
一般的会议室功能区包括主席台、听众区和发言区。部分会议室则不作明确区分,如圆桌会议室和会见式会议室。会场的布置类型可以是标准化的,也可以是个性化的一般的会议室功能区包括主席台、听众区和发言区。
</view> </view>
<view class="contentSwichBtn" bind:tap="contentSwich"> <view class="contentSwichBtn" bind:tap="contentSwich">
{{contentSwichFLag ? '展开' : '收起'}} {{contentSwichFLag ? '展开' : '收起'}}
<van-icon wx:if="{{contentSwichFLag}}" name="arrow-down" /> <van-icon wx:if="{{contentSwichFLag}}" name="arrow-down" />
<van-icon wx:if="{{!contentSwichFLag}}" name="arrow-up" /> <van-icon wx:if="{{!contentSwichFLag}}" name="arrow-up" />
@ -39,9 +40,9 @@
<view class="facilitiesView" bind:tap="jumpMeetingFacilities"> <view class="facilitiesView" bind:tap="jumpMeetingFacilities">
<view class="leftLineTitle">空间设施</view> <view class="leftLineTitle">空间设施</view>
<view class="itemView"> <view class="itemView">
<view class="singleItem" wx:for="{{10}}"> <view class="singleItem" wx:for="{{detail.roomServeList}}" wx:for-item="serviceItem">
<van-icon name="after-sale" size="40px" /> <van-icon name="after-sale" size="40px" />
<view class="name">VIP</view> <view class="name">{{serviceItem.serveName}}</view>
</view> </view>
</view> </view>
</view> </view>
@ -49,7 +50,7 @@
<!-- 价格 --> <!-- 价格 -->
<view class="priceView"> <view class="priceView">
<view class="leftLineTitle">价格</view> <view class="leftLineTitle">价格</view>
<view class="content">¥ 200.00/半小时 起</view> <view class="content">¥ {{detail.money}}/小时 起</view>
</view> </view>
<!-- 地图 --> <!-- 地图 -->