Commit f70d9e38d7afa9a92ee764f366bdfe224ee40886

Authored by wangfan
1 parent 56ac4c9b

快速预定

... ... @@ -35,7 +35,8 @@
"pages": [
"pages/index",
"pages/cart",
"pages/success"
"pages/success",
"pages/remark"
]
}
],
... ...
... ... @@ -4,7 +4,6 @@
"navigationBarTextStyle":"light",
"usingComponents": {
"nav":"/components/nav/nav",
"cart":"../components/cart/cart",
"formids":"/components/formids/formids"
}
}
\ No newline at end of file
... ...
... ... @@ -7,22 +7,7 @@
<view class="block">
<view class="title">123123</view>
<view class="cart-body">
<view class="cart-item flex-lr" wx:for="{{[1,2,3,4,5,1,2,3,4,5,1,2,3,4,6]}}" wx:key="item.key">
<view class="icon">
<image src="{{}}"></image>
</view>
<view class="name">范德萨范德萨发{{item}}</view>
<view class="price">¥125.00/份</view>
<view class="opt">
{{item.num||10}}
</view>
</view>
</view>
</view>
<view class="block">
<view class="title">123123</view>
<view class="cart-body">
<view class="cart-item flex-lr" wx:for="{{[1,2,3,4,5,1,2,3,4,5,1,2,3,4,6]}}" wx:key="item.key">
<view class="cart-item flex-lr" wx:for="{{[1]}}" wx:key="item.key">
<view class="icon">
<image src="{{}}"></image>
</view>
... ... @@ -42,7 +27,7 @@
<view class="flex-lr item">
<view>人数:</view>
<view>
<input placeholder="请输入人数"/>
<input placeholder="请输入人数" type="number"/>
</view>
</view>
<view class="flex-lr item">
... ...
... ... @@ -80,9 +80,9 @@ page{
height: 100%;
}
.carts .icon{
width: 40rpx;
min-width: 40rpx;
height: 40rpx;
width: 48rpx;
min-width: 48rpx;
height: 48rpx;
background-color: #f5f5f5;
border-radius: 50%;
overflow: hidden;
... ...
// pack-cookbook/pages/remark.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
})
\ No newline at end of file
... ...
{
"backgroundTextStyle":"light",
"navigationBarBackgroundColor": "#fff",
"navigationBarTextStyle":"black",
"usingComponents": {
"nav":"/components/nav/nav",
"formids":"/components/formids/formids"
}
}
\ No newline at end of file
... ...
<!--pack-cookbook/pages/remark.wxml-->
<nav id="nav" hasHome backgroundColor="#ffffff" color="#000000">添加备注</nav>
<view class="page">
<textarea class="textarea"></textarea>
<view class="tip">快捷标签</view>
<view class="tags flex-ll" style="flex-wrap:wrap;">
<block wx:for="{{[1,2,3,4,5,6,7,8]}}">
<view class="tag active">大师傅</view>
</block>
</view>
<view class="submit">保存</view>
</view>
\ No newline at end of file
... ...
/* pack-cookbook/pages/remark.wxss */
.page{
width: 90%;
margin: 40rpx auto 0;
}
.textarea{
border: 2rpx solid #999999;
width: 100%;
height: 240rpx;
}
.tip{
margin-top: 40rpx;
margin-bottom: 40rpx;
font-size: 24rpx;
color: #999999;
}
.tags {
font-size: 30rpx;
color: #C2AC6A;
}
.tag{
border: 2rpx solid #C2AC6A;
height: 50rpx;
line-height: 50rpx;
padding: 0 16rpx;
margin: 0 40rpx 40rpx 0;
}
.tag.active{
background: linear-gradient(to right, #C0AA68, #DFCE8E);
border-width: 0;
color: #fefefe;
}
.submit{
font-size: 34rpx;
width: 300rpx;
height: 80rpx;
line-height: 80rpx;
color:#fefefe;
background-color: #C8B16D;
border-radius: 40rpx;
margin: 320rpx auto;
text-align: center;
}
.submit.fouce{
margin: 32rpx auto;
}
\ No newline at end of file
... ...
... ... @@ -30,7 +30,7 @@
"list": []
},
"miniprogram": {
"current": 35,
"current": 36,
"list": [
{
"id": 0,
... ... @@ -301,6 +301,11 @@
"pathName": "pack-cookbook/pages/success",
"query": "",
"scene": "1001"
},
{
"id": -1,
"name": "pack-cookbook/pages/remark",
"pathName": "pack-cookbook/pages/remark"
}
]
}
... ...