Commit f70d9e38d7afa9a92ee764f366bdfe224ee40886

Authored by wangfan
1 parent 56ac4c9b

快速预定

@@ -35,7 +35,8 @@ @@ -35,7 +35,8 @@
35 "pages": [ 35 "pages": [
36 "pages/index", 36 "pages/index",
37 "pages/cart", 37 "pages/cart",
38 - "pages/success" 38 + "pages/success",
  39 + "pages/remark"
39 ] 40 ]
40 } 41 }
41 ], 42 ],
@@ -4,7 +4,6 @@ @@ -4,7 +4,6 @@
4 "navigationBarTextStyle":"light", 4 "navigationBarTextStyle":"light",
5 "usingComponents": { 5 "usingComponents": {
6 "nav":"/components/nav/nav", 6 "nav":"/components/nav/nav",
7 - "cart":"../components/cart/cart",  
8 "formids":"/components/formids/formids" 7 "formids":"/components/formids/formids"
9 } 8 }
10 } 9 }
@@ -7,22 +7,7 @@ @@ -7,22 +7,7 @@
7 <view class="block"> 7 <view class="block">
8 <view class="title">123123</view> 8 <view class="title">123123</view>
9 <view class="cart-body"> 9 <view class="cart-body">
10 - <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">  
11 - <view class="icon">  
12 - <image src="{{}}"></image>  
13 - </view>  
14 - <view class="name">范德萨范德萨发{{item}}</view>  
15 - <view class="price">¥125.00/份</view>  
16 - <view class="opt">  
17 - {{item.num||10}}  
18 - </view>  
19 - </view>  
20 - </view>  
21 - </view>  
22 - <view class="block">  
23 - <view class="title">123123</view>  
24 - <view class="cart-body">  
25 - <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"> 10 + <view class="cart-item flex-lr" wx:for="{{[1]}}" wx:key="item.key">
26 <view class="icon"> 11 <view class="icon">
27 <image src="{{}}"></image> 12 <image src="{{}}"></image>
28 </view> 13 </view>
@@ -42,7 +27,7 @@ @@ -42,7 +27,7 @@
42 <view class="flex-lr item"> 27 <view class="flex-lr item">
43 <view>人数:</view> 28 <view>人数:</view>
44 <view> 29 <view>
45 - <input placeholder="请输入人数"/> 30 + <input placeholder="请输入人数" type="number"/>
46 </view> 31 </view>
47 </view> 32 </view>
48 <view class="flex-lr item"> 33 <view class="flex-lr item">
@@ -80,9 +80,9 @@ page{ @@ -80,9 +80,9 @@ page{
80 height: 100%; 80 height: 100%;
81 } 81 }
82 .carts .icon{ 82 .carts .icon{
83 - width: 40rpx;  
84 - min-width: 40rpx;  
85 - height: 40rpx; 83 + width: 48rpx;
  84 + min-width: 48rpx;
  85 + height: 48rpx;
86 background-color: #f5f5f5; 86 background-color: #f5f5f5;
87 border-radius: 50%; 87 border-radius: 50%;
88 overflow: hidden; 88 overflow: hidden;
  1 +// pack-cookbook/pages/remark.js
  2 +Page({
  3 +
  4 + /**
  5 + * 页面的初始数据
  6 + */
  7 + data: {
  8 +
  9 + },
  10 +
  11 + /**
  12 + * 生命周期函数--监听页面加载
  13 + */
  14 + onLoad: function (options) {
  15 +
  16 + },
  17 +
  18 + /**
  19 + * 生命周期函数--监听页面初次渲染完成
  20 + */
  21 + onReady: function () {
  22 +
  23 + },
  24 +
  25 + /**
  26 + * 生命周期函数--监听页面显示
  27 + */
  28 + onShow: function () {
  29 +
  30 + },
  31 +
  32 + /**
  33 + * 生命周期函数--监听页面隐藏
  34 + */
  35 + onHide: function () {
  36 +
  37 + },
  38 +
  39 + /**
  40 + * 生命周期函数--监听页面卸载
  41 + */
  42 + onUnload: function () {
  43 +
  44 + },
  45 +
  46 + /**
  47 + * 页面相关事件处理函数--监听用户下拉动作
  48 + */
  49 + onPullDownRefresh: function () {
  50 +
  51 + },
  52 +
  53 + /**
  54 + * 页面上拉触底事件的处理函数
  55 + */
  56 + onReachBottom: function () {
  57 +
  58 + },
  59 +
  60 + /**
  61 + * 用户点击右上角分享
  62 + */
  63 + onShareAppMessage: function () {
  64 +
  65 + }
  66 +})
  1 +{
  2 + "backgroundTextStyle":"light",
  3 + "navigationBarBackgroundColor": "#fff",
  4 + "navigationBarTextStyle":"black",
  5 + "usingComponents": {
  6 + "nav":"/components/nav/nav",
  7 + "formids":"/components/formids/formids"
  8 + }
  9 +}
  1 +<!--pack-cookbook/pages/remark.wxml-->
  2 +<nav id="nav" hasHome backgroundColor="#ffffff" color="#000000">添加备注</nav>
  3 +<view class="page">
  4 + <textarea class="textarea"></textarea>
  5 + <view class="tip">快捷标签</view>
  6 + <view class="tags flex-ll" style="flex-wrap:wrap;">
  7 + <block wx:for="{{[1,2,3,4,5,6,7,8]}}">
  8 + <view class="tag active">大师傅</view>
  9 + </block>
  10 + </view>
  11 + <view class="submit">保存</view>
  12 +</view>
  1 +/* pack-cookbook/pages/remark.wxss */
  2 +.page{
  3 + width: 90%;
  4 + margin: 40rpx auto 0;
  5 +}
  6 +.textarea{
  7 + border: 2rpx solid #999999;
  8 + width: 100%;
  9 + height: 240rpx;
  10 +}
  11 +.tip{
  12 + margin-top: 40rpx;
  13 + margin-bottom: 40rpx;
  14 + font-size: 24rpx;
  15 + color: #999999;
  16 +}
  17 +.tags {
  18 + font-size: 30rpx;
  19 + color: #C2AC6A;
  20 +}
  21 +.tag{
  22 + border: 2rpx solid #C2AC6A;
  23 + height: 50rpx;
  24 + line-height: 50rpx;
  25 + padding: 0 16rpx;
  26 + margin: 0 40rpx 40rpx 0;
  27 +}
  28 +.tag.active{
  29 + background: linear-gradient(to right, #C0AA68, #DFCE8E);
  30 + border-width: 0;
  31 + color: #fefefe;
  32 +}
  33 +.submit{
  34 + font-size: 34rpx;
  35 + width: 300rpx;
  36 + height: 80rpx;
  37 + line-height: 80rpx;
  38 + color:#fefefe;
  39 + background-color: #C8B16D;
  40 + border-radius: 40rpx;
  41 + margin: 320rpx auto;
  42 + text-align: center;
  43 +}
  44 +.submit.fouce{
  45 + margin: 32rpx auto;
  46 +}
@@ -30,7 +30,7 @@ @@ -30,7 +30,7 @@
30 "list": [] 30 "list": []
31 }, 31 },
32 "miniprogram": { 32 "miniprogram": {
33 - "current": 35, 33 + "current": 36,
34 "list": [ 34 "list": [
35 { 35 {
36 "id": 0, 36 "id": 0,
@@ -301,6 +301,11 @@ @@ -301,6 +301,11 @@
301 "pathName": "pack-cookbook/pages/success", 301 "pathName": "pack-cookbook/pages/success",
302 "query": "", 302 "query": "",
303 "scene": "1001" 303 "scene": "1001"
  304 + },
  305 + {
  306 + "id": -1,
  307 + "name": "pack-cookbook/pages/remark",
  308 + "pathName": "pack-cookbook/pages/remark"
304 } 309 }
305 ] 310 ]
306 } 311 }