bookCard.vue
1.1 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
<template>
<view class="bookCard">
<view class="left">
<image class="arena_img" src="@/static/images/home/bg-1.png" mode="scaleToFill"></image>
</view>
<view class="right">
<view class="arenaInfo">
<view>羽毛球1号场</view>
<view class="price">¥ 160/小时</view>
</view>
<MyButton title="订场" size="small" @comfirn="goRouter" />
</view>
</view>
</template>
<script>
import MyButton from '@/components/myButton.vue'
export default {
components: { MyButton },
methods: {
goRouter(){
uni.navigateTo({
url: '/pages/timeBooking/timeBooking'
})
}
}
}
</script>
<style lang="scss" scoped>
.bookCard{
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 24rpx;
.left{
width: 124rpx;
height: 124rpx;
margin-right: 24rpx;
.arena_img{
width: 100%;
max-height: 126rpx;
}
}
.right {
display: flex;
align-items: center;
justify-content: space-between;
flex: 1;
height: 100%;
.arenaInfo{
font-size: 28rpx;
color: #333;
line-height: 32rpx;
.price{
font-size: 500;
margin-top: 20rpx;
}
}
}
}
</style>