Commit 56ac4c9bf19fc100b502e77c83dc27ecc5a77ac0

Authored by wangfan
1 parent 866c602c

快速预定

1 { 1 {
2 - "usingComponents": {} 2 + "backgroundTextStyle":"light",
  3 + "navigationBarBackgroundColor": "#fff",
  4 + "navigationBarTextStyle":"light",
  5 + "usingComponents": {
  6 + "nav":"/components/nav/nav",
  7 + "cart":"../components/cart/cart",
  8 + "formids":"/components/formids/formids"
  9 + }
3 } 10 }
1 <!--pack-cookbook/pages/cart.wxml--> 1 <!--pack-cookbook/pages/cart.wxml-->
2 -<text>pack-cookbook/pages/cart.wxml</text> 2 +<nav id="nav" hasHome backgroundColor="#262628" color="#fefefe">提交订单</nav>
  3 +<view class="header">
  4 +</view>
  5 +<view class="page">
  6 + <view class="carts">
  7 + <view class="block">
  8 + <view class="title">123123</view>
  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">
  26 + <view class="icon">
  27 + <image src="{{}}"></image>
  28 + </view>
  29 + <view class="name">范德萨范德萨发{{item}}</view>
  30 + <view class="price">¥125.00/份</view>
  31 + <view class="opt">
  32 + {{item.num||10}}
  33 + </view>
  34 + </view>
  35 + </view>
  36 + </view>
  37 + </view>
  38 +</view>
  39 +<view class="footer">
  40 + <view class="total">共计:¥88</view>
  41 + <view class="infos">
  42 + <view class="flex-lr item">
  43 + <view>人数:</view>
  44 + <view>
  45 + <input placeholder="请输入人数"/>
  46 + </view>
  47 + </view>
  48 + <view class="flex-lr item">
  49 + <view>备注:</view>
  50 + <view class="flex-rr">
  51 + <view class="desc">口味、偏好等要求</view>
  52 + <view class="more"></view>
  53 + </view>
  54 + </view>
  55 + </view>
  56 + <view class="submit">确认下单</view>
  57 +</view>
1 -/* pack-cookbook/pages/cart.wxss */  
  1 +/* pack-cookbook/pages/cart.wxss */
  2 +page{
  3 + background-color: #F5F5F5;
  4 +}
  5 +.header{
  6 + height: 280rpx;
  7 + background-color: #262628;
  8 + margin-top: -2rpx;
  9 + color:#FEFEFE;
  10 + font-size: 34rpx;
  11 +}
  12 +.page{
  13 + position: fixed;
  14 + top:150rpx;
  15 + bottom: 0;
  16 + left: 10rpx;
  17 + right: 10rpx;
  18 + background-color: #fefefe;
  19 + border-radius: 10rpx;
  20 + overflow-y: auto;
  21 +}
  22 +.footer{
  23 + position: fixed;
  24 + bottom: 0;
  25 + left: 0;
  26 + right: 0;
  27 + text-align: center;
  28 + background-color: #f5f5f5;
  29 +}
  30 +.footer .infos{
  31 + margin: 0 10rpx 20rpx;
  32 + background-color: #fefefe;
  33 + border-radius: 10rpx 10rpx 0 0;
  34 + font-size: 28rpx;
  35 + padding: 0 20rpx;
  36 +}
  37 +.footer .infos .item{
  38 + height: 100rpx;
  39 + line-height: 100rpx;
  40 +}
  41 +.infos input{
  42 + text-align: right;
  43 +}
  44 +.infos .desc{
  45 + margin-right: 20rpx;
  46 + white-space:nowrap;
  47 + overflow: hidden;
  48 + max-width: 95%;
  49 + color: #999999;
  50 +}
  51 +
  52 +.footer .submit{
  53 + height: 98rpx;
  54 + line-height: 98rpx;
  55 + background-color: #262628;
  56 + color:#fefefe;
  57 + font-size: 34rpx;
  58 +}
  59 +.total{
  60 + height: 140rpx;
  61 + line-height: 140rpx;
  62 + border-top: 2rpx solid #F5F5F5;
  63 + border-radius: 0 0 10rpx 10rpx;
  64 + margin:0 10rpx 20rpx;
  65 + text-align: right;
  66 + background-color: #fefefe;
  67 + font-weight: bold;
  68 + font-size: 36rpx;
  69 + padding-right: 34rpx;
  70 +}
  71 +
  72 +
  73 +
  74 +.carts{
  75 + overflow-y: auto;
  76 + padding: 0 5% 680rpx;
  77 +}
  78 +.carts image{
  79 + width: 100%;
  80 + height: 100%;
  81 +}
  82 +.carts .icon{
  83 + width: 40rpx;
  84 + min-width: 40rpx;
  85 + height: 40rpx;
  86 + background-color: #f5f5f5;
  87 + border-radius: 50%;
  88 + overflow: hidden;
  89 + margin-right: 20rpx;
  90 +}
  91 +.carts .title{
  92 + height:80rpx;
  93 + line-height: 80rpx;
  94 + font-size: 28rpx;
  95 + border-bottom: 2rpx solid #F5F5F5;
  96 +}
  97 +.cart-body{
  98 +
  99 +}
  100 +.cart-item{
  101 + height: 100rpx;
  102 + line-height: 100rpx;
  103 + font-size: 34rpx;
  104 +}
  105 +.cart-item .name{
  106 + width: 60%;
  107 + overflow: hidden;
  108 + white-space:nowrap;
  109 +}
  110 +.cart-item .price{
  111 + width: 32%;
  112 + white-space:nowrap;
  113 + margin: 0 4%;
  114 +}
  115 +.cart-item .opt{
  116 + font-size: 36rpx;
  117 + font-weight: bold;
  118 + min-width: 80rpx;
  119 + width: 80rpx;
  120 + text-align: right;
  121 +}
@@ -6,6 +6,7 @@ @@ -6,6 +6,7 @@
6 "foodCard": "../components/food-card/food-card", 6 "foodCard": "../components/food-card/food-card",
7 "cookClass": "../components/cook-class/cook-class", 7 "cookClass": "../components/cook-class/cook-class",
8 "nav":"/components/nav/nav", 8 "nav":"/components/nav/nav",
9 - "cart":"../components/cart/cart" 9 + "cart":"../components/cart/cart",
  10 + "formids":"/components/formids/formids"
10 } 11 }
11 } 12 }