<template> <view class="psd-content"> <view class="psd-content-info"> <view class="psd-bgm" :style="{backgroundImage: 'url('+perform.showImg+')'}"> <!-- 头部主要内容 开始 --> <view class="index-content-header"> <customNavbar title="详情" bgColor="rgba(0,0,0,0)" :customNavbarInfo='{}' :leftStyle="{ color: '#fff' }" ></customNavbar> </view> <!-- 头部主要内容 结束 --> </view> <view class="psd-info"> <view class="psd-info-box"> <text class="psd-info-title">{{ perform && perform.name }}</text> <view class="psd-info-main"> <text>票务信息</text> <view> <view> <text>票务名称</text> <text>座位类型</text> <text>销售价</text> <text>分销价</text> <text>佣金</text> </view> <view v-if="perform && perform.brokerageList && perform.brokerageList.length>0" v-for="(item,index) in perform.brokerageList" :key="index"> <text>{{item.goodsName}}</text> <text>{{item.seatTypeName}}</text> <text>{{item.originalSalePrice}}</text> <text>{{item.salePrice}}</text> <text>{{item.brokeragePrice}}</text> </view> </view> </view> </view> </view> </view> </view> </template> <script> export default { data() { return { title: '《伟大转折》剧目全民分享系统', logoUrl: this.$commonConfig.staticUrl + "login/bgm.png", loading: false, performId: null, perform: {} } }, onLoad(e) { console.log(e) this.performId = e.performId }, onShow() { this.getRetailInfo() }, methods: { async getRetailInfo(){ try{ this.perform = {} let res = await this.$u.api.getRetailInfo({ noSign: 1, userid: this.distribution_user_info.userId, performId: this.performId, }) if(res && res.code ===200) { this.perform = res.data } else { } }catch(e){ } } } } </script> <style lang="scss" scoped> .psd-content { width: 100%; height: 100%; position: relative; box-sizing: border-box; --bgm-height: 476rpx; } /** 背景 */ .psd-content-box { width: 100%; height: 100%; box-sizing: border-box; } .psd-bgm { width: 100%; height: var(--bgm-height); background-size: 100% 100%; background-repeat: no-repeat; box-sizing: border-box; .psd-logo { width: 240rpx; height: 172rpx; padding: 50rpx 0; } >text { font-size: 32rpx; font-family: SourceHanSansCN, SourceHanSansCN; font-weight: bold; color: #FFFFFF; } } .psd-info { width: 100%; height: calc(100% - var(--bgm-height) + 40rpx); background-color: #fff; border-radius: 28rpx 28rpx 0rpx 0rpx; position: absolute; bottom: 0; left: 0; z-index: 22; box-sizing: border-box; .psd-info-box { width: 100%; height: 100%; display: flex; flex-direction: column; box-sizing: border-box; .psd-info-title { display: flex; font-size: 40rpx; font-family: SourceHanSansCN, SourceHanSansCN; font-weight: 800; color: #2D2D2D; padding: 54rpx 0 38rpx 40rpx; border-bottom: 6rpx solid rgba(245, 245, 245, 1); box-sizing: border-box; } .psd-info-main { padding: 54rpx 24rpx 0; box-sizing: border-box; >text { font-size: 28rpx; font-family: SourceHanSansCN, SourceHanSansCN; font-weight: 550; color: #2D2D2D; position: relative; padding-bottom: 10rpx; margin-left: 20rpx; } >text::after { content: " "; position: absolute; bottom: 0; left: 15rpx; display: flex; width: 82rpx; height: 6rpx; background: var(--gd-but-color); border-radius: 4rpx; } >view { width: 100%; box-shadow: 0rpx 4rpx 8rpx 0rpx rgba(201,201,201,0.5); border-radius: 16rpx; box-sizing: border-box; margin-top: 40rpx; overflow: hidden; view { width: 100%; display: flex; box-sizing: border-box; height: 76rpx; font-family: SourceHanSansCN, SourceHanSansCN; >text { flex: 1; display: flex; justify-content: center; align-items: center; } >text:nth-child(1) { flex: 1.5; } >text:nth-child(2) { flex: 1.5; } } view:nth-child(2n+1) { background: rgba(255, 255, 255, 1); font-size: 24rpx; color: #606060; >text:last-child { color: rgba(237, 0, 0, 1); } } view:nth-child(2n) { background: rgba(245, 245, 245, 1); font-size: 24rpx; color: #606060; >text:last-child { color: rgba(237, 0, 0, 1); } } view:first-child { background: #363636 !important; font-size: 24rpx; font-weight: 550; color: #FFFFFF; >text:last-child { color: #FFFFFF; } } } } } } /** tabar */ .main-tabar { width: 80vw; height: 100rpx; position: fixed; bottom: 20rpx; left: 50%; transform: translateX(-50%); box-sizing: border-box; .main-tabar-info { width: 100%; height: 100%; display: flex; justify-content: space-between; box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 6px 0px; border-radius: 40rpx; .main-tabar-item { flex: 1; display: flex; align-items: center; flex-direction: column; justify-content: center; image { width: 50rpx; height: 50rpx; } text { font-size: 24rpx; } } } } </style>