提交
This commit is contained in:
parent
275b8a5758
commit
37dcacc937
1
app.json
1
app.json
@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"pages": [
|
"pages": [
|
||||||
|
"pages/book/book",
|
||||||
"pages/index/index",
|
"pages/index/index",
|
||||||
"pages/activityDialog/activityDialog",
|
"pages/activityDialog/activityDialog",
|
||||||
"pages/teamDetail/teamDetail",
|
"pages/teamDetail/teamDetail",
|
||||||
|
66
pages/book/book.js
Normal file
66
pages/book/book.js
Normal file
@ -0,0 +1,66 @@
|
|||||||
|
// pages/book/book.js
|
||||||
|
Page({
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 页面的初始数据
|
||||||
|
*/
|
||||||
|
data: {
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 生命周期函数--监听页面加载
|
||||||
|
*/
|
||||||
|
onLoad: function (options) {
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 生命周期函数--监听页面初次渲染完成
|
||||||
|
*/
|
||||||
|
onReady: function () {
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 生命周期函数--监听页面显示
|
||||||
|
*/
|
||||||
|
onShow: function () {
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 生命周期函数--监听页面隐藏
|
||||||
|
*/
|
||||||
|
onHide: function () {
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 生命周期函数--监听页面卸载
|
||||||
|
*/
|
||||||
|
onUnload: function () {
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 页面相关事件处理函数--监听用户下拉动作
|
||||||
|
*/
|
||||||
|
onPullDownRefresh: function () {
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 页面上拉触底事件的处理函数
|
||||||
|
*/
|
||||||
|
onReachBottom: function () {
|
||||||
|
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 用户点击右上角分享
|
||||||
|
*/
|
||||||
|
onShareAppMessage: function () {
|
||||||
|
|
||||||
|
}
|
||||||
|
})
|
3
pages/book/book.json
Normal file
3
pages/book/book.json
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"usingComponents": {}
|
||||||
|
}
|
115
pages/book/book.wxml
Normal file
115
pages/book/book.wxml
Normal file
@ -0,0 +1,115 @@
|
|||||||
|
<view class="top-select">
|
||||||
|
<view class="select-box active">
|
||||||
|
<image src="../../images/selected-l.png" class="select-l"></image>
|
||||||
|
篮球
|
||||||
|
<image src="../../images/selected-r.png" class="select-r"></image>
|
||||||
|
</view>
|
||||||
|
<view class="select-box">
|
||||||
|
<image src="../../images/selected-l.png" class="select-l"></image>
|
||||||
|
篮球
|
||||||
|
<image src="../../images/selected-r.png" class="select-r"></image>
|
||||||
|
</view>
|
||||||
|
<view class="select-box">
|
||||||
|
<image src="../../images/selected-l.png" class="select-l"></image>
|
||||||
|
篮球
|
||||||
|
<image src="../../images/selected-r.png" class="select-r"></image>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="venue-info">
|
||||||
|
<view class="title">营业时间:</view>
|
||||||
|
<view class="content">暂无信息</view>
|
||||||
|
<view class="title">项目描述:</view>
|
||||||
|
<view class="content">暂无信息</view>
|
||||||
|
<view class="title">场地设置:</view>
|
||||||
|
<view class="content">暂无信息</view>
|
||||||
|
</view>
|
||||||
|
<view class="date">
|
||||||
|
<view class="date-container">
|
||||||
|
<view class="date-box active">2020-01-01</view>
|
||||||
|
<view class="date-box">2020-01-01</view>
|
||||||
|
<view class="date-box">2020-01-01</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="ground">
|
||||||
|
<view class="ground-container">
|
||||||
|
<view class="ground-box active">
|
||||||
|
<image src="../../images/selected-l.png" class="left"></image>
|
||||||
|
场地1
|
||||||
|
<image src="../../images/selected-r.png" class="right"></image>
|
||||||
|
</view>
|
||||||
|
<view class="ground-box">
|
||||||
|
<image src="../../images/selected-l.png" class="left"></image>
|
||||||
|
场地1
|
||||||
|
<image src="../../images/selected-r.png" class="right"></image>
|
||||||
|
</view>
|
||||||
|
<view class="ground-box">
|
||||||
|
<image src="../../images/selected-l.png" class="left"></image>
|
||||||
|
场地1
|
||||||
|
<image src="../../images/selected-r.png" class="right"></image>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="time">
|
||||||
|
<view class="time-box selected">
|
||||||
|
<view>2020-01-01</view>
|
||||||
|
<view>12:00-13:00</view>
|
||||||
|
<view>15元</view>
|
||||||
|
</view>
|
||||||
|
<view class="time-box">
|
||||||
|
<view>2020-01-01</view>
|
||||||
|
<view>12:00-13:00</view>
|
||||||
|
<view>15元</view>
|
||||||
|
</view>
|
||||||
|
<view class="time-box">
|
||||||
|
<view>2020-01-01</view>
|
||||||
|
<view>12:00-13:00</view>
|
||||||
|
<view>15元</view>
|
||||||
|
</view>
|
||||||
|
<view class="time-box">
|
||||||
|
<view>2020-01-01</view>
|
||||||
|
<view>12:00-13:00</view>
|
||||||
|
<view>15元</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="bottom">
|
||||||
|
<view class="phone-code">
|
||||||
|
<view class="row">
|
||||||
|
<view class="row-title">手机号:</view>
|
||||||
|
<view class="row-input">
|
||||||
|
<input placeholder="请输入手机号"></input>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="row">
|
||||||
|
<view class="row-title">验证码:</view>
|
||||||
|
<view class="row-input">
|
||||||
|
<input placeholder="请输入验证码" class="code-input"></input>
|
||||||
|
<view class="get-code">获取验证码</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="pay-book">
|
||||||
|
<view class="pay">
|
||||||
|
订单金额:10元
|
||||||
|
</view>
|
||||||
|
<view class="book">
|
||||||
|
预定
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="order-info">
|
||||||
|
<view class="order-container">
|
||||||
|
<view class="order-title">订单信息</view>
|
||||||
|
<view class="order">
|
||||||
|
<view class="order-box">
|
||||||
|
<view class="top">
|
||||||
|
<view>2020-01-01</view>
|
||||||
|
<view>12:00-13:00</view>
|
||||||
|
</view>
|
||||||
|
<view class="bottom">
|
||||||
|
<view>场地1</view>
|
||||||
|
<view>15元</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
197
pages/book/book.wxss
Normal file
197
pages/book/book.wxss
Normal file
@ -0,0 +1,197 @@
|
|||||||
|
.top-select{
|
||||||
|
height:90rpx;
|
||||||
|
background:rgba(255,255,255,1);
|
||||||
|
box-shadow:0px 0px 16rpx 0px rgba(0,0,0,0.1);
|
||||||
|
border-radius:0px 0px 31rpx 31rpx;
|
||||||
|
padding: 0 30rpx;
|
||||||
|
display: flex;
|
||||||
|
margin-bottom: 10rpx;
|
||||||
|
}
|
||||||
|
.select-box{
|
||||||
|
padding: 0 30rpx;
|
||||||
|
position: relative;
|
||||||
|
font-size: 32rpx;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
.select-box image{
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
width: 20rpx;
|
||||||
|
height: 30rpx;
|
||||||
|
display: none;
|
||||||
|
transform: translate(0, -50%);
|
||||||
|
}
|
||||||
|
.select-box.active image{
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
.select-l{
|
||||||
|
left: 0;
|
||||||
|
}
|
||||||
|
.select-r{
|
||||||
|
right: 0;
|
||||||
|
}
|
||||||
|
.venue-info{
|
||||||
|
padding: 0 30rpx;
|
||||||
|
}
|
||||||
|
.title{
|
||||||
|
font-size: 30rpx;
|
||||||
|
color: #000;
|
||||||
|
margin-bottom: 10rpx;
|
||||||
|
}
|
||||||
|
.content{
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #949494;
|
||||||
|
margin-bottom: 10rpx;
|
||||||
|
}
|
||||||
|
.date{
|
||||||
|
border-top: 3px solid #DEDEDE;
|
||||||
|
border-bottom: 3px solid #DEDEDE;
|
||||||
|
padding: 0 30rpx;
|
||||||
|
}
|
||||||
|
.date-container, .ground-container{
|
||||||
|
display: flex;
|
||||||
|
flex-wrap: nowrap;
|
||||||
|
overflow-x: auto;
|
||||||
|
}
|
||||||
|
.date-box, .ground-box{
|
||||||
|
flex-shrink: 0;
|
||||||
|
padding: 15rpx 0;
|
||||||
|
margin-right: 15rpx;
|
||||||
|
font-size: 30rpx;
|
||||||
|
color: #949494;
|
||||||
|
}
|
||||||
|
.date-box.active{
|
||||||
|
color: #9F1512;
|
||||||
|
}
|
||||||
|
.ground{
|
||||||
|
margin: 20rpx 0;
|
||||||
|
padding: 0 30rpx 20rpx;
|
||||||
|
border-bottom: 3px solid #DEDEDE;
|
||||||
|
}
|
||||||
|
.ground-box{
|
||||||
|
margin: 0;
|
||||||
|
padding: 0 25rpx;
|
||||||
|
position: relative;
|
||||||
|
}
|
||||||
|
.ground-box image{
|
||||||
|
width: 20rpx;
|
||||||
|
height: 30rpx;
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
transform: translate(0, -50%);
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
.left{
|
||||||
|
left: 0
|
||||||
|
}
|
||||||
|
.right{
|
||||||
|
right: 0
|
||||||
|
}
|
||||||
|
.ground-box.active{
|
||||||
|
color: #9F1512;
|
||||||
|
}
|
||||||
|
.ground-box.active image{
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
.time{
|
||||||
|
padding: 0 30rpx;
|
||||||
|
}
|
||||||
|
.time-box{
|
||||||
|
display: inline-block;
|
||||||
|
width: 32%;
|
||||||
|
margin-right: 2%;
|
||||||
|
background: rgba(159,21,18,.5);
|
||||||
|
color: #fff;
|
||||||
|
font-size: 28rpx;
|
||||||
|
border-radius: 15rpx;
|
||||||
|
margin-bottom: 15rpx;
|
||||||
|
text-align: center;
|
||||||
|
padding: 15rpx;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
.time-box:nth-child(3n){
|
||||||
|
margin-right: 0
|
||||||
|
}
|
||||||
|
.time-box.selected{
|
||||||
|
background: #9F1512;
|
||||||
|
}
|
||||||
|
.bottom{
|
||||||
|
position: fixed;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
padding: 15rpx 30rpx;
|
||||||
|
}
|
||||||
|
.phone-code{
|
||||||
|
margin-bottom: 20rpx;
|
||||||
|
}
|
||||||
|
.row{
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
.row-title{
|
||||||
|
width: 20%;
|
||||||
|
font-size: 28rpx;
|
||||||
|
color: #000;
|
||||||
|
line-height: 55rpx;
|
||||||
|
padding: 10rpx 0;
|
||||||
|
}
|
||||||
|
.row-input{
|
||||||
|
width: 78%;
|
||||||
|
border-bottom: 1px solid #DEDEDE;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
padding: 10rpx 0;
|
||||||
|
}
|
||||||
|
.row-input input{
|
||||||
|
width: 100%;
|
||||||
|
height: 55rpx;
|
||||||
|
}
|
||||||
|
.row-input input.code-input{
|
||||||
|
width: 70%;
|
||||||
|
}
|
||||||
|
.get-code{
|
||||||
|
width: 28%;
|
||||||
|
font-size: 28rpx;
|
||||||
|
background: #9F1512;
|
||||||
|
color: #fff;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
.pay-book{
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
.pay, .book{
|
||||||
|
width: 70%;
|
||||||
|
height: 60rpx;
|
||||||
|
background: #9F1512;
|
||||||
|
color: #fff;
|
||||||
|
font-size: 28rpx;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
.book{
|
||||||
|
width: 29%;
|
||||||
|
}
|
||||||
|
.order-info{
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
z-index: 1000;
|
||||||
|
background: rgba(0,0,0,0.6);
|
||||||
|
}
|
||||||
|
.order-container{
|
||||||
|
position: absolute;
|
||||||
|
bottom: 80rpx;
|
||||||
|
left: 30rpx;
|
||||||
|
right: 30rpx;
|
||||||
|
background: #fff;
|
||||||
|
border-radius: 10rpx;
|
||||||
|
}
|
@ -50,4 +50,7 @@
|
|||||||
<view class="intro-title">场馆简介:</view>
|
<view class="intro-title">场馆简介:</view>
|
||||||
<!-- <view class="intro-content"></view> -->
|
<!-- <view class="intro-content"></view> -->
|
||||||
<rich-text nodes="{{venuesDetail.venueDescription}}"></rich-text>
|
<rich-text nodes="{{venuesDetail.venueDescription}}"></rich-text>
|
||||||
|
</view>
|
||||||
|
<view class="book-btn">
|
||||||
|
<view class="btn">预定</view>
|
||||||
</view>
|
</view>
|
@ -86,6 +86,7 @@
|
|||||||
}
|
}
|
||||||
.venue-intro{
|
.venue-intro{
|
||||||
padding: 0 20rpx 20rpx;
|
padding: 0 20rpx 20rpx;
|
||||||
|
margin-bottom: 110rpx;
|
||||||
}
|
}
|
||||||
.intro-title{
|
.intro-title{
|
||||||
font-size: 30rpx;
|
font-size: 30rpx;
|
||||||
@ -95,4 +96,22 @@
|
|||||||
.intro-content{
|
.intro-content{
|
||||||
font-size: 28rpx;
|
font-size: 28rpx;
|
||||||
color: #000;
|
color: #000;
|
||||||
|
}
|
||||||
|
.book-btn{
|
||||||
|
position: fixed;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
padding: 15rpx 30rpx;
|
||||||
|
background: #fff;
|
||||||
|
}
|
||||||
|
.btn{
|
||||||
|
height: 80rpx;
|
||||||
|
background: #9F1512;
|
||||||
|
color: #fff;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
font-size: 30rpx;
|
||||||
|
border-radius: 10rpx;
|
||||||
}
|
}
|
@ -8,12 +8,22 @@
|
|||||||
"scopeDataCheck": false,
|
"scopeDataCheck": false,
|
||||||
"coverView": true,
|
"coverView": true,
|
||||||
"es6": true,
|
"es6": true,
|
||||||
|
"enhance": false,
|
||||||
"postcss": true,
|
"postcss": true,
|
||||||
"compileHotReLoad": false,
|
"compileHotReLoad": false,
|
||||||
"preloadBackgroundData": false,
|
"preloadBackgroundData": false,
|
||||||
"minified": true,
|
"minified": true,
|
||||||
|
<<<<<<< Updated upstream
|
||||||
"autoAudits": false,
|
"autoAudits": false,
|
||||||
"newFeature": true,
|
"newFeature": true,
|
||||||
|
=======
|
||||||
|
"newFeature": true,
|
||||||
|
"coverView": true,
|
||||||
|
"nodeModules": false,
|
||||||
|
"autoAudits": false,
|
||||||
|
"showShadowRootInWxmlPanel": true,
|
||||||
|
"scopeDataCheck": false,
|
||||||
|
>>>>>>> Stashed changes
|
||||||
"uglifyFileName": false,
|
"uglifyFileName": false,
|
||||||
"uploadWithSourceMap": true,
|
"uploadWithSourceMap": true,
|
||||||
"useIsolateContext": true,
|
"useIsolateContext": true,
|
||||||
@ -24,11 +34,23 @@
|
|||||||
"showShadowRootInWxmlPanel": true,
|
"showShadowRootInWxmlPanel": true,
|
||||||
"checkInvalidKey": true,
|
"checkInvalidKey": true,
|
||||||
"checkSiteMap": true,
|
"checkSiteMap": true,
|
||||||
|
<<<<<<< Updated upstream
|
||||||
|
=======
|
||||||
|
"uploadWithSourceMap": true,
|
||||||
|
>>>>>>> Stashed changes
|
||||||
"babelSetting": {
|
"babelSetting": {
|
||||||
"ignore": [],
|
"ignore": [],
|
||||||
"disablePlugins": [],
|
"disablePlugins": [],
|
||||||
"outputPath": ""
|
"outputPath": ""
|
||||||
|
<<<<<<< Updated upstream
|
||||||
}
|
}
|
||||||
|
=======
|
||||||
|
},
|
||||||
|
"useCompilerModule": true,
|
||||||
|
"userConfirmedUseCompilerModuleSwitch": false,
|
||||||
|
"compileHotReLoad": false,
|
||||||
|
"useIsolateContext": true
|
||||||
|
>>>>>>> Stashed changes
|
||||||
},
|
},
|
||||||
"compileType": "miniprogram",
|
"compileType": "miniprogram",
|
||||||
"libVersion": "2.11.1",
|
"libVersion": "2.11.1",
|
||||||
|
Loading…
Reference in New Issue
Block a user