arenaDetail.vue
3.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
<template>
<view class="detail_container">
<!-- 头部详情 -->
<view class="detail_head">
<image class="head_cover" src="@/static/images/start/login-bg-mob.png" mode="widthFix"></image>
<view class="nav_item">
<u-icon name="arrow-left" color="#fff" @click="goBack"></u-icon>
</view>
</view>
<!-- 球馆信息卡片 -->
<view class="arnea_card">
<view class="arena_box">
<ArenaDetailCard />
</view>
</view>
<!-- 会员充值提示 -->
<view class="vip" @click="goRouter('/pages/arenaDetail/vipRecharge')">
<vipCard></vipCard>
</view>
<!-- 选场 -->
<view class="book">
<view class="book_title">
<view>选场预订</view>
<view class="bookNum">本球场共6个场地</view>
</view>
<view class="book_content">
<BookCard v-for="item in 4" :key="item" />
<u-loadmore :status="status" line />
</view>
</view>
<!-- 评论 -->
<view class="comment">
<view class="comment_box">
<CommonTitleNav title-name="用户评论" mark-color="#666666" right-title="(1265+评论)" >
<template #side-content>
<view style="display: flex;align-items: center;font-size: 24rpx;" @click="goRouter('/pages/moreComment/moreComment')">
<text style="margin-right: 6rpx;color: #999;">更多评价</text>
<u-icon name="arrow-right" color="#999999" size="12"></u-icon>
</view>
</template>
</CommonTitleNav>
<view class="comment_content">
<!-- 评价内容 -->
<CommentCard v-for="item in 3" :key="item" />
</view>
</view>
</view>
</view>
</template>
<script>
import CommonTitleNav from '@/components/commonTitleNav.vue'
import ArenaDetailCard from './components/ArenaDetailCard.vue'
import vipCard from './components/vipCard.vue'
import BookCard from './components/bookCard.vue'
import CommentCard from '@/components/commentCard.vue'
export default {
components: { ArenaDetailCard, BookCard, CommonTitleNav, CommentCard, vipCard },
data() {
return {
status: 'loadmore',
}
},
methods: {
goBack() {
uni.navigateBack()
},
goRouter(path) {
uni.navigateTo({
url: path
})
}
}
}
</script>
<style lang="scss" scoped>
.detail_container{
background-color: #F6F6F6;
min-height: 100vh;
padding-bottom: 60rpx;
.detail_head{
position: relative;
height: 396rpx;
overflow: hidden;
.head_cover{
position: absolute;
top: -344rpx;
left: 0;
width: 100%;
}
.nav_item{
width: 100%;
box-sizing: border-box;
margin: 68rpx 0 0 40rpx;
}
}
.arnea_card{
position: relative;
.arena_box{
margin-top: -172rpx;
}
}
.vip{
padding: 0 30rpx;
margin: 20rpx 0;
box-sizing: border-box;
}
.book{
margin-top: 30rpx;
padding: 0 30rpx;
.book_title{
display: flex;
align-items: center;
margin-bottom: 24rpx;
font-size: 32rpx;
line-height: 40rpx;
color: #333;
.bookNum{
color: #999;
font-size: 24rpx;
line-height: 32rpx;
margin-left: 20rpx;
}
}
.book_content{
min-height: 548rpx;
background: #FFFFFF;
border-radius: 16rpx;
padding: 34rpx 26rpx;
}
}
.comment{
margin-top: 20rpx;
padding: 0 30rpx;
.comment_box{
min-height: 684rpx;
background: #FFFFFF;
border-radius: 16rpx;
padding: 24rpx 26rpx 30rpx;
}
}
.comment_content{
margin-top: 40rpx;
}
}
</style>