<template>
	<view class='container'>
		<view class="sv-y">
			<scroll-view scroll-y>
				<view class="flex-column">
					<view style="position: relative;">
						<image :src="`${$config.domain}`+ partyobj.image" mode="" style="width: 100%;height: 940rpx;">
						</image>
						<view class="wh-50 flex-center-center mt-100 ml-24" @click="$wskj.goBack(1)"
							style="position:absolute;left: 0rpx;top: 0rpx;">
							<image class="w-20 h-38" src="/static/icon_hdxq_back.png"></image>
						</view>
						<view class="pt-100 pb-20 plr-24"
							style="color: white;position:absolute;left: 0rpx;bottom: 0rpx;background: linear-gradient( 180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.75) 49%, #000000 100%);">
							<text class="fs-36">{{partyobj.name}}</text>
						</view>

					</view>
					<view class="flex-column pad-24">
						<view class="flex flex-between align-center">
							<text class="fs-28" style="color:#878787;">{{partyobj.startTime}}</text>
							<button open-type="share" style="background-color: transparent; border: none;">
								<image class="wh-52" src="/static/icon_hdxq_fx.png" ></image>
							</button>
						</view>
						<text class="fs-42 mt-10" style="color:#FD46B9;">{{storeobj.name}}</text>
					</view>
					<view class="flex-column mlr-24 mt-25 br-10 pad-24 fs-24"
						style="color: #878787;background-color: #171717;">
						<text style="color: white;">主办方</text>
						<text class="fs-28 mt-10">{{storeobj.name}}</text>
						<text class="mt-36" style="color: white;">场地信息</text>
						<text class="fs-28 mt-10">{{storeobj.address}}</text>
					</view>
					<view class="flex-column mlr-24 mt-25 br-10 pad-24 fs-24"
						style="color: #878787;background-color: #171717;">
						<image class="w-153 h-40" src="../static/icon_hdxq_text.png"></image>
						<rich-text :nodes="partyobj.poster"></rich-text>
					</view>
				</view>
			</scroll-view>
		</view>
		<view class="h-100 mtb-30 mlr-24">
			<view @click="$wskj.to('/pages/ljyd')" class="fullscreen-btn" style="background-color: #FE42C2;">
				<text>立即预订</text>
			</view>
		</view>

	</view>
</template>

<script>
	export default {
		data() {
			return {
				partyobj: '',
				storeobj: ''
			};
		},
		onLoad(options) {	
			this.storeobj = this.$store.state.messagelist
			this.$api.getPartyByDetail(this.storeobj.shopid).then(res => {
				this.partyobj = res.data
			})
		},
		methods: {
			
          onShareAppMessage(){
			  return {
				  title:"花海",
				  path:"/",
				  success:(res)=>{
					  this.$u.toast({
						  title:'转发成功',
						  duration:1000
					  })
				  },
				  fail:()=>{
					  
				  }
			  }
		  }
		},
	};
</script>

<style scoped>
	.container {
		width: 100%;
		height: 100%;
		background: #0F0F0F;
		background-color: ;
		display: flex;
		flex-direction: column;
	}
</style>