This commit is contained in:
SelfRidicule 2024-03-02 16:57:04 +08:00
parent 22eaae784e
commit ac0f215342
3 changed files with 19 additions and 9 deletions

View File

@ -1,5 +1,7 @@
const app = getApp() const app = getApp()
import {meetingRoomDetailRq} from "../../../api/meeting/meetingRoom.js" import {
meetingRoomDetailRq
} from "../../../api/meeting/meetingRoom.js"
Page({ Page({
/** /**
@ -8,6 +10,7 @@ Page({
data: { data: {
IMG_NAME: app.IMG_NAME, IMG_NAME: app.IMG_NAME,
contentSwichFLag: true, contentSwichFLag: true,
meetingRoomId : null,
detail: {}, detail: {},
bannerList: [], bannerList: [],
mapData: { mapData: {
@ -28,9 +31,11 @@ Page({
onLoad(options) { onLoad(options) {
let _this = this; let _this = this;
console.log('onLoad', options); console.log('onLoad', options);
meetingRoomDetailRq(options.id).then(res=>{ let meetingRoomId = options.id;
meetingRoomDetailRq(meetingRoomId).then(res => {
console.log('meetingRoomDetailRq', res); console.log('meetingRoomDetailRq', res);
_this.setData({ _this.setData({
meetingRoomId,
detail: res.roomContent, detail: res.roomContent,
bannerList: [res.roomContent.indoorPicUrl] bannerList: [res.roomContent.indoorPicUrl]
}) })

View File

@ -41,7 +41,7 @@
<view class="leftLineTitle">空间设施</view> <view class="leftLineTitle">空间设施</view>
<view class="itemView"> <view class="itemView">
<view class="singleItem" wx:for="{{detail.roomServeList}}" wx:for-item="serviceItem"> <view class="singleItem" wx:for="{{detail.roomServeList}}" wx:for-item="serviceItem">
<van-icon name="after-sale" size="40px" /> <image class="img" src="{{IMG_NAME + serviceItem.pic}}" mode="aspectFill"></image>
<view class="name">{{serviceItem.serveName}}</view> <view class="name">{{serviceItem.serveName}}</view>
</view> </view>
</view> </view>

View File

@ -122,8 +122,13 @@
margin-top: 30rpx; margin-top: 30rpx;
} }
.facilitiesView .itemView .singleItem .img {
width: 70rpx;
height: 70rpx;
}
.facilitiesView .itemView .singleItem .name { .facilitiesView .itemView .singleItem .name {
margin-top: 4rpx; margin-top: 16rpx;
} }
.priceView { .priceView {